The Principia Machina/TPS/5.7 The lock: Difference between revisions
Appearance
m 1 revision imported |
TPS 0.1.0 page 5.7 The lock, verbatim unit |
(No difference)
| |
Revision as of 19:49, 17 September 2026
Instruction artifact: TPS 0.1.0, page 5.7 The lock. Part of TPS 0.1.0 and the TPM hub. Human-only edit (TPS 5.13). Version 0.1.0, proposed; declaration pending. Governing section: this page, TPS 5.7. The text below is this page's unit of the TPS 0.1.0 artifact, verbatim; the whole artifact and its file digest are on The Principia Machina/TPS 0.1.0.
TPS 5.7 THE LOCK
purpose: the lock page; acquisition by base-revision edit and its
written fields; the save hook; the grant number as fencing
token; heartbeat; one lock, never nested
governs: 5.7 | version: 0.1.0 (proposed) | class: instruction artifact
audience: operator, agent
5.7.1 One lock page per container, on the wiki; acquired by
base-revision edit; a TPX save hook refuses an acquisition out of
queue order or before expiry; the grant number is a fencing token
checked by TPX's landing API; heartbeat extends a lock to at most
24 h; petitions queue in revision order; identifier ranges are
leased; one lock at a time, never nested (D14, D32). The mutex
holder is the sole allocation authority for the container's
identifier mark. [I-081]
5.7.2 Acquire by an edit carrying the base revision ID that writes
holder account, grant number (previous plus one), grant time, and
expiry, all in server time; a failed edit means another holder.
[B-12]
5.7.3 Heartbeat edit every few hours extends expiry, never past 24
hours from grant. [B-12]
5.7.4 Handover: an ordered petition queue on the collaboration page,
ordered by the wiki's revision order of the petition edits; on
release the head of the queue acquires; the others wait on the one
ahead; if the head has not acquired within the ACQUISITION WINDOW,
the next waiter may (see 5.8, 7.2). [B-12] [I-132]
5.7.5 Coworkers receive a leased identifier range per assignment. A
release is valid only after a final push, in that order (see
5.10). [B-12] [I-084]
5.7.6 The lock page is written by AI-LEAD, by AI-CO when head and in the
window, and cleared by H-OP with an audit line (see 5.13). [I-102]