| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-aea57f0 |
| 4 | status: exploring |
| 5 | title: Prior art — Beads arrives at the same graph with the opposite substrate bet |
| 6 | created: 2026-08-04 |
| 7 | source: prior-art review, 2026-08-04 |
| 8 | --- |
| 9 | |
| 10 | # Prior art: Beads — the same graph, the opposite substrate bet |
| 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, resolved with the opposite substrate bet. Beads |
| 14 | is a distributed graph issue tracker built for AI coding agents, by the author of |
| 15 | [Gas Town](https://github.com/gastownhall/gastown), a multi-agent workspace manager that dispatches |
| 16 | against it. Its stated problem is the one this graph exists for: persistent, structured memory for |
| 17 | coding agents — a dependency-aware graph replacing markdown plans, so agents handle long-horizon |
| 18 | work without losing context across context resets. |
| 19 | |
| 20 | ## The convergence |
| 21 | |
| 22 | Independent design arrived at the same elements: typed nodes with dependency edges, living with the |
| 23 | code rather than in a hosted platform; hash-style short ids; edge types including supersedes and |
| 24 | duplicates; a message node type with threading. Two designs hitting the same shape independently is |
| 25 | evidence the shape is real: agents need a durable typed graph that travels with the repository. |
| 26 | |
| 27 | ## The divergence |
| 28 | |
| 29 | Beads stores in Dolt, a version-controlled SQL database, embedded under the repository in a |
| 30 | dot-directory; its own JSONL export is documented as not the source of truth. Its rationale for the |
| 31 | database is cell-level merge, multi-writer concurrency for fleets of simultaneous agents, built-in |
| 32 | history, and branching independent of git branches. |
| 33 | |
| 34 | the-valley's bet is the inverse — a directory convention, not a system; listing is `ls`, search is |
| 35 | `grep`, history is `git log` — and each of the database's four justifications dissolves against this |
| 36 | design rather than transferring: |
| 37 | |
| 38 | - Built-in history: git already provides it when the store is files. |
| 39 | - Cell-level merge: one node per file with hash-derived ids makes collisions rare, and integration |
| 40 | is serialized through the integrator. |
| 41 | - Multi-writer concurrency: this design has no shared mutable state to write concurrently — every |
| 42 | change travels branch, review, integration. |
| 43 | - Version-control branching independent of git: from this design's side a defect, because knowledge |
| 44 | state diverging from code state breaks the property that a landed change and its node flip are one |
| 45 | commit ([[ida-1ec03b1]] |
| 46 | ([ida-1ec03b1-path-scoped-verification-policy.md](./ida-1ec03b1-path-scoped-verification-policy.md))). |
| 47 | |
| 48 | The decisive incompatibility: a write to an embedded database bypasses the integration path entirely |
| 49 | — no signature, no attestation, no path-scoped checks, invisible to the protected-ref invariant. A |
| 50 | second source of truth for project knowledge is the thing this design's durability and verification |
| 51 | story exists to preclude. |
| 52 | |
| 53 | ## Worth taking — ideas, not code |
| 54 | |
| 55 | - The edge vocabulary: supersedes is already arriving; duplicates is the edge the |
| 56 | corpus-normalization work will want. |
| 57 | - Hierarchical child ids for subdividing a node. |
| 58 | - Messages as nodes with threading — the concrete form of threads-as-derived-views |
| 59 | ([architecture.md](../../design/architecture.md)). |
| 60 | - A ready verb: compute the unblocked frontier of the outcome DAG from `blocked_by` edges. This is |
| 61 | [[ida-3145b7a]]'s ([ida-3145b7a-demand-pressure.md](./ida-3145b7a-demand-pressure.md)) |
| 62 | demand-pressure surface as a one-line query, and it is ergonomics this graph currently lacks. At |
| 63 | this graph's scale it is a script over files, not a database. |
| 64 | |
| 65 | ## Open |
| 66 | |
| 67 | - Beads is a live natural experiment: the same problem with the opposite substrate bet. What its |
| 68 | trajectory shows about file-convention graphs at larger scale — and whether the answer is more |
| 69 | small query verbs over files — is worth revisiting. |