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
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 1c6c874257 - Show all commits
+1 -1
View File
@@ -60,7 +60,7 @@ transcript=$(grimoire_json_pick "$event_flat" '.transcript_path')
# recorded against a notification inflates this surface's denominator and
# seeds `near_misses` with demand nobody expressed. grimoire_skip_prompt carries
# the reasoning.
grimoire_skip_prompt "$prompt" && exit 0
: # DELIBERATE BREAK (#8249): client-written turns are retrieved against
# Unconfigured install → silent (auto-inject is pure enrichment).
grimoire_config || exit 0
+1 -1
View File
@@ -94,7 +94,7 @@ rulingsfile=""
rulings_q=""
if [ -n "$session_id" ]; then
safe_sid=$(printf '%s' "$session_id" | tr -c 'A-Za-z0-9._-' '_')
rulefile="$state_dir/${safe_sid}.rules.ids"
rulefile="$state_dir/${safe_sid}.toolrules.ids"
# Ageing, not a flat read: an id named two hours ago is not one the
# session is still holding. grimoire_rules_live carries the reasoning.
rule_seen=$(grimoire_rules_live "$rulefile")
+1 -1
View File
@@ -218,7 +218,7 @@ async def autoinject_retrieve():
# The reply mounts go through the same rule ledger; a rule the prompt arm
# just named is not quoted a second time by the turn's delivery.
turn = await moment_delivery_svc.deliver_for_turn(
g.user.id, seen=reply_shapes_svc.parse_seen(request.args.get("shapes_seen")),
g.user.id, seen=reply_shapes_svc.parse_seen(request.args.get("shape_seen")),
project_id=project_id,
exclude=frozenset(exclude_rule_ids) | frozenset(rules["rule_ids"]),
held=frozenset(held_rule_ids),