connor / loot

connor/loot

Changes touching this path

  • The harbor: an on-demand lock serializes landing to git-main (#229, closes #195) 8adf34a2 · dbf3dbe6…
  • Fix pr-map ledger lost-update: serialize writes under pr-map.lock (#336) review and land both did read -> mutate -> whole-file rewrite of .loot/git-mirror/pr-map with no lock, and land's read happens minutes before its write (tests, ferry, push) - a land clobbered all three rows sibling reviews recorded mid-flight (live, 2026-07-18). Every ledger write now funnels through one door, update_pr_map: take git-mirror/pr-map.lock, re-read fresh, apply only this operation's own row add/remove, replace atomically. Early reads in review/land are lookups only, never written back. The ledger lock is deliberately separate from the harbor lock: reviews must not queue behind a land's git-main section, and land's ledger close-out runs after harbor release anyway. The write is store::atomic_write like every replaced git-mirror spine file (#307), and readers (orchestrator + loot lanes) use store::read_replaced so the Windows rename-replace window (#293 tail) cannot read as an empty ledger. HarborLock::acquire_contending carries a caller-supplied contended message so a wedged ledger never claims to be a wedged harbor. ADR 0034 amended; concurrent.md ownership note refined. 11addd8f · dbf3dbe6…diff
  • the harbor lock measures silence, not duration: a long-running holder beats a heartbeat, so a land may hold it for minutes and a crashed one is reclaimed in seconds (#1013) b9376a30 · dbf3dbe6…diff
  • three tests that refused lands under load stop reading the wall clock for what they pin, with no production timeout or window changed: the relay contract reap rule brackets its deposit between a_second_both_clocks_agree_on and the clock after it and reads the idle number as a range off that bracket, where a clock read after the deposit alone and a 5 s SLOP took every second a slow deposit spent and read 7776006; the refusal_statuses status helper, and its copy ask in the loot-net lib tests, wait 600 s for an answer in place of the 30 s reqwest blocking default that timed out a /grants/peek; and the harbor heartbeat test dates its held lock an hour back and contends at a 120 s horizon once a beat has landed, where it slept three 300 ms horizons and needed a beat inside 375 ms. each sighting reproduced on the unfixed test by an injected stall and passed with the fix under the same stall: 6 s after the blob write read 7776006 (1 failed), 31 s in the store timed out the peek (1 failed), 1 s in the beat broke the live holder (1 failed and 9 passed). red under named mutations, each restored: the anchor read 2 s early, inside the old slop (1 failed); the peek mapping a store failure to 400 (1 failed and 2 passed); the beat opening read-only (1 failed and 9 passed); the beat born stopped (1 failed and 9 passed); the relay read gate admitting every read (1 failed). eight copies each of the three suites at once beside a loot-core run: unfixed, the reap rule failed in 5 of 8 copies at 7776006 and 7776007; fixed, every copy passed in two runs, 304, 26 and 3 a copy; cargo test green, 5017 passed over 145 test result lines with 15 ignored (swvnulnx) 25ca657f · 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
  • a land pushes main and prints its verdict at once, and the PR collapse, the forge sync and the seed refresh run after it in a loot-first settle process that the harbor lock is handed to: the land offers the lock in its file, the process claims it with a file only one party can create and beats it, the lane is marked landed last, the verdict reads pending for status, relay, branch, folded and pusher until loot-first settle --pr N --wait prints them, --settle-inline keeps the synchronous land, the PR poll asks before it sleeps, and a refused or failed push of main no longer closes the PR (git stderr tells a non-fast-forward from a network failure, both leave the PR open with a re-land remedy); with the handover removing the file, the offer not marking the beat, the claim not exclusive, the sync after the lane mark and the harbor released before the sync, the pinning tests went red (2 failed 2 passed, 1 failed 3 passed, 1 failed 3 passed, 1 failed 0 passed, 1 failed 0 passed) and the suite is green at 2117 passed (xpvlupvn) f550e310 · dbf3dbe6…diff
  • a sealed land publishes only the point the pass judged, a failed PR collapse no longer ends the settle before the sync, loot-first settle --retry runs a settle that died from its handoff, passes looked up are carried across the finalize, the seed refreshes only after a cargo gate ran, a claimed handover is never settled inline, an embargo reveal and not the session label changes the proof key, the gates run without LOOT_SESSION, and the review comments, ADRs 0036 0053 0106 and CONTEXT entries lose emphasis, history and hand-kept lists; with the merged prove pass recording a fresh point the behind-main land test went red (2 failed, 138 passed) and with the point check relaxed the held-point pin went red (1 failed, 139 passed), with a failed collapse ending the settle 1 failed, with a claimed handover resumed 1 failed, with the session in the key 1 failed, with the reveal unkeyed 1 failed, and the suite is green at 2152 passed (kmnkwmuv) fface428 · dbf3dbe6…diff
  • a land reads an offered harbor lock it finds empty as taken over, as its comment always said: the adopter beat truncates before it writes, so a read between the two read as not taken and the handover test failed one merged prove under load (prove of #2854, merged tree); the new pin went red with the old read (4 passed, 1 failed) (kmnkwmuv) afc288a1 · dbf3dbe6…diff
  • the settle process adopts the harbor before it opens the workspace (the land now names the lock file with --lock), so the handover that cost 0.19 s on every proven land is the 0.004 s from spawn to adoption measured against a real lock, with the open that follows no longer on the land path; a land of a change finalized before it asks the forge for its heads on a thread beside its reads (forge_fold::HeadsAsk, the transfer floor a test sets on its thread carried over by loot_net::endpoint::Floor) and the take-in under the harbor uses the answer when it is recent and asks again when it failed or went stale, which took reads plus take-in from 0.40 s to 0.21 s over a real lane; the proven land reads were profiled and the cost is the disk check against the sealed change, a tree walk plus opening every sealed path with software AES, so aarch64-apple-darwin builds now turn on the aes and polyval hardware paths (that check 0.30 s to 0.22 s on a clean 9,000-path lane) while a cold stat cache adds 0.16 s and what made 1.36 s once could not be told; ADR 0107 and 0036 and workflow.md updated; red without it: the new freshness pin went 0 passed 1 failed with the staleness bound dropped; the suite is green at 2192 passed 0 failed (nvtqnmvs) 5c97d0a4 · dbf3dbe6…diff
  • 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
  • one lease lock in loot-core, loot_core::lease, now takes, beats and breaks the store, op-log and pack locks, the harbor lock with the pr-map ledger and settle claim it guards, and the seek busy marker claim, with the stale horizon and the clock as inputs, a wall clock and a test clock; the harbor no longer breaks a silent lock by sampling, sleeping and removing it but under the kernel breaker lock, keeping its stale/4 watch, and the lock names, contents and take are unchanged, so an old and a new binary still exclude each other, checked by running the v0.4.34 lock code and the lane lock code as separate processes on one lock with no overlap in mixed live runs, 40 crashed-lock races per store lock kind, 10 harbor races, 40 s beaten holds and a handover each way; the many-breakers stress test is now a deterministic interleaving on the test clock that runs a second breaker whole at each pause point, red 3 of 3 runs with the breaker dropped (0 passed, 1 failed) and 3 of 3 with no second judgment under it (0 passed, 1 failed); ticket.rs holds no lock, its create-new write only refuses to overwrite; the suite is green (2260 passed, 0 failed) (wttrstzz) d2ad70b6 · dbf3dbe6…diff
  • the store, op-log and pack locks now watch a lock found stale for a further quarter of the horizon before breaking it, as the harbor does, so a waiter on a Mac that slept past the horizon no longer breaks a live holder mid-rewrite, and a lease breaks a lock without its breaker only where the kernel answers that locking is unsupported (Unsupported, ENOLCK, ENOTSUP, EOPNOTSUPP), waiting out a breaker error that passes (EINTR, EMFILE, ENFILE, EAGAIN); seek keeps the breaker when it clears a new cache position and judges a busy marker by the lease clock as its claim does, a crashed short proof salt is judged again under a kernel lock before it is removed, and lane new removes what it wrote on any failure before the entry is registered; a replaced shared file is written only when its handle changed it or never read it, a file written during a capture refuses with the code changed_while_recorded, the visible_object gate is one function the status read calls too, and LOOT_NET_TIMING lines drop any user:token from the host; ADR 0109, 0107 and 0076, CONTEXT and lease.rs say so, and some comment drift is cut; red before the fix: a holder beating inside the confirm window broken, a transient breaker error breaking the lock and a stale identity handle writing over a newer name (0 passed, 3 failed), and a timing line naming alice:hunter2 (0 passed, 1 failed); mutation proofs: the confirm window dropped with every breaker error read as unsupported (4 passed, 2 failed), no error read as unsupported (5 passed, 1 failed), the errno check dropped (0 passed, 1 failed); any other breaker error refuses with the code lock_breaker_unusable, naming the breaker file and its remedy, at once when permission is denied (EACCES, EPERM) and else once it has lasted the horizon, and never breaks the lock without the breaker, so a store lock taken with no deadline no longer waits forever on a breaker another user owns: lock_shared, lock_ops and the repack wait now return that refusal, pinned by refused rows in the injected-error table, which went red with a denied permission waited out for the horizon and with an unusable breaker broken through (4 passed, 1 failed each); loot-core is green at 364 passed, 0 failed, 1 ignored, and the suite at 2264 passed, 0 failed, 6 ignored (wttrstzz) 5f906127 · 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.