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:
@@ -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