| name | apex_reversibility_test |
| description | Test whether a proposed change touching vault, seal, identity, constitutional, or other F1 surfaces has a valid rollback and sovereign witness path. Use before committing or deploying changes whose reversibility is uncertain. |
| agent | 888-APEX |
| namespace | apex_* |
| cluster | REVERSIBILITY |
F1 AMANAH Gate
F1 surfaces (do not edit without sovereign witness):
vault, VAULT999, outcomes.jsonl
seal, 888_HOLD, 999_SEAL
identity, arif_judge*, arif_heart*
constitutional, amanah, floor
Steps
- Detect F1 pattern in target file or diff
- If matched → emit
888 HOLD with: file, line, proposed change, affected floor
- Block commit/deploy until human approval
- Log to
/root/.claude/hooks/f1-gate.log
- If approved by Arif → re-run gate with explicit override reason; outcome enters VAULT999 witness
Verification loop
grep -rE 'vault|seal|identity|constitutional|amanah|floor' <diff> returns 0 lines for non-F1 commits
- F1 surface hit → 888 HOLD blocks, human reviews, re-run with witness signature
Failure modes
- Pattern false positive → human overrides with reason logged
- Pattern false negative → F2 Truth floor tripwire catches downstream (F2 > F1 in the order)
- Hook disabled in settings → manual invocation still available via this skill
Constitutional anchor
- F1 AMANAH (reversibility)
- F2 Truth (no F1 edit without witness)
- F13 SOVEREIGN (Arif's approval is the only valid override)