Enforcement
Enforcement lives on the claim.--verified on record is a separate boolean: it records that the author confirmed the code backs the sentence. It does not change enforcement.
retire
enforcement to retired. Idempotent: a second call reports alreadyRetired: true. A retired claim never gates, never warns, is excluded from clean, and is never stamped. Do not delete the file under .claims/ by hand; the record is the audit trail.
Document lifecycle
Lifecycle lives on the document.
A live claim on a
superseded or archived document is stranded. hibi list --state stranded lists them. A stranded claim still resolves and can still gate; the document’s lifecycle is added to its banner status.
supersede
- Registers
--toif needed and authors thesupersedesedge on it. - Flips
--fromtosuperseded. - Relocates every live claim on
--fromwhose sentence appears verbatim in--to. A relocated claim keeps its id, code side, and history; only its document changes.
relocated, misses (claims whose sentence was not found verbatim, with a reason), and strandedClaims (the live claims still on the old document after the pass). For each miss, either move it by hand with hibi reanchor <id> --doc <new> --doc-quote "…" (use hibi reanchor <id> --suggest to find the sentence) or withdraw it with hibi retire <id>. When strandedClaims is empty the old file can be deleted or archived without orphaning anything.
archive
archive/, leaves a tombstone at the old path (pointing at --successor when given), and sets the document’s lifecycle to archived. Claims are not moved; the result reports strandedClaims. To withdraw a document that has no successor, archive it without --successor.
Deleting or renaming a document
Claims are content. Move them in the same change as the prose:hibi list --path <old-doc>to see the claims on it.hibi supersede --from <old-doc> --to <new-doc>.- Resolve each entry in
misseswithreanchororretire. - When
strandedClaimsis empty, delete or archive the old file.
doc:orphaned after the delete. Orphaned is not retired: it is a live record pointing at a missing file.
Who does what
The engine flags, stamps, and records edges. The author or agent rewrites prose and re-runshibi check. The engine never writes prose.
Where to go next
Banners
How lifecycle and drift appear in the file itself.
CLI reference
retire, supersede, archive, and the rest of the verbs.
