Changes touching this path
- a forge backup is operator recovery, and a restore replays the revocation journal (#586)
#586 asked whether a backup defeats a burn. It does, but not where the ticket
looked, and the grilling moved the question in both directions at once.
NARROWER: the #502 amendment means the forge files a content key only where
`publish::published_rows` authorizes one, so an operator backup reconstitutes
plaintext ONLY for content that was Published -- i.e. world-readable anyway.
And `published_key` is not "the one table with no other copy": the rows come
from the client's own bundle at ingest, so a re-push re-supplies them. Painful,
loud, not unrecoverable.
WIDER, and this is the find: burn is not the only thing a restore inverts. Three
columns are monotone capability-removals that no client can push back --
`burn_tombstone`, `publication.retracted_at`, `grant_log.revoked_at`. A restore
is the single operation that runs time backwards over all three. Stated once,
because it is the whole ADR: A RESTORE RE-GRANTS A CAPABILITY SOMEONE
DELIBERATELY TOOK AWAY. Burn is just the one with an ADR attached.
So the cure is not a shorter window alone. Snapshots stay immutable at rest and
the RESTORE PATH is scrubbed by construction: a key-free, content-free revocation
journal, exported continuously and replayed before the forge binds a port. The
window (7 days, enforced by an R2 lifecycle rule rather than by a prune script
that can fail silently) then bounds media at rest only, never a running system.
The dump is `age`-encrypted to a key the VPS does not hold, because
`tree_entry.path` and `path_touch.path` are PLAINTEXT for every tier -- #610's
barrier views protect the live database and protect a dump not at all. The
journal is deliberately NOT encrypted: putting the one unrecoverable artifact
behind a losable key buys nothing.
R2 gets no mirror. The realistic threat to blobs is #493's own unbuilt reaper,
which that ticket says of itself deletes live data unrecoverably when it drifts
-- so the reaper reaps into a `reaped/` prefix under the same 7 days, and burn
keeps deleting outright. Two paths remove blobs; only one may be recoverable.
Weekly automated restore-verification is rejected as SELF-DEFEATING rather than
expensive: automating decryption puts the private key back on the VPS.
The one scoping correction: #586 said the work lands beside `setup-forge.js`.
That holds for the machinery. The honesty half -- burn's third tier and the
retention window advertised on `/info` -- lands in loot proper, so this is two
build tickets in two repos.
Decision only; nothing here is built. ADR 0046, three CONTEXT.md entries, a
third tier marked into ADR 0038 in place, and forge-datastores.md's closing
"still unspecified" line replaced with a plan that says out loud it is a plan
until the drill's negative has been run.
79fa0586 ·dbf3dbe6… - a forge advertises its retention window on /info, and burn prints one honest bound per host it disclosed to (#814)
652f4023 ·diffdbf3dbe6… - the backup machinery gets its record: ADR 0046 is amended by what building it found, and the drill is run as far as a key can take it (#813)
The build lands in the `scripts` repo (6d31542). This is loot's half: the decision
doc corrected where it was wrong, and the evidence file told what was actually run.
Three amendments, each because building the thing falsified the text.
Section 5's lifecycle rule is PREFIX-SCOPED. Sections 4 and 5 together ask one
bucket for two opposite retentions, and a bucket-wide rule deletes the artifact
section 6 calls genuinely unrecoverable -- silently, a week later.
Section 3's burn record carries the burner and the timestamp, not the oid alone.
burn_tombstone declares two more NOT NULL columns, so an oid on its own cannot be
replayed at all. signed_tombstone stays out because it carries the burned PATH into
a file that is unencrypted and kept forever, and the cost of that -- a replayed
tombstone cannot be the audit record -- is now written down rather than discovered.
Section 2's five replay steps are three today. The blob delete and the CDN purge
belong to a durable job purge.rs says does not exist, and the blob tier is never
restored from backup anyway.
The evidence file gains sections 8.1 through 8.4, run 2026-08-16. The recipient
keypair is minted -- rage rather than the reference age, because age ships only
sigsum proofs nothing here can verify, and the act that mints the key protecting
every backup took the checksummed path. Custody is proved rather than asserted: a
probe round-tripped through the offline key and a freshly minted stranger identity
was refused. Then a runner-shaped artifact -- dump, TOC, row manifest, both
credentials files -- was encrypted, its plaintext deleted, decrypted with the
offline key alone, restored and replayed. The negative first, because it is what
makes the positive mean anything: without the replay all four assertions came back
true, with it all four false, and a second replay moved nothing.
What is still not proved is said plainly. Section 8.5 wants the superuser password
coming back out of a REAL artifact and actually authenticating against the SCRAM
verifier, and the artifact above carried a stand-in because nothing has deployed.
The age-to-rage interop is assumed on the spec and gets proved by the first real
run. Until setup-forge.js has run once, this forge has no backup and
/root/.postgres-credentials has no second copy.
c26f154c ·diffdbf3dbe6… - the forge has backups: deployed, and the drill run whole against a real artifact (#813)
`npm run setup:forge` has run. /root/.postgres-credentials has a second copy for
the first time in its life, and the first journal export took 12 records off the
live forge -- 8 burns and 4 revocations that a restore would have put straight
back. This was never hypothetical.
ADR 0046 section 8, all five steps, against an artifact pulled off R2:
The artifact decrypts with the offline key and nothing else. That also settles the
interop question I had left open: the VPS encrypts with Ubuntu's Go age 1.1.1 and
the key was minted by rage, so one spec and two implementations, proved rather
than assumed. The negative is the half that matters and it fires -- restored
without the replay, all four capabilities came back; with it, none did. And the
recovered 48-character superuser password matches pg_authid's SCRAM verifier,
while a wrong one does not.
Section 5's real claim is exercised too: the forge's own R2 credential is REFUSED
on the backup bucket. An account-wide token would have satisfied every other check
in the deploy and silently meant a compromised forge reads seven days of history.
The open question in the consequence list is answered. R2 has no versioning
endpoint, confirmed against the live API, and the deploy re-asks every run rather
than trusting a sentence in a document.
Three amendments, each because deploying it falsified something.
The artifact now carries pg_dumpall --globals-only. pg_dump -d forge dumps one
DATABASE and roles are cluster-level, so a restore had no forge, forge_read or
forge_identity -- every GRANT in the archive an error -- and no pg_authid, which
is the only thing section 8.5 can check a password against. That step was
uncheckable until this landed.
Section 8.3 and 8.4 used real rows for the burn and the revocation and fixtures
for the publication, and had to: the row-count manifest in that very artifact
records publication 0 and published_key 0. The live forge has published nothing
yet. That is the same fact that leaves section 7's named trigger unfired.
Two of section 2's replay steps still have nothing to mirror, unchanged from the
build: the blob delete belongs to a durable job purge.rs says does not exist.
What is not proved is said plainly. The timer has never fired on its own schedule
-- every run so far was systemctl start from the deploy -- and the age private key
has no second copy, which the ADR's own consequence list warns makes every backup
landfill. That is now literally true rather than prospective.
a2d9f41b ·diffdbf3dbe6… - the forge stops saying it does not know its own window: ADR 0046 section 9 last step, taken (#813)
The media existed and the bucket enforced the window, while /info still answered
backup_retention_days null -- so `loot burn` went on printing an unknown-retention
line against a forge that does in fact keep a copy for seven days. Section 9
assigns that key to this ticket in as many words, and it was the one step nobody
had taken.
https://forge.millerbyte.com/info now answers 7.
Written only when the backup half is on, because section 9 rule cuts both ways and
a window nobody keeps is the worse lie. In the env half rather than the mounted
credentials file: it is not a secret, and the drift check greps it out of docker
inspect, so moving it would blind that check while everything kept appearing to
work.
And the part that makes it a fact rather than a claim. A container reads its
environment at CREATE, so one older than the backup half advertises null however
often the script rewrites .env.forge. That is drift now, and it fired on the real
deploy before recreating; probeForge then asserts /info returns the number, which
is the only place the answer belongs to the running process rather than to a file
this script wrote.
Section 9 says the advertised number and the rule enforcing it are tied by one key
name written once at deploy. They are tied a little better now -- one
RETENTION_DAYS constant feeds both -- and the bucket is still the enforcer.
630c9069 ·diffdbf3dbe6… - the forge deletes the bytes of a burned object: the serving process runs the burn delete job #482 section 5 designed and nothing built, purge::delete_burned_bytes, once at start and then every 60 s, deleting from the blob tier each burned address that the new burn_bytes_deleted table of migration 0029 holds no row for and recording each delete that succeeded, so the job deletes only for a tombstone it reads as committed, a failed delete stays owed and is tried again on the next run, a missing object counts as deleted, a tombstone the backup replay inserts is owed like any other, and the first run deletes the bytes of every burn already on file; the delete goes through the blob cache, so it also takes the local copy off the disk. the owed set is read off the tombstones rather than kept as a queue of its own. loot burn no longer prints destroyed on the forge now, which was untrue when printed: the forge line says the forge deletes its copy of the bytes when a signed purge reaches it on a sync. pinned in the conformance cases a_burn_owes_the_delete_of_its_bytes_until_one_is_recorded and the_burn_job_deletes_the_bytes_and_asks_again_for_a_failed_delete over memory and Postgres 18, the blob suite case the_burn_job_leaves_the_tier_no_bytes_of_a_burned_address over the memory tier and the cache (not run against an S3 bucket, its test environment unset), the_burn_job_takes_a_burned_copy_off_the_disk, a_serving_forge_deletes_the_bytes_a_burn_owes, an_honored_burn_has_its_bytes_deleted_and_a_refused_one_does_not, the pg test a_burn_owes_its_delete_only_once_it_commits, and the disclosure test a_forge_line_says_the_forge_deletes_the_bytes_when_the_purge_arrives, which went 1 failed and 14 passed over the disclosure tests before the new wording. red under named mutations, each restored, over the 12 selected job tests on Postgres 18: no job in the serving process (1 failed and 11 passed), a failed delete recorded as done (2 and 10), the run stopped at a failed delete (2 and 10), the Postgres owed read without its recorded-delete clause (2 and 10), the memory store recording a delete for an unburned address (1 and 11), the owed set read off object rows (10 and 2), a cache delete that keeps its copy (2 and 10). cargo test green, 4863 passed over 145 test result lines with 15 ignored, and the loot-forge suite green against a throwaway Postgres 18. CONTEXT.md, ADR 0038 and ADR 0046 say so, with what the backup retention window still holds. owes a forge deploy, migration 0029 first, and a scripts change to the forge-restore.js restore note (wosupkwz)
dcae12fa ·diffdbf3dbe6… - a push no longer fails past what the Postgres lock table holds, and the puts beside each other earn their deadline together: burned_under_lock took one advisory lock per published key of an ingest, and on a throwaway Postgres 18 at its defaults 13,000 such locks in one transaction were granted and 15,000 refused with out of shared memory, so a push of that many keys failed on every retry (live since uzkouqqx, on forge deploy.8); every address now maps onto one of pg::meta::BURN_LOCKS, 64, under a class of its own in the upper key bits, and record_burn takes the one its address maps to. each put of a stow or ingest earns its S3 deadline from the bytes of all the puts beside it, BlobStore::put_sharing over the new loot_s3 S3Client::put_sharing and handed on by the blob cache, where up to 64 puts shared the link with deadlines each earned by its own body. also built from xyqwqnnv: prepare owes the delete of a burned address it put back again, owe_burn_deletes, before its own delete, so a failed delete there no longer strands bytes the burn job had recorded deleted; the burn job warns once a run with a count, and the server log names a failed record as well as a failed read; the loot burn forge lines say the forge deletes its copy of the bytes when it honors the purge, and that the backups retain the rows naming the object rather than a copy; ADR 0046 section 2 no longer says forge-restore.js prints the re-delete as a step for the operator. the put_cost width is asserted from a hold the stand-in tier keeps until the bound is in flight, not from the clock, and the rounds assertion is gone; the CONTEXT.md Forge phase timing entry says the transaction writes the object rows again; the tree.ts collation comment is rewrapped. pinned: a_push_with_more_keys_than_the_lock_table_holds_commits over 25,600 keys on Postgres 18, each_put_earns_its_deadline_from_the_bytes_sharing_its_link, a_put_sharing_its_link_is_held_to_the_deadline_the_shared_bytes_earn, a_put_hands_the_tier_the_bytes_sharing_its_link, bytes_put_back_after_the_job_ran_are_owed_again over memory and Postgres, the conformance case a_recorded_burn_delete_can_be_owed_again, and a_run_warns_once_however_many_deletes_fail. red under named mutations, each restored: a lock per address (1 failed and 1 passed, out of shared memory), put_blobs calling put (1 and 24), the cache not handing sharing on (1 and 24), the S3 client ignoring sharing (1 and 19), half the put width (1 and 4), one past it (1 and 4), prepare not owing the delete again (2 and 2, over memory and Postgres), a Postgres owe that deletes nothing (2 and 2), a memory owe that removes nothing (2 and 2), a warning per failed address (1 and 15), and the old media copy wording (1 and 32). cargo test green, 4872 passed over 145 test result lines with 15 ignored, the loot-forge suite green against a throwaway Postgres 18 at 739 passed, and the site gate green at 915 passed. it also carries a comment on wosupkwz. owes a forge deploy and no migration; the burn line rides the next release (qptwwkqx)
7daffdfd ·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 burn at the forge drops the grants naming a burned address on every run of the burn delete job, derived from burn_tombstone in one keyed statement (GrantInbox::drop_burned_grants, pg::inbox::DROP_BURNED_GRANTS_SQL) and recorded nowhere, so burn_bytes_deleted records the blob delete alone and nothing the previous forge records during a deploy can end the drops, where a record it wrote after migration 0032 owed a burn again ended them for good; the deposit read after filing is a fast path that owes nothing, and a filing that fails is the deposit answer whatever that drop does; the grant door refuses a grant whose body carries an object other than the one its header names, or anything in its keys, changes or attestations lanes (grant::parse_deposit), and the builders whose grants a deposit sends are pinned to carry that object or none and leave those lanes empty; a 400 from that door reads as the door refusing the grant with the forge reason, where it told the reader to compare format versions; a migration waits at most 5 s for a lock (pg::migrate::MIGRATION_LOCK_TIMEOUT, below the pool checkout wait), and a wait past it stops --migrate with that migration rolled back and named, which stops setup-forge.js before the container swap; a test fails if a statement this crate ships deletes from or truncates repo_change, which would leave repo_object stale; a forge push refusal names an address burned here apart from one not held here, with the remedy of each. CONTEXT.md and ADRs 0038, 0046 and 0057 say so, the 0057 amendment carrying the deploy window the checksummed 0032 text does not. pinned: a_burn_leaves_no_grant_naming_its_address_in_any_mailbox over memory and Postgres 18 (a drop that fails, then a run with the blob delete on file, then a grant filed past the deposit check), a_failed_filing_is_the_answer_when_the_drop_after_it_fails_too, a_grant_carrying_an_object_its_header_does_not_name_is_refused, a_grant_carrying_a_key_in_its_body_is_refused, a_grant_carrying_a_change_in_its_body_is_refused, a_grant_carrying_an_attestation_in_its_body_is_refused, a_browser_grant_carries_its_object_and_nothing_else, a_forge_grant_door_400_says_the_door_refused_it_and_why, the_burned_grant_drop_asks_the_index_by_address, no_statement_this_crate_ships_deletes_a_version_from_a_repo, a_migration_waiting_past_the_lock_timeout_gives_up_and_applies_nothing, the_lock_timeout_is_below_the_checkout_wait, a_sealed_grant_carries_the_object_its_header_names_and_no_other, a_self_grant_carries_the_object_its_header_names_and_no_other and a_history_naming_an_object_burned_here_is_refused_as_burned; red under named mutations, each restored, over the nine selected forge tests against a throwaway Postgres 18: no drop in the job (2 failed and 7 passed), the Postgres drop a no-op (1 and 8), the memory drop a no-op (1 and 8), no burn read after a deposit (2 and 7), the drop error answered before the filing error (1 and 8), no door check (1 and 8), the drop written as IN (SELECT) (1 and 8), a repo_change delete in meta.rs (1 and 8), the timeout at 15 s (1 and 8); the drop run only while a blob delete is owed (2 failed and 0 passed over the two burn pins), no lock_timeout (1 failed and 0 passed, applied after 20 s), seal_grant carrying a second object (the custody pin 1 failed and 0 passed, and a_forge_push_deposits_embargoed_keys_to_peers_and_to_self refused with a 400 at the door, 1 and 0), the ticket self-grant carrying a second object (1 and 0), the burn log not asked (1 and 0); no keys, changes or attestations check at the door (each 1 failed and 11 passed over the grant tests), seal_grant carrying a key (the custody pin 1 failed and 0 passed, and the embargo push refused at the door, 1 and 0), the browser grant carrying a key (1 failed and 1 passed), the ticket self-grant carrying a key (1 and 1), the door 400 routed to the generic text (1 failed and 3 passed), the reason dropped (1 and 3). ci/local.sh green over the forge database steps and cargo test with the live suites, 5011 passed over 145 test result lines with 15 ignored, and the site gate 1071 passed. owes a forge deploy, with no migration of its own, and 0032 deploys with it (wurtzskp)
8cf84317 ·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… - the alpha promise on /install says what the forge keeps, ADR 0103 decision 10: its third line, which said hosted data may be reset without warning, is replaced by the operator wording of 2026-10-01, that what you push to forge.loot.build is kept, deleted only on a burn or a breach of the acceptable-use policy, its records backed up daily and kept seven days, your own copy the second copy of your files, and no backup recovering a lost key. ADR 0066 records it as line 3 as it ships beside line 2, and /trust carries its first two sentences in place of the draft, dropping the clause that every destination loot contacts is one you configured, which loot login with no argument makes untrue. the alpha headline pin holds the /install line whole against the ADR and forbids the draft line 3 lead and its retired sentences anywhere under site/src, the trust pin reads the new line, and CONTEXT.md quotes the new lead. ADR 0046 section 1, which refused a tenant durability promise, is amended to say ADR 0103 takes one, and its restore drill section states what a restore of one account needs; that restore is not built. in the scripts repo a site deploy refuses an /install whose backup window differs from RETENTION_DAYS. red under named mutations, each restored: /install back to the draft line 3 and its window paraphrased, the retired reset sentence beside the new ones on /trust, /trust without the promise, and CONTEXT.md on the draft lead (each 1 failed and 1 passed); in the scripts suite, the window check passing anything and a missing phrase read as seven (each 1 failed and 34 passed). cargo test green, 5074 passed over 145 test result lines with 15 ignored; site gate green at 1231 passed, every surface under its ceiling; scripts suite 432 passed. owes a commit of the scripts repo work once this lands, then a site deploy (zwlwqmzq)
db041d98 ·diffdbf3dbe6… - review sweep 3 fixes: a Clerk answer of 404 for a subscription no longer reads as no plan, so the plan sync throws and keeps the mirrored row where it deleted it and dropped a paying user to Free, and only a subscription Clerk answers in which nothing is in effect clears the row; the Clerk billing surface test now holds what ADR 0096 says, reading every Clerk package import, @clerk/clerk-js among them, and refusing any source that names a member of the Clerk instance that shows a component or names a payment, read off the pinned clerk-js, wherever the instance comes from, with the buildUserProfileUrl use on /account passing. ADR 0066 states what the forge deletes of the bucket have in common rather than a closed list of paths, ADRs 0046 and 0103 record the operator choice of 2026-10-02 for the one-account restore, ADR 0103 says which payers the scheduled pass does not re-read and loses a rewrap leftover, ADR 0096 corrects what the guard held, and plan.ts, the terms pin doc, ADR 0066, styles.css, nav-maturity, ADR 0046 section 8 and the budget drift reason point at what defines each set instead of re-listing it; in the scripts repo the BACKUP_WINDOW_PAGES and setup-site comments do the same. red under named mutations, each restored: a 404 read as no items (1 failed and 19 passed); an openUserProfile call on useClerk in account.tsx and an __internal_openCheckout call on the clerk-js instance (each 1 failed and 3 passed, where the old test passed both at 2 passed); @clerk/clerk-js dropped from the checked set (1 failed and 3 passed). cargo test green, 5075 passed over 145 test result lines with 15 ignored; site gate green at 1237 passed, every surface under its ceiling; ci/local.sh site live suites green on Postgres 18 at 128 passed; scripts suite 433 passed. owes a commit of the scripts repo comments once this lands, then a site deploy (vukqnzrx)
e0092c3f ·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… - 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 forge restore re-applies takedowns: the revocation journal carries them and the restore re-runs loot-forge --take-down (scripts 1c71de6); ADR 0046 §3, 0048, 0103, CONTEXT and the takedown report stop telling the operator to re-run it (qpqvosso)
27c0f5e6 ·diffdbf3dbe6… - a forge learns an address is held in name only and takes its bytes from the next push: migration 0044's object_bytes_lost, written by a serve walk's missing GET, the measuring job's absent HEAD and --restore-account's bytes_gone; /wants asks for such an address and ingest clears it once its bytes are put; red without the record or the clear (psxyosqs)
1991d321 ·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… - 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 warrant is tracked: ADR 0062 says an agent session lands, deploys and releases without asking and lists the six kinds of act that still stop one, AGENTS.md and the land-change skill say the same, workflow.md gains Deploying what landed, and ADR 0046 lets the restore drill run on an operator machine and names the backup key second use, the operator env sync (wusssuuy)
e6574584 ·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.