Changes touching this path
- Forge service skeleton: /ingest, the sync surface, and CLI forge remotes (#502)
A new `loot-forge` crate and binary, sibling to the relay and never a mutation
of it: `loot-net` is a dependency of `loot-cli`, so a storage driver in the
relay would ship inside the released CLI binary (ADR 0041:53-57). The ban runs
one way -- the forge may use the other crates; none of them may gain a driver.
Every endpoint is envelope-authenticated, where a relay authenticates only
/stow. The one declared exception is GET /info: a client reads the capability
probe before it knows how to authenticate.
POST /ingest = envelope_sign(bundle || head_declaration), one signature over
both, so a genuine bundle can never be replayed under someone else's head
claim. CAS first; nothing is written before the generation compare. A lost CAS
answers with a 409 BODY carrying the current generation and head set -- behind,
not bounced -- so the client re-carries with no extra round trip.
/stow keeps relay parity and moves no ref, and consumes no generation either,
since a client reads the generation once and then stows N batches. It DEFERS a
change whose objects have not all arrived; /ingest REFUSES one, because a
declared head whose objects are missing is a repo no pull can complete. That
asymmetry is what keeping /stow is for.
Bundles are filtered PER OBJECT by the caller's access class, closing the leak
the ticket names: bundle_impl ships a key for every ANYONE-granted object, i.e.
every Internal object. Change metadata rides the second #494 axis and gates the
whole walk -- a ChangeNode carries the full tree, so shipping one while
withholding its bytes still discloses every path, address, message and author.
Validation before any write: author signatures, and a tree whose visibility
contradicts its objects is rejected. vis_tag is derived from the SealedObject
and never trusted from the tree, which is what makes content-addressed upserts
safe.
Forge purge policy: burn iff burner == object.introduced_by, recorded at first
arrival as introducing.author else the envelope pubkey; maroon read off
grant_log, global and exact. Both are judged before any object is stored and
outside the CAS transaction.
Repos are pubkey-addressed at /k/<pubkey>/<repo>, auto-created on first push,
and may_push holds iff the signer owns the namespace. resolve_remote is
untouched -- still no default host. CORS from day one.
Storage sits behind three narrow traits with in-process reference
implementations the whole suite runs against; the Postgres DDL they mirror is
checked in at docs/sql/forge-schema.sql and its driver is #516.
CLI: /info capability detection, the live head declaration off the Liveness
view, and a refusal to push a lane -- v1 ingests the primary position only.
verify_authored_change moves to loot-codec so the forge runs the identical gate
without linking the fs-hardwired engine.
Recorded in ADR 0041, the spec and CONTEXT.md: the forge stores no content key
but a published one, because filing the ANYONE key lane would let the server
read every Internal object, and the keystone is that only Published is
server-readable. The cost is stated rather than hidden -- a fresh clone of your
own Internal content from a forge is ciphertext you cannot open until #488
lands.
Closes #502.
300e06ff ·dbf3dbe6… - Give the forge an operator channel, with one redaction rule (#522)
f9ca9f91 ·diffdbf3dbe6… - Forge storage drivers: Postgres metadata tier, S3 blob tier, and one conformance suite both must pass (#516)
f65970e6 ·diffdbf3dbe6… - loot-forge drains on SIGTERM and SIGINT instead of waiting out SIGKILL (#657)
0485a488 ·diffdbf3dbe6… - forge: the migration ledger records a statement checksum and refuses silent divergence (#720)
1f851cda ·diffdbf3dbe6… - the forge grows an operator door list, so its first public ingress refuses all but listed keys with a typed 403 (#690)
0541e431 ·diffdbf3dbe6… - a forge advertises its retention window on /info, and burn prints one honest bound per host it disclosed to (#814)
652f4023 ·diffdbf3dbe6… - a long-lived container holds no credential: the forge and the site seed their environment from a file the container env only points to - ADR 0059, the loot half of (#1034)
27df4dc9 ·diffdbf3dbe6… - the allowlist parsers get one home in loot-net, which un-forks six copies and restores the OpenSSH form loot-relayd had silently narrowed back to hex a day after #1086 widened it (#1167)
a702c5dd ·diffdbf3dbe6… - the argv door stops being per-binary and becomes one module in loot-net that every binary asks, and flag_value is deleted rather than widened - zero definitions remain workspace-wide, which turns the class is closed from a claim into a deletion. the recorded reasoning this ticket pointed at refused widening a shared reader, which is a different act: it argued a reader must not be taught a new spelling because that changes parsing everywhere at once, and its own third bullet diagnoses the hole as this binary having no gate, so it points at giving the binary the gate and leaving one reader. per-server spec tables were rejected as a second door, the thing this class exists to prevent, and a new crate was rejected because every binary already has loot-net in its graph and the module is pure std, so the odd thing about the home is its name and not its coupling. the destructive half is demonstrated against real binaries and seeded stores rather than argued: a before binary built by reverting only the readers reaps a real blob under reap-grants --older-than 30 --dir store --addr --apply, because --addr is never consulted in reap mode so nothing else in the line looks wrong, and it forges the window under --addr --older-than 1 --older-than 3650 --apply, reading one day where the operator wrote 3650 - after, the first refuses with nothing has been destroyed and the second keeps the grant. the forge enters migrate mode, the superuser DDL path, under --addr --migrate and now treats it as an address. this ticket's own headline argv is corrected rather than repeated: --dir --apply is destructive only under the s3 backend, since on fs both binaries stop at is_relay, and the fs-reachable variant is the one it did not name. loot-first's private reader is in scope and gone too, because land declares two valued flags and --allow-publish --pr 12 --pr 9 landed the PR nobody typed. an early forge pin stayed green through the revert, since the bug was never in the traversal but in what main asked, so the call site was extracted and re-proved red; and two further destructive readers are reported and not fixed, one of which takes a size operand as its scratch directory and recursively deletes under it (#1628)
089f8dda ·diffdbf3dbe6… - the door's own docs stop naming the crate it left, and the count this ticket asked to derive is deleted instead - because deriving it the way the ticket suggested would have confirmed the stale number rather than contradicting it. the ticket said loot-cli's census is spelled one way and the others another, so a grep would undercount; loot-first shares loot-cli's spelling, so grepping the others name returns exactly three, which is the wrong number already written on the line. a derived four is right today and the property is right permanently, so the sentence now says every other crate that ships a binary keeps its census in its own crate and the roll call derives the set rather than listing it. the roll call sentence is rewritten as a mechanism rather than a new pointer, since a glob pub use cannot carry a cfg(test) mod: no amount of following crate::flags or loot_net::flags reaches the roll call, and a reader who tries finds nothing with no way to tell whether it moved or never existed. a third stale path the ticket did not name is repointed too, a rustdoc link into the shim, because correcting two of three is the trap this ticket itself cites - and two more staleness sites in the door's own file go with them, a doc counting four binary crates and a fifth, and an expect message still naming the crate the door left. the new pin derives the door's crate from the single is_flag definition and holds two shapes to it, that a re-export names its target in its own header and that every backticked fully-qualified path into the module names the door's crate, with backticked the discriminator between guidance and a call through a re-export both moves deliberately left working. four reverts were each proved red, and a fifth mutation exposed the pin's own vacuity - dropping the shim detector's comment guard left it green because the doc had not spelled the shape it reads, so the shape is spelled and the control now fails. this ticket's premise that both moves left stale docs is also wrong: #1628's header was correct when written and the staleness is entirely #1682's (#1685)
fa895fab ·diffdbf3dbe6… - the shorthand whose NAME states the path axis while its SHAPE states the arity axis is DELETED, so the terse spelling is now the one that REFUSES - which was this ticket whole thesis, that the wrong declaration was cheaper to write than the right one and that is why the silent-drop class kept recurring. every site that meant it now types the open constructor out, and the only shorthand left is the one that takes nothing. option A beat option B on BOTH axes, measured rather than preferred: B would have changed the constructor signature, so EVERY open call site owed a reason string - including the path-taking and the genuinely variadic ones - and the two dozen dispatch verbs would each have written the SAME sentence, which is boilerplate that teaches nothing and is itself a hand-maintained population. so A has the smaller blast radius AND the stronger property. the blast radius is ZERO BEHAVIOURAL, because the retired constant was literally that expression: no verb declared arity, no slot kind and no refusal moved - thirty-five declaration sites, eleven imports and about twenty-five prose sites, with the workspace check clean and no new warnings. the exemption list was ALREADY down to its two legitimate names before this began, since #1569 narrowed the other twenty-one hours earlier, so nothing was added to it or taken from it, and the #545 refusal that earns those two their place is untouched by construction - pinned rather than incidental, because the mutation that hands one of them the no-arguments declaration reddens all three censuses. the rename then exposed two more counts standing beside sets that MOVE, and both are fixed rather than carried: a fixture doc claiming all FOUR verbs it exists to serve are exactly this shape, where there are FIVE production attachers and NONE of them is that shape, and a line naming the four verbs that used the retired constant. both now state the rule and count nothing. the new guard refuses BINDING the zero-slot open claim to a name, which is the single edit that would undo this, while deliberately NOT refusing a leaf that spells the claim out at its own spec - the two told apart by what PRECEDES the constructor, with both run through the predicate before its answer is read. its limits are in its own header. and the control that mattered is the second: with the comment-strip removed AND the predicate control disabled, the tree scan names the flags file itself, over the retired declaration QUOTED INSIDE THE SURVIVING CONSTANT OWN DOC - so the strip is load-bearing rather than decorative. the first and third mutations are each other discrimination, one reddening only the tree arm and the other only the binding-versus-spelling arm, and the fourth proves the floor fires at zero files rather than agreeing silently (#1675)
123fdbd4 ·diffdbf3dbe6… - the whole-word reading gets one home and a use this walk cannot follow is refused rather than skipped: #2126 landed census_text so that a .rs-text reading more than one census needs and none of them owns has one home, and the very doc saying the source_walk whole-word reader was shared rather than copied per census had a copy of it sitting in the temp-root census next door, drifted already, one asking char::is_alphanumeric and the other an ASCII byte test, so the sentence was false the day it was written. the reading moves into census_text as whole_word_matches, the offsets a word stands at as a whole identifier, with names_whole_word derived from it rather than written beside it, so the caller that wants the answer and the caller that wants the places cannot come to disagree about where a word begins, and the boundary is the Rust one and not the ASCII one, since a boundary that reads too narrowly lets a longer identifier answer as a whole word, which is a census reporting an offence that is not one. the copy the ticket found was not the only one: loot-first, loot-forge and loot-relayd each held the same closure inside the bare-flag census of its own crate, and each reads the shared file now through the same cross-package path attribute the other callers use, so one edit reddens every consumer of it. the docs stop naming callers and say instead what decides where a reading lives, which is the census_text admission rule, and the seam a reader arrives from now carries why the import reading stays in source_walk: it is keyed to that module own name and to what helpers_named can find afterwards, so it is not a flat question. that import reading also stops enumerating what it refuses, since the enumeration was already stale: a use item naming the module is the module under its own name, or names taken out of it, and everything else falls through to refuse_import, which is how use crate::source_walk as sw, outside both branches and skipped in silence, the under-count #1946 was filed on surviving the ticket that closed it, becomes a refusal without being named. the narrowing census in main.rs stops re-deciding which narrowing is in force and asks the door, since taking the first declared narrowing whose flag a shape requires and taking the narrowest part on a shape requiring two narrowing flags of different counts, latent while no verb writes that shape and now unreachable because the rule has one home, pinned where it lives. the forwarder that discards a door result is declined with the reason at sole_statement: a door too many is a site too many and the offenders are asserted empty, so it arrives red naming the call, while reading the discard would shrink the door set, which is the direction that loses a site in silence. one more of the same class was found beside the rest: code_mask said the two censuses that share this in the present tense, and it now speaks in the past about the two walks it replaced. red under mutation, counts read each time: the shared boundary widened to admit every character reddened all five consumers from the one edit (loot-cli lib 5 passed and 2 failed, loot-cli temp_root_census 1 passed and 2 failed, loot-first 0 passed and 1 failed, loot-forge 0 passed and 1 failed, loot-relayd 0 passed and 1 failed), the alias refusal put back to the silent skip (0 passed and 1 failed), the plain module import refused as well, which is the other direction (0 passed and 1 failed), and the door narrowing rule flipped from narrowest to widest (loot-core 0 passed and 1 failed, with the CLI census still green, which is the point of the move). no migration, no wire or format byte moves, and nothing outside test support and a doc comment moves, so this owes no deploy. the workspace suite is green (4049 passed over 129 binaries, 8 ignored) (#2148)
cb7f057f ·diffdbf3dbe6… - the reap of runner deposits ADR 0091 section 4 owed is built, which closes the last half of this ticket: a runner mailbox is now PER REPO (migration 0026 runner_inbox, keyed repo_id and runner_pubkey and blob_address under 0017 binding), because the question that stopped the first attempt was that grant_inbox is keyed by recipient alone while liveness is recorded per repo, so a reap for one repo could drop a key another repo jobs still need and the standing walk, deduped by its own ledger, would never deposit it again. the operator chose scoping the mailbox over a reader that crosses repos or refusing one runner key in two repos, and the third option turned out not to be enforceable where it would have had to be anyway, since runner is keyed repo_id and pubkey and repo-bound so a forge serving one repo cannot see that a key is a runner elsewhere; a global unique index could, at the cost of making its refusal an existence oracle about another tenant repo. it is a second table rather than a repo column on grant_inbox because row security is per table and grant_inbox mailbox is the caller own verified envelope pubkey, which is what closes the read-anyone-mailbox hole, while an owner filing a key for a runner they registered is a different fact through a different door. WHAT IS LIVE IS THREE ROOTS, and a change ships its whole tree so a root manifest entries ARE its objects and there is no ancestor walk: the declared heads, open proposal tips, and the versions of UNFINISHED JOBS - the third is not redundant, since a push moves the heads and a withdrawal closes a proposal while a job made for that version still stands, and a pin holds it alone. history is deliberately not a root, because any change references it is true of every superseded object forever, so a reap rooted there keeps everything and does nothing, which is the failure section 4 describes. the door is loot-forge --reap-runner-deposits --repo owner-hex/repo, which lists and destroys nothing until --apply, the shape reap-grants has, because the row is the only copy of that key the runner gets; it names its repo and reaps no other, refuses --dev, and refuses a missing or malformed --repo. the decision of what is dead is one implementation over the trait and the store write is pure, the split ingest keeps. red under mutation, counts read each time: ten mutations through the policy and the reference store each went red at 1 passed and 1 failed with the pg stamp skipping, each restored to 2 passed - the three roots removed one at a time, a terminal proposal and a finished job counted as roots, a listing that destroys, history as the root, the mailbox read across repos, a deposit that is not idempotent, and a drop that ignores which runner it is for; the history mutation was TOO WEAK on its first attempt and is recorded as such, since an empty version list emptied the live set rather than widening it and so duplicated the heads mutation, and re-done as rooting at every change the repo holds it goes red one line further down at the assertion it is for. on a throwaway Postgres 18 the two mutations only the driver SQL can carry went red at 0 passed and 1 failed after an unmutated green arm, the DELETE no longer naming the runner and the INSERT no longer idempotent, each restored. bash ci/local.sh is green against Postgres 18 (4565 passed over 142 binaries, 13 ignored) with all three new conformance cases running on the real database, and the forge suite is green after the sweep (638 passed). NOT EXERCISED AGAINST A REAL DEPOSIT: nothing writes a runner deposit until loot runner add, so every row this has run against is one a test filed, and the first run over a mailbox a push filled is owed to that ticket. migration 0026 rides the forge binary so the forge owes a deploy, and nothing is broken until then because no code path writes the table yet (#2159)
a4cabdfd ·diffdbf3dbe6… - the forge answers where a request spent its time: the new loot_forge::timing records a span per step, each ended where its step ends so the spans sum to the total, the last named answer or until_error, plus counts beside them, and a repo-scoped route whose steps report returns them as a Server-Timing header and writes the same text as one INFO line with the repo, endpoint and status, names durations and counts only. /ingest (ppwukxrx) and /stow name their handler and prepare steps, the ancestry check, publish, proposals, attestations, jobs, and on Postgres each statement family inside the transaction from store.open to store.heads_read, then commit and wake, and count the tree_entry rows written and the parent tree rows read. /fetch (zxkpzxvz) names the serve walk steps from a new Phase enum whose words the budget refusals now use, and counts each object read as a cache_hit or cache_miss with summed times, the time keeping copies took and the width, tallied per thread through the new BlobStore::get_with_source and reported on a refused walk too. CORS exposes Server-Timing and each answer carries Timing-Allow-Origin *, as the CORS layer already answers every origin. measured on a local Postgres 18 of 7.6M tree_entry rows, the ingest of one change onto a 7,240-path tree took 192 to 566 ms, 55 to 79 percent of it the 7,240 tree_entry rows written whole (106 to 447 ms), and a Tickets-shaped walk of 5,463 wants spent 77 to 81 ms outside the blob reads; against a plain-HTTP stand-in bucket at 50 ms a get the real S3 client read 2,048 objects in 6.54 s at 16 wide and 1.66 s at 64. sweep 2 fix-ups of rxxtvlvl: only the serving process opens the blob cache (Forge::serving_from_env; Forge::from_env, and so --reap-runner-deposits, reads the bucket bare) and an open removes no temp file younger than STALE_TEMP; the integrity sweep reads the bucket under the cache through blob::tier_of; the budget phase test covers every Phase by construction, not four by hand; and the MAX_CONCURRENT_GETS doc no longer calls 44 ms a floor. the Dockerfile makes /var/cache/loot-forge, owned by the forge user, for a cache volume. red under named mutations, each restored: spans measured from the start (6 passed and 1 failed over the timing tests, 0 and 2 over the two http tests), every read tallied a miss (0 and 1, and 0 and 1 over http), reads reported only when the walk answered (0 and 1), the sweep reading through the cache (0 and 1), an open removing fresh temp files (0 and 1), a refusal naming the span token (0 and 1), Server-Timing not exposed (0 and 1), no header on a refusal (0 and 1), held manifests counted as tree rows (0 and 1, against a throwaway Postgres 18). cargo test green, 4800 passed over 145 binaries with 13 ignored, and loot-forge green at 696 passed against a throwaway Postgres 18. owes a forge deploy; it also carries comments on vrxsvlsy, zkkkyqun and rxxtvlvl, the new tickets zxkpzxvz and uqooxqvx, and the resolution of zykuxznx, whose gzip change is scripts 3a21f24 (ppwukxrx)
2aacc76d ·diffdbf3dbe6… - the forge records its wide events (ADR 0101): every request under server::scoped and lane is one JSON line on standard output in the shape the site error shipper reads, named on its answer in x-loot-event, which CORS now exposes; a signed caller is named by a key reference, a BLAKE3 derivation of the signing key set where the envelope verifies and cleared per request, never the key; a 4xx is an ok event with a refused note and only a 5xx is an error, its kind the ForgeError variant off the derived Debug, its message scrubbed, its frame the endpoint; errors, slow and signed requests are kept and 5 percent of the rest, and every request is counted into an exact per-minute line; each burn delete job run that did or failed anything is a forge.job event. pinned in wide.rs, 9 tests, a_verified_caller_is_named_on_its_event_by_a_key_ref and every_answer_names_its_wide_event_and_a_page_may_read_it; red under named mutations, each restored, failed and passed: the caller not recorded (1 and 8), no event header (1 and 0), the header not exposed (1 and 0), a refusal as an error (1 and 8), quotes kept (2 and 7), the key itself as its reference (1 and 8), a signed request sampled like the rest (1 and 8), begin keeping the caller (2 and 7). owes a release and a forge deploy, and files mwvpnyss for its deploy half (kwlnqtmy)
9a3350b1 ·diffdbf3dbe6… - the forge operator can take a namespace down, the technical half of ADR 0061 section 4 that ADR 0103 decision 9 builds: loot-forge --take-down <owner> [--apply], run with the superuser url and refused as the service role by Pg::with_operator, in one transaction records the takedown in migration 0034 namespace_takedown, removes the namespace repos with every row their cascades take, evicts into evicted_object each address its trees named that no other repo tree names, deletes their published_key rows, and removes the versions and manifests no other repo holds; without --apply the same transaction rolls back. server::require_pusher refuses the namespace own keys by name after the write rule and before any byte is stored, and ensure_repo refuses again inside the write transaction. an evicted address reads as destroyed wherever a burned one does, so it is refused on any later push, served to nobody, and the burn delete job deletes its bytes and drops every grant naming it. ADR 0048 section 4 no longer holds for a forge, and ADRs 0048, 0061, 0103 and 0046 and CONTEXT.md say what it drops, what it cannot reach and the policy choices it made. red under named mutations, each restored: on memory, the request door gone or asked before the write rule, the store refusal gone, a shared address or version evicted, a listing applied, no key row deleted, manifests kept (each 1 failed and 16 passed), repos kept and an eviction owing no delete (each 3 failed and 14 passed), evicted not read as destroyed (4 failed and 13 passed); on Postgres 18, the store refusal gone, the takedown unread, a shared address or version evicted, the grant drop blind to evictions, the role check gone, a listing committed, no key row deleted (each 1 failed and 6 passed), an eviction owing no delete (3 failed and 4 passed), evicted not destroyed (4 failed and 3 passed). cargo test green, 5045 passed over 146 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the same counts and the site live suites 112 passed. owes a forge release and deploy, which applies migration 0034 (vutntmlm)
15463c8f ·diffdbf3dbe6… - loot-forge --restore-account <key> [--apply] restores one account from a replayed backup into the live forge, ADR 0103 decision 10 and ADR 0046 section 8: it puts back only the rows the live forge lacks, as the operator chose on 2026-10-02, inserting each where absent, deleting none, and updating only the ref generation of a held repo it writes into, as a push does. pg::restore::CLASSING classes every table as the account, shared or outside, the restore refuses a live forge with an unclassed table, a dump with other tables or columns, or one database named as both, and a unit test holds the classing to the tables the migrations create. tenant and repo ids come from the live forge, matched by Clerk user or by owner and name, so a repo made again since the dump takes the dump rows under its own id; a row naming an address either database reads as destroyed, a head a live head descends from or supersedes, or an account the live forge does not hold is withheld; a namespace taken down is not restored; the listing is the apply rolled back and names the restored addresses whose bytes the bucket no longer holds. the ADR 0046 and 0103 amendments, CONTEXT.md Account restore and the account_tier.rs header record it. red under named mutations, each restored: a table left unclassed (1 failed and 1 passed of the unit pins, 2 failed and 1 passed live), a burned address key put back (1 failed and 2 passed), staged rows left under dump ids (2 failed and 1 passed), superseded heads put back (1 failed and 2 passed), no generation move (1 failed and 2 passed), the listing committed (1 failed and 2 passed), a taken-down namespace restored (1 failed and 2 passed), one database accepted as both (1 failed and 2 passed), a row naming an absent account kept (1 failed and 2 passed), a dump with other columns accepted (1 failed and 2 passed). cargo test green, 5112 passed over 149 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the restore suite at 3 passed and the site live suites at 136 passed. owes a forge release and deploy and a scripts step that runs it (mpvwwvlx)
3a052b8e ·diffdbf3dbe6… - loot-forge --restore-account undoes no removal made since the backup and holds no live transaction through its run, which keeps the /terms promise (review sweep 5): each copied table in pg::restore::CLASSING says how a row of it leaves the live forge, and where a removal deletes the row, one missing under a repo or key the live forge still holds is withheld, so a collaborator removed, a stored seed withdrawn, a key name cleared, a delivery acknowledged or a head a push dropped stays gone, while one under a repo or key the live forge lost comes back with it, so a lost repo returns whole and a repo made again since takes nothing of the old one. a unit census holds each class to the delete statements the forge and the site ship. the restore stages the dump rows in temporary tables of its own session, compares them in one read-only snapshot, asks the bucket with no live transaction open, and with --apply writes in one short transaction that locks the held repos ref rows first and decides again over what the comparison left (yuvtxxrm). measured on Postgres 18 with 16,525 addresses and 169,000 tree entries at 2 ms a bucket ask, the dry run longest live transaction went from 45.1 s of 47.0 s to 0.3 s and a push wait from 40.7 s to none, and an apply held 2.2 s. the forge also tags every answer to a handle-shaped path with X-Loot-Log-Path whether or not the handle resolves. the ADR 0046 and 0103 amendments, CONTEXT.md Account restore, Handle and Account tier, the account_tier.rs header, the --restore-account usage, and the forge.ts and handle route prose say so. red under named mutations, each restored: the holder rule off (1 failed of 1), every repo read as held (1 failed of 1), the bucket asked inside the snapshot (1 failed of 1), repo_member classed as kept (1 failed and 4 passed), an unresolved handle answered untagged (1 failed and 32 passed). cargo test green, 5118 passed over 149 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the restore suite at 5 passed and the site live suites at 136 passed; site gate green at 1257 passed, every surface under its ceiling. the grace write ordering is left for its own ticket. owes a forge release and deploy and a site deploy (kkxnznxu)
e7abc9d6 ·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-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 ·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… - an operator evicts one address and can lift it on a counter-notice: loot-forge --evict and --lift-eviction (superuser, listing without --apply), migration 0046's owner-less evicted_object rows and lifted_at, destroyed_object and the delete job skip lifted rows, a lift owes the deleted bytes to the next push, a takedown over a lifted address evicts it for good; conformance on memory and Postgres 18; ADR 0103, 0046 and CONTEXT (tvukxyqu)
97f1e64b ·diffdbf3dbe6… - a handle the operator removes over a trademark or impersonation claim is revoked: loot-forge --revoke-handle <handle> [--apply], run as superuser, releases the account claim when the name is current and files the name in retired_handle with a new revoked_at (migration 0058), so no account can claim it again, and the forge handle rewrite and the forge_read_handle view the web app reads resolve a revoked name to nothing whichever table names it, so every address under it answers 404 while the account repos stay at their /k/ addresses; the identity writer can no longer insert revoked_at, and a standing revocation keeps its time so a restore can replay it; ADR 0077 decision 2 is amended so an operator act run as superuser may write the account tier; new live tests went red when handle_keys still resolved a revoked name (3 passed, 1 failed), when a revocation released the claim without retiring the name (3 passed, 1 failed) and when the view still resolved it (7 passed, 1 failed); the scripts repo revocation journal does not carry it yet, the gated counters do not move, and the suite is green (vuymqvmo)
579e4aa8 ·diffdbf3dbe6… - files the two amend edges xysopyyo left open: a non-root amend gates its capture against its parent tree rather than the version it replaces (vzuzpspr), and loot edit of a root change on a pinned position loses the pin (vlsmounz)
4d1ef5fb ·diffdbf3dbe6… - restore the 71 files 430a057a reverted to 385bcb40's bytes: a tickets-only land (vzuzpspr, vlsmounz) recorded stale copies in the Mac primary, which held the desktop's newer versions sealed with keys it had not pulled, and a loot fetch there had left the disk behind loot's view; the keys are pulled now, the lane equals 385bcb40 outside tickets/ but for that land's benchmark entry, and mmzxtyyt records the mechanism
Perf-Baseline: reset 430a057a's baseline measured the reverted code; restoring 385bcb40's brings object_gets, store_file_reads and graph_sorts back down
7806746e ·diffdbf3dbe6… - a .lootattributes that is not UTF-8, such as the UTF-16 Windows PowerShell 5.1 writes with >, is now a malformed rule naming its encoding at the disk load, the ferry ingest and the recorded-tree vet, so loot new and a ferry ingest of a self-authored commit refuse instead of signing plan.txt internal with exit 0, and a line opening with a byte-order mark, which made the first rule match nothing, is malformed too; the unreadable recorded rules refusals carry the code unreadable_attrs, which the SDK classes as a guard error and the tests assert, and ADR 0038 states the costs of passing over a signed parent rules file and an unsigned ingested parent, and its wrap is fixed; the new cases went red without the fix (0 passed, 2 failed), again with the disk load reading text (1 passed, 1 failed), with the ferry reading text (1 passed, 1 failed) and with the byte-order mark unrecorded (1 passed, 1 failed), the code assertions went red without the code (0 passed, 3 failed), the gated counters do not move, the SDK typecheck passes, and the suite is green at 2103 passed (ymmvvvxq)
9d623289 ·diffdbf3dbe6… - loot-forge --delete-account <key> [--apply] deletes an account on request as superuser: the Clerk user first, through a new ClerkUsers seam, then in one transaction its rows, plan, login tokens, device logins, storage grace, the grants its keys made and their deliveries, and the repos of its keys by the takedown walk, now shared as clear_namespaces, queueing the bytes of each address no other repo names and of unshared pipeline logs in deleted_blob for the serving delete job with no push refusal; its handles stay retired and are revoked, each key is recorded in account_deletion (migration 0059), which --restore-account refuses, a standing deletion replays without a Clerk key, and the report prints the account code of the site analytics rows in loot_metrics, which it cannot reach; grant_log, tenant and object are reclassed for the restore and the scripts journal half is owed; with the restore refusal removed, with the forge deleting before Clerk is asked, and with the walk reading shared addresses as unshared, the new live-database test went red (4 passed, 1 failed each); loot-forge passes 574 against a throwaway Postgres 18 and the suite is green at 2120 passed; it also comments the journal half on llmsmqsv (trvtowtw)
770dd76f ·diffdbf3dbe6… - the forge writer and tree reads for delta manifests, slice R2b of tlupspqp: migration 0066 rebuilds a tree from either layout in tree_at, entry_at, tree_under and bands of each read family through new gated views of tree_delta and of the base link, in an ungated manifest_tree the forge reads use, and in the published index; a repo_change trigger rewrites whole a delta whose base the arriving repo does not hold, the repo object trigger takes the upserts of a delta, a takedown deletes ops and keeps a base still named, and an index on repo_change by version keeps the family gate a probe; the forge files a new manifest as ops over the first parent manifest when the repo holds it, the base is below depth 63 and the ops are at most half the entries, behind LOOT_FORGE_MANIFEST_DELTAS, off unless on; on a Postgres 18 fixture of 7.3M tree_entry rows the anonymous head listing took 21.8 ms whole and 23.8 ms over 55 deltas, one path 0.04 and 0.25 ms, bands of 50 versions 3.6 and 12.6 ms, and the forge read of 760 trees 3.0 s and 0.34 s; red under mutation, each restored: the trigger skipping its rewrite (1 failed of 1), the family walk letting the farthest op win (1 of 1 forge, 1 of 3 site), the anonymous delta view ungated (1 of 3), the published index on whole rows only (1 of 3), the forge rebuild over an empty base so change ids stop recomputing (1 of 1), the writer dropping removes (1 of 1), a takedown keeping ops (1 of 1), the repo object set skipping upserts (1 of 1), the restore not copying ops (1 of 12) and an empty switch turning the writer on (1 of 1); cargo test green at 2381 passed, 0 failed, 6 ignored, ci/local.sh green on Postgres 18.6 with the site live suites at 93 passed, site gate 365 passed; owes a forge deploy with --migrate (tlupspqp)
4c1d2293 ·diffdbf3dbe6… - the online backfill of delta manifests, slice R2c of tlupspqp: migration 0067 adds manifest_to_delta, which stores one whole manifest as ops over its first parent manifest under its row lock by the writer rule (each repo naming it holds the base, the base below depth 63, the ops at most half the entries, a manifest some delta names as its base kept whole) and compares the rebuilt tree with the rows it replaces before deleting them, a manifest_backfill row per repo walked to its end, and a key-share lock in the repo_change trigger on each whole manifest an arriving version names, which the backfill skips; loot-forge --backfill-manifest-deltas [--batch N] [--limit-seconds S] walks each repo parents first, one transaction per batch, as the superuser; a takedown or account deletion takes the batch advisory lock, the writer key-share locks the base whose depth it reads, and the account restore puts back no row of one layout under a manifest the live forge holds in the other; on a Postgres 18 fixture of 7.22M tree_entry rows (760 versions of a 9,500-path tree) it converted 748 manifests in 20.7 s (36 a second), leaving 114,000 whole rows and 8,228 ops, while the anonymous head listing and one-path read kept their medians (3.79 and 0.59 ms against 3.77 and 0.56 ms) and every listing read during the run answered the whole tree, so the production 1,986 manifests project to under a minute on this machine; red under mutation, each restored: ops ignoring a tier change (the run refuses, 1 failed of 1), the same with the comparison off (1 of 1), a stopped run recording its repo (1 of 1), the trigger without its lock (the other owner reads no tree, 1 of 1), the writer reading its base depth unlocked (the child filed at depth 1, 1 of 1), the repo-holds-base rule off (1 of 1 takedown), the restore filter off (1 of 13) or off for ops alone (1 of 1), and ops ignoring a reveal time in the site family test (1 of 4); cargo test green at 2384 passed, 0 failed, 6 ignored, ci/local.sh green on Postgres 18.6 with the site live suites at 94 passed, site gate 365 passed; owes a forge deploy with --migrate, after which the scripts step runs the backfill (tlupspqp)
2ae5da83 ·diffdbf3dbe6… - the agent inbox reap (ADR 0111 §5): loot-forge --reap-agent-deposits --repo <owner>/<repo> lists and with --apply drops each agent deposit no declared head or open proposal's tip holds and every deposit of a retired agent, a job being no agent's root; agent_deposits and drop_agent_deposits on both stores, the restore classing agent_inbox Deleted by this reap, ADR 0111 §7's note amended; a conformance case on both stores, ci/local.sh green on Postgres 18 (pzxkowrx)
e67a72a0 ·diffdbf3dbe6… - loot-forge --audit-version-ids reports what of a forge stored history a filing receiver now refuses, before the ADR 0116 forge deploy and CLI release: as the superuser and writing nothing, it rebuilds each change of each repo as the forge serves it, delta layout included, and counts per repo the ids each rule of change_id::minted_under takes (today, the Windows fold, by name), listing each id none takes, each author key of small order, and each change signature and attestation the strict check of rsnkzxrl refuses; derives_as_minted now reads minted_under, ADR 0116 names the audit, and a pg test files a fixture of every shape, which went red when the audit counted an underived id as today (5 against 4 today, 0 underived), skipped the signature check (0 refused signatures, not 1) or skipped the attestation check (0 refused attestations, not 1); the full suite and ci/local.sh are green (mlysuzmn)
960f86d5 ·diffdbf3dbe6… - forge: loot-forge --dev --agent-rate off|<burst>/<per-second> lifts or sets the agent door's per-key bucket (loot_forge::rate) for a suite that drives one key harder than any agent; refused without --dev before any mode, store or socket, pinned through the built binary and through modes; with no knob --dev keeps 120/20, so the e2e suite and nptsyzum's tests still meet the real 429; spawnDevForge takes extra args, and the agent host's heap (3/3, 12,000 calls) and cost (6/6) suites lift it and say why; ADR 0119 §4 names the knob (nrrrpkly)
e4eb4ef8 ·diffdbf3dbe6… - forge: loot-forge --take-down and --evict take --preserve, which in the transaction of the act opens a preservation (migration 0073) holding every address the act removes, kept ones too, from the delete job and keeping its records (the takedown or eviction row, repos, accounts and keys, object rows, published keys), then copies the records and the ciphertext from the serving bucket into a preservation store of its own, LOOT_FORGE_PRESERVE_S3_* or LOOT_FORGE_PRESERVE_DIR, refused before anything changes when none is set or it is the serving bucket or credential; the copy frees the addresses, and loot-forge --preservations [--apply] lists them, finishes an interrupted copy and deletes a copy only past its deadline a year out; forge reads the hold columns and never the records; an act without --preserve is unchanged; the takedown suite pins hold, copy and deadline on memory and Postgres (hold mutated out: memory 0 passed 1 failed, Postgres 645 passed 2 failed; expiry guard mutated out: 0 passed 1 failed) and the built binary pins the refusal (check skipped: 0 passed 1 failed); takedown.md, CONTEXT.md and ADR 0103 decision 9 amended; cargo test 2584 passed and ci/local.sh green (mlznymxr)
573f2370 ·diffdbf3dbe6… - forge: a preserved address keeps its bytes against a delete that read it as owed before the hold: MetadataStore::delete_bytes_unless_held asks for the hold, deletes and records under the address lock a hold takes first (Postgres advisory lock, now on every address a takedown names; a gate in memory), and both the delete job and a push that finds an address burned or evicted after its puts go through it, so the job no longer deletes a held address it listed earlier and the push leaves held bytes to the job; --preserve refuses the serving bucket however its endpoint is spelled (scheme and host case, default port, trailing slash) and whatever credential is offered, and the serving credential; the local-directory preservation store is dropped from the operator path, kept for the suite, so the store is always a bucket under its own credential as ADR 0103 decision 9 says; the takedown suite pins a hold opened after the job listed its address and ingest pins a preserved eviction during a push, each on memory and Postgres (job check mutated out: memory and both Postgres stamps 0 passed 1 failed each; push delete mutated back: memory and Postgres 0 passed 1 failed each), and a table pins the refusals (normalisation or credential check mutated out: 0 passed 1 failed); cargo test 2591 passed and ci/local.sh green (rvsnotyq)
5dccedc4 ·diffdbf3dbe6… - a forge door is rows its operator signs and invites a key redeems (ADR 0061 §3 amended, migration 0074): the deploy list LOOT_FORGE_ALLOWED_PUBKEYS names the operator own keys, which alone admit and revoke a key and mint an invite over /door/admit, /door/revoke, /door/list, /door/invite and /door/invite/revoke, and any key presents an invite secret at /door/redeem, so admitting a key takes no environment edit and no deploy; a live key of an account is admitted with any key of that account, a revoked key returns only by an admission signed after its revocation, and each act carries its signing millisecond, so a captured request sent again changes nothing; loot door admit, revoke, list, invite and redeem drive it with porcelain and JSON, /info says door_rows, the door 403 remedy names loot door admit and loot door redeem, and a door act refusal carries no other remedy; with the account join dropped the door tests went red (2 passed, 1 failed), with a row-admitted key allowed to write rows (0 passed, 3 failed), with a stale admission taken (13 passed, 1 failed) and with the door skipped (0 passed, 3 failed); cargo test 2609 passed and ci/local.sh green against Postgres 18 on the lane before it met landed main (uyxsxlqo)
eba60608 ·diffdbf3dbe6… - a repo and a keyed account are deleted on their owner signed request, which the operator tool carries out (ADR 0103 decision 10 amended, migration 0076): loot repo delete asks the forge over /repo/delete, behind the owner door, and the forge files a repo_deletion row and deletes nothing; loot account delete asks over the key lane, a keyed account by its live key and a signed-up one signed in, as a time on its tenant row; --cancel takes either back and --status and loot account read how it stands, each with porcelain and JSON; loot-forge --delete-requested, as the superuser and dry unless --apply, lists and then removes each requested repo by the takedown walk narrowed to that repo with no refusal recorded, and each account that asked as --delete-account does, keeping every other repo, every address another repo names, the account and its keys, and a repo pushed to since its request, which settles as moved; an act names its signing millisecond and is taken only later than the one on file, so a request sent again after its cancel or its deletion deletes nothing, and a restore does not put a deleted repo back; ADR 0062 fifth clause says carrying out a deletion its owner asked for is an agent to apply from the dry listing; repo becomes a served segment; with a moved repo deleted, the whole namespace cleared and the restore rule off the live tests went red (18 passed, 1 failed, then 16 passed, 3 failed); cargo test and ci/local.sh green against Postgres 18, the site gate 413 passed and the site live suites 104 passed (kvmrozqr)
2e682fec ·diffdbf3dbe6… - a second account reaches a Free owner's repo with no browser, a key the door refuses can ask, a handle origin proposes, and the forge carries out deletions itself (migration 0078): loot repo metadata public|private sets metadata visibility by a signed request to /repo/metadata behind the owner's door, refusing to publish without --allow-publish, where nothing could set the flag before; propose --door open says who a private repo's open door serves, a proposer shut out of its history is refused history_private before anything is sent, and the repo page says a clone serves members only; loot door request files one bounded, lapsing row a key at /door/request that admits nothing, and loot door requests lists the asks for the operator to admit or --dismiss (ADR 0061 section 3 amended); /info names the namespace a handle address answers as, which repo_path_for asks, so propose, --list and --mine work from a handle origin while a push asks nothing new; a deletion request waits 24 hours from its signing, its answers name carried_out_after and carried_out_by and that the door's admission is kept, and --delete-requested and --delete-account delete the account's rows in loot_metrics (ADR 0103 decision 10 amended, with scripts PR 31's daily timer); the hosted forge page names the ask, the metadata verb and the window; red with each check off (667 passed, 1 failed; 85 passed, 2 failed; 12 passed, 1 failed), cargo test green, and ci/local.sh's Postgres 18 suites green with the site live suites 106 passed (sksvrusm, rzkpvxxk, mnutwvlo, snqtrvzo)
c7d7be2b ·diffdbf3dbe6… - an account asks the operator for a plan grant, every ask reaches the operator's channel within the hour, and an agent clears its own deletion requests alone (migration 0079): loot plan request files one bounded, lapsing row a key at /plan/request that grants nothing and reads pending, granted with its plan and end, or dismissed, loot plan requests lists the asks for the operator to grant or --dismiss, and over_plan and billing_unavailable name it where no plan is sold; the door's and the plan's asks share one store API over an AskQueue; loot-forge --operator-asks prints a Discord body for the asks newer than the last one raised, mentioning no one, which the hourly operator run in scripts PR 40 posts to the error shipper's webhook; --delete-requested --only <keys> limits a run to the requests those keys name and leaves every other as it is; ADR 0062 clauses 2 and 5 name admitting a key and granting a plan as the person's acts, and ADR 0118 decision 9 records the ask; red with each fix off (the plan ask 1 passed, 1 failed; its CLI shape 0 passed, 1 failed), cargo test green, and ci/local.sh green against Postgres 18 with both lists and the --only walk (mnttvskv, lnwlmyou, xwtqnwkz)
e06a5d44 ·diffdbf3dbe6… - a raised operator ask that stops waiting gets one follow-up in the operator's channel: loot-forge --operator-asks --raised reads the runner's raised asks on stdin and prints the notice, the follow-up (admitted, granted and which plan, dismissed, lapsed, account gone, or only that it no longer waits) and the state to keep; MetadataStore::asks_on_file reads declined asks; ADR 0062 and CONTEXT.md say so, and workflow.md names forge:hourly-now (yxvwqqko)
7de66bf6 ·diffdbf3dbe6… - a retired runner's deposits are reapable: loot-forge --reap-runner-deposits drops every deposit of a retired runner, as the agent reap does a retired agent's, and --runner <pubkey> narrows it to that one retired runner's rows and refuses a live one; scripts forge:act --ACT=reap-runner-deposits runs it (scripts PR 48), and ADR 0091 §4 and workflow.md say so (kkpsvrlu); the catch-up takes a machine a land behind to landed main by itself, so concurrent.md and second-machine-setup.md drop the hand steps (tzsryqtr); the agent test accounts' sign-in files travel in the env bundle, so test-accounts.md drops the direct channel (ntykpumt); the runner add half of kkpsvrlu is filed as wyxvsltu
68c03cdd ·diffdbf3dbe6… - loot-forge --reap-runner-deposits and --reap-agent-deposits load the mounted credentials file before they open the stores, as every other operator act does, so they run on the deployed forge: the first dry run of forge:act --ACT=reap-runner-deposits on v0.4.45-deploy.2 refused with LOOT_FORGE_DATABASE_URL is not set (kkpsvrlu)
989954cb ·diffdbf3dbe6… - The forge keeps a notice register and looks up an owner contact for a notice; the takedown runbook names a verb for every step (uxvymxos, wkvotymr, swzqnpkl)
4f143c59 ·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.