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>
This commit is contained in:
2026-11-23 17:28:23 -05:00
co-authored by Claude Opus 5.5
parent e70b2c2c00
commit b4bdd7798c
25 changed files with 1114 additions and 25 deletions
+9
View File
@@ -96,3 +96,12 @@ triggers reach it exactly (`rules_to_weigh`, `propose_rule_weights`,
`rule_weight_proposals`, `judge_rule_weights`). It reads each rule beside its
delivery history and proposes; the operator confirms each change, in the
session or under Settings › Moments.
Whether a rule was followed where it arrived is measured per rule and per
moment (`rule_adherence`, and under Settings › Moments). Your own
`rule_outcome` and `rule_misfired` calls are the session's half of that
record: each lands as a verdict on the delivery you were answering. A
transcript review fills in the rest when the operator asks for one:
`adherence_to_judge` lists the rules in force at a moment of a session with
no verdict yet, and `judge_adherence` records followed, broken, departed or
not applicable, with what the transcript shows.