Milestone 639 steps 5–6: enforced rules refuse the act, only hold rules hold, and a pass weighs each rule #226

Merged
bvandeusen merged 4 commits from dev into main 2026-11-23 13:21:23 -05:00
Owner

Steps 5 and 6 of milestone 639.

Step 5 (#7731)

  • A rule set to enforce refuses the act it governs.
  • A rule set to hold makes the act wait until the rule has been read once. File writes are never held.
  • Only hold and enforce rules hold anything.
  • Rules tied to an act are delivered at the act, not at the prompt.
  • The shape-check question moves to the next prompt instead of holding the reply.

Step 6 (#7732)

  • A proposal pass weighs each rule: enforcement, salience and typed triggers, proposed from the rule's text and its 90-day delivery history.
  • Tools: rules_to_weigh, propose_rule_weights, rule_weight_proposals, judge_rule_weights.
  • Suggestions are confirmed under Settings › Moments.
  • Migration 0132 adds the proposals table, and backup moves to v30.

CI is green on 3a11c11 (run 10800).

🤖 Generated with Claude Code

Steps 5 and 6 of milestone 639. **Step 5 (#7731)** - A rule set to `enforce` refuses the act it governs. - A rule set to `hold` makes the act wait until the rule has been read once. File writes are never held. - Only hold and enforce rules hold anything. - Rules tied to an act are delivered at the act, not at the prompt. - The shape-check question moves to the next prompt instead of holding the reply. **Step 6 (#7732)** - A proposal pass weighs each rule: enforcement, salience and typed triggers, proposed from the rule's text and its 90-day delivery history. - Tools: `rules_to_weigh`, `propose_rule_weights`, `rule_weight_proposals`, `judge_rule_weights`. - Suggestions are confirmed under Settings › Moments. - Migration 0132 adds the proposals table, and backup moves to v30. CI is green on 3a11c11 (run 10800). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 4 commits 2026-11-23 13:21:20 -05:00
feat(7731): enforced rules refuse the act, only hold rules hold, and the shape question rides the next prompt
CI & Build / TypeScript typecheck (push) Successful in 38s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Python tests (push) Failing after 1m45s
CI & Build / integration (push) Successful in 2m10s
CI & Build / Build & push image (push) Skipped
7d46ce0229
- A rule set to enforce, reached by a mount or a trigger, refuses the tool
  call in its own words every time (`act_decision`, `/moment` returns
  `decision`, grimoire_moment.sh denies). Opening it does not lift it.
- A rule set to hold denies the call once until read, under the act
  checkpoint's per-rule and per-session guard; file writes are never held.
- The reply hold, the reply backstop and the act checkpoint hold only on rules
  declared hold or enforce (`rule_order.holds`). An inform rule is a line
  beside the work.
- The prompt arm leaves rules that arrive at an act (mounted on a non-reply
  moment, or with a tool/path/command trigger) to that act.
- The end-of-turn shape check no longer blocks: its note is kept for the next
  prompt, carried as `carry` into the one fitted payload, and the stop after
  that prompt records whether the lines were judged (noted /
  judged_after_note / left_after_note).
- Rule editor and list copy say what hold and enforce now do. Plugin
  2026.11.23.0005.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(7731): the stop after a note sends its lines without a trailing newline, as the check does
CI & Build / TypeScript typecheck (push) Successful in 38s
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 2m23s
CI & Build / Build & push image (push) Successful in 43s
78c945e7c3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(7732): a pass weighs each rule — enforcement, salience and triggers proposed from its text and delivery history, confirmed by the operator
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 1m41s
CI & Build / integration (push) Successful in 2m9s
CI & Build / Build & push image (push) Skipped
619612732f
Adds rule_field_judgments (migration 0132), the rules_to_weigh / propose_rule_weights / rule_weight_proposals / judge_rule_weights tools, the routes and the Settings › Moments panel that confirms them. A value equal to the rule's own is recorded as agreed; a different one waits; enforce is refused for a rule no act reaches; a direct edit answers a waiting suggestion. Backup v30 carries the judgments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(7732): the weighing tools declare that they write to no project, as the moment pass does
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 1m58s
CI & Build / integration (push) Successful in 2m2s
CI & Build / Build & push image (push) Successful in 39s
3a11c11543
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvandeusen merged commit 177c206216 into main 2026-11-23 13:21:23 -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#226