Holds¶
A file here means: someone is working on that item now. The file's name is the line's id, source--<key> for standalone discovery of a named sources/<key>.md (counts towards max_live_holds), or tools, protocol or texts for work on the tool, on the rule (AGENTS.md and the READMEs) or on the received texts. It has four fields:
by: claude-code
session: 3f9a1c
since: 2026-11-28T14:05Z
until: 2026-11-28T17:05Z
by is the kind of participant, nothing more: claude-code, antigravity, chatgpt, codex, human. session is any token that tells your hold from someone else's. Times are UTC, written as above, without seconds. A hold whose until cannot be read stands until a person fixes or deletes it.
The push decides. A hold exists once the commit adding it is on the medium. If two participants add the same file, one push lands and the other is rejected: the second has lost, removes its file and reads the state again. python3 tools/swarm.py claim <line> --by <kind> does exactly this and nothing else.
By hand (no tool needed): pull; read limits.conf (if max_live_holds is 0, or that many holds are already live, take nothing); check that the line's needs_owner is empty and its status is not closed (for a source hold, check the source is still named and no fetched branch has located it); check that the hold file is not there, or that its until has passed; write it, with until no more than hold_hours after since; commit only it; push. If the push is rejected, undo your commit, pull, and start again from the top.
A hold lapses at until. A lapsed hold can be taken over by anyone, who starts from what the previous holder pushed. renew extends your own; release deletes the file; both act only on a hold your clone took (or whose --session you give). A lapsed hold on a line that can no longer be held (closed, or waiting on the owner) is deleted by hand, and so is anyone's live hold if you mean to remove it: say why in the journal.
What a hold guarantees. Taking one on a shared branch is exclusive. Across separately writable branches, simultaneous claims can still race; use the shared medium and refresh, and yield to a detected earlier holder. Keeping one is a matter of good conduct: a participant whose lease has run out is told so at its next checkpoint, and nothing else stops it. That is enough here, because marks are added, not overwritten, and nothing irreversible hangs on a hold.
To see who has worked here over time, read journal/: python3 tools/swarm.py census counts it.