Adherence per rule and per moment; Apply all; quoted text and heredocs are not commands; the instruction surfaces teach enforcement and salience #228

Merged
bvandeusen merged 6 commits from dev into main 2026-11-23 18:21:44 -05:00
6 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 c486524b48 fix(7734): rule curation across projects is taught with the other rule-editing guidance, keeping SKILL.md inside its budget
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m17s
CI & Build / Build & push image (push) Successful in 23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:05:52 -05:00
bvandeusenandClaude Opus 5.5 6f0368e770 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
- 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>
2026-11-23 17:59:55 -05:00
bvandeusenandClaude Opus 5.5 cbe4b25dad fix(639): quoted text and heredoc bodies are not commands when an act is matched to a moment
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python lint (push) Canceled after 0s
CI & Build / Python tests (push) Canceled after 0s
CI & Build / integration (push) Canceled after 0s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / Plugin hooks (push) Canceled after 2s
A Bash command was split into segments on every `&&`, `||`, `;`, `|` and
newline, including those inside quotes and the lines of a heredoc. A script
written with `python3 - <<EOF` that mentioned curl reached env.reach, and a
grep for "a && git push" reached work.deliver. The splitter now reads the
line as the shell does: separators inside quotes are text, a heredoc's body
is skipped through its end word (`<<-` strips leading tabs), and a
backslash-newline continues the line. Command triggers use the same split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:57:41 -05:00
bvandeusenandClaude Opus 5.5 5f55bd1575 fix(7733): the route census lists /adherence, and the moments skill opens with its contents
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m38s
CI & Build / integration (push) Successful in 2m38s
CI & Build / Build & push image (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:34:11 -05:00
bvandeusenandClaude Opus 5.5 b4bdd7798c feat(7733): adherence is measured per rule and per moment, and shown
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 16s
CI & Build / TypeScript typecheck (push) Successful in 36s
CI & Build / Python tests (push) Failing after 1m48s
CI & Build / integration (push) Successful in 2m26s
CI & Build / Build & push image (push) Skipped
A rule is in force at a moment of a session when it was delivered there.
Each (session, rule, place) now carries at most one verdict (rule_adherence,
migration 0134): followed, departed, broken or not applicable, with where it
came from:

- an enforce rule refusing the act: followed, recorded by the moment arm, and
  never replaced;
- the session's own rule_outcome (applied, departed) and rule_misfired calls,
  which the plugin's outcome hook now also posts with the session id
  (/api/plugin/rule-verdict) onto the delivery being answered;
- a transcript review: adherence_to_judge lists what has no verdict yet, by
  session, and judge_adherence records verdicts with their evidence.

rule_adherence (MCP) and /api/retrieval/adherence give the readout: sessions
in force, opened and each verdict per rule and per place. Settings > Moments
shows it in a "Were they followed" panel, beside each moment's delivered and
opened counts, and per rule inside each moment.

Verdicts are pruned with their deliveries and left out of backups like them.
Plugin 2026.11.23.2227.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:28:23 -05:00
bvandeusenandClaude Opus 5.5 e70b2c2c00 feat(7733): Apply all confirms every waiting weight suggestion at once, after a dialog that counts what changes
CI & Build / Python lint (push) Successful in 1s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m15s
CI & Build / Build & push image (push) Successful in 35s
The dialog names how many changes across how many rules, and how many of
those rules will start holding or refusing the acts they govern. A refused
item is reported in a toast; the rest still apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:19:59 -05:00