gunk-dev/the-valley

ida-aea57f0-prior-art-beads.md

sourcebda0fd39abcamain's published tip history
4.3 KiB · Rendered
1---
2type: idea
3id: ida-aea57f0
4status: exploring
5title: Prior art — Beads arrives at the same graph with a second history beside git
6created: 2026-08-04
7source: prior-art review, 2026-08-04
8---
9
10# Prior art: Beads — the same graph, a second history beside git
11
12This node records [Beads](https://github.com/gastownhall/beads) as prior art for the knowledge
13graph: an independent arrival at the same problem. Beads is a distributed graph issue tracker built
14for AI coding agents, by the author of [Gas Town](https://github.com/gastownhall/gastown), a
15multi-agent workspace manager that dispatches against it. Its stated problem is the one this graph
16exists for: persistent, structured memory for coding agents — a dependency-aware graph replacing
17markdown plans, so agents handle long-horizon work without losing context across context resets.
18
19## The convergence
20
21Independent design arrived at the same elements: typed nodes with dependency edges, living with the
22code rather than in a hosted platform; hash-style short ids; edge types including supersedes and
23duplicates; a message node type with threading. Two designs hitting the same shape independently is
24evidence the shape is real: agents need a durable typed graph that travels with the repository.
25
26## The divergence
27
28Beads stores in Dolt, a version-controlled SQL database, embedded under the repository in a
29dot-directory; its own JSONL export is documented as not the source of truth. Its rationale for the
30database is cell-level merge, multi-writer concurrency for fleets of simultaneous agents, built-in
31history, and branching independent of git branches.
32
33In this design, the directory convention — listing is `ls`, search is `grep`, history is `git log` —
34is the current implementation, adequate at present scale. The design is deliberately uncommitted
35about 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
37backend and never the contract ([[ida-b9f646c]]
38([ida-b9f646c-nix-backend-not-substrate.md](./ida-b9f646c-nix-backend-not-substrate.md))), and where
39bytes 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))).
41Tooling is expected to grow as scale demands — the ready verb below is the first instance — and
42nothing in the design precludes a richer backend later.
43
44The 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.