begin marks the base
Before editing an existing page, begin writes the registry ID and the current published SHA into the source. That SHA is the builder's base, meaning “this is the version I started from.” A new page gets base none.
enqueue freezes a revision
The registry copies the page and supporting files into a directory named by their content SHA. That is an immutable revision: a snapshot whose identity changes if its content changes. A newer enqueue supersedes the older queued SHA without erasing its record.
claim fences a worker
A claim returns the ID, revision SHA, a fresh token, and the current publish generation. Completion is accepted only if all four still match. A late or duplicated worker cannot quietly complete somebody else's job.
- queued_rev.sha
- Exact snapshot waiting
- base
- Published SHA editing began from
- claim token
- One worker's lease number
- publish_generation
- Accepted publish counter