test(8249): prompt filter, shared rule ledger and reply-shape guards run the hooks
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m33s
CI & Build / Build & push image (push) Successful in 18s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m33s
CI & Build / Build & push image (push) Successful in 18s
- test_prompt_boundary_filter: the prompt hook runs on a client-written turn and sends nothing, and on a typed one and asks; was "the filter call sits above the curl line" in the source. - test_rule_usage_wiring: the write arm runs and is told it named rule 33, then the tool arm in the same session must send 33 as already named; was three string searches of each script for the ledger's path. - test_reply_shape_turn: the hook half of the shape-ledger contract is the runtime test already there; the remaining test checks the route half from the route's AST. - test_contract_around_the_change: its write-gate guard was a copy of test_hook_never_returns_a_permission_decision, which now checks the same two things. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -214,20 +214,6 @@ def test_a_missing_old_text_says_nothing(repo):
|
||||
|
||||
# ── The hook that carries it ──────────────────────────────────────────────
|
||||
|
||||
def test_the_write_hook_still_cannot_stop_a_write():
|
||||
"""THE RECORDED DECISION THIS ARM MUST NOT ERODE. The operator's position
|
||||
is that a recall aid may not stand in the way of a write, and this arm is
|
||||
a nudge like the others — it names files, it does not gate. Asserted here
|
||||
as well as in test_write_path_trigger.py because this is the change most
|
||||
likely to tempt someone into making it a gate: it reports something that
|
||||
may already be broken.
|
||||
"""
|
||||
code = [ln for ln in HOOK.read_text().splitlines()
|
||||
if not ln.lstrip().startswith("#")]
|
||||
assert not any("permissionDecision" in ln for ln in code)
|
||||
assert not any("grimoire_json_deny" in ln for ln in code)
|
||||
|
||||
|
||||
def test_the_hook_asks_the_contract_question_first():
|
||||
"""Order is the strength of the claim: this arm says something may already
|
||||
be BROKEN, the local arm says a copy exists, the recorded arms say
|
||||
|
||||
Reference in New Issue
Block a user