Found while making abso 714's budget test run in CI (Capacity, 2026-10-17). Filed at Cloud's ask; no code yet.
What accumulates
- Every record makes atoms, and an atom that deletes a line stays one of that line's deleters for good. When an agent records a change and then records it back (or re-records its draft, or its draft is dropped or discarded), the old atoms are no longer anyone's draft. But they're still in the graph's deleter index for each line they deleted: the first deleter in
deleter, and the rest in themore-deleterslists. - Nothing prunes them. A live line that agents have touched and taken back many times carries a long list of deleters, none in any view's set. This grows forever with ordinary record-and-undo.
Where it's read
- src/engine/view.ts
#layoutResolved(and the line scan near line 1195) goes throughgraph.eachDeleterSeqOf(n)for every line until it finds a deleter in the view's set. A live line has none in the set, so each layout of it reads every deleter it ever had. On a stored graph, each line with more than one deleter costs amore-deleters:lengthsread and its pages. graph.deletersOf(the same lists, whole) in worker/project: express-moves.ts before abso-core 311, definition-rule.ts, pathindex.ts, and version-files.ts' visibleIn.- Not checked yet: whether a graph with packed file history (file-lines format 1 or 2) lays out from file-deletes pages without these reads. abso's Oct 14 tables were adopted before packing, so they lay out line by line; whether prod's abso is packed I haven't checked.
How big
- abso's Oct 14 tables (shared 1224), a 1470-shaped publish on abso-core 310's move detection: 24,209 statements, of which 7,389
more-deleters:lengthsand 7,061more-deletersreads, about 14,400 in all. - A generated project, the same publish: about 1,000 statements without churn. With churn (agents recording a change to 300 lines and taking it back, 2 times a version over 40 versions, on a 12k-line file) it's 22,436 statements: 10,338
more-deleters:lengths, 6,927more-deleters:pages, 3,411more-deleters. abso's worker/test/publish-budget.test.ts uses this project as its CI fixture, and checks that at least 5,000 lines have more than one deleter. - abso-core 311 took move detection's per-line deleter lookups out of the publish (1,643 statements on the generated project). The lists are still there for every other layout.
- Record, for comparison: on the generated project its 16,045 statements are almost all
line-textreads (12,079), not deleters. So churn isn't what makes record cost there. abso's real-table record (77,767 statements) is mostly validation scratch (projection-scratch stack/seen) and hasn't been broken down by reads yet.
Questions for the fix (a design round, not a bug fix)
- Can an atom that is no longer in any draft, queue entry or version leave the deleter index? Or can it be kept apart, so a layout reads only deleters that can still be in some set?
- Or should a layout know from a count, without reading the lists, that no deleter of a line is in its set?
- What else reads deleters for history (blame, why, old versions) and must still find them?
Links: abso 714 (the publish-cost fix; piece 4 is record). The budget test's fixture shows the cost.