Prove parity cell: read-vs-send fingerprint block on Codex
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: fu351
The parity matrix proves read-vs-send fingerprint block on Claude Code but leaves it ◻ on Codex. The guarantee: a value read into the session earlier that later appears verbatim in an outbound payload is a confirmed read-then-send exfil and is hard-blocked. Codex runs the same spine, so it should hold there too — it needs a test to prove it.
What to do
tests/unit/test_hosthook_exfil_fingerprint.py (test_read_then_send_same_secret_is_confirmed_block_in_balanced). Note the deliberate use of a high-entropy, non-credential token (a named credential would block on a single call and prove nothing about the fingerprint path — the file's docstring explains why).doberman.hosthooks.codex.evaluate_pre: record the token via the post path, then send it back out in a Codex Bash command and assert a confirmed_exfil BLOCK.@pytest.mark.guarantee("read-vs-send-fingerprint-block", host="codex").python -m tools.parity.generate_parity to refresh docs/PARITY.md.Mirrors an existing, well-documented test onto Codex — self-contained.
Originally posted by: blackcoderx
Working on this — adding the Codex sibling of
test_read_then_send_same_secret_is_confirmed_block_in_balancedintests/unit/test_hosthook_codex.py, drivingclaude_code.evaluate_post(the only post-hook implementation in the repo) to seed the shared fingerprint store, thencodex.evaluate_prefor the egress.Ticket changed by: fu351