gunk-dev/the-valley

ida-aea57f0-prior-art-beads.md

source751a5ef5692bmain's published tip history
3.8 KiB · Rendered
1---
2type: idea
3id: ida-aea57f0
4status: exploring
5title: Prior art — Beads arrives at the same graph with the opposite substrate bet
6created: 2026-08-04
7source: prior-art review, 2026-08-04
8---
9
10# Prior art: Beads — the same graph, the opposite substrate bet
11
12This node records [Beads](https://github.com/gastownhall/beads) as prior art for the knowledge
13graph: an independent arrival at the same problem, resolved with the opposite substrate bet. Beads
14is 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
16against it. Its stated problem is the one this graph exists for: persistent, structured memory for
17coding agents — a dependency-aware graph replacing markdown plans, so agents handle long-horizon
18work without losing context across context resets.
19
20## The convergence
21
22Independent design arrived at the same elements: typed nodes with dependency edges, living with the
23code rather than in a hosted platform; hash-style short ids; edge types including supersedes and
24duplicates; a message node type with threading. Two designs hitting the same shape independently is
25evidence the shape is real: agents need a durable typed graph that travels with the repository.
26
27## The divergence
28
29Beads stores in Dolt, a version-controlled SQL database, embedded under the repository in a
30dot-directory; its own JSONL export is documented as not the source of truth. Its rationale for the
31database is cell-level merge, multi-writer concurrency for fleets of simultaneous agents, built-in
32history, and branching independent of git branches.
33
34the-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
36design 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
48The 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
50second source of truth for project knowledge is the thing this design's durability and verification
51story 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.