Changes touching this path
- the dirty question stops reading every file to answer one boolean, and the two clocks it depends on are not the same clock: a stat cache lands at .loot/<position>/stat-cache as a PositionOwned artifact the store treats as opaque bytes, so nothing derived from it reaches the graph, a manifest, a bundle, the wire or any peer - its version header is a local self-check whose only failure mode is read as no cache, which is the opposite of a compatibility break since an older loot does the full read and gets the same answer. An entry is trusted only when size and mtime match AND mtime is older than the walk's own stamp, so a write inside the walk's tick is always re-read and no granularity is assumed on any platform. What that missed on the first attempt is that the stamp comes from the PROCESS clock and every mtime from the FILESYSTEM clock, which on Windows are the precise and coarse system times about 15.6 ms apart - warm scans hit nothing at all, because the cache file's own mtime read as older than the stamp it carried. A one-second margin fixes it in the safe direction and is self-healing, and gross skew is caught separately by discarding a table whose file is older than the stamp it declares. loot lanes reads a foreign lane's cache and deliberately never writes one: the write would have been correct, and it was refused on a different ground, that ticket-to-lane's runbook promises this verb is read-only and agents run it against live lanes to read the claim board. So TreeScan has two named doors, read for a position walking its own tree and peek for one walking someone else's, and which a seam takes is spelled at the call site rather than inferred from the store it was handed. The cost of that refusal is named rather than hidden: with lanes warm, which is the steady state since every lane's session runs status, it is 13.6 to 16.8 percent against the 16.1 the write bought, and with every lane cold it falls to 4.5, which is not the cache at all but the seam now hashing each plaintext once where it hashed twice. status --porcelain is 24.8 percent. And the pin that #1536 asked for cannot do the job it was asked for: delete the cache and get the same answer passes on every answer assertion even when the cache is never consulted, because an inert cache answers correctly by doing all the work - what distinguishes them is counting hits and reads, whose cold zero-and-N is its own positive control, and a poisoned row that keeps size and mtime, carries a wrong digest over a genuinely clean tree, and must answer dirty. Three of this ticket's premises were also wrong: the 46 ms status baseline was measured where status never walks the tree, since with no working change it returns at is_clean, so the gap over the control was never the tree read; the byte read is a quarter of what holds these verbs up rather than the whole of it; and human status on a dirty tree cannot benefit at all, because rendering a per-path delta needs the plaintext (#1669)
96d922e8 ·dbf3dbe6… - a prose pass narrows claims that read wider than the code, and LineDelta::rendered goes crate-private. ADR 0007, CONTEXT.md and the object_and_key_at doc say the reveal gate is asked at every read through the grant key door, not at every read, since grant_sealed keeps its escrow fallback by design; the Refit enum count, the family list in CONTEXT.md and the refit.rs header, and a stale claim that every planner runs the draft check, now point at the enum and the wildcard-free minted_edges match instead of a count; role_display gets back the blank doc line rustdoc folded into the last bullet, verified in the built HTML, and a record type added to ReservedRecord replaces a third record type; the Landmark entry records the one-line rendering from #1519; the revset named door and the hunkpick PATCH constant state the exceptions a reader finds (grep writing its own refusal, restore spelling -p out under the main.rs census); the ChangeGraph insert doc stops saying the callers do not insert parents-first, names DagRepo::apply_sync for an apply_bundle DagRepo does not have, and says why the ordered ingest_shared_lineage splice stays on insert; ADR 0023 now says what #1870 wrote in the delta_shape header, that the reveal_at split is about the field and not the number, which embargoed@ can carry. nineteen assertion messages lose the run of spaces a rewrap left inside the literal. LineDelta::rendered and Rendered become pub(crate), with a compile_fail probe and a positive control: the probe was red before the narrowing (2 passed, 1 failed), and making the method pub again reddens it (3 passed, 1 failed). items 2, 8 and 14 need no fix here: the #1515 raise is real because #1516 lowered the ceiling between the two raises, #1968 dropped the width narrative, and #1860 withdrew the figures. cargo doc warnings are unchanged for loot-core, loot-codec and loot-cli. no migration, no wire or format byte moves, and no forge or relay byte moves, so this owes no deploy. the workspace suite is green (3913 passed over 123 binaries, 7 ignored) (#1848)
eb966bdb ·diffdbf3dbe6… - loot-cli production comments cut by 70% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, contracts and safety reasoning kept; comment-only, Rust token streams identical, test modules untouched (yrkykmsn)
51eb5832 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - the comment cuts that later merges took back are re-applied: in 63 production files where test-diet (ADR 0105) and the loot-core land kept main's side, a three-way merge favouring main only inside a collision puts 23,556 trimmed comment lines back; comment-only, every file token-identical to main. Comments and prose now 73,651 lines from 200,053, and the ticket is resolved (yrkykmsn)
bcfe36e3 ·diffdbf3dbe6… - a capture carries the author's unchanged copy of an embargoed path as the sealed object, compared by encrypting the disk bytes under the escrowed key and the object's nonce so nothing is decrypted or persisted, where every describe after the finalize refused and status read it as modified, and an edit before the reveal still refuses with a message saying to move the copy aside; after a burn, deleting the working copy records the deletion, a rule sealing the path at another tier records new content, and a copy left at the burned tier refuses naming both fixes, so burn's printed forward fix and loot migrate on a burned path now take; ADR 0007 and 0038 amended, CONTEXT, the burn and embargo docs and known-issues updated, two tests and the 1471 pin red-proved by eight mutations, site gate green (wxnmzluu)
f3ea70a6 ·diffdbf3dbe6… - one shared-file save module, loot_core::store::shared_file, owns the load stamp (FileSeen), the racily-clean rule the stat cache now shares (settled_cutoff, so its walk margin moves from 1 s to 2 s), whether a handle changed its copy (Shared::edit, replacing the hand-set edited flags of the grant log and deposit ledger) and the skip, merge-under-the-lock and write-only-differing-bytes steps; the save_shared_to arms call it, the identity file is skipped while its load stamp holds instead of written on every save, a held purge request is rewritten only when its bytes differ, record_attestations_kept, record_grant_cursor and accept_loss go through its update and write only changed bytes, and the loot-cli persist saves through DagRepo::save_with instead of a copy of save_to; a no-op save of a settled repo goes from 1 to 0 store_file_writes and a one-change save from 7 to 6, with the gated reading unmoved; per-kind tests at the new interface replace the DagRepo-level grant log and deposit tests, and their case of another writer saving since the load went red with the merge skipped (2 passed, 2 failed) and with the skip ignoring our edit (2 passed, 2 failed); the suite is green (2265 passed, 0 failed) (mqottxxl)
297830d6 ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - the position stat cache is outside ADR 0004 line (ADR 0086 gains a section 6, ADR 0004 and CONTEXT.md point to it): loot burn now drops the burned path rows from the stat cache of the primary and every registered lane, keeping the other rows, passing over a lane whose directory is gone and removing whole a cache it cannot rewrite, which went red with the scrub dropped, with lanes skipped, with every row dropped and with an unparseable cache kept (0 passed, 1 failed each); plaintext_equality_census exempts .loot/stat-cache by name and its fixture runs status, red without the exemption and red with the cache bytes copied into forge-view (11 passed, 2 failed each); describe and new write their own position stat cache rows under the racily clean rule, so over L lanes of 40 files captured only by describe, lane_statuses cache shape went from (0, 80) and (0, 160) at L 2 and 4 to (80, 0) and (160, 0), with object disk reads at 0 and tree walks at L before and after; the suite is green at 2269 passed, 0 failed, 6 ignored (pssunvrm)
4542ebb8 ·diffdbf3dbe6…
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.