feat(8141): a rule holding the finished reply is recorded as a gate stop too
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 1m49s
CI & Build / integration (push) Successful in 2m4s
CI & Build / Build & push image (push) Skipped

The end-of-turn reply hold was the one gate the gate_stops table left out.
The server applies the per-session cap before anything holds and the Stop
hook blocks on every reason it is given, so the hook reports each held rule
after blocking, as the tool-call gates do: gate `reply`, tool `reply`, and
where the rule was reached (`rule_at`, new beside `rule_ids` in the
/reply-rules answer: the moment it is mounted on, or `reply_rule` for the
backstop). A section hold names no rule and stays counted by report_check.
Opening the rule clears the stop, and rule_misfired marks it, unchanged.

The readout, the telemetry docstring and the Settings panel name the new gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 14:32:46 -05:00
co-authored by Claude Opus 5.5
parent 9b781d57de
commit 82ffd9a235
11 changed files with 85 additions and 18 deletions
+11
View File
@@ -126,4 +126,15 @@ done
grimoire_json_list "$answer_flat" '.rule_ids' | grimoire_rules_append "$rulefile"
printf '{"decision":"block","reason":"%s"}\n' "$(printf '%s' "$reason" | grimoire_json_escape)"
# Each rule that held the reply, reported as a gate stop with where it was
# reached, as the tool-call gates report theirs. The server already applied
# the per-session cap, so a reason here is a hold. A section hold names no
# rule and is counted by its own check (`report_check`).
i=0
for id in $(grimoire_json_list "$answer_flat" '.rule_ids'); do
grimoire_gate_report "$session_id" reply stopped reply "$id" \
"$(grimoire_json_pick "$answer_flat" ".rule_at[$i]")" "" ""
i=$((i + 1))
done
exit 0