test(8249): DELIBERATE BREAK, client turns retrieved, tool arm keeps its own rule ledger, route reads shape_seen
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Failing after 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 2m4s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / integration (push) Canceled after 2m43s

Reverted by the next commit. CI must go red on
test_the_hook_spends_no_request_on_a_client_written_turn[client-written],
test_the_two_pre_tool_arms_share_one_session_rule_ledger and
test_the_route_reads_the_shape_ledger_the_hook_sends_and_returns_its_keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 17:41:39 -05:00
co-authored by Claude Opus 5.5
parent ea30e0bd75
commit 1c6c874257
3 changed files with 3 additions and 3 deletions
+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),