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

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>
This commit is contained in:
2026-11-23 13:05:38 -05:00
co-authored by Claude Opus 5.5
parent 78c945e7c3
commit 619612732f
20 changed files with 1320 additions and 34 deletions
+6 -2
View File
@@ -111,12 +111,16 @@ def test_the_tools_are_registered_and_classified():
"list_moments", "list_reply_shapes", "map_action", "unmap_action",
"rules_to_mount", "propose_rule_moments", "rule_moment_proposals",
"judge_rule_moments", "rule_misfired",
"rules_to_weigh", "propose_rule_weights", "rule_weight_proposals",
"judge_rule_weights",
]
assert {"list_moments", "list_reply_shapes",
"rules_to_mount", "rule_moment_proposals"} <= _READ_ONLY_TOOLS
"rules_to_mount", "rule_moment_proposals",
"rules_to_weigh", "rule_weight_proposals"} <= _READ_ONLY_TOOLS
# A confirm mounts a rule, so a read key must not reach it.
assert {"map_action", "unmap_action",
"propose_rule_moments", "judge_rule_moments", "rule_misfired"} <= _WRITE_TOOLS
"propose_rule_moments", "judge_rule_moments", "rule_misfired",
"propose_rule_weights", "judge_rule_weights"} <= _WRITE_TOOLS
def test_both_doors_read_one_catalog():