connor / loot

connor/loot

Changes touching this path

  • the graph file gains a store-only delta container (ADR 0108): marker [0x81][1] then the node array, each manifest stored whole or as a delta of removes and upserts over its first parent, chains capped at 128 and a node stored whole when its delta carries more ops than half its entries; builds from this one read it, the eager and deferred decodes validate every frame alike, a delta materializes on first read by applying its chain forward, and an older build refuses it at the version gate (the primary loot says unsupported format v129, exits 1 and writes nothing); the writer is opt-in behind LOOT_GRAPH_DELTA=1 and off by default because lanes share the graph, a save under it migrates a plain file through the rewrite_needed seam and a save without it rolls the file back to the plain bytes; the gc keep set, locally_missing_objects and closure_complete take the address union, where a delta whose first parent is in the set adds only its upserts, and the gc disk roots read the graph undecoded; on a copy of the primary graph (2522 nodes, 7.79M manifest entries) the file goes from 561.7 MB to 8.1 MB, the codec open from 82 ms to 4.1 ms, loot status from 0.15 s and 623 MB peak RSS to 0.04 s and 70 MB, a finalize save from 549-653 ms to 32 ms with the file growing 161 bytes where it grew 636 KB, the address union from 516 ms to 4.5 ms, the one-time migration takes 6.7-7.9 s, every node decodes equal and every id that recomputed from the plain file recomputes from the delta file (1739 of 2522); red without it: the re-seal pin 0 passed 1 failed with the diff comparing addresses only, the address union table 0 passed 1 failed with set membership ignored, the end-to-end keep set pin 0 passed 1 failed with a delta dropping upserts, the corruption parity table 0 passed 1 failed with backslash keys accepted, the migration pin 0 passed 1 failed with removes ignored and the golden 0 passed 1 failed with its counts reordered; the suite is green at 2213 passed 0 failed (zkqkzvzs) 90872499 · dbf3dbe6…
  • the graph writer is now the delta container by default (ADR 0108 slice 2): a fresh file and a delta file are written as deltas, and a plain file migrates on the first save that reaches the graph, a no-op save included, so the primary graph converts once after the rebuild and not inside a land; LOOT_GRAPH_DELTA=0 is the explicit rollback to plain, which now applies each stored delta over the first parent map it decoded last instead of from the chain root, so on a copy of the primary graph a rollback save went from 5.9 s to 2.7 s, byte-identical to the original 566.8 MB; on that copy the migration save takes 7.0 s at 1.36 GB peak RSS, the file goes to 8.1 MB, and loot status from 0.21 s and 641 MB to 0.11 s and 82 MB; ADR 0108 records the writer as accepted, the rollback, which stored frames are copied through, and that no build reading deltas but writing plain by default may open a shared store, and the formats page gains its row; the early forge ask is now waited for up to 400 ms at the harbor before it is dropped and asked again, so a down forge costs at most that beyond one timeout; settle --wait reports a settle whose claim went unbeaten past the harbor horizon as presumed dead with the --retry remedy instead of waiting 600 s; the four loot-core tests that hand-edit plain bytes pin the plain writer, the ADR 0108 store test adds a want only a delta upsert holds, and ADR 0023 and a lanes comment drop a search roster and a marker; the perf gate reads no move, since store_bytes counts objects only; red without it: the store test 0 passed 1 failed with the wants dropping delta upserts, and the rollback pins 0 passed 2 failed with deltas applied over the wrong base; the suite is green at 2219 passed 0 failed and the site gate passes 348 (zkqkzvzs) cc12096b · dbf3dbe6…diff
  • verify and the path history walkers now read a delta graph without decoding every manifest: path_in_history, the custody verbs behind it (embargo-status), loot log --path, loot blame and the squash and refuse_replaced_versions walks ask a PathReader that reads a delta own ops and takes its first parent answer where they do not name the path, and burn scans use Manifest::entry; verify reads the graph undecoded, takes its absent set through the address union, and only when an object is missing decodes one manifest at a time, applying a delta over the map of the node read just before; on a copy of the primary graph (2.5k nodes) loot embargo-status of a deleted path went from 3.2 s and 990 MB peak RSS to 0.04 s and 70 MB, log --path AGENTS.md from 3.2 s and 997 MB to 0.04 s and 77 MB, blame from 2.6 s and 800 MB to 0.04 s and 75 MB, verify from 1.56 GB to 43 MB peak RSS (wall is the object scan, user time 1.0 s to 0.35 s) and verify of a store missing one object from 4.5 s and 1.56 GB to 2.9 s and 44 MB, every output byte-identical to the previous build; the path_history perf half at depth 2000 went from 166 ms to 14 ms; object_gets is untouched since no walker opens an object; red without it: the new equality pin against the eager maps (every node and path, parents or children first, with and without the first parent held, plus path_in_history) went 0 passed 1 failed with a removal read as the first parent answer, again with the visibility of an upsert dropped, and again with a merge answer recorded as absent; ADR 0108 records the path read; the suite is green at 2220 passed 0 failed (puvysunk) 50ef3c42 · dbf3dbe6…diff
  • review fixes on the delta graph, the prove and the path walkers (d105116b zkqkzvzs, 256f026d vxksuxys, 306512df puvysunk): a graph rewrite now keeps the shared store lock fresh from a beat thread through StoreLock::keep_fresh, so a waiter no longer breaks the lock under a live migration after 30 s and drops a finalized node, pinned by a holder past the horizon with a beat whose waiter must not take the lock, which went red with the beat aging the lock (0 passed, 1 failed) and is green; a prove behind main now runs the quick gates, lockfile and user gates among them, over the lane tree before it measures or signs, so a stale Cargo.lock refuses early instead of as a perf build failure, pinned by a new prove test that went red with the old gate set (2 failed in the prove tests) and the merged-tree remedies now say the lane tree was not gated first and that the converge moved nothing when nothing merged, through a LaneTree flag on merged_refusal; burned_entries and objects_at_path read each path through one PathReader instead of a Manifest::entry per node; ADR 0106 section 3 names the carried perf pass, the ADR 0106 and workflow prove text names the quick gates, workflow.md and ADR 0108 section 7 reflow, and ADR 0108 states that the rewrite lock is kept fresh; the full suite is green with 2225 passed and 0 failed (zkqkzvzs) 56db9a80 · dbf3dbe6…diff
  • review fixes on the landed-lane target drop, the lock beat, the proof key and the beside gates (b407c250 vpzxurmx, 93f3656c zkqkzvzs, 024c77ed qnrwzlms, cf33e604 opnrxzux): the seed now makes a missing target/ with the CACHEDIR.TAG cargo writes only into a target/ it creates (measured in a scratch crate: a pre-made target/ stayed untagged, a seed-tagged one was accepted), so the settle drop no longer keeps a seeded lane target/ for good, pinned through seed_position_target against the tag a real cargo build writes, which went red with the tag missing (0 passed, 1 failed); the settle job records its landing lane and a settle --retry from another position refuses instead of dropping that lane target/ and marking it landed, which went red with the check off (0 passed, 1 failed, target gone and lane marked); the drop keeps a target/ that is a symlink, which for a named lane had deleted incremental/ inside the primary target/, red with the check off for a named lane (0 passed, 1 failed, 5000 bytes dropped through the link); a named lane skips a profile directory whose cargo build locks are held, taking them with cargo_seed::hold_to_remove and making none; the drop moved out of settle_work to after the outcome is written (and after the inline verdict), so a failed pr-map update leaves the target and settle --wait does not wait on the delete; StoreLock::keep_fresh touches at once, starts before the graph is read, and FreshBeat borrows the lock, the old timing pin replaced by one that waits for a touch (0 passed, 1 failed without the first touch); LOOT_GATES_IN_TURN is no longer keyed into proofs (red with the key unchanged, 0 passed, 1 failed), ADR 0106 and workflow.md say so; beside gate stderr prints to stderr and a panic there prints the kept output before it is re-raised; the cargo_seed pin comment is corrected and loses its marker; workflow.md, ADR 0035 and ADR 0108 describe the drop and the beat; the full suite is green with 2231 passed and 0 failed (vpzxurmx) 0a26f7ec · dbf3dbe6…diff
  • loot tickets and the other ticket folds no longer hold a decoded manifest per change: first_appearances kept every manifest it read in the graph memo because entries_from decodes and keeps a stored delta, which is what held the heap peak; it now walks the ancestry parents first and gives a change its first parent keys as a bitset plus the ticket paths its stored delta upserts, read off the ops through new Manifest::delta_paths and GraphView::delta_paths, and reads a manifest stored whole through new Manifest::paths_under and GraphView::paths_under, which decode a delta and drop it; a change keys are freed once its children have read them, and the old rule that a walk stops past changes holding no wanted key is kept; measured on a cp -c copy of the primary store, tickets --porcelain went from 4.2 s and 845 MB peak RSS (835 MB footprint) to 0.4 s and 92 MB (81 MB), ticket frontier and ticket show --json likewise, and 46 outputs (tickets open and all in porcelain and human form, --map, frontier, show in text and --json for 14 tickets) are byte-identical before and after; the new test over a reopened store with a move went red with the delta upserts ignored (0 passed, 1 failed) and is green; ADR 0108 section 7 says so; the full suite is green with 2232 passed, 0 failed and 6 ignored (oovwuskp) 2ddd0bdf · dbf3dbe6…diff
  • review sweep 15 fixes on the delta graph container (b5a892c6, d105116b): the format_discipline Marked arm loses the comment that listed its members, the windows-flavoured store test in surface.rs loses its pre-fix and incident history and says why it writes plain (the delta container refuses a backslash key), ADR 0108 Consequences now says a build that predates the container refuses a migrated shared store instead of naming the default as pending, graph_delta::read_frame_is_delta replaces the frame-tag match duplicated in Manifest::walk_contained and outline_nodes (which drops the delta flag from the walk tuple), and RepoStore::new builds through for_lane; no behaviour change, so no test was added, and the full suite is green (2268 passed, 0 failed, 6 ignored); it also closes map uvrqzsoy, every child of the architecture hunt of 2026-10-08 being closed (wvzoqrll) ca182c18 · dbf3dbe6…diff

Renames are not followed. loot's tree maps a path to an address, so a rename is a delete and an add. This list is the history of the name, not of the bytes.