connor / loot

connor/loot

Changes touching this path

  • a land run from a lane seeds the target/ of the lane with the release builds of registry dependencies that the primary target/ holds, before its pre-land gates: the new loot-first cargo_seed copies a unit only when the Cargo.lock of the position names its package as a registry package and not as a path package, under a shared lock on the cargo build locks of the source profile directory (skipping one a build holds), copies rather than hard-links (a same-name rebuild was measured writing fingerprint files and a proc-macro dll and pdb in place), renames each fingerprint into place last, overwrites nothing the lane holds and keeps file times, and prints a seed: line and a seed span; it never refuses, and is skipped under --skip-tests and in the primary. measured in fresh copies of a lane, twice each: the perf gate release build 70.67 and 70.07 s cold against 14.94 and 15.36 s seeded, the loot-wasm wasm32 release build 21.34 and 21.09 s against 7.43 and 7.36 s, for a seed of 5.06 and 5.11 s (1.43 GB). debug is not seeded: the primary debug builds predate the line-tables dev profile, and a seed of them took cargo test --no-run from 336 Compiling lines to 326 and saved no time, so a lane that never built Rust still pays that build. pinned in 7 cargo_seed tests, one the hunt experiment on a scratch workspace (two lanes over one seed each rebuild their own path crates, while a whole-target copy hands a third lane the primary binary), and a land_via order census; the rename census names the new rename, and was red until it did. red under named mutations, each restored, over the 7: path packages copied (4 passed and 3 failed), the fingerprint not copied (5 and 2), destination hashes not consulted (6 and 1), a held lock ignored (6 and 1); file times left unset stays green on Windows, whose copy keeps them; the seed moved after the pre-land gates (0 and 1 over the census). cargo test green, 4823 passed over 144 test result lines with 14 ignored. no deploy owed; lands seed once the primary loot-first is rebuilt; it also files lsoupnqm (woyvmtwq) e23e4b8b · dbf3dbe6…
  • serve::held_tips takes the tips of a have over the ancestry the forge graph holds rather than over direct parents, so a have that skips versions no longer has a manifest read for each version it names: on the offer_cost fixture a have naming every other version of a 20-change line, its head included, had 10 manifests read and now has 1, pinned in the new a_gapped_have_has_the_manifests_of_its_tips_over_the_graph_read, and ADR 0075 says so. the record_deposit doc states what defines its writers, the one door to the deposit ledger of a position, which takes the remote, instead of naming callers, a list that had left out the runner deposit. judgement calls: bundle_walk takes have, wants and depth as one Ask and drops its clippy::too_many_arguments allow, the rideable closure called in place is the helper serve::rideable, the seed: line prints MiB, and the cargo_seed doc says nothing is overwritten only of what the destination held when the seed read it, since the seed takes none of the lane build locks. not taken: sharing the batch loop of a push deposit with the runner deposit, which differ in what they seal, how they bound a call and what they record. red under named mutations, each restored, over the 17 offer_cost tests: tips over direct parents (16 passed and 1 failed), the named versions counted among their own ancestors (13 and 4). cargo test green, 4827 passed over 144 test result lines with 14 ignored. owes a forge deploy for the fewer manifest reads (xukurtyx) 30c6668f · dbf3dbe6…diff
  • a land seeds the debug builds of registry dependencies as woyvmtwq seeded the release ones, from target/lane-seed under the primary, which the lands fill themselves: once a land from a lane that ran cargo test has published and freed the harbor, it copies the registry debug builds of that lane into target/lane-seed by the same rules, registry packages only by the Cargo.lock of the landed tree and again by that of the landing tree, copies under the cargo build locks, now taken shared on the source and exclusive on the destination, and nothing the destination holds already; the next land seeds its lane from there, where the debug builds of the primary predated the line-tables dev profile and matched no unit. measured in fresh copies of a lane, seven interleaved samples each of cargo test --locked --no-run --workspace at CARGO_BUILD_JOBS=4: a median of 162.7 s cold and 107.9 s seeded, 336 Compiling lines against 19, for a seed of 2.3 s over 387-391 units and 941-960 MiB, where the lane target/debug was 7.7 GiB; filling an empty seed directory took 2.6 s and a filled one copies nothing; after two hops every native link path under a target directory named the seeded copy, none the lane or the seed directory. the seed span on the timing line covers both profiles and the copy back closes a seed-refresh span. pinned in the new cargo_seed tests a_seed_directory_hands_the_next_lane_no_workspace_build (a lane into the seed directory and from there into a lane whose changed core is older than the seed, which rebuilds it and runs its own code) and a_destination_a_reader_holds_is_not_copied, and the orchestrator tests a_land_seeds_each_profile_from_its_source_and_copies_its_debug_builds_back and the_seed_directory_is_refreshed_after_the_harbor_is_freed. red under named mutations, each restored, over the 12 selected seed tests: path packages copied (4 failed and 8 passed), no destination lock (1 and 11), the destination locked shared (1 and 11), debug seeded from the target/debug of the primary (1 and 11), the copy back into the target of the primary (1 and 11), the copy back under the harbor (1 and 11). cargo test green, 4846 passed over 144 test result lines with 15 ignored. owes no deploy; lands use it once the release loot-first of the primary is rebuilt. it also carries comments on wwmonzor and rmwmkyvu and files qptwwkqx and uzkouqqx (lolzxwpk) f2cb7126 · dbf3dbe6…diff
  • a test is kept only for a bug whose damage outlives its detection (ADR 0105, docs/agents/testing.md): disclosure, durable bytes, signed history, silent-pass refusals and machine contracts keep their tests, everything else is trusted or fixed fast, and assertions are on outcomes, never prose. the implementer brief asks that question before a test is written and owes a mutation proof only for a must-test pin. the suite is cut to it in one pass, Rust test functions 4848 to 1665, site vitest cases 1307 to 258 and SDK cases 160 to 64, with the living docs and comments that named deleted tests corrected and ADRs, tickets and released migrations left as history. cargo test green at 1945 passed with 6 ignored, the site gate green at 240 passed, the SDK at 75 passed with its one known macOS path failure from before the cut (ruwknvpw) 61f0184b · dbf3dbe6…diff
  • loot-forge, loot-net, loot-first, loot-perf, loot-relayd, loot-relay-contract, loot-s3 and loot-bench production comments cut by 70% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, wire contracts, security and safety reasoning kept; comment-only, Rust token streams identical, test modules untouched (yrkykmsn) a94b3d35 · dbf3dbe6…diff
  • site and sdk production comments cut by 71% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, security reasoning, browser quirks and directives kept; comment-only, the TypeScript AST without comments identical, built bundles unchanged but for the build stamp (yrkykmsn) d8c01375 · dbf3dbe6…diff
  • docs/agents/writing.md is the standard for comments and docs: a comment says only the why the code cannot, rg and loot log answer who-calls, which-members and when-changed better than a cached comment, and history, ticket numbers, rosters and emphasis are deleted on sight. AGENTS.md links it. CONTEXT.md, AGENTS.md, docs/agents, the skills, specs, READMEs, research and evidence are cut by about 65% to it, every cited heading, § number and test-pinned string kept; files the yrkykmsn ticket (yrkykmsn) 8e3c7b83 · dbf3dbe6…diff
  • the ADRs are cut by 71% to the docs/agents/writing.md shape: Context, Decision and Consequences in about a page each, amendments folded into the decision they amend, function tours, test counts, sweeps and ticket archaeology removed; every title, Status section, cited § and numbered decision kept. ADR 0103 folds in the vmusyoxz, snmzospn and xrqwmovz amendments and restores the operator rulings of 3e1a10ce that the loot-core comment land reverted (yrkykmsn) 0fc947d9 · dbf3dbe6…diff
  • the cargo_seed pin a_seed_directory_hands_the_next_lane_no_workspace_build runs its body in a test process of its own, re-running the test binary with --exact and --test-threads=1 and asserting 1 passed, since a child another test in the loot-first binary spawned while the seed into target/lane-seed held its exclusive .cargo-build-lock kept that lock held after the seed dropped it, until the child exec ran (measured on macOS for posix_spawn and fork alike), so the next seed out of the seed directory found it held and copied nothing; seed skipping a held lock is the designed behaviour and is unchanged; the sibling orchestrator test it shared the flake with was already deleted in the test cut; red without it: 13 of 60 runs of the cargo_seed tests beside a test spawning /usr/bin/true from 16 threads under 30 busy loops failed at line 527 with its .cargo-build-lock is held, and 0 of 120 after; the suite is green at 2181 passed (rxpnuzpm) 1efddc7d · dbf3dbe6…diff
  • the cargo seed no longer treats target/lane-seed as a cross-target triple directory: profiles() in cargo_seed.rs skips the entry named SEED_DIR, so a seed source holding lane-seed/debug (the primary holds target/lane-seed/lane-seed/debug) no longer copies the seed into itself and no lane inherits a target/lane-seed/debug that cargo never reads. measured by a throwaway test that seeded debug from the primary target/lane-seed into an empty directory: before 3341 units and 4437 MiB (4652612794 bytes) in 4.26 s from profiles debug and lane-seed/debug, after 1671 units and 2224 MiB (2332259849 bytes) in 1.87 s from debug alone; the land timing seed span was not re-measured here because it needs a land. owes no test by docs/agents/testing.md, since a wasted copy is found on the next use and fixed in the next land, so no mutation proof; cargo test green, 2189 passed over 125 test result lines with 6 ignored and 0 failed (lnnlksqx) 1dc9105b · dbf3dbe6…diff
  • the cargo seed copies the units of a profile directory on up to eight threads through loot_core::fanout::map_chunks, where cargo_seed::seed_profile copied about two thousand units one file at a time: each unit still copies its build directory and deps outputs, then its fingerprint under a temporary name and renames it into place, so no fingerprint is visible ahead of its outputs, the build locks are still held across the whole profile by seed, and a failed copy stops the other threads and leaves the failed unit without a fingerprint, with the Seeded counts the sum over the units that went in; measured by a throwaway timing, removed, copying the primary target/lane-seed debug directory (2283 units, 3.2 GiB) into a temp directory with the source read only, three rounds each on a loaded machine: 2.41, 2.45 and 2.22 s serial against 1.36, 1.38 and 1.34 s through map_chunks, and a work-stealing queue over units at 2, 4, 8 and 16 threads took 1.58, 1.20, 1.43 and 1.36 s at best, so the copy here is bound by the filesystem and eight threads is not worth tuning; the 0.33 s eight-wide figure of the ticket was not reproduced. the new pin a_fingerprint_is_not_copied_ahead_of_an_output_that_failed seeds 80 units with one output that cannot be copied and asserts that unit has no fingerprint, no temporary copy is left, the fingerprints held equal the units counted and each has its output: red with the fingerprint renamed before the outputs (2 passed and 1 failed over the 3 cargo_seed tests), green after. the rename census names copy_unit in place of seed_profile. cargo test --no-fail-fast green, 2223 passed over 127 test result lines with 6 ignored and 0 failed (opnrxzux) abd69284 · dbf3dbe6…diff
  • once a land has published, the settle refreshes the release seed as well as the debug one: refresh_lane_seed copies the landing lane registry release builds into the primary target/lane-seed/release, before the landed lane target is dropped, and seed_position_target reads them after the primary target/release, so the perf gate build finds the registry crates the primary release dir lacks because the perf feature set differs from the primary builds. release goes to the seed directory and not the primary own target/release, so a release build running in the primary, which holds its .cargo-build-lock exclusive, neither makes the refresh skip the directory nor waits on it; the seed keeps its rules, fingerprint last by rename, build locks held, nothing overwritten, and profiles() still skips lane-seed as a triple. measured with a throwaway driver over cargo_seed.rs and a clone of the primary release dir, seeding a fresh target the way a lane is seeded then running the perf build: before the refresh 110 units compiled (105 registry), 10.53 s wall and 67.1 s user, then 10.69 s and 67.4 s; after it 5 units compiled (path only), 5.59 s wall and 24.9 s user, then 5.61 s and 24.9 s; the refresh itself copied 989 units (1385 MiB) once in 0.61 s, a second refresh 0, and the next lane copy-in 110 units (142 MiB) in 0.07 s. no test: a seed that misses is found on the next land and fixed in the next, and the ordering pin a_fingerprint_is_not_copied_ahead_of_an_output_that_failed already covers the copy this reuses (testing.md), so no mutation proof. workflow.md, ADR 0035 and the cargo_seed docs say so. the workspace suite is green (2228 passed, 0 failed, 6 ignored) (nxloksul) 82a561f0 · 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
  • the cargo seed is partitioned by build configuration and a lane seeds only from its own: target/lane-seed/<key>/<profile> where the key hashes rustc -vV run in the lane, the rustflags cargo merges for it (config build and target tables through cargo config get, plus the rustflags environment variables) and the cargo home, which rustc puts in a crate SVH while cargo leaves the cargo home out of the file name (measured: one registry crate built under two CARGO_HOMEs got the same file name and different hashes in rustc -Zls=root, where different toolchains and rustflags got different file names), so the units of two configurations no longer meet under one name and fail a fresh lane with E0463; a refresh writes only its own partition, the primary target/release is read only when the primary has the same key, a lane whose key cannot be read copies nothing, and the settle evicts all but the newest three partitions by use (a use marker, not the directory time) and any unpartitioned directory such as the old debug and release, skipping a partition a build holds; cargo_seed::hold and hold_to_remove now return a Held guard that unlocks each flock before the close, because a child another thread forks while the lock file is open shares it and a close alone left the lock held until the child execs, which was the cause of the flaky a_landed_lane_drops_its_build_output_and_only_that and of the cargo_seed alone() re-spawn, so alone() is retired and that test unlocks before its drop; red without it: the new pins went red under named mutations, each restored (primary key check off: 4 passed and 1 failed; key ignoring the config: 3 and 2; eviction off: 3 and 2; refresh into the unpartitioned root: 4 and 1; wrong partition read: 4 and 1), and the Held unlock off went red in 3 of 3 runs of a_dropped_hold_is_free_beside_threads_that_spawn and in 8 of 15 runs of the landed-lane test beside 16 spawning threads, 0 of 15 with it; a real-cargo test that fails E0463 was not possible because flagged and unflagged builds get different file names here; workflow.md says so; the full suite is green with 2248 passed and 0 failed (oyltlyzs) a2005192 · dbf3dbe6…diff
  • the site gate seeds the first pass of a fresh lane from target/site-seed in the primary, which every settle refreshes from the landed position whether or not its gates were lookups: node_modules by a whole-directory clonefile on APFS (elsewhere npm ci runs) keyed by the npm ci inputs with the npm and node versions, the tsc build info under the same key, and the wasm-pack output keyed by the input hash that tools/build-wasm.mjs --inputs-hash prints, the check of each step still deciding the skip (ADR 0055) and the newest partitions of each kind kept; the land timings record how each site pass started npm ci, build:wasm and tsc (site_steps: cold, warm or seeded); measured on the Mac under load 16 to 83, the first site gate of a fresh lane went from cold, cold, cold in 28.7 to 72.0 s (median 47.2 s of 4) to seeded, seeded, seeded in 12.9 to 34.4 s (median 19.2 s of 6), and in paired runs npm ci took a median 8.6 s against 1.7 s for the clone with its directory times; a_seed_is_used_only_where_the_lanes_own_check_passes went red with a seeded node_modules trusted without its stamp check (0 passed, 1 failed) and with the install key ignoring the lockfile (0 passed, 1 failed); the full suite is green at 2263 passed, 0 failed, 6 ignored, and the site gate at 363 passed (qunvqqpu) f89d588b · 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.