connor / loot

connor/loot

Changes touching this path

  • 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…
  • a forge deploy no longer gives back what a migration revoked from the service role: in the scripts repo the SQL setup-forge.js runs inside the forge database before --migrate moves to lib/forge-provision.js and drops its GRANT on ALL TABLES and ALL SEQUENCES to forge, so the default privileges, which reach a table as it is created, and the GRANT and REVOKE statements of the migrations decide what the role holds, and what a migration narrows, as 0035, 0037 and 0038 do, survives the next deploy. ci/test-main.sh provisions the forge database again after --migrate, as each later deploy does, so the pg::tests grant pins read the narrowed tables as a re-deploy leaves them, and a scripts test holds the CI copy to the statements setup-forge.js runs and to running them again after the migration. on a throwaway Postgres 18 the deploy grant step run twice after migrations 0001 to 0038 left every forge grant identical to after the migration, where the old step run once gave forge SELECT, INSERT, UPDATE and DELETE on namespace_takedown, evicted_object, device_login, device_login_miss, plan_limit and account_plan. the 0035, 0037 and 0038 headers (comments only), takedown.rs, ADR 0103 and the comments on the rls and account_footprint scratch grants say so. red under named mutations, each restored: the repair grant back in the CI copy (3 failed and 2 passed of the service role pins, which pass 5 of 5 with the repair and no second provisioning); in the scripts suite, the repair back in forgeDatabaseSql (2 failed and 1 passed) and the second provisioning dropped from ci/test-main.sh (1 failed and 2 passed). cargo test green, 5075 passed over 146 test result lines with 15 ignored; ci/local.sh site live suites green on Postgres 18 at 128 passed; scripts suite 436 passed against this lane. owes a commit of the scripts repo work once this lands, before the next forge deploy (zxxrztou) ea6cb8b9 · 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.