Changes touching this path
- Extract loot-codec + wasm core; de-risk the in-memory SDK boundary (#423)
Slice 1 (the tracer bullet) is a multi-session build; this lands its
riskiest integration — the Rust→WASM crypto/codec boundary — proven
end-to-end, per the #381 "verify spikes before building" mandate.
Spike result (ADR 0040): zstd-sys will not build for wasm32
(needs clang for its C), while aes-gcm/blake3/ed25519/getrandom-js do.
So:
- Extract `loot-codec`: a no-fs, wasm-buildable crate holding the byte
format, sync-bundle codec, sealed content (AES-GCM + blake3), and the
leaf types (Oid/Visibility/RepoError/ChangeNode). loot-core depends on
it and re-exports every item at its original path — a pure relocation,
proven by the unchanged, still-green workspace (767 tests pass).
- zstd is an optional loot-codec feature (default on for the native host;
off for wasm). A new zstd-free `sealed::decrypt` single-sources the
AES-GCM step so native `open` and the wasm core share decrypt code;
public content is inflated host-side in JS.
- `loot-wasm`: wasm-bindgen exports (bundle decode, decrypt, blake3
address) over a pure native-testable `core`, plus the minimal diskless
identity (generate/fromSeed/publicKey) on ed25519 directly — not
loot-identity, whose OpenSSH/passphrase machinery is native-only (#383).
- Golden-parity harness (loot-wasm/tests/parity.rs) runs identical
assertions natively and under `wasm-pack test --node`, freezing
native-computed vectors; both green.
Remaining for slice 1 (next sessions): the TS package, fetch transport +
client-side path-scoping, host-side zstd, and the live-relay behavior
suite.
Refs #423, #421. ADR 0040.
491cf780 ·dbf3dbe6… - Rename the Public visibility tier to Internal (ADR 0041 §2, #480)
6969626d ·diffdbf3dbe6… - 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 ·diffdbf3dbe6… - Stop shipping grantee nicknames on the wire (ADR 0015, #521)
55ba71eb ·diffdbf3dbe6… - bundle_codec: cap the pre-allocation, not the wire count (#614)
ddb0680b ·diffdbf3dbe6… - a change records when it was authored, so a projected commit stops reading '6 years ago' on GitHub (ADR 0043)
loot changes carried no timestamp, so the git bridge fabricated one:
BASE_EPOCH + generation, one second per ancestor depth from a 2020 epoch.
All 526 commits sat inside seven minutes of September 2020. Earlier repairs
(#626's floor, the missing-generation refusal) fixed ORDERING and never
touched the absolute date, which is why this kept coming back.
ADR 0028 inherited the no-timestamp constraint rather than choosing it. The
real reason is upstream: a version id is blake3 over authored content, and a
clock inside that hash gives two peers different ids for identical content,
destroying the dedup and convergence of ADR 0001/0004.
So authored_at rides the label seam ADR 0029 already cut for change_id --
covered by the finalize signature (no relay can restamp it) but never folded
into the version id. The wasm golden vectors prove the separation held:
FROZEN_VERSION_ID, FROZEN_OBJ_ADDR and FROZEN_SIGN are byte-identical, and
only the version marker and one presence byte moved.
Advisory, and never an ordering input: a self-reported clock is a claim, not
evidence (ADR 0025). in_order/ids_topo, buoy and path_touch.ordinal are all
untouched, the forge indexes nothing on it, and the projection floors it past
every git parent so ancestry holds whoever's clock is wrong.
Format v11: additive for readers (a v<=10 change decodes as None and an absent
timestamp adds nothing to the signed message, so every existing signature
still verifies), breaking for writers, so loot-cli and loot-forge go to 0.4.0
in lockstep. Forge migration 0004 stores it as bigint, not timestamptz --
signed data must round-trip bit-exact or pullers reject the change.
Only new work gets real dates. Every commit on main predates v11, main is
push-fast-forward-only, and backfilling would fabricate the very claim this
replaces.
Perf-Baseline: reset the change body grew one presence byte, plus eight where a timestamp is present, so bundle_bytes/store_bytes/wire_bytes step once at the v11 boundary
eaa56d99 ·diffdbf3dbe6… - the store spells a path one way: tree keys go slash-separated at every boundary, and a windows store loads nested on posix (#988)
d2889f60 ·diffdbf3dbe6… - a repo open stops materializing half a million manifest entries no verb asked for: ChangeNode.tree becomes a Manifest holding either the decoded map or a proved-decodable byte range into one shared Arc, so topology decodes eagerly because reachability needs it while a change's path manifest decodes only when something reads it - which is where the cost actually was, since framing the 37.9 MB graph without building the maps takes 6.8 ms against 507 ms to build them, and that 507 ms was the bulk of the 1050 ms every verb paid, including loot whoami whose whole job is to print 93 bytes out of id.pub. Deref carries the ~270 existing node.tree read sites unchanged and Deferred is module-private, so a deferred manifest cannot exist over bytes Manifest::walk has not already refused with the same framing the eager pass uses, which is what earns an infallible &TreeManifest return rather than a Result; and an unmaterialized manifest is pinned never to read as an empty one, the rule read_graph_required already states for an absent graph file. Verbs also declare what they read now: RepoNeed rides beside CustodyNeed through the already-pub(crate) open_at_clocked_needing, so no new public door is added and the sealing door custody_lock pins by string and call-site count is untouched, with whoami, conflicts and manifest narrowing to POSITION_ONLY, defaulting to EVERYTHING everywhere else, and a withheld graph or store aborting loudly rather than reading as empty. whoami 555 to 42 ms against a 40 ms control, conflicts 557 to 41, manifest 557 to 42, log -n 5 626 to 144, status 704 to 227, lanes 4069 to 717, peak RSS for whoami 148 to 7.1 MB, and twelve verbs byte-identical against main including 414 KB of loot log. Three of this ticket's premises were wrong and are corrected rather than worked around: the keyring it named as the second cost measures 1.1 ms and is left alone, read_graph_outline did not fit because it discards the parents reachability needs, and the object-store half it called the boolean that costs a gigabyte had already landed in #1545 - while the stat cache stays unbuilt, which is the whole of what status and lanes still spend (#1536)
b923abb1 ·diffdbf3dbe6… - a move becomes a recorded fact instead of a later guess, and the premise this ticket rested on was false: #98's object reuse is keyed by PATH, so a moved path is absent from the outgoing tree at its new key, falls through to put_sealed and gets a fresh address - the same object under a different key was not a fact waiting to be read off the tree, it had to be made true by extending the reuse across the move, and everything else follows from that. The rule is that a move is recorded only when the path's sealed object survives it, so a move whose content also changed in the same capture window shares no object, records nothing and is two rows, while a move and then an edit across two captures of one change composes and reads as one row saying the content also changed. Empty content and any ambiguity are refused for the same reason the whole design exists: zero bytes equal all zero bytes, and choosing between two vanished twins would make a signed fact depend on iteration order. On the boundary the render side compares nothing at all - resolve reads keys and never an address, a visibility or a byte, pinned by running it twice over trees that agree on every key and differ on every address at three unopenable tiers, with a positive control beside it so agreement is not evidence it answers nothing. The capture side compares once: it opens a vanished object with this identity's own keys, fail-closed so an unopenable object is never read or hashed, and pairs only against an addition at an identical visibility and publication tier, with the digest living for one call, never an address, never stored and never on the wire. What a relay newly learns is that two keys held equal ciphertext, which recording a move states in plaintext anyway since tree paths are plaintext at every tier, so it is inherent to the feature rather than the ADR 0004 oracle - written into that ADR rather than left in a message. Renames ride the label seam change_id and authored_at already use: covered by the finalize signature so a relay cannot rewrite a move, never folded into the version id so two peers reaching one tree by different routes still agree on its address, which is why every existing id and signature is unchanged and a v11 store reads with no move recorded. That was tested rather than argued, against a real store built by the shipped binary, where the old move still renders as a delete and an add in the same repo the new one renders as a rename, because inferring the old one would be the equality oracle arriving through the compatibility door. Three further things were wrong and are corrected rather than worked around: ADR 0019 says an additive change bumps the minor and has never described this project, since the minor is still zero and all five additive changes took the major; plan_moves own doc comment claimed the tier is checked before the digest, three lines above code that does the lookup first, when the property actually holds by the stronger route that nothing unopenable enters the index at all; and the empty-content refusal was written on both sides of the pairing, where each made the other unprovable and removing either left the test green - a duplicated guard is not belt and braces, it is two guards neither of which can be shown to be doing anything (#1539)
3c7e029b ·diffdbf3dbe6… - a bundle stops carrying the address it can derive from the bytes beside it, and the bump is 12 to 13 rather than the 11 to 12 the ticket names, because #1539 already took 11 to 12 on main and has never shipped - every tag through v0.4.20-deploy.2 still reads 11. Reusing 12 for a second layout was rejected on measurement rather than taste: read_version can only compare numbers, so two incompatible layouts under one major is exactly the misparse the marker exists to prevent, and pinning the constant at 12 while writing the v13 layout turns bundle-codec tests red with the decoder taking the legacy arm on bytes it wrote itself. No count is given for those reds on purpose - the experiment was run twice and answered differently the second time, which is the whole reason this repo does not write a number it has not just measured. ADR 0019's own amendment says every layout change bumps the major, and two majors between releases has precedent - v8, v9 and v10 all first shipped in v0.2.0 - so a major is not a release label. The encoder stops writing the 32-byte address and the decoder derives blake3 of nonce and ciphertext for every major; the v12-and-earlier declaration is parsed for cursor correctness and DROPPED rather than checked, which is the treatment v5 gives the v4 escrow section and v10 the v9 purge lane, and dropping is the stronger choice because a checked claim still has to decide what to do on disagreement while a discarded one cannot reach any outcome, so the compat lane cannot carry the attack either. The grant_ids lever is taken but NOT as the ticket frames it: the list really is a pure function of vis plus the world marker, and rebuilding it on decode would still be wrong, because that synthesises an authorization token from an invariant nothing enforces on a hand-built SealedObject - so it becomes a two-bit flag byte carrying exactly what the pre-v13 wire could carry, with unknown bits REFUSED rather than masked, since a silently narrowed holder list is how an object stops being published with nobody told. bundle_bytes falls 45,757 to 37,857, minus 17.27 percent, and the figure reconciles to the byte: 200 addresses at 32, plus 180 Internal objects at 8, plus 20 Restricted at 3. The ticket's own baseline of 45,753 was stale by the four bytes #1539's rename count added, and its estimate for the grant half comes in at 3.28 percent rather than 3.5 because the fixture makes every tenth file Restricted, whose holder list #521 had already reduced to a bare zero count; the address half lands at 13.99 against the ticket's 14.0. This is a safety change and not only a size one, so it is pinned on both sides: a hand-built v12 frame declaring one address over bytes that hash elsewhere must arrive at its true hash, led by a positive control because refused and impossible look identical from outside and only one is the claim, and a byte-flip sweep over a real v13 bundle - deliberately not a round trip, which passes whether or not the address is derived - asserting every decode that survives yields a key equal to the hash of the bytes read beside it. Restoring the declared address executes the attack and prints it: one bit flipped at offset 11 and the object separates from its content, ac4373d5 against ad4373d5. A golden is added for the object lane because a field REORDER passes the width test and fails only the golden, and that lane had no frozen bytes at any version. The forge's shipped-under-the-wrong-address refusal is DELETED rather than left standing, which is the riskiest edit here: decoded objs has exactly one constructor and its keys are now obj.address() by construction, so the branch is unreachable from any input, and a refusal nobody can show is doing anything would read to the next maintainer as the thing keeping mislabelled bytes out of the blob store - what actually keeps them out is one layer down and pinned there. VERDICT_CONTRACT moves with the major and no machine-output column does, which is stated in the version history so a consumer pinning contract 12 knows to move and knows the columns are identical (#1384)
Perf-Baseline: reset FORMAT_MAJOR 12 to 13 orphans every recorded point; bundle_bytes 45757 to 37857 is the intended -7900 from #1384
1c22e8ad ·diffdbf3dbe6… - packed object storage lands its READ half, and the decision that could not wait for the writer is what a pack is ALLOWED TO GROUP: membership is the address first byte, order is the address order, and the reader REFUSES both violations rather than the packer promising them. a pack adds structure over addresses and that structure sits OUTSIDE the ciphertext, so a packer grouping by grant list or visibility tier would make the pack boundary BE the set of objects a reader cannot open - an authorization-set disclosure produced by a storage layout, which no encryption below it helps. the rule is safe structurally rather than by good behaviour: addresses are blake3 over nonce and ciphertext (ADR 0004), so bucketing by addr[0] is provably uncorrelated with custody and a packer CANNOT group everything one identity can open. the stronger rule, no loose object in a packed bucket, is rejected as unimplementable, since one object arriving after a repack would make every store refused; the residual packed-or-loose bit is an arrival-order fact mtime already discloses. FORMAT_MAJOR goes 13 to 14 at the READER and not at the writer, because the number should mean written by a binary that can read packs, and deferring it to 1525 leaves a window where some binaries read packs and some do not and all report 13. what the bump buys is a named refusal instead of a silent lie: pack/ is not a 64 character hex name, so a v13 walk SKIPS it and reports every packed object MISSING, referenced by change and by path, where v14 answers UnsupportedFormat found 14 supported 13. v14 is the first major in this history that moves no wire layout at all, measured rather than argued - the two frozen parity vectors moved by their marker byte and every other frozen vector beside them is byte identical. two findings beyond the criteria. packing breaks ADR 0038 burn SILENTLY: destroy_objects_loose deletes a file, cannot reach a span in a pack, and would not fail either, the already-destroyed arm swallowing it while the caller records a tombstone over LIVE ciphertext - it now refuses, and the guard asks the DISK rather than the live index, because the index version was vacuously green with burn having removed the address before the save runs. and a packed read must re-hash where a loose read need not, since a wrong offset yields a DIFFERENT VALID object under the wrong address rather than garbage. the membership pin was vacuous on its first writing too, filtering with the same function the code bucketed with, so it asserted only that the two agreed (#1524)
eb753b9f ·diffdbf3dbe6… - loot pull-grants now keeps the forge cursor only when every grant of the answer was handled, kept as standing custody or found never to apply, where each skip branch had to count its grant to hold it, so a grant no branch counts holds the cursor; a frame of this build format whose tag this build does not know, named by Frame::newer_tag over the Tag the decode dispatches on, holds it as a newer format does, where it passed as never applying; a grant expired by less than EXPIRY_GRACE_SECS, a day, longer than the widest time zone offset, is left pending in case this clock runs fast; and a failed unseal is named on stderr as a key not sealed to this identity, as the docs say. the ferry remedy matches every DeltaClass, its split test literal is joined, it says not to seal while loot status shows a deletion, and the seal-WIP refusal of a bare loot adopt or loot ferry counts the deletions the override would sign, read from two trees and only when it refuses. red under named mutations, each restored, failed and passed: the cursor moved regardless (5 and 8), a never branch not counting (4 and 9), an unknown tag passed (1 and 12), newer_tag at any major (1 and 0), no grace (1 and 12), an expiry always held (1 and 12), the old unseal wording (1 and 12), no deletion count (1 and 6), a count on every refusal (1 and 6), the old remedy ending (4 and 3), and a DeltaClass arm dropped fails to compile. cargo test green, 4923 passed over 145 test result lines with 15 ignored. CONTEXT.md and ADR 0057 say so. owes no deploy (uuqwrkyt)
5a473dfe ·diffdbf3dbe6… - the seal-WIP refusal of a bare loot adopt or loot ferry now counts deletions as loot status classes its rows, so the source of a recorded move is not one, where it counted every path gone from the tree and sent the reader to restore a move source, which turns the move into a copy; a workbench releases its SessionCache when it unmounts, which closes it then unless a write the unload guard counts as unsettled still reaches it, and then once none does or at the Lock, where each mount of one long unlock kept its cache to the Lock; a retired key is refused by the guard each unlock runs and by the passphrase save, where 24 words for one unlocked and stored the seed; an unlock ended by a lock whose seed removal fails says both, and the record is named for removal, in localStorage and in the tab, so a silent unlock that sees the name removes it before it recalls anything, or throws. also Tag::of matches the Tag discriminants, a debug_assert stops a settled count above the answer, the wire.rs body time claim names the readers it is true of, the unknown-tag hold is documented as unbounded by choice, Response::bytes takes the body without a copy when nothing else holds it, and a read into no room is not the end of a body. red under named mutations, each restored, failed and passed: a move source counted (1 and 1), no deletion counted (2 and 0), an empty read taken as the end (1 and 11), a branch counting twice (1 and 0, on the assert), and of 41 site tests: release never closing (1 and 40), release closing what a write reaches (1 and 40), a settled write not closing it (1 and 40), the guard not telling the cache (1 and 40), a closed cache kept in the set (2 and 39), a retired key let through (3 and 38), the removal failure replacing the end (1 and 40), the recall ignoring a noted record (2 and 39), no note before the removal (2 and 39), any record removed while one is noted (1 and 40). cargo test green, 4934 passed over 145 test result lines with 15 ignored, and the site gate green at 1026 passed. CONTEXT.md and ADR 0096 say so. owes a site deploy (ylopkxsk)
771ec092 ·diffdbf3dbe6… - a first push of a history whose change nodes pass the body cap reaches an empty forge: a forge push sends its object batches, then the change delta in batches of changes alone within the batch budget, parents first, and /ingest carries the last batch beside the key lane and attestations of the whole delta (DagRepo::bundle_stow_batched and DagRepo::bundle_declaration), where the first /stow batch carried every change past have with its whole manifest and /ingest carried them again, the budget counting object ciphertext alone; a change naming an address the push cannot send ends the stowed lane, so /ingest still refuses it rather than a forge taking its child; a forge that keeps an attestation only with its change is not recorded as keeping one over a stowed change; a push with nothing to stow asks the format gate before /ingest. no forge code changes, and a relay push is unchanged. read over a proxy refusing a body past a 128 KiB cap: 61 changes, 192775 B on one body before, now 16 /stow requests and one /ingest, the largest body 15260 B. pinned: a_first_push_of_a_history_past_the_body_cap_reaches_an_empty_forge, a_first_push_interrupted_between_its_change_batches_is_finished_by_the_next, an_older_forge_is_not_recorded_as_keeping_an_attestation_over_a_stowed_change, a_forge_push_batches_its_change_lane_after_its_objects_and_its_parents and a_change_naming_an_address_the_push_cannot_send_rides_the_declaration; red under named mutations, each restored: the old shape at the forge (3 failed and 0 passed over the three sync pins), the change lane unbounded (3 and 0, and the batching pin failed), the declaration keeping the stowed changes (1 failed and 2 passed, and the batching pin failed), the change batches reversed (1 and 2, and the batching pin failed), the stowed changes cut from the key lane and attestations (1 and 2, and the batching pin failed), the older forge recorded as keeping them (1 and 2), and no cut (1 failed and 1 passed over the two engine pins). cargo test green, 4977 passed over 145 test result lines with 15 ignored, and the perf gate dry run reads no move. owes no forge deploy (kqzkruyv)
61e49854 ·diffdbf3dbe6… - a burn at the forge drops every grant_inbox row whose grant names the burned address: the burn delete job (purge::delete_burned_bytes) drops them through GrantInbox::drop_grants_for beside its blob tier delete and records the address only when both succeeded, so a failed drop stays owed and is asked again, where it deleted the blob tier copy and left the standing self-grants, whose bodies carry the object ciphertext, in Postgres and its dumps; migration 0032 generates grant_inbox.object_oid from the blob, the address its sealed-grant header names (Frame::sealed_grant_oid, inbox::named_object), indexes it, and owes again each recorded burn whose address a grant still names; a grant deposited for a burned address is dropped by the deposit, which reads the burn state after filing and owes the address again (Forge::deposit_grants); the job wide event counts the grants dropped. CONTEXT.md and ADRs 0038, 0046 and 0057 say so. pinned: a_burn_leaves_no_grant_naming_its_address_in_any_mailbox and a_drop_takes_every_grant_naming_the_address_and_no_other over memory and Postgres 18, migration_thirty_two_owes_the_drop_of_a_burn_already_recorded, migration_0032_reads_the_address_the_codec_writes and the_sealed_grant_address_is_read_off_the_header_alone; red under named mutations, each restored, over the six selected forge tests against a throwaway Postgres 18: no drop in the job (2 failed and 4 passed), a failed drop recorded as done (2 and 4), the memory drop a no-op (2 and 4), the Postgres drop a no-op (2 and 4), the column one byte early (4 and 2), no re-owe in the migration (1 and 5), no burn read after a deposit (2 and 4); the codec reader with no tag check (1 failed and 0 passed). ci/local.sh green over the forge database steps and cargo test with the live suites, 4997 passed over 145 test result lines with 15 ignored. owes a forge deploy, which applies migration 0032 (qusqlqwm)
e71742ae ·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… - 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 ·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… - a grant bundle can no longer land in the working tree: every capture refuses a file the codec decodes as a tag-1 grant, whatever its name (plaintext_grant, no override), grant refuses a file and migrate, maroon and id rotate refuse a dir that a capture would record, and their re-grant waves default to .loot/grants instead of the cwd; migrate runs the signing gates over the path it re-tiers first, so a holder list without you refuses up front unless --allow-lockout; both refusals pinned and mutation-proved, the ticket repro re-run through a loopback relay, guides/migrate, the cli and security pages, help lines, CONTEXT and ADR 0038 updated (rnknlukm)
f8a37e00 ·diffdbf3dbe6… - an open holds each change message as a range of the graph file it already keeps for deferred manifests instead of a copy, through loot_codec::Message, checked as UTF-8 once at decode and read as str on demand, and the loot log rows and their machine listing share those bytes instead of copying them; over 150 and 300 changes of 2 KiB messages the open peak went from 0.82 and 1.62 MB of heap to 0.51 and 1.00 MB, building the log rows from 0.43 and 0.85 MB to 0.12 and 0.24 MB, and the whole log from 1.60 and 3.21 MB to 0.99 and 1.98 MB; the version id recompute pin now decodes the plain container as well as the delta one and went red with the message range off by one (0 passed, 1 failed), and the decode refusal table gained a non-UTF-8 message, red with its check dropped (0 passed, 1 failed); the suite is green at 2263 passed, 0 failed, 6 ignored (kutykkry)
1370fedc ·diffdbf3dbe6… - wire delta frames, slices 1 and 2 of rtlrzpsy: ADR 0113 and loot_codec read a change whose tree count has its high bit set as ops over its first parent tree, held earlier in the body or by the receiver through Frame::decode_with and BaseManifests, and refuse it as DeltaRefused when that base is not held, when the rebuilt tree does not derive the version id, or when the body rebuilds past 64 MiB; Frame::encode_over writes one and stamps major 15 only on a body carrying a delta (ADR 0019 amended, site formats page row); the CLI ingest and relay stow take bases from the change graph, the forge /stow and /ingest only from versions the same repo holds, and the wasm decoder from the body; nothing sends or advertises deltas yet; without the id check, the base refusal, the budget, the base redaction, the delta stamp or the repo scope its test goes red (1 failed of 1 each), and cargo test (2397 passed) and ci/local.sh on Postgres 18 are green (rtlrzpsy)
54854f37 ·diffdbf3dbe6… - wire delta producers, slices 3a and 3b of rtlrzpsy: the forge says manifest_delta on /info, a CLI push to it carries a change as a delta over its first parent where the forge declared that head on /ref or the push carried it first, its change batches also cut at EXPANDED_MAX of rebuilt trees, and the forge and relay /fetch send deltas over the versions have names when the client sets a new trailing deltas byte, which the CLI sets only when it holds every one and takes every generation; Frame::encode_over writes whole a change past the rebuild budget, the forge serves a delta body parents first and never over another repo version, and an older forge or a client without the byte gets byte-identical whole frames; against a local dev forge a 3-change push went from 3.0 MB to 0.95 MB (its change lane from about 2.06 MB to about 8 KB) and a 100-change catch-up fetch from 69.1 MB to 2.6 MB; without the codec budget, the batch budget, the whole path, the relay byte, the have scope, the held set or the repo scope a test goes red (0 passed of 1 or 2 each), and cargo test (2444 passed on the tree merged with main at 10c4ebb0) and ci/local.sh on Postgres 18 are green (rtlrzpsy)
d44891c7 ·diffdbf3dbe6… - a store re-derives the version id of every change it files from outside, so a signed change seen elsewhere can no longer be filed first with forged parents and the owner push of it refused (ADR 0116): bundle_codec decode re-derives whole frames as it already did delta frames for every receiver that files what it decodes (forge /stow and /ingest, a pull or bundle apply, a relay stow) and refuses the bundle as id_mismatch; a legacy id is checked under the fold it was minted with, today or the pre-ADR-0051 Windows one with every separator a backslash, and the 84 ids of loot history minted from trees mixing both spellings are taken by name, so all 2853 changes of this history still file where 783 failed today alone; the forge edge check compares predecessors sorted, so a reordered list no longer blocks the honest push; and slice 4 of rtlrzpsy: the forge fills path_touch for a delta over one parent from its readdressed ops and reads no parent tree, taking a 100-change delta stow of this repo from 1.24 s to 0.80 s on Postgres 18 with delta storage, 5.73 s to 5.36 s without, and 0.91 s to 0.49 s in memory, with path_touch identical to the same history pushed whole; re-deriving a 100-change whole catch-up adds about 0.07 s to its 0.58 s decode; red without it: the forge squat pin and the CLI apply-and-stow pin went 0 passed 1 failed with whole frames unchecked, the legacy-shapes pin 0 passed 1 failed without the Windows fold and again without the listed ids, the squat pin and the held-edges pin 0 passed 1 failed each with predecessors compared in order, and the path_touch comparison 0 passed 1 failed with a visibility-only upsert counted and again with a merge read from its ops; cargo test is green at 2459 passed and ci/local.sh is green on Postgres 18.6 (mlysuzmn)
60d0b78f ·diffdbf3dbe6… - a /fetch past the rebuild budget comes in rounds: a forge or relay whose /info says the new fetch_rounds answers a /fetch whose deltas byte also sets the rounds bit with the changes past have, parents first, whose trees fit EXPANDED_MAX (bundle_codec::Round), as deltas, and ends the answer with a byte saying whether more is to come, and the CLI declaring its closure files each round and asks again with what it took declared until none is left, so a round boundary falls between whole changes, every delta is over a version the client holds, the ADR 0116 id check runs on each round, and a round that fails files nothing and a re-run continues; an older forge or client still exchanges one body; against a local dev forge a 100-change catch-up over this tree went from 2,822,532 to 30,780 bytes of /fetch (1.14 s to 1.18 s), and the change lane of a clone of this history from 409,626,011 bytes in one body to 16,320,721 in 8 rounds (10.5 s to 7.9 s; with objects 802 MB to 409 MB, 61.8 s to 61.2 s), 13.8 MB of it the first round from the root; red without it: the catch-up pin 0 passed 1 failed with the forge never cutting a round, with the client stopping at its last batch, with a round not parents first, with no delta over have, with rounds asked of an older forge and with an older client request cut into rounds, the interrupted pin 0 passed 1 failed with the rounds persisted once at the end, and the relay pin 0 passed 1 failed uncut; ADR 0113 and CONTEXT say how; cargo test is green at 2519 passed and ci/local.sh on Postgres 18 (rtlrzpsy)
00dd3886 ·diffdbf3dbe6… - sdk: the chunked object layout in the codec, read everywhere, writers gated off (wxuqlvku)
2c733d1b ·diffdbf3dbe6… - sdk: the chunked codec's review fixes: a linear chunk stream, the 8 MiB window in the readers, one layout home (wxuqlvku)
3fc66376 ·diffdbf3dbe6… - forge: chunked objects stored and served one at a time, /info chunked_objects, the CLI and SDK refuse hosts without it (nvmlutlq)
521558b1 ·diffdbf3dbe6… - a legacy id rides as a delta to a client that says it reads one, ADR 0116 §4: the decoder checks a delta frame under the fold its id was minted with, as it checks a whole one, and Frame::encode_over writes a legacy id as a delta only where BaseManifests::reads_legacy_deltas says so; /fetch gains a third deltas bit the CLI sets on a round asked of a forge whose /info says legacy_deltas, the forge writes such deltas over have and the body, and a relay /fetch, a push and every older client still get legacy ids whole; measured first, a clone of this history in rounds carried 13,815,231 B in its first round, 12,305,003 B of it the 608 legacy ids whole (554 Windows-fold, 54 named), and 16,430,090 B in 8 rounds; with the bit the first round is 2,121,406 B and all rounds 4,736,265 B, 605 of the 608 riding as deltas and every id re-derived by a filing receiver; the codec pin went red when a delta was checked under the fold of today alone, when the flag was ignored and when a delta id went unchecked, and the /fetch contract pin when bit 4 was refused (0 passed, 1 failed each); cargo test green at 2592 (yrlusmzm)
c783c10f ·diffdbf3dbe6… - docs say no more than the code: CONTEXT.md, the bundle_codec decode and delta_sections docs say a legacy id the codec names is taken with no tree check, delta or whole, per ADR 0116 §2; RelayInfo::legacy_deltas says whether a host writes legacy deltas on /fetch, not whether it reads them; the pg delete race test claims held iff bytes only for the interleavings it runs, since the forge marks lost conservatively; ADR 0116 keeps its consequence without the dated measurement, which the yrlusmzm change record holds; the /trust hosted-agents section, the Terms, the consent page, the privacy changes draft and the CONTEXT.md hosted agent entry name the AI client vendor beside its model provider, and /trust, the Terms and CONTEXT.md add .lootattributes to a writing agent read scope, which the consent page already shows; docs and copy only, so it owed no test; cargo test 2591 passed and the site gate green (xmnunxqq)
c82c648b ·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.