connor / loot

connor/loot

Changes touching this path

  • Build loot burn: destroy + tombstone, no resurrection (#344) 0d1cc5af · dbf3dbe6…
  • Authenticate the purge lane: a purge is a signed request (#503) A wire purge carried only an oid and yielded an unauthored tombstone, and stow honored it before storing objects -- so any authenticated pusher could destroy any oid across every tenant, needing no key, only the address. ADR 0038 already called a purge event a request asking cooperating relays and peers to destroy their copy. Cooperating meant nothing: loot honored anyone. The signature now says who is asking; a per-receiver policy decides whether to honor. Peers honor registered senders and quarantine strangers; relays honor their push allowlist. Local burn is untouched and needs no key -- only propagation requires a signature, so a keyless repo burns locally and refuses to propagate, explicitly. No global entitlement predicate exists: ChangeNode.tree is a full manifest and loot duplicate copies a tree address-for-address, so authored-a-change- referencing-this-oid is satisfiable by any cloner. Both withdrawn rules have regression tests. Format 9 to 10. A v10 reader parses a legacy purge lane and drops it, so no unsigned request is honored while the rest of a v9 bundle still decodes; an older client hard-fails on v10. Destruction is structurally unreachable without verification: HonoredBurn has a private field and authorize_burn is its only constructor. Both halves are signed, with domain-separated schemes -- without tags a maroon signature re-encodes byte-for-byte as a burn tombstone at path length 31. Maroon entitlement is an exact Manifest grantor join, and a grant only records a grantor when it actually installed a key, so a crafted grant cannot plant one for content you already hold. Closes #503. 913c5cc6 · dbf3dbe6…diff
  • burn::Burn: one home for the burn/purge concept (#662) 8e7834a7 · 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-core, loot-codec, loot-wasm, loot-hygiene, loot-identity, loot-revset, loot-ticket and loot-count production comments cut by 72% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, contracts, formats and safety reasoning kept; comment-only, Rust token streams identical, test modules untouched (yrkykmsn) c1305a2b · 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
  • review sweep 8 fix-ups on the perf afk-loop lands: the ferry refuses a git commit it would ingest only when it writes back the bytes of a burned object, matched by git blob id against the blobs that mirror commits marked to versions holding the burned object wrote at its path, so a path burned and re-added through loot no longer stops every ferry and land once a trailerless git edit touches it, a burned object no mirror commit wrote has no blob to refuse, and every matched blob carries the tier of the version it came from, so no tierless match refuses at any tier; where a version holding a burned object is marked at a commit the mirror no longer holds, the ferry fails closed for that path, refusing any write to it at the recorded tier or a wider one and naming the narrower re-seal, while a version with no mark reads as never projected, as a dropped mark does too; a Restricted re-seal naming a reader the burned set lacked counts as wider and is refused, where a subset is admitted; the forge refuses a verdict on an answered job unless it repeats the outcome, log and detail on file, so a lapsed runner process re-claimed under its key can no longer overwrite the answer beside a signed pass, and the route answers 403; burned_seals_at folds into objects_at_path, which now carries the tier of each site; the CONTEXT burn entry is cut to a definition, ADR 0038 section 4 states the blob match and the fail-closed fallback, the burn text and the burn-secret skill name the narrower re-seal, the migration 0060 header loses its ticket id and the job_of claimed_at comment its history, and the RunnerFailed doc says 408 and 429 are refused and a 2xx that does not decode is unsettled; red without it: a spawned web edit of a re-added burned path went 0 passed 1 failed against the landed code, the pruned-commit pin 0 passed 1 failed before the fallback, with the unknown path left unrecorded, and with the fallback ignoring the tier, the restricted reader pin 0 passed 1 failed with the widening arm dropped, an empty burned blob set turned both blob unit pins red (3 passed 2 failed) and the spawned pin red (0 passed 1 failed), and the verdict conformance case went 0 passed 2 failed on memory and Postgres with the overwrite restored and again with the detail left out of the compare; loot-forge passes 595 against a throwaway Postgres 18 and the suite is green at 2181 passed (wtwputsu) 1f9fa06e · dbf3dbe6…diff
  • verify and the path history walkers now read a delta graph without decoding every manifest: path_in_history, the custody verbs behind it (embargo-status), loot log --path, loot blame and the squash and refuse_replaced_versions walks ask a PathReader that reads a delta own ops and takes its first parent answer where they do not name the path, and burn scans use Manifest::entry; verify reads the graph undecoded, takes its absent set through the address union, and only when an object is missing decodes one manifest at a time, applying a delta over the map of the node read just before; on a copy of the primary graph (2.5k nodes) loot embargo-status of a deleted path went from 3.2 s and 990 MB peak RSS to 0.04 s and 70 MB, log --path AGENTS.md from 3.2 s and 997 MB to 0.04 s and 77 MB, blame from 2.6 s and 800 MB to 0.04 s and 75 MB, verify from 1.56 GB to 43 MB peak RSS (wall is the object scan, user time 1.0 s to 0.35 s) and verify of a store missing one object from 4.5 s and 1.56 GB to 2.9 s and 44 MB, every output byte-identical to the previous build; the path_history perf half at depth 2000 went from 166 ms to 14 ms; object_gets is untouched since no walker opens an object; red without it: the new equality pin against the eager maps (every node and path, parents or children first, with and without the first parent held, plus path_in_history) went 0 passed 1 failed with a removal read as the first parent answer, again with the visibility of an upsert dropped, and again with a merge answer recorded as absent; ADR 0108 records the path read; the suite is green at 2220 passed 0 failed (puvysunk) 50ef3c42 · dbf3dbe6…diff
  • review fixes on the delta graph, the prove and the path walkers (d105116b zkqkzvzs, 256f026d vxksuxys, 306512df puvysunk): a graph rewrite now keeps the shared store lock fresh from a beat thread through StoreLock::keep_fresh, so a waiter no longer breaks the lock under a live migration after 30 s and drops a finalized node, pinned by a holder past the horizon with a beat whose waiter must not take the lock, which went red with the beat aging the lock (0 passed, 1 failed) and is green; a prove behind main now runs the quick gates, lockfile and user gates among them, over the lane tree before it measures or signs, so a stale Cargo.lock refuses early instead of as a perf build failure, pinned by a new prove test that went red with the old gate set (2 failed in the prove tests) and the merged-tree remedies now say the lane tree was not gated first and that the converge moved nothing when nothing merged, through a LaneTree flag on merged_refusal; burned_entries and objects_at_path read each path through one PathReader instead of a Manifest::entry per node; ADR 0106 section 3 names the carried perf pass, the ADR 0106 and workflow prove text names the quick gates, workflow.md and ADR 0108 section 7 reflow, and ADR 0108 states that the rewrite lock is kept fresh; the full suite is green with 2225 passed and 0 failed (zkqkzvzs) 56db9a80 · 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.