1,102 refused pushes, zero lost updates
The most important number from our 50-agent fleet run is not the throughput. It is that 1,102 pushes were refused - and nothing was silently overwritten.
That sounds like a bug report. It is the safety property.
The model: a save is a whole-file version#
Swarmfile does not merge two blind writes. Every save is a new whole-file
version built on the version the writer last read. The engine records that
base; when the save reaches the hub, the hub checks it against the file's
current version. If the file moved since the writer read it, the save is
refused with ESTALE. The writer re-reads, re-applies and retries.
Variable chunking means only the changed chunks move, but the version is still whole-file. Two agents editing different ranges of the same file are two writers of the same version. If one lands first, the second's base is stale. The overlap does not matter; a whole-file version is the unit.
This is deliberately not a text merge at save time. Git's merge machinery is good at combining branches later; it is the wrong tool for deciding what a save means when another process replaced the file while you had it open. The drive gives the writer a definite answer: your base moved, re-read before you write.
Why 1,102 refusals is the good outcome#
In the 50-agent same-branch run, the agents pushed separate files on one branch, with a single contested file as the negative control. The engine and hub refused 1,102 stale pushes. Each refusal was a retry, not a lost edit. The run ended with zero lost updates.
The same result holds at the other shape: 100 agents, one branch each, then a coordinator merge. Zero lost updates there too. The branch-per-agent model avoids most of the contention in the first place; the same-branch run is the stress case, not the recommended pattern for independent work.
The refusals are also why "no locks held while the model thinks" is not a claim that two agents can write the same file twice. There are short leases around a write, and a save that lost the race is turned away. A lock held for the duration of an LLM turn would be an outage generator; a version check at the commit point is enough.
What the suite actually checks#
The claim is not one test. It is a matrix, and each row has a named witness:
- same file, second writer: the save is refused, not overwritten;
- a conflicted file is read-only until resolved, and still readable;
- different files save in parallel;
- a conflict on one file does not freeze the rest of the mount;
- a write-open held by another machine is refused at the open and names the holder;
- two
--exclusivemounts on one machine exclude each other; - a save whose lock was lost becomes a hub conflict, not a clobber.
The engine witnesses run as cargo nextest; the fleet legs run the real
community server with scripted git agents; the mount leg runs the platform's
real-mount conflict lane. The runner writes a Markdown and JSON report and
marks skipped legs as skipped. On macOS the full run was 8/8 (seven engine
witnesses plus the FUSE-T mount lane). The three 10-agent fleet legs were
3/3 with zero lost updates; the same-file leg produced one winner and nine
refusals.
The suite is in the repository as
scripts/bench/agent-safety-conformance.mjs, with the matrix in
docs/benchmarks/agent-safety-conformance.md. It is deliberately a script,
not a marketing number: the report names the commit, the platform and every
skipped leg.
What it does not prove#
- Semantic safety. Two agents can edit different files whose APIs disagree. The filesystem catches lost writes, not broken assumptions.
- A WAN or 1,000-agent claim. The fleet legs are local, single-host and scripted-git. The mount lane is one OS's real mount.
- Unlimited local concurrency. FUSE-T gives 18 helper ports per Mac, and the default repository cap is 50 active agent workspaces. Branch-per-agent and multiple machines are how you scale past one host.
- That same-file contention is free. It produces refusals and retries. Agents must honor them. The 1,102 number is the cost of the guarantee, not a hidden success rate.
Why this shape#
The alternative shapes are familiar. A last-write-wins drive silently loses work. A lock-everything drive serializes agents and turns a slow model into a blocked filesystem. A Git-only workflow makes every save a commit and every agent a branch, which is fine until two agents need to share a working tree.
Swarmfile's answer is narrower: a mounted, versioned filesystem where a stale write is a definite refusal, a conflict is visible and read-only, and the history can still be projected as Git. The agent frameworks do not need a new API. They need the filesystem to tell the truth about the version they read.
If you want to run the matrix yourself, start with the coding-agents guide and the agent workspace page. The two-agent conflict cast is on the demo page; the full 50- and 100-agent matrices are in the benchmark record. The conformance runner is the part you can rerun from a checkout of the monorepo.