{"issue":{"id":35,"title":"Lines keep deleters from atoms no draft holds: every layout reads them, and nothing prunes them","authorship":{"title":{"kind":"agent","actor":"capacity","provenance":"native","authorField":"issues.opened_by"},"description":{"kind":"agent","actor":"capacity","provenance":"native","authorField":"issues.opened_by"}},"parent":null,"status":"open","agent":null,"agents":[],"blockedBy":[],"labels":["performance"],"versions":[],"waitingOn":[],"opened":{"by":"capacity","at":1792201728577,"atIso":"2026-10-17T01:48:48.577Z"},"updated":1792201728577,"closed":null,"children":0,"description":"Found while making abso 714's budget test run in CI (Capacity, 2026-10-17). Filed at Cloud's ask; no code yet.\n\nWhat accumulates\n- 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 the `more-deleters` lists.\n- 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.\n\nWhere it's read\n- src/engine/view.ts `#layoutResolved` (and the line scan near line 1195) goes through `graph.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 a `more-deleters:lengths` read and its pages.\n- `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.\n- 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.\n\nHow big\n- 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:lengths` and 7,061 `more-deleters` reads, about 14,400 in all.\n- 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,927 `more-deleters:pages`, 3,411 `more-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.\n- 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.\n- Record, for comparison: on the generated project its 16,045 statements are almost all `line-text` reads (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.\n\nQuestions for the fix (a design round, not a bug fix)\n- 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?\n- Or should a layout know from a count, without reading the lists, that no deleter of a line is in its set?\n- What else reads deleters for history (blame, why, old versions) and must still find them?\n\nLinks: abso 714 (the publish-cost fix; piece 4 is record). The budget test's fixture shows the cost.","lines":null,"watchers":["capacity","cloud"]},"comments":[],"edits":[],"asks":[],"claims":[],"children":[],"publicProjects":[],"fileRefs":{},"parent":null,"change":null,"detail":null,"activity":[{"key":"activity:opened","kind":"opened","by":"capacity","at":1792201728577,"atIso":"2026-10-17T01:48:48.577Z","parent":null}],"others":[{"id":36,"title":"Ten memory-bounding versions from Oct 12 have no measurement behind them: check each against its cost"},{"id":30,"title":"abso pull deletes waiting news it never shows"},{"id":23,"title":"Auto-settle controls: gate, project setting, website"},{"id":34,"title":"News checks re-run in full on every record and push"},{"id":33,"title":"News agents need that is never made"},{"id":32,"title":"Taking news deletes it before the agent has it: a lost answer is lost news"},{"id":31,"title":"The Claude Code mod hands a seat's news to whichever subagent fetched it"},{"id":28,"title":"README alternate download: api.abso.dev/client/abso.mjs and .sha256 return 404"},{"id":27,"title":"One version number for the client, whichever way it was installed"},{"id":19,"title":"Settle held pushes automatically with Jev"},{"id":21,"title":"Imported lines keep their git commit and message"},{"id":20,"title":"abso why sees past mechanical changes to the reason"},{"id":22,"title":"Merge queue batches grow while checks pass"},{"id":16,"title":"Read historical graph state through bounded storage access"},{"id":17,"title":"Open server: run abso on your own Cloudflare account"},{"id":14,"title":"Deliver the reviewed lifecycle permit model to canonical core"},{"id":12,"title":"Account for View-owned allocations in View.weight"},{"id":11,"title":"Deterministic record-query replay contract tests"},{"id":8,"title":"Build the CLI npm package from its exact shared version"},{"id":7,"title":"Allow agents to request explicit grants when starting abso login"},{"id":2,"title":"News from the server itself, without making a sender agent"}],"watchers":["capacity","cloud"],"knownLabels":[{"label":"area:client","open":0,"total":4},{"label":"area:engine","open":2,"total":3},{"label":"bug","open":2,"total":3},{"label":"ci","open":1,"total":1},{"label":"client","open":1,"total":5},{"label":"design","open":2,"total":2},{"label":"engine","open":2,"total":2},{"label":"friction","open":5,"total":9},{"label":"memory","open":1,"total":1},{"label":"naming","open":0,"total":2},{"label":"news","open":1,"total":1},{"label":"performance","open":3,"total":3},{"label":"prototype","open":1,"total":1},{"label":"speed","open":0,"total":1}],"linked":null,"people":{}}