Changes touching this path
- 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 ·dbf3dbe6… - 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… - forge: the delete of an owed address no longer keeps a burn lock through the blob tier call, and asks under its lock whether the address is still owed: delete_bytes_unless_held takes a hold lock of its own across the check and the bucket delete (Postgres advisory keys apart from BURN_LOCKS, the gate in memory) and the burn lock only for the record after it, so a push row write does not wait on a bucket call; an act opening a hold or lifting an eviction takes the hold lock first, a takedown on every address it names, while its burn locks go back to what it evicts; the locked check leaves the bytes of an address no burn, standing eviction or row-less deletion owes, and the Postgres record refuses a lifted eviction; the serving-bucket refusal compares endpoints without the scheme and its comment says what is compared; record_burn_delete leaves the trait and its impls, its tests moving to the delete; the takedown suite pins a lift after the job listed its address on memory and both Postgres stamps (owed check mutated out: 0 passed 3 failed; with the lifted filter also out, Postgres deleted the bytes: 0 passed 1 failed), a Postgres pin holds a lift arriving mid-delete to the hold lock (lock dropped from the lift: 0 passed 1 failed), and the refusal table gains http (scheme kept: 0 passed 1 failed); cargo test 2592 passed and ci/local.sh green (zmptnwwq)
9804b949 ·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.