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
Owner

Milestone 639, steps 7 and 8.

  • Apply all: the weight suggestions panel applies every suggestion at once, after a dialog that counts the changes and the rules that will start holding or refusing acts.
  • Adherence: every rule in force at a moment of a session can now carry a verdict: followed, departed, broken or not applicable (migration 0134). Verdicts come from three places:
    • an enforce refusal;
    • the session's own rule_outcome and rule_misfired calls, which the plugin now posts with the session id;
    • a transcript review (adherence_to_judge / judge_adherence).
      Shown per rule and per moment under Settings › Moments, and through rule_adherence.
  • Command matching: separators inside quotes, and heredoc bodies, no longer count as commands when an act is matched to a moment or a command trigger.
  • Instruction surfaces: they teach inform / hold / enforce, salience, trigger-only holds, what a held or refused call means, and what a quiet moment means. A rule edit in another project is worded as the operator's curation.

Plugin 2026.11.23.2305. CI is green on dev, run 10847.

🤖 Generated with Claude Code

Milestone 639, steps 7 and 8. - **Apply all**: the weight suggestions panel applies every suggestion at once, after a dialog that counts the changes and the rules that will start holding or refusing acts. - **Adherence**: every rule in force at a moment of a session can now carry a verdict: followed, departed, broken or not applicable (migration 0134). Verdicts come from three places: - an enforce refusal; - the session's own `rule_outcome` and `rule_misfired` calls, which the plugin now posts with the session id; - a transcript review (`adherence_to_judge` / `judge_adherence`). Shown per rule and per moment under Settings › Moments, and through `rule_adherence`. - **Command matching**: separators inside quotes, and heredoc bodies, no longer count as commands when an act is matched to a moment or a command trigger. - **Instruction surfaces**: they teach inform / hold / enforce, salience, trigger-only holds, what a held or refused call means, and what a quiet moment means. A rule edit in another project is worded as the operator's curation. Plugin 2026.11.23.2305. CI is green on dev, run 10847. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 6 commits 2026-11-23 18:21:41 -05:00
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
e70b2c2c00
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>
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
b4bdd7798c
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>
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
5f55bd1575
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
cbe4b25dad
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>
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
6f0368e770
- 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>
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
c486524b48
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvandeusen merged commit 6eb47f72f9 into main 2026-11-23 18:21:44 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledGrimoire#228