Skip to main content

RENEW

Constant RENEW 

Source
pub const RENEW: &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 (throwaway .vitrify/tx-<pid>-<n> worktree); the unit's lease
Writes:  a published mainline commit: claim_expires = now + lease; a renew event; the ledger
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 Claimed
         by this holder · 5 lost the publish race after 3 attempts · 6 the lease has
         already expired (renew refused: claim again)
Config:  mainline (VITRIFY_MAINLINE), after --mainline; --lease-minutes defaults to 60
Examples:
  vitrify renew --unit U-003 --holder w1 --sdd specs/calc
Procedure: vitrify brief build-unit";