Proving the rule: followed cold, raced, damaged by hand, read against its sources
Record metadata
title: Proving the rule: followed cold, raced, damaged by hand, read against its sources status: open priority: 2 anchors: setup#6, setup#12, setup#37, going-quiet#1, going-quiet#2 needs: shell needs_owner:
Question¶
Does the rule in AGENTS.md, with its tool, do what it says: when a stranger follows it, when participants race, when a person edits the files carelessly, and when it is read against the article it quotes and the prompt it answers?
Why it matters¶
The owner asked for something that routes around a person's edits and a dead session (setup#6), that rests on practices known to work (setup#12), and that can be switched off at any point (setup#37). Those are claims about behaviour, and they can be tested.
Where it stands¶
Of the threads below, one is now settled by a single observed check, since reproduced independently by a cold reading: the repository's relative links (245 of them in 127 tracked Markdown files at 0700dd0) all lead somewhere except three, none in the rule or the tool's documentation. The reading corrected one statement (126 links point within their own page, not two; all resolve) and found that the pass itself, by quoting a dead link, added a fourth. The check should become a sensor, and the reading's account of why the other-line.md link is live is the one the sensor should rely on.
The race tester's ten findings have now been reproduced against the tool as it stands (e6da3b4), by running its test file unchanged and probing the cases it did not test. Eight still stand as reported, among them both of its worst: sync reports success into conflict markers when an autostash fails to re-apply, and merge=union silently fuses or splices two marks on one line. One is fixed (a clone with a narrow refspec now follows the medium), and one is partly fixed (a detached head and a branch origin lacks are now handled; a refused push is still blamed on a moving medium). One of the tester's tests now passes while its defect is still present, so the suite cannot yet be read as a regression check without mending. A cold reading (28 November, 17:20) reproduced all of this at 8337175 and found why that test passes: not the length of its bodies, as the pass said, but a heading of today's date that has since landed in the real line file the test copies, so its count of two is reached by one old heading and one fused one.
The setup session first tried to answer this with six testers run from a private workflow. That was the wrong shape, and the owner said so (going-quiet#1). The testers had briefs of their own and no checkpoint, so they could not be slowed or brought to rest through the files; only two ran at a time; and the setup session twice changed the repository under them, after which each re-ran everything. What they found was good: the first (a stranger following the rule cold) reported two dozen defects in twelve minutes, the second (careless edits by hand) seventeen more with a tested patch, and both sets are fixed in tools/swarm.py. The cost was not: the second took forty minutes, and three of the six had not started when the queue was abandoned.
What was not run is below, as threads small enough for one session each.
Threads¶
- Followed cold by a stranger: done, and its findings fixed (journal, 28 November).
- Damaged by hand (about 120 single damages): done; the tester's patch is merged. Still open from it: nothing tells the owner how to answer a
needs_ownerexceptlines/README.md. - Raced: the tester's ten findings reproduced against
tools/swarm.pyate6da3b4(pass of 28 November, 17:00): eight stand unchanged, one is fixed, one is partly fixed. - Apply the race fixes that still stand (needs a
toolshold): the autostash check, a bound on--hours, renew and release as checked loops like claim, the phantom-hold cleanup, recognising a push that landed, a clock sensor, a truthful message for a refused push.raced-fixes.patchwas written againstdecd5aeand will not apply as it is; its hunks are the method. - Decide
merge=unionforlines/*.mdandsources/*.md: it still fuses two marks under one heading and splices two that quote the same passage, with no sensor firing (reproduced ate6da3b4). Either remove it, as the tester proposes, or write the append-only merge driver; the comment in.gitattributesclaims a sensor that does not catch these cases. - Mend
test_swarm.py:test_two_marks_under_the_same_heading_stay_twopasses vacuously (reading of 28 November, 17:20): it counts a heading of today's date across a copy of the live line file, which now already holds one. Assert two more occurrences than in the base, or use a heading no real file contains; two-line bodies alone would not mend it. Restore itsexpectedFailure, and remove the one on the narrow-refspec test, which is now fixed. - Look through
test_swarm.pyfor any other assertion that the swarm's own marks on the live files could satisfy or break (the fixture is a copy of the real repository, which keeps moving). - Every quotation of the article and of the prompts in
README.md,AGENTS.mdandlines/, checked against the texts character for character, with its anchor. Better built as a sensor intools/swarm.pythan done once by hand: it will go wrong again. - Every relative link in the Markdown files leads somewhere: checked once by hand (pass of 28 November, 16:30). Three dead, none of them in the rule.
- A sensor in
tools/swarm.pyfor dead relative links, so the check is not done once and forgotten (needs atoolshold; the pass gives the method; the reading of 28 November, 17:00, gives the counts to test it against and corrects the account of theother-line.mdcase). - The
briefpressure "proving-the-rule: cites sources/README.md, which does not exist" is a false positive:sources/README.mdexists at the root, and the line names it by a root-relative path in backticks. The sensor seems to resolve such paths againstlines/(unchecked against the code; needs atoolshold). - Two live dead links to
other-line.md(inread-against-the-article.md, line 49, and in this line's pass of 28 November, item 1). The pass is not to be rewritten; whether the tester's report may be mended, or both are simply accepted as known, is for whoever writes the sensor to decide, with an allowance for them. - The two extensionless cross-links at the head of
texts/automate-asocial/original.mdandtranslation.mdare dead on GitHub: a note fortranslation-notes.md, for the owner to carry upstream. - The README's table "Why it is laid out this way": is any row a stretch of the article, of the kind p62 warns against?
- The hunt for a hidden centre: the tool, the status page, the owner, the seed written by one session, the single branch, the draw, priorities. For each: a real problem, a stated exception, or fine?
- Which instruction files each harness really reads (Claude Code, Gemini CLI and Antigravity, Codex, ChatGPT with a repository connector), from their current documentation; and whether
@AGENTS.mdat the top ofCLAUDE.mdworks as assumed. - Whether GitHub renders the mathematics and the raw HTML of
texts/automate-asocial/*.md, and whether it honoursmerge=unionwhen it merges a pull request. - The owner's setup prompt paragraph by paragraph: for each thing asked, forbidden or hoped for, is it honoured, half honoured, ignored or contradicted? Cite the file.
- A checkpoint that needs no model: a hook in the harness that fetches the medium every few minutes and speaks only when
limits.conf, the rule, or the participant's own hold has changed. Claude Code has hooks; what have the others?
Passes¶
2026-11-28 | claude-code | pass¶
The thread. "Every relative link in the Markdown files leads somewhere." This pass is an observation, not a reading of a source: a script was run over the tracked files at commit 0700dd0 and its output is reported as it came.
Method. Every file git ls-files '*.md' returns (127 files) was searched for Markdown links [text](target), image links and HTML <a href="…">, after removing fenced code blocks and inline code spans, since a link written inside backticks is an example, not a link. Targets with a scheme (https:, mailto:, doi: and the like) were set aside: this thread is about the repository's own paths. Each remaining target was resolved against the directory of the file that holds it and tested for existence; where it carried a fragment and led to a Markdown file, the fragment was looked for among that file's id="…" attributes and its headings, slugged as GitHub slugs them (lower case, punctuation dropped, spaces to hyphens).
Result. 245 relative links; 242 lead to something that exists. Fragments barely figure: no link into another file carries one, and only two point within their own page, both of which resolve. The three that do not resolve:
lines/proving-the-rule/read-against-the-article.md, line 49:(other-line.md). This sits inside a quotation of the pattern used inlines/the-companion.md("'->other-line'"), so it is an illustration, not a reference; but the inner backticks close the quoting span early, so GitHub renders it as a live link to a file that does not exist. A false positive for any sensor that does not understand nested quoting, and a real dead link for a reader. Harmless; fixing it needs only the outer quoting changed, under this line's hold.texts/automate-asocial/original.md, line 8:(automate-asocial-translation).texts/automate-asocial/translation.md, line 8:(automate-asocial-original).
The last two point at each other without the .md extension. Both files open with a front matter (title, date, desc, order) of the kind a static site generator reads, and the form of the link suggests they were written for a site that serves pages at extensionless addresses (a hypothesis; the site itself was not looked for). On GitHub, and to anyone reading the clone, both are dead. texts/ is byte-exact under texts/manifest.tsv, so they cannot be mended here: the remedy is a note in lines/translation-notes.md for the owner to carry upstream, or a decision that the texts are read as the site's and the dead links accepted. That is now a thread.
What this settles, and what not. The rule (AGENTS.md, CLAUDE.md, README.md, lines/README.md, holds/README.md, journal/README.md, sources/README.md) has no dead relative link at this commit. That is a fact about one commit. Links break when files are renamed or a line is closed and moved, and nothing in brief would notice, which is why the thread asked for a sensor. The sensor is left as a thread, since tools/swarm.py needs its own hold; the script used here, about thirty lines, is easy to rewrite from the method above, and should skip code spans and accept only paths without a scheme. Not checked: links with a scheme (whether doi.org and the other external addresses still answer), and links in files that are not Markdown.
In passing. The thread "Raced" said the tester's report had not come in. It has: lines/proving-the-rule/raced.md, with test_swarm.py and raced-fixes.patch beside it. Its findings were not reproduced in this pass; the thread now asks for exactly that.
2026-11-28 | claude-code | reading¶
What was read. The pass of 28 November on the thread "Every relative link in the Markdown files leads somewhere". Since that pass is an observation and cites no source, a cold reading cannot go back to a source; it can only run the experiment again without the pass's script. A new checker was written from the method alone (about forty lines): it takes every tracked .md file, removes fenced blocks and inline code spans (matching backtick runs of equal length), collects [text](target), image links and <a … href="…">, sets aside any target with a scheme, resolves the rest against the holding file's directory, and checks a fragment against the target's id="…" attributes and its headings slugged as GitHub slugs them. It was run on the tree at 0700dd0 (read from git, not from the working copy) and on the present tree.
What holds. At 0700dd0: 127 Markdown files, 245 relative links, 3 that do not resolve, and they are the pass's three: other-line.md in lines/proving-the-rule/read-against-the-article.md line 49, and the mutual extensionless links at line 8 of texts/automate-asocial/original.md (automate-asocial-translation) and of translation.md (automate-asocial-original). Two independent scripts agreeing on 245 exactly is good evidence that the pass counted what it said it counted. The texts do open with a front matter (title, date, desc, order), as the pass says. No link anywhere carries a fragment into another file, at that commit or now. The claim that the rule's own files have no dead relative link holds at both commits.
What does not hold.
- "Only two point within their own page." False. Each of the two texts carries 62 HTML anchors of the form
<a class="folio" id="p45" href="#p45">and<a href="#fn-1" id="fnref-1">, and one Markdown link[p. 60](#p60): 126 in-page links in all. Every one resolves, so the result is unchanged, but the count of 245 includes them, which means the pass's script saw them and its prose miscounted. The pass's "two" is presumably the two Markdown links (our reading). - Why the
other-line.mdlink is live. The pass says it sits inside a quotation and "the inner backticks close the quoting span early". At line 49 there is no outer code span to close: the pattern is quoted in single quotation marks,'-> [other-line](other-line.md)', and the backticks are a code span inside the link text. It is an ordinary Markdown link, live by construction; no nesting is involved. This matters for the sensor: the false positive is not a parser subtlety to be worked around but a quotation that should have been put in a code span (or the line accepted as known). - The remedy the pass names, changing the outer quoting, therefore means adding one, not changing one.
What is missing. Run on the present tree, the checker finds 201 files, 304 relative links and 4 dead: the pass's own item 1 quotes the same pattern in the same way and so added a fourth live link to other-line.md, at line 52 of this file. Passes are not rewritten, so it stays; a sensor will need either an allowance or a mended tester's report. Separately, brief shows the pressure "proving-the-rule: cites sources/README.md, which does not exist", although sources/README.md exists: the pass names it in backticks by a path from the root, and the sensor appears to resolve it from lines/ (a hypothesis; the code was not read). Both are now threads. Not checked, as in the pass: links with a scheme, and links outside Markdown files.
2026-11-28 | claude-code | pass¶
The thread. "Raced": reproduce each of the ten findings in proving-the-rule/raced.md against the present tools/swarm.py and say which still stand. This is an observation: the tester's report is the claim, and the tool at e6da3b4 is what was run. The tester's report was not taken as evidence for anything below; each finding was checked against the code as it now reads and by running something.
Method. First, test_swarm.py was copied out of the repository and run unchanged against the present tree (SWARM_REPO=… python3 test_swarm.py -v). It builds its own bare remote and clones in a temporary directory, so nothing touched the medium. Result: "Ran 18 tests in 53.294s / FAILED (expected failures=8, unexpected successes=2)". The eight tests the tester expected to pass still pass. Of the ten expected failures, eight still fail and two now succeed. An expected failure that still fails is weak evidence by itself (a test can fail for a reason that is not its finding), so each was also traced to the code path the finding names; and both unexpected successes were probed, since a passing test does not prove a fix. Three cases the file does not test (a detached head, a branch origin lacks, a push refused by the remote) were run by hand in the same scaffolding.
Finding by finding.
syncreports success into conflict markers and an orphan stash. Stands.integrate()still runsgit rebase --autostashand returns "rebased onto the medium" whenever that exits 0 (tools/swarm.py,integrate), which it does when only the re-apply of the stash conflicts. The test fails as before.merge=unionfuses or splices two marks on one line. Stands, and the test file now hides half of it..gitattributesstill setslines/*.md merge=unionandsources/*.md merge=union, with a new comment: "A field or a section kept twice is reported bybriefas an illegible mark." The splice test fails as before. The same-heading test now passes, but that is the test's choice of input, not a fix: with the one-line bodies the test uses, git kept both headings; with the two-line bodies of the tester's own evidence, run in the same scaffolding, the medium ended with one heading over "A's pass. First sentence of A. / Second sentence of A. / B's reading of something else entirely. / Second sentence of B.", andsyncexited 0. No sensor fires on a heading kept once over two bodies, so the comment's assurance does not reach this case.- A hold can be acquired already lapsed;
--hoursis unchecked. Stands.cmd_claimstill hashours = args.hours or limits["hold_hours"], andcmd_renewpassesargs.hours or limits["hold_hours"]towrite_hold, with no bound in either. The test fails. - A renew or release that loses to a takeover leaves an unpushable commit. Stands.
cmd_renewandcmd_releasestill commit locally and hand over tocmd_sync, which never takes the commit back; onlycmd_claimcallsundo_hold_commit. The test fails. renewandreleaseignore a failed commit and exit 0. Stands. The return codes ofgit addandgit commitare still dropped in both. The test fails.- A failed hold commit leaves a phantom hold file. Stands. The
rc != 0branch incmd_claimstill only runsgit reset -- holds/<id>; the filewrite_holdwrote is left in place. (The cleanup the tester asks for already exists, asundo_hold_commit, but is called only after a refused push.) The test fails. - A push that landed but looked failed makes claim deny its own hold. Stands. After a failed
push()the loop undoes, refetches and findscurrent["live"], then refuses; nothing comparescurrent["session"]with the session it just generated. The test fails. - Liveness is each reader's own clock, and nothing senses a wrong one. Stands.
load_holdsstill computesuntil > now(), and the word "clock" does not occur intools/swarm.py. The test fails. - A clone with a narrow refspec shows stale state as fetched. Fixed.
fetch()now names the refspec explicitly (+refs/heads/*:refs/remotes/origin/*, with--prune), so the tracking refs are written whateverremote.origin.fetchsays. The test's unexpected success is genuine. A residue: if that fetch fails, the fallbackgit fetch origin <branch>is the old, refspec-dependent form; it was not tested. - Failure messages name the wrong cause. Partly fixed. Observed by hand at
e6da3b4: on a detached head,briefand every command now exit with "this checkout is on no branch (detached HEAD), so it has no medium to read or push to" (fixed). On a local branch origin lacks, a claim of a line held on the medium is now refused with "held by claude-code until …, on claude/amazing-fermat-aruitc", because holds are read on every branch; so the tester's "two holders in two media" no longer happens, though a claim of a free line on that branch is acquired and the branch created, which is the open question ofmedium-and-authority. With apre-receivehook refusing every push, claim still ends "not acquired: … (the medium kept moving; readbriefagain)" after six attempts, andpush()still discards git's stderr (stands). The wrong-file conflict message comes from the unchanged end ofintegrate()(stands, by the code; not re-run).
What this settles, and what not. Of the four the tester called "breaks", all four stand. The patch beside the report cannot be applied as it is (git apply --check at e6da3b4: "patch failed: tools/swarm.py:477"): the tool has moved by several commits since decd5ae, chiefly in fetch(), holds read across branches and the source holds, so its hunks are now a method rather than a diff. Applying them needs a tools hold, and is a thread; so is the decision about merge=union, which touches what the rule says about marks being safe to add. Not done here: the tester's parallel-race measurements (25 rounds of eight claims, and so on) were not repeated beyond what the eight passing tests exercise, and the wrong-file message was read in the code, not run.
2026-11-28 | claude-code | note¶
Between that pass and its push, tools/swarm.py moved to 8337175 ("settle a claim race by precedence after the push"). Its diff against e6da3b4 was read: it touches load_holds, across_branches, fetch (it records whether the full fetch succeeded), the checkpoint, and the success branch of cmd_claim. None of the code paths named in findings 1 to 8 changed, so the pass's verdicts stand at 8337175 by the code; the tests were not re-run. One thing to add to the thread on applying the fixes: the new yield path in cmd_claim drops the return codes of its git rm and git commit and of the cmd_sync that follows, which is finding 5's pattern again. If that commit fails, the claim prints "yours has been released" while the hold stays on the medium.
2026-11-28 | claude-code | reading¶
What was read. The pass of 28 November on the thread "Raced", and the note after it. Both are observations of the tool, so a cold reading goes back to the tool and the test file, not to the pass's account of them: lines/proving-the-rule/test_swarm.py was copied out unchanged and run against the tree at 8337175 (the tool's latest commit), each code path the pass names was read in tools/swarm.py at that commit, and the merge=union cases were rebuilt in a scaffold of my own (a bare repository with .gitattributes and a small line file; git 2.43.0), by git merge and by git rebase, which is what sync uses when both sides have moved.
What holds.
- The suite's result, now also at
8337175, which the note had not re-run: "Ran 18 tests in 82.638s / FAILED (expected failures=8, unexpected successes=2)", with the same eight expected failures and the same two unexpected successes the pass reports. The note's verdict that8337175changes none of findings 1 to 8 is therefore confirmed by running, not only by the diff. - By the code at
8337175, findings 1 and 3 to 8 stand exactly as the pass says:integrate()returns "rebased onto the medium" whenevergit rebase --autostashexits 0;--hoursreacheswrite_holdunbounded in bothcmd_claimandcmd_renew(the only bound is a warning inload_holdsfor anuntilmore than a day away, which does not catch a hold born lapsed);cmd_renewandcmd_releasedrop the return codes ofgit add,git rmandgit commit; therc != 0branch ofcmd_claimruns onlygit resetand leaves the filewrite_holdwrote; nothing after a failedpush()compares the hold found on the medium with the session just generated; and the word "clock" does not occur in the tool. Finding 9 is fixed as described (fetch()names+refs/heads/*:refs/remotes/origin/*), with the fallbackgit fetch origin <branch>as the untested residue. Finding 10:push()still discards git's stderr, and a refused push still ends "the medium kept moving". - The note's addition: the yield path in
cmd_claimignores the results of itsgit rm, itsgit commitand thecmd_syncthat follows, and prints "yours has been released" regardless. Confirmed in the code.
What does not hold.
- Why
test_two_marks_under_the_same_heading_stay_twopasses. The pass says that with the test's one-line bodies "git kept both headings", and that two-line bodies fuse; the thread on mending the test accordingly asks for two-line bodies. Neither is right. In my scaffold, one-line bodies fuse just as two-line bodies do, by merge and by rebase alike: one heading over "A wrote this. / B wrote this.", exit 0. Run inside the test's own scaffolding, both one-line and two-line bodies leave the medium with one fused heading over both bodies, yet the test's assertiontext.count(HEAD) == 2is met. The cause: the test copies the real repository, appends to the first line (lines/a-society-of-words.md), and counts### 2026-11-28 | claude-code | passacross the whole file. That file did not contain that heading atdecd5ae, when the test was written (0 occurrences), and does now (1), because a pass of that date and kind has since landed on it. The fused mark brings the count to 2. The test passes vacuously, because the calendar and the swarm's own work caught up with its fixture; nothing in the tool or in git changed. Giving it two-line bodies would leave it passing vacuously. The mend is to count relative to the base (the heading should occur twice more than before), or to use a heading no real file can contain. - Consequently the pass's sentence that with two-line bodies "the medium ended with one heading" is true of the medium, but its contrast with one-line bodies is not: fusion of two marks under one identical heading does not depend on body length at all. The finding itself (finding 2) stands, more broadly than the pass put it.
What is missing. Any test in this file that counts a heading built from today's date against a copy of the live repository can be satisfied by the swarm's own marks. Only this one does so now (the splice test uses | k |, which no real mark carries). Not checked, as in the pass: the parallel-race measurements beyond the eight passing tests, the wrong-file conflict message by running it, and the narrow-refspec fallback.