| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-aea57f0 |
| 4 | status: exploring |
| 5 | title: Prior art — Beads arrives at the same graph with a second history beside git |
| 6 | created: 2026-08-04 |
| 7 | source: prior-art review, 2026-08-04 |
| 8 | --- |
| 9 | |
| 10 | # Prior art: Beads — the same graph, a second history beside git |
| 11 | |
| 12 | This node records [Beads](https://github.com/gastownhall/beads) as prior art for the knowledge |
| 13 | graph: an independent arrival at the same problem. Beads is a distributed graph issue tracker built |
| 14 | for AI coding agents, by the author of [Gas Town](https://github.com/gastownhall/gastown), a |
| 15 | multi-agent workspace manager that dispatches against it. Its stated problem is the one this graph |
| 16 | exists for: persistent, structured memory for coding agents — a dependency-aware graph replacing |
| 17 | markdown plans, so agents handle long-horizon work without losing context across context resets. |
| 18 | |
| 19 | ## The convergence |
| 20 | |
| 21 | Independent design arrived at the same elements: typed nodes with dependency edges, living with the |
| 22 | code rather than in a hosted platform; hash-style short ids; edge types including supersedes and |
| 23 | duplicates; a message node type with threading. Two designs hitting the same shape independently is |
| 24 | evidence the shape is real: agents need a durable typed graph that travels with the repository. |
| 25 | |
| 26 | ## The divergence |
| 27 | |
| 28 | Beads stores in Dolt, a version-controlled SQL database, embedded under the repository in a |
| 29 | dot-directory; its own JSONL export is documented as not the source of truth. Its rationale for the |
| 30 | database is cell-level merge, multi-writer concurrency for fleets of simultaneous agents, built-in |
| 31 | history, and branching independent of git branches. |
| 32 | |
| 33 | In this design, the directory convention — listing is `ls`, search is `grep`, history is `git log` — |
| 34 | is the current implementation, adequate at present scale. The design is deliberately uncommitted |
| 35 | about storage: durability attaches to project state rather than to git ([[ida-48c8868]] |
| 36 | ([ida-48c8868-stores-beyond-git.md](./ida-48c8868-stores-beyond-git.md))), an implementation is a |
| 37 | backend and never the contract ([[ida-b9f646c]] |
| 38 | ([ida-b9f646c-nix-backend-not-substrate.md](./ida-b9f646c-nix-backend-not-substrate.md))), and where |
| 39 | bytes live is a swappable locator concern ([[ida-4ac1125]] |
| 40 | ([ida-4ac1125-identity-is-derived-not-assigned.md](./ida-4ac1125-identity-is-derived-not-assigned.md))). |
| 41 | Tooling is expected to grow as scale demands — the ready verb below is the first instance — and |
| 42 | nothing in the design precludes a richer backend later. |
| 43 | |
| 44 | The divergence is two commitments, and both hold under any storage technology: |
| 45 | |
| 46 | - **One source of truth.** Beads runs a second version-control system beside git: two authoritative |
| 47 | histories that can disagree. This design requires project state to have one history, whatever |
| 48 | store holds it. A database that was the store would not offend this; a second history beside the |
| 49 | code's does. |
| 50 | - **Writes travel the integration path.** Knowledge changes carry the same verification, |
| 51 | attestation, and protected-ref story as code ([[ida-1ec03b1]] |
| 52 | ([ida-1ec03b1-path-scoped-verification-policy.md](./ida-1ec03b1-path-scoped-verification-policy.md))), |
| 53 | and a landed change and its node flip are one integration. A store mutated directly, outside |
| 54 | integration, is unacceptable whatever its technology. This, not file-versus-database, is the |
| 55 | decisive incompatibility. |
| 56 | |
| 57 | ## Worth taking — ideas, not code |
| 58 | |
| 59 | - The edge vocabulary: supersedes is already arriving; duplicates is the edge the |
| 60 | corpus-normalization work will want. |
| 61 | - Hierarchical child ids for subdividing a node. |
| 62 | - Messages as nodes with threading — the concrete form of threads-as-derived-views |
| 63 | ([architecture.md](../../design/architecture.md)). |
| 64 | - A ready verb: compute the unblocked frontier of the outcome DAG from `blocked_by` edges. This is |
| 65 | [[ida-3145b7a]]'s ([ida-3145b7a-demand-pressure.md](./ida-3145b7a-demand-pressure.md)) |
| 66 | demand-pressure surface as a one-line query, and it is ergonomics this graph currently lacks. At |
| 67 | this graph's scale it is a script over files, not a database. |
| 68 | |
| 69 | ## Open |
| 70 | |
| 71 | - Beads is a live natural experiment: the same graph shape over a database. Its trajectory is |
| 72 | evidence about when a file convention needs tooling — a question of timing this design expects to |
| 73 | face, and one it is free to answer with query verbs or a storage backend without violating either |
| 74 | commitment above. |