connor / loot

connor/loot

Changes touching this path

  • 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 · dbf3dbe6…
  • migration 0035 leaves the forge service role SELECT on namespace_takedown and evicted_object and UPDATE of evicted_object.bytes_deleted_at alone, what the serving forge runs against them, so it can neither record nor lift a takedown nor undo an eviction; pg::tests reads those grants from the catalogue as sets and attempts every other write as forge, each refused as 42501. tests/account_footprint.rs reads account_footprint after a takedown, with a tree of the account naming the evicted address, over both stores. CONTEXT.md, ADRs 0103 and 0048, store.rs, takedown.rs, pg/meta.rs and the 0033, 0034 and forge-schema headers drop the stale sentences review sweep 1 found and replace each hand-kept list with what defines the set. red under named mutations, each restored: on Postgres 18, no revoke and a whole-table UPDATE grant (each 2 failed and 260 passed, one the checksum pin), the catalogue check off with no revoke (1 failed), the column grant dropped (11 failed and 251 passed), SELECT on namespace_takedown dropped (97 and 165) and on evicted_object dropped (49 and 213); the evicted_object exclusion gone from ACCOUNT_FOOTPRINT, and the memory footprint excluding burns alone (each 1 failed and 2 passed). cargo test green, 5046 passed over 145 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the same counts and the site live suites 112 passed. setup-forge.js grants forge every table on each deploy before --migrate, so until the scripts repo stops that the narrowing lasts from one deploy to the next. owes a forge release and deploy, which applies migration 0035 (pzykwkos) 183c41d5 · dbf3dbe6…diff
  • review sweep 2 fixes for the forge app move and loot login: /device reads no code from its URL and the forge hands the CLI the bare page, so a link someone sent cannot approve their terminal; a key kept unlocked on loot.build is no longer wiped silently, a brochure page that finds one says the key moved and what unlocking on forge.loot.build needs, and removes it once the reader confirms; a server function call is weighed by the import-graph property routes are, the build writing it into each id (tools/surface.mjs serverFnId), and loot.build refuses a call whose module reaches a session, a key or account rows, the /metrics cookie calls among them; with no split the site still marks the forge app on the forge host, since browsers keep the 308s, and ADR 0099 says what that rollback gives up; migration 0037 revokes every privilege of the forge service role on device_login and device_login_miss; in the scripts repo the Clerk parties derived under the split are the forge origin alone and a set list naming the brochure is refused, and a site deploy empties the forge app cache beside its own; CONTEXT.md, USAGE, the CLI docs page and login.rs say when no remote changes, and the hand-kept lists and rewrap leftovers sweep 2 named say what defines each set instead. red under named mutations, each restored: the pre-fill restored and the code put back in the path (each 1 failed and 1 passed); the silent wipe back in the root, the remove button live without the tick and the database opened unlisted (each 1 failed and 5 passed); every call served on the brochure (1 failed and 17 passed), every id marked brochure (2 failed and 16 passed), no-split marking off (1 failed and 17 passed); on the built server with a split, the host middleware passing every call and the build naming no ids (each 1 failed and 5 passed), and on a build with the forge origin alone the old early return (1 failed and 1 passed); in the scripts suite, the brochure back among the parties and the forge app cache left out of the purge (each 1 failed and 12 passed); on Postgres 18, 0037 without its device_login revoke (3 failed and 5066 passed, one the checksum pin). cargo test green, 5069 passed over 145 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 120 passed; site gate green at 1198 passed with no split, 1203 with one, and the full site suite at 1199 with the forge origin alone; scripts suite 428 passed. owes a forge release and deploy, which applies migration 0037, a commit of the scripts repo work, then a site deploy (zrvquxls) 74d7c457 · dbf3dbe6…diff

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.