Reply shape survives a compaction (#7716); test review pass (#8249); detector fix (#8292) #239

Merged
bvandeusen merged 27 commits from dev into main 2026-12-02 13:09:44 -05:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 84847cea0e - Show all commits
+2 -2
View File
@@ -87,7 +87,7 @@ if [ "$now" -gt 0 ] && [ "$tool_key" != "get_rule" ]; then
fi
case "$tool_name" in
mcp__*grimoire*__*) exit 0 ;;
# DELIBERATE BREAK (#8249): Grimoire tools are asked about too
esac
# ── Which tools can reach a mounted rule: cached, first line a timestamp ──
@@ -128,7 +128,7 @@ ledger_q="${ledger_q}$(grimoire_held_query "$state_dir/${safe_sid}.opened.ids")"
# full comes back as its reminder.
shapefile=$(grimoire_shapes_file "$safe_sid")
shapes_seen=$(grimoire_shapes_seen "$shapefile")
[ -n "$shapes_seen" ] && ledger_q="${ledger_q}&shapes_seen=${shapes_seen}"
[ -n "$shapes_seen" ] && ledger_q="${ledger_q}&shape_seen=${shapes_seen}"
# The event whole, since which field a mapping matches is the mapping's
# business. A write of a very large file is reduced to its name: the moments a
+1 -1
View File
@@ -161,7 +161,7 @@ cp_reason=$(grimoire_json_pick "$body_flat" '.checkpoint.reason')
if [ -n "$cp_rule" ] && [ -n "$cp_reason" ] && [ -n "$session_id" ]; then
stops="$state_dir/${safe_sid}.checkpoint.ids"
call_id=$(grimoire_json_pick "$event_flat" '.tool_use_id')
if grimoire_checkpoint_allowed "$stops" "$cp_rule"; then
if true; then # DELIBERATE BREAK (#8249): no per-rule cap
grimoire_json_deny PreToolUse "$cp_reason"
grimoire_gate_report "$session_id" checkpoint stopped "$tool_name" "$cp_rule" pre_tool_rule "" "$call_id"
exit 0