connor / loot

connor/loot

Changes touching this path

  • a pull no longer rewrites files that already hold the pulled bytes, and a pull that merges heads no longer opens and writes again what its fold just wrote: the surface walk leaves a file already holding the bytes it opened untouched, so its modification time and the stat cache entry survive, and the materialize of the fold hands the paths it opened and wrote to the surface of the pull as an AlreadyOnDisk at the same change, reader and clock, which the surface skips; the pull captured uncaptured edits first, so the disk held no edit for either write to overwrite. on the new pull_object_reads instrument over verbs::sync::pull at 200 paths, a merging pull goes from 1417 to 1217 object_gets with object_disk_reads flat at 201, a fast-forward pull stays at 1005 object_gets and 200 object_disk_reads, and both go from 200 rewritten files to 1; with the byte comparison cut to a length check the same-length pulled edit stayed stale (0 passed, 1 failed), with the surface not reusing the fold it went red on the gets (0 passed, 1 failed), the gated counters do not move, and the suite is green at 2103 passed (yolryuww) e4c5cf69 · dbf3dbe6…
  • a save keeps the graph file stamp it skips on only when the file was written at least 2 s before the open read it, as the stat cache distrusts a racily clean entry, so a same-length replace in the mtime tick of the write the open read can no longer pass for that file; the replaced-graph test gains that case, a same-length copy written in place under the mtime the open read, which went red without the guard (0 passed, 1 failed), and its settled case still goes red with the stamp ignored (0 passed, 1 failed); the save-skip fixtures backdate the graph file a minute, as an open long after the save finds it, and save_skip_work at depth 16 and 64 reads 7 store files with that and 8 without; the pull surface has one door, surface_with_report_reusing over an AlreadyOnDisk, with the capture-first argument at the pull call site; pull_object_reads keeps its bytes-on-disk check and its object_gets bound and drops the rewritten-file count and the relay readiness poll; the SAVE_SKIP doc loses its emphasis markers and the Sealed content entry states the rule; the suite is green at 2110 passed; it also files yrswnpuv, the review findings on lokxnpso, and resolves the perf hunt map zqlrpqnq (rlkqmvxo) a510d832 · dbf3dbe6…diff
  • the integration tests of loot-cli, loot-core, loot-net, loot-first and the database-free half of loot-forge link as one test binary each (tests/all.rs declaring the files in place, autotests = false, and emit_snapshot, wake_proxy, oplog_record_cost and the live-database forge files kept as binaries of their own because they set environment variables, install a global allocator or share a Postgres cluster), so the integration-test binaries drop from 82 to 25 and the test executables from 107 to 50 with every test kept (the same 389 integration tests by name and 2231 passed, 6 ignored, now 2232 with the new guard), a touch of loot-core then relinks 41 binaries instead of 98 in about 6 s against about 12 s on the Mac and the gate-style run of the units takes about 18 s against 19 to 37 s under load 20 and more; the site gate type-checks through tools/typecheck.mjs, one incremental tsc -p per referenced project beside the others with its build info in node_modules/.cache/tsc keyed on file content, taking the step from 7.8 s to 1.2 s on a repeat pass, and runs build:wasm through tools/build-wasm.mjs, which skips wasm-pack while src/wasm carries a stamp of the cargo-metadata closure of loot-wasm, the lockfile, the toolchain pin and the output hash, taking it from 1.1 s to 0.14 s, so a repeat site gate runs in about 9.8 s against about 16.6 s (medians of 4 interleaved runs, a cold pass unchanged within noise); orchestrator.rs is untouched because the gate is still npm run gate; test_files_run in loot-first fails the suite for a tests/*.rs that no binary builds, red with a stray file in loot-net (0 passed, 1 failed), typecheck.test.ts pins that a cached failure, an old-timed edit and an unreadable cache never turn a failing project green, red with a failure forgiven when a cache exists (1 failed), and build-wasm.test.ts pins what refuses the skip, red with the dependency closure dropped (7 passed, 1 failed) and with the output hash dropped (7 passed, 1 failed); the suite is green at 2232 passed in cargo test and 357 passed in the site gate (pvqwkyso) 572b273c · dbf3dbe6…diff
  • every write answers --json with what it wrote, and every verb form takes a machine format or a written exemption held by a census test (ADR 0122): 78 forms without one become 13 exemptions; the refusals an agent branches on carry their own codes, two of them the forge app's to say; plan refusals name loot plan upgrade; unlock and id lock take --passphrase-file; pull --json counts the paths it left sealed; the login refusal names the keyed route; loot update refuses over a linked build and a ticket write refuses in a primary that lanes share (rkumrwrk, mmppxtww, tvonnmqo, koqxltqm, svrkqxqu, sptuokrx, lvqmsuzl, utokolzp) e7002bc6 · 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.