﻿# How did the 1,000-agent Claude experiment coordinate ownership through SQL?

Use a transactional task claim and keep proof acceptance tied to a verified artifact rather than a worker note.

Author: Retrivium team
Updated: 2026-11-10
Canonical URL: https://retrivium.ai/journal/news-fable52-fermat-sql-task-ownership/
Language: en

In its November 9 write-up, Anthropic described a Fermat formalization experiment with a shared PostgreSQL database and one sandbox per agent. The team used SQL to claim tasks, exchange notes and log results. The design raises a practical question for agent operators: what should a task ledger guarantee when workers compete or disappear?

## Understand the experiment’s coordination path

The harness gave one lead and 999 helpers access to Git and a shared database. Agents devised tables and task structures during the run. The database allowed concurrent updates without every participant sharing one machine. This evidence describes the experiment, while a production ledger still needs a stated consistency contract.

## Make claim atomic

When two workers see an available item, both can try to claim it. Use a transaction with a row-level condition so only one owns the item for a given attempt. Persist the attempt identifier. A plain read followed by an unrelated update leaves room for duplicate ownership under concurrency.

## Handle a worker that disappears

Choose a lease or operator recovery rule. A late result from an expired attempt should not overwrite the new owner’s state. Reproduce the case by stopping a worker before it posts its result and then letting a replacement claim the task. Log ownership changes separately from work completion.

## Keep notes and acceptance separate

A note can explain progress or propose a proof path. Completion needs a reference to an artifact and the verifier’s outcome. In the published harness, branches and a grader provided that second layer. Preserve the artifact identity so a revised change cannot inherit a result from a different revision.

## Test at the expected contention

Replay concurrent claims, expired leases and results arriving out of order. Track duplicate computation, stale completions rejected and useful artifacts accepted. These counts make the ledger’s value visible even when two large runs produce similar final prose. Scale concurrency only once the ownership rules hold under that replay.

## Primary sources

- [Anthropic multi-agent formalization experiment](https://claude.dev/blog/safely-scaling-multi-agent-teams-with-fable-5-2/)
- [PostgreSQL transaction isolation](https://www.postgresql.org/docs/current/transaction-iso.html)

## Related reading

- [Retry a delegated job without duplicating its business effect](/journal/frontier-swarm-retry-idempotency/)
- [Prove completion by reopening the integrated artifact](/journal/frontier-swarm-artifact-completion-proof/)
