connor / loot

connor/loot

Changes touching this path

  • loot-first in Rust: land policy behind a Forge seam (#218) — new loot-first bin crate (ledger/forge/policy/orchestrator), in-process Workspace reads via loot-cli lib split, typed pr-map owner + shared ferry::WipState; every policy decide-tested against a fake forge. Build+test only; shadow-run, real land, and ps1 deletion remain operator-gated. 58c28888 · dbf3dbe6…
  • Spawn DevX (#232): loot lanes observability, --ticket lane spawn, wayfinder claim-to-lane f0a885c2 · dbf3dbe6…diff
  • The harbor: an on-demand lock serializes landing to git-main (#229, closes #195) 8adf34a2 · dbf3dbe6…diff
  • an ADR number stops being picked from a stale position: a land reads landed main and refuses a number it already holds, before it signs the subject that would name it wrong (#1080) aa99ef0a · dbf3dbe6…diff
  • a hygiene check runs at the moment that makes it true: the two silent-damage checks move into every land where --skip-tests cannot reach them, the CI net they were said to have turns out not to exist, and the ADR number is re-asked under the lock that makes the answer hold (#1082, #1105) cd3021b8 · dbf3dbe6…diff
  • the three surfaces describing the perf gate stop disagreeing about what an absent metric means, because an explained absence is reported and exits 4 exactly as an unexplained one does, and each surface now points at the one that owns a fact rather than restating it — including the exit code itself, named once in loot-perf and read from that name by both the gate binary and the land (#1403) dc3ccf75 · dbf3dbe6…diff
  • the land's shelling gates stop building their own child processes, because every command they run is now a value handed to an injectable spawner and read back as one outcome — which is how #1251's offline-degrade posture, the one gate result that lets a land proceed, finally gets a pin that needs no npm (#1467) 8a773eb9 · dbf3dbe6…diff
  • the reader seam's own doc stops telling a loot-core author that content can only be read through it, because the sentence #1464 wrote into four places and #1471 corrected in three is now enumerated in ADR 0007 as one thing that changes together, and spawn.rs likewise stops claiming every command every gate runs while GATES row 0 shells out to git beside it (#1486) b6657789 · dbf3dbe6…diff
  • loot-hygiene (#2128, map #2099 ticket 4): the land text gates move from loot-first into a crate with no dependency that builds for wasm32, re-exported as loot_first::hygiene so every gate row, checkout test and AGENTS.md path reads unchanged; a new crate rather than loot-codec because three consumers now read it, loot-first, loot-cli and loot-wasm, and the wasm one is the fact ADR 0076 §2 no-new-crate reasoning did not have. Corpus::from_entries files an in-memory tree under exactly the allowlist the directory walk applies, top-level files plus SOURCE_ROOTS filtered by TEXT_EXTENSIONS minus SKIP_DIRS and SKIP_PATHS, through one filing rule both constructors share, and a link resolves against the entry set with dot and dotdot folded, so a Worker with no directory answers what the land answers. CORPUS_CHECKS is the table a .lootpipeline check step names, keyed by the land gate names and pinned to them, holding the floor-free halves: the land refusals still refuse a vacuous walk first because a mis-rooted land must not read as clean, but a three-file repo is not mis-rooted, so a check answers about the files it was handed. loot pipeline now runs check steps in-process over one corpus walk per run, a finding is failed and exits 2, an unknown name cannot start and names the set and exits 1, and the ? deferral #2127 shipped this morning is retired the same day with the ADR 0023 amendment saying so. loot-wasm links the crate and a wasm-bindgen test runs the three checks from entries under node. Measured: the site wasm is 475667 bytes before and after, unchanged, because nothing exported calls the crate; native the three checks over a 1120-file synthetic corpus take 0.8 ms in release and 28.0 ms under wasm in node; through the release binary on this repo, roughly 1355 covered files and 20 MB by an approximate count, the three checks cost 160 ms warm against a 73 ms listing and 6.5 s on a cold page cache. Two lands worth of censuses read off their refusals: the destination allowlist row for the moved file, and no other. Five pins broken once by a named mutation, red at 0 passed 1 failed then green at 1 passed: from_entries skipping widened, link resolution made true, the table key misspelled, a finding made a pass, an unknown check made a pass; the fifth sweep needed a second pass because its first restore string matched twice and left the mutation applied, caught by the full run that followed. 66 test binaries green across loot-hygiene, loot-cli and loot-first. No wire, format or store byte moves, no migration (#2128) 858575e1 · dbf3dbe6…diff
  • an npm gate skips npm ci when it would install what node_modules already holds: after an npm ci of its own passes, the site and sdk gates write a stamp into node_modules, from the new loot_first npm_install, holding a blake3 hash of the npm ci arguments, package.json, package-lock.json, .npmrc, the hidden lockfile node_modules/.package-lock.json and the output of npm version --json, and the next pass skips the install only when those match and the rule npm itself uses to trust its hidden lockfile holds (every package and scope folder listed and no newer than it, every listed package on disk, no links), less the time of node_modules itself, which the site tools move. any doubt runs npm ci as before, with the offline classification unchanged, and every later step runs on every pass. measured driving the rows against this lane: the site gate 33.06 and 33.18 s with npm ci and 21.94 to 22.25 s skipped, the sdk gate 5.96 and 6.14 s against 5.00 to 5.10 s. running the npm gates beside cargo test is parked in the ADR 0071 amendment: faster on this desktop at CARGO_BUILD_JOBS=4 (234.9, 283.9, 232.9 and 230.8 s against 257.9, 274.2, 266.3 and 265.8 s in series), but the workspace suite walks site/src while build:wasm rewrites site/src/wasm. pinned in 5 new orchestrator tests; red under named mutations, each restored, over those 5: never skipping (0 passed and 5 failed), stamp inputs not compared (3 and 2), the npm version left out of the stamp (4 and 1), the trust rule unchecked (4 and 1), folder times unchecked (4 and 1), an unlisted folder accepted (4 and 1), and the whole npm rule with the time of node_modules (3 and 2). cargo test green, 4805 passed over 144 test result lines with 14 ignored. no deploy owed; lands use it once the primary loot-first is rebuilt (ywuxnuxp) 66b5db04 · dbf3dbe6…diff
  • 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…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
  • 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
  • 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
  • a program gate pass is recorded under .loot/git-mirror/proofs against the sealed tree it judged (the manifest addresses and tiers, the loot-first binary, the machine and tool fingerprint, the keyring read after the snapshot) and a land looks it up instead of running the gate again, loot-first prove records the pre-land passes ahead of the land, the verdict reads tests, site and sdk as proven when every run was a lookup, ADR 0106 written and ADR 0055 amended; with the key ignoring the tree, the hit pin and the proof pin went red (2 failed), with a settle that ignores a moved tree 1 of 4 proof tests failed, with a degraded outcome recorded 1 failed, with the lookup removed 1 failed, and the full suite is green at 2108 passed, 0 failed (lokxnpso) bc2b0616 · dbf3dbe6…diff
  • a settle now packs the object store and repacks the git mirror once enough loose objects pile up, and deletes nothing unreferenced; a burn of a packed address now rewrites its bucket instead of refusing, and every rewrite of a pack, upkeep, loot gc --pack and a burn, serializes on one pack.lock that is kept fresh while held and broken only under a second lock: pack_loose keeps every object present except burned ones, reading the burn log only once it holds the lock; a reader indexed before a repack re-asks the pack; the mirror gets git repack -a -d --cruft with gc.auto 0 under the harbor, stopped with its pack-objects child and its temp packs removed at the budget, because git gc would prune commits the mark map names; the pins went red as follows, a burn of a packed address refusing took 2 of 2 burn tests red (0 passed, 2 failed), a burn that does not wait for the lock went red (0 passed, 1 failed), reading the burn log before the lock went red (0 passed, 1 failed), a beat that never repeats went red (0 passed, 1 failed), packed objects left out of the keep set went red (0 passed, 1 failed), either reader fallback removed went red (0 passed, 1 failed each), the mirror without --cruft went red (0 passed, 1 failed), and the suite is green (2238 passed, 0 failed) (kvxkszkp) a0af7bda · 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
  • a land or prove whose converge took in a land whose perf point moved a counter its own point moved, or whose own gate compared nothing, now measures the merged tree once more with the harbor let go, judged against the record without its own point, and signs the change again holding that point, so the next land no longer reads a phantom move; lands where neither holds run the workload once as before, and a merged tree gated under the harbor keeps the lane point; the decision is crates/loot-perf/src/carry.rs, compiled into loot-first behind #[path] as exit.rs is; a gate test replaying the vsprqwzz scenario went red without the decision (16 passed, 1 failed: COUNTER MOVED store_file_reads 22 -> 21) and without the own-point exclusion (16 passed, 1 failed: 20 -> 22), a prove-and-land scene went red with the decision off, with the point not replaced and with the land call removed (0 passed, 1 failed each), and the decision table with a compared-nothing lane point not measured (0 passed, 1 failed); ADR 0055, 0106 and 0107, workflow.md and CONTEXT say so; the suite is green at 2439 passed, 0 failed, 6 ignored (tqwymrvm) b0d46742 · dbf3dbe6…diff
  • a land runs each test binary as cargo would have, in a home of its own, and fails when the user loot config changed under the suite: the gate builds with cargo test --no-run and runs the binaries itself, so they ran without the [env] table of .cargo/config.toml and LOOT_NO_MACHINE_KEY was unset, and a login test wrote a key and two config lines into the real ~/.config/loot during a prove; suite_env reads that table for every unit and refuses a form it cannot read, makes a scratch home per run and points HOME, USERPROFILE, XDG_CONFIG_HOME and XDG_CACHE_HOME into it with the cargo and rustup homes named as they resolve, and reads the user loot config directory before and after the units; Step gains with_env for that gate alone and ADR 0076 §5 is amended in place, with the user-gate disclosure test holding its step to no variable; the five forge tests that failed together in PR 3187 were that planted key, reproduced from a planted key at the same five lines (8 passed, 5 failed; 13 passed without it); with the variables not applied and the check off the two gate tests went red (0 passed, 2 failed); every workspace test binary run in the scratch home on macOS 2630 passed with the real config byte-identical, Windows unrun; takes effect when the primary loot-first is rebuilt (ppxkwmmw, orsqyksm) 9dc85a86 · dbf3dbe6…diff
  • a land that runs a gate holds a turn at origin, gates once under it, and a refused land leaves a lane the same command lands (ADR 0121): a queue of refs on origin, refs/loot/turn/<seq>-<expires>-<holder> behind a counter moved by one atomic push, orders the lands of every machine, so a land whose gate is slow is not overtaken while it runs; land takes its place before its first gate program and, with main ahead, runs the slow gates once over the merged tree; a land that looks every gate up reads the queue before its push and yields to a turn another holds; a tree that is landed main to a program gate, differing only in ticket files and perf points, runs no gate program, writes no perf point and takes no turn; review, prove and land refresh the lane hold from the shared keyring, pull grants in the primary themselves and go round again when a pass refuses over keys at the seam; a head that a signed version supersedes is recorded abandoned at the finalize, which ends the second live version a land refused after its converge left for the next process; a test that fails in the suite runs once more alone and a gate that refuses beside the suite once more in turn, each a sighting on the verdict and in land-timings; loot-first turn lists the queue and holds it for a deploy; the divergence test went red at two live versions and the five others red with their fix disabled (0 passed, 5 failed); cargo test -p loot-cli -p loot-first 594 and 191 passed; real processes on two primaries: the slow lane landed 101 s after it started with seven fast lands around it, where the binary before this refused it after its gate over 18 unopened paths (lzywwsou, uzunnnso, pkttwmns, slutovyy) 9d9823f3 · dbf3dbe6…diff
  • a test the pre-land gate retried alone on two lands of a machine within a week is filed by the land: each retried test goes into land-timings under retried_tests, and at its finalize the land counts each test once per PR over the last seven days and, when no open ticket names a repeat, writes one under wmputmok, labelled class-b, with each land's PR, change and panic line, into its own change as the perf point rides, so the filing takes no turn, runs no gate and starts no land, and the land still passes; the pins go red with the threshold at one land, the record dropped, the feed cut or the ticket search removed; ADR 0121 decision 6, workflow.md and CONTEXT.md say so (wposrwsl) c0917564 · 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.