Expand description
vitrify claim|renew|release — atomic lease transactions.
Each operation is one mainline commit (front-matter edit, journal event,
ledger regen) built in the ephemeral tx worktree .vitrify/tx-<pid> and
published atomically by the C-002 CAS/push discipline. Never force.
Structs§
- Batch
Claim - One unit to claim in a
claim_manytransaction. - Claim
Outcome - A published transaction’s outcome (the success JSON’s fields).
- Pinned
- What a caller that runs many transactions decides once and holds every
one of them to —
vitrify rundoes: how commits are published (a run that began by pushing must never fall back to moving the local branch because one fetch failed: that would put a claim on a mainline nobody else sees), and which SDD, by its path under the repository root.
Functions§
- behind_
note - What
catch_up_primarywould have to do, without doing it. - catch_
up_ primary - A primary checkout that an earlier commit left behind: try again now.
Returns the warning when it still cannot follow. Like every move of the
checkout, this is one mainline writer’s turn (
tx_lock). - claim_
many - Claim several units — of one SDD or of several — in one mainline
transaction: one commit, one compare-and-swap or push. Each unit’s
preconditions are checked at the transaction’s base, as a claim of its
own would check them; a unit that is no longer claimable there is left
out (its result says why), the rest are claimed together. Each claimed
unit gets its own front-matter edits, its own fencing token and its own
claimjournal event, exactly as a claim of its own would. A lost race resyncs and tries again with what is still claimable. Results are index-aligned withclaims;Erronly for a failure that is no unit’s. - execute
- Execute the transaction without printing.
- execute_
pinned executefor the orchestrator: publish mode and SDD aspinnedsays, whateverargs.sddand the state of the remote suggest.- quiet_
resync - Report the primary checkout’s fast-forwards only when they stop working.
- resync_
primary - After a commit moved
mainlinefromoldtonew: the primary checkout follows ([follow]). Never fatal — the commit is already published. - run
- tx_lock
- Hold this across the build-and-publish of one mainline commit. Not
re-entrant:
executetakes it itself.