Prove parity cell: approvals single-use and action-bound on OpenClaw
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: fu351
The parity matrix shows "Approvals are single-use and bound to one action id" proven on Claude Code and Codex, but ◻ (not yet proven) on OpenClaw. The guarantee: an approval minted for one action cannot authorize a different action, and cannot be replayed for a second use of the same action.
What to do
tests/unit/test_hosthook_auth_challenge.py (the Claude Code proof) and the auth-action-bound test in tests/unit/test_hosthook_codex.py — together they show both halves: wrong-action rejection and replay rejection.tests/unit/test_hosthook_openclaw.py already proves two other cells through the same hook entry point, so the payload shape and harness are there to crib.python
@pytest.mark.guarantee("auth-action-bound", host="openclaw")python -m tools.parity.generate_parity (CI's --check fails if you skip this).This one goes a step past the pure mirror-a-block cells: you exercise the challenge flow, not just a verdict. If you have landed a good first issue and want contract depth, this is a good next rung.