feat(7734): the instruction surfaces teach how strongly a rule arrives, what a held or refused call means, and what a quiet moment means
CI & Build / TypeScript typecheck (push) Successful in 40s
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Skipped
CI & Build / TypeScript typecheck (push) Successful in 40s
CI & Build / Plugin hooks (push) Successful in 20s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Failing after 2m0s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Skipped
- writing-records.md: a new section on declaring enforcement (inform, hold, enforce), the trigger a hold or refusal needs to name its act, and salience. A rule with an exit is a hold; a rule with triggers stops only the acts they match. - moments.md: a held call is read and made again (unchanged if the rule does not bear on it, with rule_misfired); a refused call is the operator's boundary and moves only when they change the rule; a moment sends a few lines in one order and drops the rest, so a quiet moment is not an empty rulebook. - The static context says a rule can hold or refuse a tool call. - create_rule, create_project_rule and update_rule describe enforce as a refusal every time that needs an act, and trigger-only holds. - The cross-project guard words a rule edit on another project as the operator's curation, naming the rule, and no longer suggests filing an issue in its place. _INSTRUCTIONS is at its 1,600-character cap and is left alone: holds and refusals explain themselves when they fire. The guidance ownership test registers the three new topics. Plugin 2026.11.23.2259. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -535,9 +535,14 @@ async def create_rule(
|
||||
order_index: Display order within the topic (default 0).
|
||||
enforcement: What this rule does when it arrives. `inform` (the
|
||||
default) puts a line beside the work. `hold` makes the reply or
|
||||
act it governs wait for one read of it — for a rule whose miss
|
||||
costs a rewrite. `enforce` checks the act itself — for a hard
|
||||
boundary. Declare hold or enforce on purpose; most rules inform.
|
||||
act it governs wait until the session has read the rule once
|
||||
(file edits are never held) — for a rule whose miss costs a
|
||||
rewrite. `enforce` refuses the act it governs, in the rule's own
|
||||
words, every time — for a boundary only the operator moves; it
|
||||
needs a trigger, or a mount on a moment an act reaches, to have
|
||||
an act to refuse. A rule with triggers holds or refuses only the
|
||||
acts they match; reached by its mount alone it is a line. Declare
|
||||
hold or enforce on purpose; most rules inform.
|
||||
triggers: What ACT this record applies to, checked exactly rather
|
||||
than by resemblance — a list of {kind, pattern, moment?}. Kinds:
|
||||
`tool` (a tool key, `*` allowed: "update_task"), `path` (a glob
|
||||
@@ -668,9 +673,14 @@ async def create_project_rule(
|
||||
order_index: Display order within the project's rule list (default 0).
|
||||
enforcement: What this rule does when it arrives. `inform` (the
|
||||
default) puts a line beside the work. `hold` makes the reply or
|
||||
act it governs wait for one read of it — for a rule whose miss
|
||||
costs a rewrite. `enforce` checks the act itself — for a hard
|
||||
boundary. Declare hold or enforce on purpose; most rules inform.
|
||||
act it governs wait until the session has read the rule once
|
||||
(file edits are never held) — for a rule whose miss costs a
|
||||
rewrite. `enforce` refuses the act it governs, in the rule's own
|
||||
words, every time — for a boundary only the operator moves; it
|
||||
needs a trigger, or a mount on a moment an act reaches, to have
|
||||
an act to refuse. A rule with triggers holds or refuses only the
|
||||
acts they match; reached by its mount alone it is a line. Declare
|
||||
hold or enforce on purpose; most rules inform.
|
||||
triggers: What ACT this record applies to, checked exactly rather
|
||||
than by resemblance — a list of {kind, pattern, moment?}. Kinds:
|
||||
`tool` (a tool key, `*` allowed: "update_task"), `path` (a glob
|
||||
@@ -786,9 +796,14 @@ async def update_rule(
|
||||
clear_fields: Names of fields to empty, as above.
|
||||
enforcement: What this rule does when it arrives. `inform` (the
|
||||
default for a new rule) puts a line beside the work. `hold` makes the reply or
|
||||
act it governs wait for one read of it — for a rule whose miss
|
||||
costs a rewrite. `enforce` checks the act itself — for a hard
|
||||
boundary. Declare hold or enforce on purpose; most rules inform.
|
||||
act it governs wait until the session has read the rule once
|
||||
(file edits are never held) — for a rule whose miss costs a
|
||||
rewrite. `enforce` refuses the act it governs, in the rule's own
|
||||
words, every time — for a boundary only the operator moves; it
|
||||
needs a trigger, or a mount on a moment an act reaches, to have
|
||||
an act to refuse. A rule with triggers holds or refuses only the
|
||||
acts they match; reached by its mount alone it is a line. Declare
|
||||
hold or enforce on purpose; most rules inform.
|
||||
triggers: What ACT this record applies to, checked exactly rather
|
||||
than by resemblance — a list of {kind, pattern, moment?}. Kinds:
|
||||
`tool` (a tool key, `*` allowed: "update_task"), `path` (a glob
|
||||
|
||||
Reference in New Issue
Block a user