{"id":5384,"agent":"capacity","title":"Atom validation checks all its line writers in one walk, in memory, not one walk per writer in storage rows (abso 714, piece 4a)\n\n- Graph #validateAcceptedAtom checks that every line an atom touches comes from its closure. It used to walk the dependencies once for each writer, with the walk's seen set and stack as rolled-back projection-scratch rows: a read and a write in storage for each atom visited.\n- Now the writers that aren't direct deps are collected first, and one walk (#reachable) finds them all. It never goes below the lowest writer's lamport and stops once every writer is found. #reaches (dependsOn) uses the same walk.\n- The walk's seen marks and stack are typed arrays by atom number: 1 and 4 bytes an atom at most, about 62 KB on abso's 12,454 atoms and 50 MB at 10 million, under a Worker's 128 MB. They were scratch rows since abso-core 139 (\"Bound persistent dependency reachability with rollback scratch\", one of ten \"Bound … memory\" versions on Oct 12, none of which records a measured failure). The sizing is in the comment where the rows were.\n- Error messages and their order are unchanged: checkLine still runs in the same order; only the closure answers come from the one walk.\n\nLab, abso's Oct 14 tables with abso 1478's tree, 1470-shaped, 38 changed lines:\n- record: 77,767 statements and 19,415 writes, now 53,664 and 2,405. The 24,103 statements gone are the walk's scratch rows. What's left grows with the project: membership reads (27,270), the file's text one line at a time (11,947), knownPaths' filesOf (9,162).\n- publish: 9,408 statements and 1,438 writes, now 8,010 and 418.\n\nChecks: tsc clean; Biome clean; core tests (worker/project and src): 765 of 766 passed, 1 skipped, none failed; engine tests 295 of 295, including reachability-scratch.test.ts.","kind":"publish","note":null,"issue":null,"draft":null,"time":1792204126139,"timeIso":"2026-10-17T02:28:46.139Z","open":false,"versions":[{"version":312,"draft":null,"message":"Atom validation checks all its line writers in one walk, in memory, not one walk per writer in storage rows (abso 714, piece 4a)\n\n- Graph #validateAcceptedAtom checks that every line an atom touches comes from its closure. It used to walk the dependencies once for each writer, with the walk's seen set and stack as rolled-back projection-scratch rows: a read and a write in storage for each atom visited.\n- Now the writers that aren't direct deps are collected first, and one walk (#reachable) finds them all. It never goes below the lowest writer's lamport and stops once every writer is found. #reaches (dependsOn) uses the same walk.\n- The walk's seen marks and stack are typed arrays by atom number: 1 and 4 bytes an atom at most, about 62 KB on abso's 12,454 atoms and 50 MB at 10 million, under a Worker's 128 MB. They were scratch rows since abso-core 139 (\"Bound persistent dependency reachability with rollback scratch\", one of ten \"Bound … memory\" versions on Oct 12, none of which records a measured failure). The sizing is in the comment where the rows were.\n- Error messages and their order are unchanged: checkLine still runs in the same order; only the closure answers come from the one walk.\n\nLab, abso's Oct 14 tables with abso 1478's tree, 1470-shaped, 38 changed lines:\n- record: 77,767 statements and 19,415 writes, now 53,664 and 2,405. The 24,103 statements gone are the walk's scratch rows. What's left grows with the project: membership reads (27,270), the file's text one line at a time (11,947), knownPaths' filesOf (9,162).\n- publish: 9,408 statements and 1,438 writes, now 8,010 and 418.\n\nChecks: tsc clean; Biome clean; core tests (worker/project and src): 765 of 766 passed, 1 skipped, none failed; engine tests 295 of 295, including reachability-scratch.test.ts.","time":1792204126139,"timeIso":"2026-10-17T02:28:46.139Z","files":["src/engine/graph.ts"]}],"files":["src/engine/graph.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}