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:
@@ -283,6 +283,9 @@ bound — confine the session to it:
|
||||
`create_task(project_id=<theirs>, kind="issue")` with how you found it and the
|
||||
evidence. Reading there is fine; editing its files, committing or pushing in
|
||||
its repo, or changing its records is the operator's call, and the plugin asks.
|
||||
A rule that lives on another project is different: it is the operator's to
|
||||
curate from any session, so the plugin names the rule and asks, and the
|
||||
change goes ahead on their yes instead of becoming an issue.
|
||||
|
||||
## Read these when the moment comes
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ proposes mounting or unmounting a rule.
|
||||
|
||||
## Contents
|
||||
- What a moment is
|
||||
- Reading a line that arrived at a moment
|
||||
- Reading a line that arrived at a moment — and a held or refused call
|
||||
- When the moment is wrong — correct it in the session
|
||||
- When a mounted rule arrives and does not apply
|
||||
- When a line proposes a mount — and how rules are weighed and measured
|
||||
@@ -41,6 +41,22 @@ The reply that ends a turn is a moment too. When a rule mounted at
|
||||
with its name: open it, then send the reply — unchanged, if it already does
|
||||
what the rule asks. The same rule is never held twice.
|
||||
|
||||
A call can be held the same way. A rule declared `hold` that the call reaches
|
||||
stops it once, naming the rule: read it, then make the call again — unchanged
|
||||
if the rule does not bear on it, and then `rule_misfired` says so. A rule
|
||||
declared `enforce` refuses the call every time, in its own words: that is a
|
||||
boundary the operator drew, and it moves only when they change the rule, so
|
||||
tell them what you were doing and what the rule said. A rule with triggers of
|
||||
its own holds or refuses only the acts those triggers match; at the rest of
|
||||
its moments it arrives as a line.
|
||||
|
||||
A moment sends a few lines, not every rule mounted there: ordered by
|
||||
enforcement, then salience, then how exactly the act reached the rule, then
|
||||
how often it has been opened there. What did not fit was left out, and a
|
||||
rule already shown this session comes back as a short reminder, then not at
|
||||
all. So a quiet moment means nothing more needed saying there, not that no
|
||||
rule applies — `what_might_apply` asks for the whole list.
|
||||
|
||||
## When the moment is wrong — correct it in the session
|
||||
|
||||
A moment can fire on an action that is not that moment here, or an action can
|
||||
|
||||
@@ -10,6 +10,7 @@ decides how some area of the work must behave; and before filling
|
||||
## Contents
|
||||
- Where a new rule goes — its home, its trigger, what already covers the moment
|
||||
- When it applies — the moments a rule, a preference or a process is for
|
||||
- How strongly it arrives — enforcement, salience, and the act it governs
|
||||
- A ruling goes on the System it governs
|
||||
- A lesson grows each time it proves itself
|
||||
- A lesson names the rule it is an instance of
|
||||
@@ -57,6 +58,35 @@ names the moments the procedure is for, so loading it reaches them and the
|
||||
rules mounted there arrive with it. A rule that only applies inside one
|
||||
procedure mounts on that procedure's own moment, `skill.<name>`.
|
||||
|
||||
## How strongly it arrives
|
||||
|
||||
A rule that reaches the work says one of three things, and you declare which
|
||||
(`enforcement` on `create_rule`, `create_project_rule`, `update_rule`):
|
||||
|
||||
- **`inform`** — a line beside the work. The default, and right for most
|
||||
rules: the session reads it and applies it.
|
||||
- **`hold`** — the act or reply it governs waits until the session has read
|
||||
the rule once; then it goes ahead. For a rule whose miss costs a rewrite: a
|
||||
merge style, a release step, a check before a reply.
|
||||
- **`enforce`** — the act is refused, in the rule's own words, every time,
|
||||
and only a change to the rule moves it. For a boundary the operator draws
|
||||
with no exceptions a session may judge. Most hard rules have an exit ("unless
|
||||
the operator asks"), and a rule with an exit is a hold.
|
||||
|
||||
A hold or a refusal stops an act, so give it the act: a `triggers` entry
|
||||
naming the command head (`git push origin main`), the tool (`create_release`)
|
||||
or the path (`alembic/versions/*.py`) it governs. A rule with triggers stops
|
||||
only the acts they match; at the rest of its moments it is a line. Without
|
||||
one, it stops every act its moment reaches — a rule about pushing to `main`
|
||||
mounted on `work.deliver` would hold every push to `dev`.
|
||||
|
||||
**`salience`** (`high`, `normal`, `low`) orders it against rules of the same
|
||||
enforcement when a moment has more to say than fits. A moment sends a few
|
||||
lines, highest first, and drops the rest — so `high` is for the rule that must
|
||||
win a crowded moment, and `low` for one worth seeing but rarely decisive.
|
||||
|
||||
A preference never holds or refuses: it arrives as a line, with a salience.
|
||||
|
||||
**Before writing one, ask what already covers that moment.**
|
||||
`what_might_apply("the moment you are about to write a record for")` — fifty
|
||||
candidates and no bar, so an existing record cannot hide under a threshold the
|
||||
|
||||
Reference in New Issue
Block a user