Changes touching this path
- Forge storage drivers: Postgres metadata tier, S3 blob tier, and one conformance suite both must pass (#516)
f65970e6 ·dbf3dbe6… - loot-forge: the anonymous read surface is 11 barrier views and a forge_read role confined to them (#610)
bb193149 ·diffdbf3dbe6… - a forge storage error carries the server's own words, so a failed migration stops reporting 'db error' (#776)
pg::storage formatted a postgres::Error with Display, which looks like it
preserves the cause but is the literal string "db error" -- the message,
SQLSTATE, detail and constraint all hang off as_db_error() and were dropped.
connect_failed and migrate.rs's connect error had the same shape.
That is worse than cosmetic. ForgeError::Storage is the ONLY ERROR-level
variant, so the class the forge logs loudest carried nothing actionable; and
--migrate funnels through it, so a failed migration reported 'storage: db
error' with an empty ledger -- indistinguishable from the migration you had
just written being wrong.
Found applying ADR 0043's migration 0004 against a cluster that had defaulted
to WIN1252: the real message named the offending U+26A0 byte sequence and the
encoding, and was visible only in the postgres log on the box. It pointed the
investigation at the new migration instead of at the cluster.
pg::describe now unwraps as_db_error() into message/detail/hint/constraint plus
SQLSTATE, and walks the source chain for non-DbError failures where Display is
equally terse. All three sites route through it.
It deliberately omits the statement and bound parameters: parameters carry
tenant content and this string reaches logs. The server's message plus SQLSTATE
names the fault without naming the data.
before: cannot reach the metadata tier to migrate: db error
after: cannot reach the metadata tier to migrate:
database "nonexistent_db" does not exist [SQLSTATE 3D000]
The regression test provokes a REAL server error rather than constructing one,
because the bug was that the detail lives where Display does not look -- a
hand-built ForgeError::Storage would have passed throughout this file's
history. Verified to fail against the old one-liner.
9d4f91a6 ·diffdbf3dbe6… - the forge's metadata pool caps every connection it opens, so a burst queues for one instead of being refused by Postgres (#611)
f2d8ee80 ·diffdbf3dbe6… - the metadata tier speaks TLS when the URL asks for it, and refuses rather than falling back to plaintext (#689)
adf57547 ·diffdbf3dbe6… - an embargo past the end of the storable clock stops reading back as due-now on Postgres, because reveal_at is admitted against one stated bound at the wire and in every backend instead of cast into a bigint that files it negative, and the agreement harness gains the row it could not carry until that decision was made (#1449)
13fd52b5 ·diffdbf3dbe6… - RLS arrives on the trigger #702 named rather than on a schedule, because #1725 made it fire the same night: forge_member_writer holds SELECT, INSERT and DELETE on repo_member and SELECT on account_key and repo, which are base tables and not views, and its owner-scoping lived entirely in three SQL statements the site writes. It also held a bare unpredicated SELECT on repo, so it could enumerate every namespace on the forge including the metadata-private ones. Migration 0014 enables RLS on eight tables - the schema header's own repo-scoped group plus proposal, which 0011 added to that group after this ticket was written - and the verdict on the forge role is that it is UNCONSTRAINED, said out loud rather than decorated: all eight of its policies are USING (true) WITH CHECK (true), named forge_ingest_is_unconstrained so the catalogue itself prints the admission, because it writes every tenant from one process with no request-scoped identity and a predicate would be either inert or an outage. What ENABLE does buy is exactly this ticket's condition 2, the accident it was deferred against: a role no policy names now reads zero rows, so an ALTER DEFAULT PRIVILEGES that hands a reader every future table is answered by the tables themselves. The per-transaction ingest binding that would make the forge role genuinely constrainable is filed as #1732. FORCE ROW LEVEL SECURITY was proved rather than assumed, and is deliberately NOT set: on a real cluster a postgres-owned table with RLS enabled AND forced and zero policies still reads 2 of 2 as postgres, where a NOBYPASSRLS role reads 1 of 2 at the same moment, and a non-superuser-owned table reads 2 without FORCE and 0 with it - so the mechanism works, it is inert against a superuser owner, and setting it would be precisely the decorative control this ticket forbids. The red proofs are the output that matters and one of them corrected the method: a policy must be proved by REPLACING its predicate with true, never by dropping the policy, because enabled-with-no-policy is deny-all and returns zero, which proves nothing about the predicate - the first draft did exactly that and it is recorded so the next reader does not repeat it. With the predicate widened instead, the cross-owner INSERT lands and owner B's roster gains a collaborator its owner never named. One thing only a real run could find: membership.pg.test.ts's foreign-key case went red because the policy now stands in FRONT of the constraint, so an unscoped statement never reaches the foreign key the test is about, and left alone it would have quietly become an RLS test named for the wrong mechanism - so it is fixed and the RLS half split into its own case. The site half ships in the same change because it must: membership/db.ts gains withOwner, owner/db.ts's shape minus READ ONLY, and without it 0014 empties the membership surface (#702)
c562196e ·diffdbf3dbe6… - the forge role is bound to one repo per transaction: migration 0017 replaces the permissive forge_ingest_is_unconstrained policies with forge_is_bound_to_one_repo, keyed on loot.repo_owner and loot.repo_name, which Pg::with_repo sets before any other statement, so an unbound statement reads no row of those tables and has every write to them refused. every MetadataStore method that reaches a row-secured table now runs in with_repo, held in source by a census test and in behaviour by the conformance suite run as forge, and the ref CAS is still the first statement that locks ref. tests/rls.rs proves the binding refuses cross-repo reads and writes and goes red when any one table predicate is replaced with true, and the recorded-decision test that pinned the unconstrained role is removed. pg::tests now starts its sessions as forge. ADR 0078 decision 3 is amended with the census, the deploy order and what the binding does not constrain, and CONTEXT.md, the schema header, ADR 0077 and the evidence doc follow (#1732)
af1c95ee ·diffdbf3dbe6… - the forge live-database suites now run in CI: test-main.yml stands up a postgres:18 service, provisions it the way setup-forge.js does including its default privileges, migrates it with the commit own loot-forge --migrate, sets every LOOT_FORGE_TEST database url the Rust and site suites read, and runs cargo test and then the site pg tests against it. LOOT_FORGE_TEST_REQUIRE_DATABASE turns a database test skip into a failure through pg::live_opt_in and the site skippingLive helper, and with it set and no url 91 Rust tests and all six site pg files fail, while two half-suites that used to skip silently now say so. The default-privilege tripwires run in CI by decision, and fail on a cluster without provisioning. A new migration that neutralises the roster policy passed the bare suite and failed rls.rs and membership.pg.test.ts against the cluster. It is a canary on landed main and not a pre-land gate, and the prose that said no workflow sets these urls now says that instead (#1735)
c0931f78 ·diffdbf3dbe6… - migration 0017 and ADR 0078 now state the deploy window setup-forge.js leaves by migrating before it swaps the container: until the new binary is up the old one reads empty repos and has pushes refused, nothing is corrupted, and the order is kept because migrating first is what the deploy script relies on for every release (#573); the checksum pin stays green and went red on a one-token statement edit, and 0017 says statements rather than bytes. CONTEXT.md and ADR 0078 stop saying no CI runs the live suites, the rls.rs header names the key the workflow sets and says the cluster tests are the ones that return early, and the 2026-09-08 evidence entry gets a dated follow-up rather than a rewrite. binding_census now walks every file under src/pg instead of a hand-kept pair, reads fn items of any visibility, follows SQL held in a module-level const and drops cfg(test) items and files, and Pg::with_conn, with_txn and with_repo are private to pg so the compiler keeps other modules from issuing statements through them. a planted pub(crate) method in a new pg/planted.rs reading such a const went red under the new census (1 passed, 1 failed) and stayed green under the old one, and removing each widened shape turned the census red. the source_walk message on flags.rs drops its stale six-lines count, and a new assertion holds that flags.rs calls into the module on more lines than it has consumers, which went red when that premise was broken. the table counts in CONTEXT.md and pg/mod.rs point at the constants that hold those sets rather than restating a number, pg/mod.rs points at the path include instead of listing its includers, the Admitted doc says within and within_leaf read through the leaf spec they are handed, the test-main.yml provisioning comment names the grant repair it drops as a no-op on a fresh cluster, and the rewrap leftovers are fixed. the bare workspace suite is green, and the loot-forge suite is green against a throwaway cluster with the CI env block (#1953)
f2cbbb4c ·diffdbf3dbe6… - the forge test harnesses no longer race each other migrating a scratch database: a migration that adds one of the narrow roles creates it inside a check-then-act DO block and then states the attributes with ALTER ROLE, which writes a pg_authid row no database owns, so two harness threads each migrating their own scratch database write that row at once and postgres answers one of them tuple concurrently updated, the flake #1744 saw once in CI as migration 0003 failing on a fresh database. it reproduces three ways against a throwaway cluster: six concurrent loot-forge --migrate processes over six fresh databases failed 4 of 18 with that error, each leaving a ledger stopped at version 2 with the server log naming migration 0003; the statement alone, looped from sessions in separate databases, failed 2 of 4 where 18 single statements collided 0 times; and the two migrating pg::tests cases run as a pair went red in 5 of 8 runs. the new pg::migration_serial takes a session-level pg_advisory_lock on the admin url database and gives it back when the returned value drops, so the disconnect is the unlock and a test that panicked holding it releases it too. it is a lock on the cluster rather than the MIGRATING mutex the harnesses under tests/ each carried, because the row belongs to the cluster and the lib tests and each tests/*.rs are their own binary; every harness application of a migration now holds it, namely PrefixDb::new, the new apply_migration that apply and the new reapply share, the member read gate restore, and the rls case that makes a role bypass row security, where a second binary migrating during that window would have had migration 0014 refuse it. with the lock the pair is 0 of 8 red and four concurrent processes of it are 0 of 12; a process mutex in its place is 6 of 12 red, no lock in PrefixDb::new is 2 of 6 red with the census naming that function (1 passed, 1 failed), the lock dropped from the member_class harness is named too (0 passed, 1 failed), and the pg_advisory_xact_lock spelling reddens the new lock case (0 passed, 1 failed) and 4 of 6 runs. every_scratch_database_migration_holds_the_cluster_lock walks src/ and tests/ for the statements that apply a migration, holds the set of functions equal to what it expects and names migrate as the one deploy path exempt, since it already serialises runs on one database with LOCK TABLE schema_migration; it went red with ROOTS emptied and with that exemption emptied (0 passed, 1 failed each) and it needs no cluster, unlike the cases it reads. the_migration_lock_is_one_lock_for_the_whole_cluster pins that an advisory lock is per database, which is why the lock is taken on the url unmodified. PrefixDb migration panics print the server sentence through pg::describe now, where the original report read db error. docs/evidence/forge-datastores.md carries the run and answers the suspicion its #1744 section left open, the forge suite is green against the cluster (469 passed over nine binaries, no skip note) and the workspace suite is green (3832 passed) (#1956)
8aebb4de ·diffdbf3dbe6… - the forge measures each account referenced footprint, derived when asked and kept nowhere, so the Rust service still writes no account tier table and tenant_blob keeps no producer by decision: MetadataStore::account_footprint joins account_key (retired keys included), repo, repo_object, object.bytes and burn_tombstone, counting each unburned address once per account however many of its repos name it, with the addresses whose length is not on file reported as unmeasured; migration 0033 adds object.bytes, the normalized blob length ingest now files with the row, and forge_reads_one_accounts_footprint, a FOR SELECT policy on repo and repo_object over loot.footprint_account, which Pg::with_account binds, so the forge role reads one account across its repos and writes nothing more; the binding census now reads every migration for the repo-bound tables, where it read 0017 alone and missed repo_object, and holds a method that binds an account to the tables 0033 admits. on a throwaway Postgres 18 with 1,031,000 objects, an account naming 32,000 addresses read in 70-91 ms. red under named mutations, each restored: on memory, burns ignored, no dedupe across repos, the retired key namespace dropped (each 1 failed and 2 passed), and ingest filing no length (1 failed); on Postgres as forge, the repo policy gone or the repo_object policy gone (each 2 failed and 1 passed), no burn filter, no DISTINCT, no account bind, and writes admitted (each 1 failed and 2 passed). CONTEXT.md, the schema comment on tenant_blob and ADRs 0103 and 0078 record the decision. ci/local.sh green, cargo test with the live suites 5026 passed over 146 test result lines with 15 ignored, and the site live suites 112 passed. owes a forge release and deploy, which applies migration 0033 (ymovmvqv)
d7ada9cb ·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… - 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… - my proposals across repos, the forge and CLI half: POST /proposals/mine at the forge's root answers the signing key's account, as /plan does, in JSON the forge app and the CLI read — every proposal it is party to by any of its keys (proposer, tip author, commenter) and every one on a repo it owns, each with its newest outbox event, newest activity first; migration 0052's forge_party_proposal view, bound by loot.party_account, since a cross-repo policy on repo would cycle through proposal's, lists candidates and propose::mine passes each through propose::sees, so the list never shows what the per-repo read conceals; loot propose --mine marks what moved since .loot/proposals-seen and clears it, the forge storing nothing about reading, and an offer says to check back with it; act 21; pinned live against Postgres as the forge role (a commenter who lost the repo, a retired owner key, a member not subscribed, an accountless key, the unbound view empty), in memory at the route, and in the CLI's rendering, the filter red-proved; ADR 0097 §1 and CONTEXT (zqumylvr)
e6f3dc86 ·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… - a key revokes only a key it vouched for, directly or through a chain, and vouches travel by the forge (ADR 0115 §2 to §4): own_keys applies a revocation only from a key above the one it names and not itself revoked, and loot id revoke refuses any other; migration 0069 keeps vouches and revocations in a vouch table outside the repo binding, with forge_delegated_key bound to one asked key, and /vouches/file and /vouches/list file a record only with both signatures, by its signer, naming no agent or runner key on any repo and closing no loop, and serve the signer identity whole; loot id vouch and loot id revoke file there too and loot pull stores the identity records in .loot/vouches; the web approval door counts a live account key only when every other live unrevoked key of the account is vouched to it, and agent and runner add refuse a vouched key; vouch.rs verifies through loot_codec::sig as main does since 46c3c7c5, and a weak key is refused at vouch time; red without it: the ancestry check (identity 1 passed, 1 failed; forge 0 passed, 1 failed), the loop term and the revoked revoker (1 passed, 1 failed each), and the forge revocation, agent or runner, one-signature, approval door and agent registration checks and the pull take (0 passed, 1 failed each); ADR 0115 and CONTEXT say what is built; ci/local.sh on Postgres and the site gate pass, and the suite is green at 2460 passed, 0 failed, 6 ignored; the two zkkrlukv leftovers are filed as wmzzozwn (xxtlrzlm)
9a1eefa7 ·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… - 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… - 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.