Changes touching this path
- day 0: loot hosts loot
f4c30e75 ·dbf3dbe6… - evidence: crew minted and verified (#86)
1fada823 ·diffdbf3dbe6… - normalize working tree to LF: byte-stable co-located bridge (.gitattributes -text)
e58fdda6 ·diffdbf3dbe6… - Workspace accepts its clock; lane flag-gate goes pure so cmd_* tests never touch a real .loot (#322)
20ac82e1 ·diffdbf3dbe6… - Grant expiry: optional expires_at on GrantEntry and tag-3 wire (#20)
a01c3d53 ·diffdbf3dbe6… - Correct the Internal-tier and Manifest facts where truth lives (#497, #498) (#505)
* Correct two false facts where truth lives: Internal is sealed, the Manifest is local (#497, #498)
Both tickets are editorial: prose that was trusted instead of checked against
the engine. Every claim below was re-verified against the source.
#497 — spec §1 called Internal a "plaintext object, not sealed". False:
`loot_codec::sealed::seal` encrypts unconditionally with AES-256-GCM for every
visibility; the tier selects only zstd (`compressed = matches!(vis,
Visibility::Internal)`). There is no plaintext-object path. What separates the
tiers is where the content key travels, so repo membership *is* the Internal
boundary — a gate over bytes the server cannot read, not one bolted over
plaintext it could. Corrected in the spec tier table (+ a new paragraph),
CONTEXT.md's Visibility glossary, and ADR 0041, where the same wording had
leaked into the tier list, the Vocabulary rationale, and a rejected alternative.
#498 — CONTEXT.md's Manifest entry claimed it "travels in bundles ... so every
peer has a complete audit trail". False: `BundleBody` is `{ changes, objs, keys,
attestations }`, with no manifest lane; the Manifest is written by
`apply_sealed_grant` and persisted by `save_to`, local-only. The trail is
per-peer and partial.
The error originates in ADR 0008, whose title asserts it and whose last
consequence promised a wire section that `git log -G manifest --
bundle_codec.rs` shows was never written. Amended in place rather than rewritten
— the decision is history; the amendment records that it was not built, and that
this is why the forge's `grant_log` has no wire producer (#484 supplies one).
Also fixed the same false claim still live in `manifest.rs`'s own doc comment,
and dropped the clause's "escrow entries" half: the plaintext escrow bundle
section was deliberately removed in format v5 (ADR 0027) because it shipped
plaintext keys.
Docs + one doc comment; no behavior change. cargo check --workspace clean;
loot-core + loot-codec 357 tests pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Fold in the #494 review findings the ticket widened #497 to cover (#497)
Eleven recording-hygiene and accuracy defects a two-axis review of d20d2b2c
found in the same three files, folded into this landing per the ticket comments.
None change a decision.
Hard:
1. ADR 0041 was amended in place with no marker and no #494 citation, so the
metadata subsection read as decided at acceptance. Added the repo's
established `> **Amended <date> (#nnn):**` form; #494 is now cited in all
three files.
2. The ADR had taken on DDL (`repo.metadata_public boolean NOT NULL DEFAULT
false`) it explicitly delegates to the spec. It now states the axis; the
column and type live only in the spec.
3. `vis_tag` was undefined in-repo and collided with a same-named wasm display
helper of a different type. Now "visibility tag" in prose, as the ADR had it.
Accuracy:
4. Dropped the ADR 0038 overclaim. That gate fires on a secret-shaped name
resolving world-readable by fallthrough, per path, at a signing verb; a
derived-metadata leak has neither path nor name shape, so it could never
fire. Kept as an analogy of accident *class*, explicitly not of mechanism.
5. The flag is consulted only for anonymous readers
(`access_class <> 'anon' OR r.metadata_public`, verified against #483), so
it widens access rather than narrowing it. All three files had implied it
and the access class were coequal inputs.
6. Recorded the invariant that makes the listTree corollary safe to build
from: tree rows store no Restricted id-set, and grant_log is the sole
answer to "who". Without it a builder could render the grantee set and leak
who has access on a metadata-public repo.
7. Replaced the undefined "barrier-view predicate" ("barrier" already means
ADR 0031 operation barriers) with a definition at its one buildable home.
Judgement:
8. Thinned the spec to normative statements; the ADR keeps the rationale, so
renaming the column at build time is one edit rather than three.
9. Gave the rejected repo-level Public/Private toggle its reciprocal note —
Alternatives sections get read standalone.
10. Moved Metadata visibility below Identity in CONTEXT.md, restoring the
antecedent its 17-line insertion had severed, and back-linked it from
Visibility. Citation now uses the dominant *(decided <date>, …)* form.
Also, from #484 via the same ticket: recorded the missing-producer pattern as a
standing ADR 0041 invariant beside local-first — loot's sync assumed a trusted
peer that already holds the whole store, so a forge must ask of every fact
whether the wire carries it. Five tables have hit this already; the sixth
should be anticipated.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Git-Author: Connor Miller <53197564+Connor-Miller@users.noreply.github.com>
f8b890b5diff - the per-path custody gate stops building a heap key before it can ask its question, because the grant manifest is indexed as a map of oid to a map of grantee rather than one map under an (oid, grantee) pair, so grant_for probes both levels by borrow and the 4,000 Strings a timed visible_paths call allocated and threw away are gone, taking the visibility pair a loot diff makes over a 2000-path tree from 0.7026 ms to 0.6069 ms in both directions (#1550)
ebe1b5c0 ·diffdbf3dbe6… - a save writes the custody rows before the graph, the manifest, the keyring and the escrow and then the graph, where the graph came first and 5244a69 put the manifest between it and the keyring, so a save that failed at the manifest or the keyring after a finalize, a migrate or a maroon re-seal under a fresh key left a signed node in the graph and its key unsaved; now it leaves keys no node names and the retry writes the node, and a load, which reads the graph before the keyring, reads that pair in the reverse of the save as #778 asks. pinned: a_save_that_fails_at_the_manifest_leaves_no_node_naming_an_unsaved_key and a_save_that_fails_between_the_keyring_and_the_graph_leaves_the_keys_and_no_node, red before the change (0 passed and 2 failed) and under named mutations, each restored: the old order (0 and 2), and the graph between the keyring and the escrow (1 and 1); the rtqpwklo pins stay green. a later grant replaces a manifest row that had expired when it was granted, in Manifest::record and in the save merge, which keeps a row whole where it took the times of one row and the grantor of the other, so a row a failed save left with no key and that then expired no longer names its grantor as entitled to maroon the key a later grant filed, or hides the path that grant opened. pinned: a_later_grant_replaces_a_row_expired_by_then, a_merge_keeps_the_later_grant_over_a_row_expired_by_then_whole and a_later_grant_replaces_an_expired_row_left_with_no_key, red under named mutations, each restored: no replacement (0 and 3), a merge that ignores it (2 and 1), a merge that copies the times alone (2 and 1), and a replacement by a grant expired when made (2 and 1). a shallow push refused for a forge head it has not seen names loot fetch --deepen all beside loot pull, since a pull does not take in a head behind the cut and the deepen does, and a forge takes a declaration that holds such a head beside its descendant. pinned: a_shallow_push_against_a_forge_head_behind_its_cut_names_the_deepen, over an ancestor pair the forge took, red with the remedy dropped (2 passed and 1 failed over it and the kkpruryt and ntzsvkkv pins). that refusal walks the reach of the declaration once and hands it to the retired-head rule, where the two walked it apart. loot id rotate reports a grant whose key this repo does not hold, where it said no longer holds, and rotate_regrants, save_filed_grants and a grants test heading say what the code does. ADR 0098 is rewrapped and amended, and CONTEXT.md says so. cargo test green, 4959 passed over 145 test result lines with 15 ignored, and the perf gate dry run reads no move. owes no deploy (ylrtootl)
3f301745 ·diffdbf3dbe6… - an uppercase private or forge path no longer passes the path scrubs: the site ROUTE_SHAPE_RULES and the scripts repo nginx PATH_RULES match the /k and /private prefix and the owner key hex in any case, and only those literals are written for either case, so a remainder with capitals still keeps nothing where an i flag or a path lowercased first would have kept it; dropsMessage and isSignedInSurface ask the shape in any case and the message scrub reads a site path in any case; the edge leak checks read the same prefixes, and the scripts test reads metrics-path.ts from the loot checkout and compares it with PATH_RULES, so an edit on either side shows there. a later manifest row with no grantor does not renew a row with one, so a file grant to its own name no longer replaces an expired row from a peer, which reopened the path locally and refused the maroon of that peer. CONTEXT.md gives the renewal the condition it lacked and the new one, and its head declaration entry names loot fetch --deepen all on a shallow position as the ADR 0098 amendment says; the skipped_unheld doc says a burned object lands there too. pinned: red before the change (site 3 failed and 31 passed, scripts 3 and 85, rust 0 passed and 2 failed) and under named mutations, each restored: site prefix words lowercase only, owner hex lowercase only, an i flag over the old rules and the path lowercased before matching (3 failed and 31 passed each), dropsMessage, isSignedInSurface or the message pattern case-sensitive (1 and 33 each); scripts prefix words lowercase only (3 and 85), owner hex lowercase only in the rules (2 and 86), either leak check lowercase only (2 and 86 each), nginx case-insensitive map with an i flag (4 and 84), PATH_RULES drifting (2 and 86) and metrics-path.ts drifting (1 and 87); rust no grantor rule (2 failed and 3 passed over the pins and the ylrtootl pins) and no renewal without a grantor at all (1 and 4). site gate green at 1071 passed, scripts suite 391 passed against this lane, cargo test green, 4972 passed over 144 test result lines with 15 ignored. owes a site deploy, and an edge redeploy through the site setup script once the scripts change, left uncommitted in that repo, is committed (wxuqkosw)
d00b3f57 ·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 save skips the grant log, unread and unwritten, while no row of the handle has changed since its load decoded the file and the file still has the stamp that load read (store::FileSeen, now shared with GraphSeen), and otherwise merges the file under the handle rows with Manifest::merge_under instead of cloning the whole log first; the log holds each oid rows in a Vec sorted by grantee instead of an inner BTreeMap, encoded byte-identically (the golden pins pass, and a forced merge over the 13,961-row log of this repo rewrote nothing); measured on a clone of the primary store, the decoded log went from 27.69 to 3.60 MB of heap, an open from 49.09 to 24.99 MB, and a save from a 56.99 MB heap peak, 242,420 allocations and 7 store_file_reads to 9.78 MB, 126,048 and 6, and max RSS over three interleaved rounds went from 215-224 to 127-135 MB for describe, 224-225 to 131-133 MB for new and 104-105 to 79-80 MB for status; the new pin that a save keeps its own grants and one another handle saved after its load (ADR 0034) went red with the save ignoring its own edits (0 passed, 1 failed) and with a blind write of the handle log (0 passed, 1 failed), and the merge table went red with merge_under preferring the file row on a tie (2 passed, 1 failed); the perf gate preview says no move; the full suite is green with 2232 passed and 0 failed (oouoxont)
90c66a40 ·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…
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.