pub const CLAIM: &str = "\
A protocol verb for workers, the integrator and authored baselines; not run by hand while
`vitrify run` builds the SDD.
Reads: the mainline head (checked out into a throwaway .vitrify/tx-<pid>-<n> worktree);
the unit's front matter there, and the units of other SDDs a pin in its
depends_on waits on
Writes: a published mainline commit `sdd: claim <unit> (c<seq>) by <holder>`: status Claimed,
claimed_by, claim_expires = now + lease, claim_seq + 1; a claim event; the ledger.
The primary checkout is fast-forwarded when it has mainline checked out.
Prints: one JSON line: {unit, op, holder, claim_seq, claim_expires, commit, mainline}
Exit status: 0 published · 1 git failure · 2 usage error · 4 unit missing or not claimable
(the reason is named) · 5 lost the publish race after 3 attempts
Config: mainline (VITRIFY_MAINLINE), after --mainline; --lease-minutes defaults to 60
and does not read run.lease_minutes
Examples:
vitrify claim --unit U-003 --holder w1 --sdd specs/calc
vitrify claim --unit U-003 --holder w1 --lease-minutes 90 --mainline main
Procedure: vitrify brief build-unit · vitrify brief kickoff";