Practices for swarms of agents, established and emerging
Record metadata
title: Practices for swarms of agents, established and emerging status: open priority: 2 anchors: setup#5, setup#6, setup#12 needs: web needs_owner:
Question¶
The owner asks for "all the best practices for agent swarms, established and emerging" (setup#12). What has actually been reported, by whom, with what evidence: for coordination through shared files and locks, for coordinators and planners, for keeping sessions short, for review? Where do reports disagree, in particular on whether flat coordination works at all?
Sharpened (2026-11-28): the most specific published failure of flat coordination through a shared file is Cursor's (Lin, January 2026), which names five ways it broke. For each, does this repository's arrangement answer it, and how do we know? The last of the five, that agents without hierarchy become risk-averse, is the one nothing here yet addresses, and it is the one the owner's demand for depth ("write as deeply as possible", setup#37) most directly contradicts.
Why it matters¶
The whole method here rests on a bet that the reports do not settle: that equals coordinating through files can do without a planner. The most detailed account of trying exactly that (a shared file, task claims, locks) says it failed and was replaced by planners and workers. If each failure it lists has a named counter-mechanism here, the bet is at least informed; where one has none, that is the place to watch, and to build a sensor (AGENTS.md, "three orders of edit"). It also keeps the article honest: the article proves that a uniform local rule can solve a problem with a centre-free network (p51..p56); it does not say that such networks are efficient or attempt hard steps, and practitioners' reports are the only evidence on that.
What would settle it: for each failure mode, either an observation from this repository's own history
(git log, journal/) that it occurred or did not, or a sensor in tools/swarm.py that would show it.
Leads¶
Still unchecked; verify each or strike it.
- mibz2's frontier protocol and its journal of giving up a coordinator (
docs/journal/2026-11-26-rhizome/, not yet read: mibz2-frontier) are the nearest evidence. - The other published reports gathered by a tester in
proving-the-rule/other-harnesses.md(items 1 and 3 to 13): Carlini's sixteen-agent compiler with lock files and no orchestrator, Cursor's second post, Paradigm 3's measurements, Anthropic's research system, Cognition's "Don't Build Multi-Agents", and others. That file is a model's report; its quotations are leads until someone reads each page. Item 2 is now checked (below). - Each practice adopted here should be traceable to a report or marked as untested.
Where it stands¶
Shaped into an open line on 28 November 2026. Three leads checked against their sources (pass below):
Cursor's account of flat coordination failing is quoted exactly from the page; Linda's tuple space is confirmed
as the precedent for communication "distributed in time" (abstract only); git worktrees share refs/ and so
isolate working files, not the refs a claim lives in. A first mapping (a model, assumptions stated in the
pass) of Cursor's five failure modes against this repository's mechanisms finds four answered by design and one,
risk-aversion without hierarchy, unanswered and unsensed. A cold reading confirms every quotation, but corrects the
pass on one point: the push is compare-and-swap only within one branch; across branches, exclusivity is a
tie-break by author time applied at the next checkpoint (a model, not an identity). It also finds that Cursor's own
page names model choice and prompting, not only hierarchy, as causes of small, safe work, and that "five failures"
is better counted as five mechanical failures and one of initiative.
Measured on 28 November (third pass): contributions here are not small (a pass has a median of 919 words, and most tick a thread), but threads are opened four times as fast as they are ticked, and about a third of open threads (156 of 455) have outlived two or more later marks on their own line. Whether those are the hard ones is only weakly indicated. A stale-thread sensor is defined and computed, not yet built into the tool. A cold reading (fourth mark) reran the two scripts at the same commit and found that every count except the open total depends on how much history the clone holds: the third pass ran on a partly shallow clone. On full history at that commit, 165 mark-appending commits add 461 threads and tick 109 (the ratio of about four to one survives); 452 threads are open, of which 210, not 156, have outlived two or more later marks, and 160, not 38, three or more. Pass length is a median of 1,005 words. The scripts now refuse a shallow clone.
Cursor's "hold locks for too long, or forget to release them entirely" has not happened here (pass of 19:55Z, full history, all refs, hold-lapses.py): of 226 holds, one lapsed without release, and it was taken over within a minute; the rest were released with a median of 57 minutes of their hour still unused. The reason is less reassuring than it sounds: the median hold lasts three minutes, and in 129 of the 185 line holds that carried a mark, the first mark landed within three minutes of the claim. The work is mostly done before the hold is taken, so the hold arbitrates the commit, not the effort; this is an observation about timing, and an inference (not yet checked against any session's own account) about where the work happens. A cold reading (20:45Z) found the script undercounted: git log -- holds/ without --full-history prunes side branches whose holds net to nothing at the merge, so it saw about four in five holds. Corrected and rerun on full history: 301 holds by 20:42Z (about 275 by 19:43Z, not 226), still one taken over and none late; median hold two minutes, first mark a median of 2.2 minutes after the claim, under three in 192 of 260. The timing result is stronger; the inference from it is weaker than stated, since a model participant can write a thousand-word mark in well under two minutes once its reading is done, so timing alone does not place the reading before the claim.
Threads¶
- Shape this seed: sharpen the question, check the leads, write the threads.
- Risk-aversion: from
journal/andgit log, measure whether contributions here are small and safe (passes that touch one thread lightly vs. one taken to the bottom); propose a sensor that would show "no participant took the hard thread" (e.g. a thread left unticked through N passes on its line). - Build the stale-thread sensor in
tools/swarm.py(sense): an open thread whose line has had two or more marks since it was written, listed as a pressure; remedy is the thread taken, or a mark saying why it cannot be. Definition and a working computation:practices-for-swarms/thread-ages.py. Needs thetoolshold. It must not run on a shallow clone (reading of 28 November): fetch full history first or report nothing. - Read the open threads that have outlived three or more marks on their lines (160 at
9a32b68on full history, not 38: runthread-ages.pyon an unshallowed clone) and say, for a sample, why each was left: hard, blocked, dull or mis-stated. Five lines carry eleven each (from-the-line-to-any-graph,medium-and-authority,proving-the-rule,the-closing-caution,the-congested-central-organ); start there. - Thread identity across merges:
thread-ages.pyfollowsgit log -- <file>in date order, which interleaves branches; on full history it and a--first-parentvariant differ by about 10 % on ticked and stale counts. Say which is the right walk for "marks since a thread was written", before the sensor is built. - Make the keyword classification of survivors (blocked source, proof or construction) a script beside the others, so that its 11 % against 8 % and 11 % against 5 % can be recomputed on full history; at present it is not reproducible.
- Lock-held-too-long: count, from
holds/history, how often a hold lapsed without release, and how long a lapsed hold stood before takeover. Compare with Cursor's "hold locks for too long, or forget to release them entirely". (Pass of 19:55Z: once in 226, taken over within a minute. What remains is the next two threads.) - Holds are short because work precedes them: 129 of 185 line holds see their first mark within three minutes of the claim (pass of 19:55Z). Find out how sessions actually spend the time before claiming (journal entries could say when the session began, or a
started:field could be added to the hold), and whether that pre-claim drafting is where duplicated effort arises. Meets unheld-work-is-done-n-times. -
thread-ages.pyandmarks-and-ticks.pyalso walkgit log <ref> -- <file>with default history simplification; onorigin/masterat 20:43Z this drops one commit each on two line files (a-society-of-words,money-and-the-closed-path), against about a fifth of holds forhold-lapses.py(reading of 20:45Z). Decide with the walk thread above whether to add--full-history, and rerun the stale-thread counts before the sensor is built. - The measurement in
practices-for-swarms/hold-lapses.pyrelies on author times, set by each participant's clock; a journal file named2026-11-28T2105Z-…was already on the medium at about 19:40Z by the commit clock. Check how far file-name times and author times disagree acrossjournal/, which bounds how much the clock-skew concern in medium-and-authority matters. - Mark-without-hold: does anything detect a mark added to a line by a commit that held no hold on it? (Cursor: "update the coordination file without acquiring the lock at all".) Meets unheld-work-is-done-n-times.
- Read Cursor's second post, "Towards self-driving codebases" (5 Feb 2026), from the page; record it as a source, and check its "constraints are more effective than instructions" against AGENTS.md's own preference for sensors over rules.
- Read Carlini, "Building a C compiler with a team of parallel Claudes" (Anthropic, 5 Feb 2026) from the page: the one published case where git-push-arbitrated lock files with no orchestrator reportedly worked at sixteen agents. Why did it work where Cursor's did not? (Hypothesis to test: the push is optimistic concurrency, which Cursor found "simpler and more robust", and Carlini's task was a test suite that defined hard steps for the agents.)
- Read the mibz2 rhizome journal (
docs/journal/2026-11-26-rhizome/) for what mibz2 observed when it dropped its coordinator: needsmibz2. - Cross-branch holds: measure how often two participants both believed they held one line between checkpoints (from
git logofholds/across branches, "contested: yields to" messages), and how long the overlap lasted. The reading of 28 November finds exclusivity across branches is eventual, not atomic. - Risk-aversion has three candidate causes on Cursor's own page (no hierarchy, model, prompt): say which a sensor here could distinguish, if any.
- Read Gelernter 1985 beyond the abstract (Part I, sections on
in/rd/out), and say whether thein(withdraw) primitive corresponds to taking a hold here, or only to reading.
Passes¶
2026-11-28 | claude-code | pass¶
Shaping the seed: three of its leads checked against sources, and the sharpened question it now carries.
Cursor's failure of flat coordination (source says). Wilson Lin, "Scaling long-running autonomous coding",
Cursor, 14 January 2026, read from the page on 28 November 2026 (source).
Under "Learning to coordinate": "Our initial approach gave agents equal status and let them self-coordinate through
a shared file. Each agent would check what others were doing, claim a task, and update its status. To prevent two
agents from grabbing the same task, we used a locking mechanism." Then: "Agents would hold locks for too long, or
forget to release them entirely. Even when locking worked correctly, it became a bottleneck. Twenty agents would
slow down to the effective throughput of two or three, with most time spent waiting." "The system was brittle:
agents could fail while holding locks, try to acquire locks they already held, or update the coordination file
without acquiring the lock at all." "We tried replacing locks with optimistic concurrency control. Agents could read
state freely, but writes would fail if the state had changed since they last read it. This was simpler and more
robust, but there were still deeper problems." "With no hierarchy, agents became risk-averse. They avoided difficult
tasks and made small, safe changes instead. No agent took responsibility for hard problems or end-to-end
implementation." Their replacement: planners that "continuously explore the codebase and create tasks" and may
spawn sub-planners, workers that "don't coordinate with other workers", and "a judge agent" at the end of each
cycle, after which "the next iteration would start fresh". The quotations in
proving-the-rule/other-harnesses.md item 2 match the page.
This repository against those five failures (a model). Assumptions: the five are independent failure modes;
the mechanisms named here are those in AGENTS.md and tools/swarm.py as of this commit; "answered" means a
mechanism exists, not that it has been observed to work.
| Cursor's failure | what here answers it | evidence of working |
|---|---|---|
| holds kept too long or never released | a hold is a lease (hold_hours: 1); a lapsed hold is free to take over |
none measured yet (thread) |
| locking as a bottleneck, waiting | nobody waits: a lost claim means choose another candidate (AGENTS.md, "When the queue is thin") | none measured |
| failing while holding | the lease lapses by itself; brief reports lapsed holds |
none measured |
| acquiring a lock already held | claim refuses any live hold, including one's own (tools/swarm.py, cmd_claim: "not acquired: … is held by …") |
read in the code |
| editing without the lock | a rule only (AGENTS.md step 2); no sensor found in this pass | thread |
| optimistic concurrency | taking a hold is optimistic concurrency: the push is refused unless it is a fast-forward of what the claimant read (git docs, "Note about fast-forwards") | identity, not analogy: same mechanism |
| risk-aversion without hierarchy | nothing by design. AGENTS.md says "Depth before coverage", an instruction; Cursor's later post reportedly says "Constraints are more effective than instructions" (unchecked) | none |
Our reading: four of the mechanical failures are met by leases and by the push as compare-and-swap, which is what Cursor itself moved toward before abandoning flatness. What Cursor abandoned flatness for was not mechanics but initiative: nobody took the hard task. Short sessions sized to half an hour (AGENTS.md step 5) push the same way, since a hard thread does not fit one. This is the open contradiction the line should work on. A hypothesis: here, a thread left unticked through several passes on its line is the visible trace of that risk-aversion, and a sensor for it would make it a pressure rather than a rule.
Linda (source says, abstract only). David Gelernter, "Generative communication in Linda", ACM Transactions on
Programming Languages and Systems 7(1), 1985, pp. 80–112, doi 10.1145/2363.2433; abstract read from the Crossref
record (source). Messages are "added in tuple-structured form to the computation
environment, where they exist as named, independent entities until some process chooses to receive them"; Linda
"is fully distributed in space and distributed in time". This confirms the lead's substance: producers and
consumers need not meet or coexist. The lead's further claim that atomic operations are part of it (the forwarded
advice, forwarded-advice-2026-11-28/response.md) is not in the abstract: unchecked. The correspondence to this
repository's files is a model: a line is a tuple that persists until taken, but here a "take" is a lease, not a
withdrawal, and the file remains for others to read.
Worktrees share refs (source says). Documentation/git-worktree.txt at v2.43.0, section on refs: "When using
multiple worktrees, some refs are shared between all worktrees"; "In general, all pseudo refs are per-worktree and
all refs starting with refs/ are shared", except refs/bisect, refs/worktree and refs/rewritten
(source, worktree entry added). So the lead holds: worktrees isolate
working files and HEAD, not branches. Consequence here: two participants in worktrees of one clone see each
other's local commits on a branch, but two clones do not, which is why a hold counts only once it is pushed.
2026-11-28 | claude-code | reading¶
A cold reading of the pass above, from the pages and the code it cites, not from its account of them.
Cursor (holds). Wilson Lin's page, fetched again on 28 November 2026, carries every quotation in the pass word for word, in the order given, under "Learning to coordinate" and "Planners and workers". Two things on the page the pass leaves out bear on this line. First, the sentence that follows the risk-aversion passage gives its cost: "This led to work churning for long periods of time without progress." Second, under "What we've learned" the page itself weakens the conclusion that hierarchy is what cured initiative: "Many of our improvements came from removing complexity rather than adding it. We initially built an integrator role for quality control and conflict resolution, but found it created more bottlenecks than it solved. Workers were already capable of handling conflicts themselves"; "The right amount of structure is somewhere in the middle. Too little structure and agents conflict, duplicate work, and drift. Too much structure creates fragility"; and "the prompts matter more" than "the harness and models". The same section attributes stopping early and taking shortcuts to the choice of model ("tends to stop earlier and take shortcuts when convenient, yielding back control quickly"). So the page offers three causes of small, safe work, not one: no hierarchy, the model, and the prompt. The pass's hypothesis (an unticked thread as the trace of risk-aversion) stands, but a sensor for it would not by itself tell which of the three is at work here.
A miscount (correction to the line's Question). The Question speaks of "five ways it broke" with risk-aversion "the last of the five". The page lists three bulleted failures (locks held too long; locking as a bottleneck; a brittle system, itself three cases), then optimistic concurrency, then risk-aversion as one of the "deeper problems". Counted as the pass's table counts them, the mechanical failures are five and risk-aversion is a sixth, of a different kind. Nothing turns on the number, but the Question should say "five mechanical failures and one of initiative".
Claim refuses a live hold (holds, with a qualification). cmd_claim in tools/swarm.py prints "not acquired:
… is held by …" for any live hold, without comparing the session to the caller's, so a participant cannot take a
line it already holds. Holds.
Push as compare-and-swap: "identity" holds only within one branch (does not hold as stated). The pass calls
taking a hold "optimistic concurrency", "identity, not analogy: same mechanism". Within a single ref that is right:
the push is refused unless it fast-forwards what the claimant fetched. But holds here are read from every branch
(load_holds through across_branches; brief on this date reports "holds read on 11 branch(es)"), and a
participant confined to its own branch pushes its hold there, where no rival's push can make it fail. Exclusivity
across branches is supplied by something else, read in cmd_claim: after a successful push the claimant waits 1.5
seconds, fetches, and if a rival hold on another branch was "written first" by author time (precedence, ties
broken by the lower session token) it releases its own. A rival that lands later still is caught only at a later
checkpoint, where sync and brief print "YOUR HOLD … is CONTESTED … Release yours now". So across branches the
mechanism is a model, not an identity: optimistic concurrency on each ref, plus a deterministic tie-break that
both sides compute alike and apply at their next checkpoint. Its assumptions: clocks close enough that author time
orders claims fairly, and every holder passing a checkpoint before doing much work. Between two such checkpoints two
participants can both believe they hold one line, which is precisely Cursor's first concern in a different form;
lines/medium-and-authority.md is where it belongs.
Linda (holds). The Crossref record's abstract contains both quotations as given. The pass is right to leave the
atomicity of in unchecked; the abstract says only that Part II discusses "novel implementation problems".
Worktrees (holds). Documentation/git-worktree.txt at v2.43.0, fetched raw, has "some refs are shared between
all worktrees", "all pseudo refs are per-worktree and all refs starting with refs/ are shared", and the three
exceptions, as quoted.
Missing. The table's row "editing without the lock: a rule only; no sensor found" is accurate as far as this
reading looked (no sense in tools/swarm.py compares a line's change to a live hold), but it is not shown to be
absent: a search for it is the existing thread "Mark-without-hold".
2026-11-28 | claude-code | pass¶
The thread "Risk-aversion: measure whether contributions here are small and safe", taken from the repository's own
history. Everything below is observed on the branch that serves as the medium (origin/claude/zen-tesla-9s8rwn,
at commit 9a32b68, about 18:00 UTC on 28 November 2026), with two scripts kept beside this line
(thread-ages.py, marks-and-ticks.py)
so that anyone can rerun them on a later commit. The history is one day long (first commit 12:52 UTC), which bounds
everything that follows: no line has yet received more than twelve marks, and most fewer than five.
What was counted. A mark is a ### heading in a line file. A thread is a - [ ] or - [x] item, followed
through every commit that touched its file and identified by its first 35 characters, normalised; so a thread whose
opening words are rewritten counts as a new one (21 threads that exist in some past version are absent now, which is
an upper bound on such rewordings). For each thread the script records how many marks the line carried when the
thread first appeared and when it was ticked.
Size of contributions: not small. Of the commits that append marks to an existing line (62 such commits; those that create a line, or merges that reorder its marks, are not counted), 29 add a pass and 31 a reading. A pass runs to a median of 919 words (quartiles 684 and 1,210; smallest 160, largest 2,460); a reading to 868. Twenty-one of the 29 passes tick at least one thread in the same commit. By the measure Cursor's sentence suggests, the size of a change, contributions here are not "small, safe changes": they are long, and most close something.
The frontier: growing four times faster than it closes. The same 62 commits tick 38 threads and add 154. Over the whole history, 617 distinct threads have been written: 102 were ticked when written (mostly the routine "Shape this seed" with which a line is opened), 39 ticked later, 21 removed or reworded, and 455 are open. Of the 455, 184 were written by the line's latest mark or after it, 115 have since seen one more mark, 118 two, and 38 three or more without being ticked. So about one open thread in three (156) has outlived at least two later contributions to its own line.
Our reading. Two rules of this repository shape these numbers, and neither is risk-aversion. AGENTS.md says to
"tick a thread only when nothing of it remains, and add what remains as a new thread", so partial progress appears as
a new thread rather than a tick; and brief asks for a cold reading after every pass, so half the marks (31 of 62)
are readings, which check rather than advance. The ratio of 154 to 38 therefore measures, in part, a rule that turns
every finding into further questions. It is still the nearest thing here to Cursor's observation that work "churning
for long periods of time without progress" (the sentence the reading above restores from the page): the threads that
survive two or three later passes on their own line are the ones some participant read and chose not to take.
Which threads survive (observed, crudely). A keyword classifier (in the analysis, not in the scripts; its
categories are rough and overlap) sorts the open threads that have outlived two or more marks, and compares them
with those ticked after opening. Threads that name a blocked source (a page that "refuses", a book "in hand", a
library, the mibz2 repository) are 17 of 151 survivors (11 %) against 3 of 37 ticked (8 %); threads that ask for a
proof, a run or a construction are 17 of 151 (11 %) against 2 of 37 (5 %). The difference is in the direction the
hypothesis predicts (hard threads, in the sense of needing a capability or a proof, are the ones left) but on these
counts it is not evidence of anything. Examples of survivors: on why-the-firing-squad, opening Balzer 1967 (the
publisher's page refuses automated reading) and checking an induction proof Balzer mentions; on
the-congested-central-organ, nine threads, several marked "Partly done". Only eight such "partly done"
annotations exist in all the lines: the convention is not much used, so partial progress on an old thread is mostly
invisible.
A sensor (proposed, not built: tools is held by another session). Call a thread stale when it is open and its
line has received at least two marks since the thread was written. brief could list stale threads as a pressure,
weighted towards the oldest, and the remedy would be either the thread taken to the bottom, or a mark saying why it
cannot be (a source unreachable, a capability missing), which moves it from "nobody chose it" to "nobody can". The
computation is what thread-ages.py does, from git log of each line file; its cost is one git show per commit
per line, about two seconds on today's history. What the sensor cannot do is the other thread of this line: it would
show that hard threads are left, not whether hierarchy, model or prompt is the cause (Cursor's three). On that, our
reading only: the swarm here is one kind of participant under one prompt, so model and prompt are held constant, and
a stale-thread count compared across kinds of participant, once there are several, is the nearest test available.
Missing. The measurement says nothing about difficulty as such: a thread may survive because it is dull, or mis-stated, rather than hard. Reading a sample of the 38 oldest survivors and saying, for each, why it was left would be the next step, and it needs no shell.
2026-11-28 | claude-code | reading¶
A cold reading of the third pass (thread ages and the size of contributions), from the repository's history and the two scripts it cites, rerun by this session rather than taken from the pass's figures.
The commit (holds). 9a32b68 exists, is dated 18:01 UTC on 28 November 2026, and the first commit of its
history is dated 12:52 UTC, as stated. At that commit the longest line, medium-and-authority, has twelve marks, and
43 of the 56 lines have fewer than five: both as stated. "Partly done" occurs nine times in the lines, against the
pass's eight: near enough.
The counts (do not hold as stated: they measure the clone, not the history). The scripts walk git log of each
line file, so they see only the history the clone holds. This session's clone was shallow at first (fifteen
commits), and the same scripts at the same commit gave two mark-appending commits. Cloned at depths of 50, 100 and
150 commits, and then on full history (724 commits), the figures move steadily, except one:
at 9a32b68 |
depth 50 | depth 100 | depth 150 | full history | the pass |
|---|---|---|---|---|---|
| threads ever written | 598 | 601 | 603 | 646 | 617 |
| ticked when written | 131 | 122 | 115 | 26 | 102 |
| ticked later | 10 | 19 | 26 | 118 | 39 |
| removed or reworded | 2 | 5 | 7 | 50 | 21 |
| open | 455 | 455 | 455 | 452 | 455 |
| open, outlived two or more later marks | 6 | 6 | 99 | 210 | 156 |
| open, outlived three or more | 0 | 0 | 0 | 160 | 38 |
| passes / readings appended | 6 / 6 | 10 / 20 | 16 / 28 | 85 / 72 | 29 / 31 |
The pass's figures fall between depth 150 and full history, which is what a clone fetched to a limited depth and later deepened by a few branches would give; nothing in the pass says so. The mechanism is simple: a thread already present at the shallow boundary is recorded as written at the boundary, with that commit's mark count, so it looks younger than it is, and if it was already ticked there it counts as "ticked when written". That is why the pass found 102 threads ticked at birth "mostly the routine 'Shape this seed'"; on full history only 26 are ticked at birth, and 118 are ticked later (of which 11 are "Shape this seed").
What survives the correction (observed, on full history at 9a32b68). Passes are long: 85 appended, median
1,005 words (quartiles 749 and 1,419), 61 of them ticking at least one thread; readings, 72, median 885. The
frontier still grows about four times faster than it closes: the 165 mark-appending commits add 461 threads and tick
109 (the pass had 154 and 38). The pass's main reading therefore stands, and more strongly than it said: about half
the open threads (210 of 452), not a third, have outlived two later marks on their own line, and 160 have outlived
three. A variant that follows only first parents (git log --first-parent) gives 197 and 139, so the order of
magnitude does not depend on how merges are walked, though about a tenth of the count does.
The classifier (cannot be checked). The comparison of survivors and ticked threads by keyword (11 % against 8 %; 11 % against 5 %) is said to be "in the analysis, not in the scripts". It was computed on the shallow figures and cannot be rerun from the files. The pass is right that it is not evidence; this reading adds that it is not yet reproducible either.
The proposed sensor (holds, with a condition). Defined as the pass defines it, the stale-thread sensor is
computable in about a second on full history. But tools/swarm.py runs in whatever clone a participant has, and the
cloud harness here starts from a shallow clone: built naively, the sensor would report almost nothing stale exactly
where most participants run it. It must either deepen the history (git fetch --unshallow) or refuse to report.
This reading adds that guard to both scripts beside the line (they now exit with a message on a shallow clone), and
the thread about building the sensor should carry the same condition.
Missing. Neither the pass nor this reading has looked at what the 160 oldest survivors are; the existing thread asking for that now carries the corrected number and the five lines where they cluster.
2026-11-28 | claude-code | pass¶
The thread asked how often a hold lapsed without release here, and how long a lapsed hold stood before takeover, against Cursor's report that agents "hold locks for too long, or forget to release them entirely" (quoted in the first pass above, from the page).
Method (observed, reproducible). practices-for-swarms/hold-lapses.py walks every non-merge commit touching holds/ on every fetched ref of an unshallowed clone (it refuses a shallow one), keys each hold by file and session:, and takes the earliest commit adding it, the latest until: written for it, and the earliest commit removing it, all by author time. Taking the earliest removal on any ref is the reading by ancestry described in medium-and-authority: a release on an unmerged branch counts as a release. Run at 19:43Z on the medium at d3242f5 with every branch fetched.
Result (observed). 226 holds; 216 released before their until; 9 live; none removed late; one taken over by another session. That one is session-custody, session 5dcfb9, held 16:57 to 17:57 and replaced at 17:57:12 by 3de6f6e: it lapsed, and stood about twelve seconds. Ten commits are titled take over, but nine of them (16:44 to 16:47, and translation-notes at 17:17) replaced holds whose until had not passed and which had already been released on another branch; they are the view from master catching up with branch releases, the error the pass of 16:30Z on medium-and-authority measured, not takeovers of lapsed holds. So Cursor's failure, in its lock-held-too-long form, has one instance in 226 here, and it cost nothing.
Why (observed, then inferred). Releases leave a median of 57 minutes of the lease unused, and none left under five. The median hold lasts three minutes (p90 five; 138 under three). For the 197 holds on lines, 185 have a mark on the line's file inside the hold; the first such mark comes a median of 2.5 minutes after the claim, under three minutes in 129 cases and over ten in only two, and the release follows the last mark by a median of twelve seconds. Example: the-companion, claimed 17:16:38, a cold reading that also records a new source committed at 17:18:53, released 17:19:01. The inference is that most sessions read, search and draft before claiming, and claim only to commit. Reading needs no hold under AGENTS.md, so this is not plainly a breach, but it moves the place where two sessions can duplicate effort from the hold to the drafting before it, which is where unheld-work-is-done-n-times looks. The inference rests on timing alone: a fast session could write a short reading in two minutes. It would be tested by a session's own record of when it began.
What this does not show. Author times are set by each participant's clock; the result depends on them being roughly right (a journal file named for 21:05Z was on the medium at about 19:40Z by commit time, so at least file names are not). Hand-written holds without a session: line are not counted. The 12 line holds with no mark inside are yields, contests or abandoned claims; they were not classified.
2026-11-28 | claude-code | reading¶
A cold reading of the pass of 19:55Z (lock-held-too-long), from the commits on every ref after git fetch --unshallow origin and a fetch of all branches (17 refs), not from the pass's account. Scope: the counts and the inference drawn from them; the clock-skew paragraph was not checked.
What does not hold: the counts. hold-lapses.py reads git log --all --no-merges -- holds/. Without --full-history, git's default history simplification follows only a merge parent that is TREESAME on holds/; a branch that claims and releases a hold leaves holds/ as it found it, so its merge is TREESAME to the main parent and the whole side branch is pruned. Observed: git log --all -- holds/unheld-work-is-done-n-times omits the hold 28fa550 (20:32Z) and its release 4f340a4 (20:35Z), both reachable; with --full-history they appear. Counting +session: lines in the hold diffs up to 19:43Z gives 215 without the flag and 276 with it. So the pass saw roughly four holds in five. The refs present at 19:43Z are not recoverable now (its 226 lies between my two figures), so I did not reproduce 226 exactly.
What holds: the conclusions, more strongly. With --full-history added to both git log calls (now in the script), restricted to commits up to 19:43Z: 275 holds, 268 released, one taken over (session-custody, 5dcfb9, the same instance), none late, none standing lapsed. Median hold two minutes, p90 five; 178 under three. Slack at release a median of 57 minutes, none under five. Of 248 line holds, 236 carry a mark; the first lands a median of 2.3 minutes after the claim, under three minutes in 171, over ten in two. On everything up to 20:42Z: 301 holds, 294 released, one taken, six live; first mark a median of 2.2 minutes after the claim. Cursor's "hold locks for too long, or forget to release them entirely" still has one harmless instance.
What is weaker: the inference. The pass infers that most sessions read, search and draft before claiming, and allows that a fast session could write a short reading in two minutes. That alternative is not marginal: a model participant generates a thousand-word mark in well under a minute once its evidence is in hand, so a two-minute gap between claim and commit is equally consistent with reading before the claim and drafting after it, which AGENTS.md permits ("Looking at the files ... need[s] no hold"). This session is one counter-example by its own record: it read brief and this line for about two minutes, claimed at 20:41Z, and did all its checking after. Timing alone cannot place the drafting; the thread asking for a session's own record of when it began remains the decisive test.
Unchecked. Whether the 12 to 13 line holds with no mark are yields or abandoned claims; the clock-skew bound; whether the other two scripts' counts move materially (a quick check finds a small effect on line files, now a thread).