connor / loot

connor/loot

Changes touching this path

  • a forge operator grants an account a plan with no purchase, by a row its key signs (ADR 0118 decision 9, migration 0077): loot plan grant <key> <plan> [--days <n>] [--note <text>] puts the account that key is on onto the plan until a stated time, 30 days by default and 366 at most, loot plan revoke ends it and loot plan grants lists them, over /plan/grant, /plan/grant/revoke and /plan/grants behind the operator door, which a key the deploy lists passes and a key a row admits does not; each act carries its signing millisecond, and the forge refuses one outside its clock window, a grant signed no later than the key last grant or revocation, and a revocation of a later grant, so a captured request sent again changes nothing; the grant is kept in plan_grant, apart from the account_plan mirror a read of the merchant of record rewrites, and both plan readers, the Rust forge where a push, a runner and a hosted agent are judged and the site planOf behind the collaborator cap and the plan page, read one view, account_plan_in_effect, which gives the mirrored plan or a standing grant where that is the larger, by the database clock, with a purchase of the same plan read as the purchase; loot plan --json gains a trailing granted_until and the plan page says granted, so a grant is never shown as a subscription and a granted account can still be handed a checkout address; forge_identity reads the view and no new base table; test-accounts.md says how a test account is put on Pro, and CONTEXT.md gains Plan grant; with a merely admitted key allowed to grant, the view taking an ended or a revoked grant or reading a purchase as a grant, either store taking a stale grant, and the clock window off, the tests went red (0 passed, 1 failed each, the Postgres conformance pair 1 passed, 2 failed); ci/local.sh green against Postgres 18 with the site live suites 106 passed, and the site gate 421 passed (wzkvkkor) ea3e12b1 · dbf3dbe6…
  • an account asks the operator for a plan grant, every ask reaches the operator's channel within the hour, and an agent clears its own deletion requests alone (migration 0079): loot plan request files one bounded, lapsing row a key at /plan/request that grants nothing and reads pending, granted with its plan and end, or dismissed, loot plan requests lists the asks for the operator to grant or --dismiss, and over_plan and billing_unavailable name it where no plan is sold; the door's and the plan's asks share one store API over an AskQueue; loot-forge --operator-asks prints a Discord body for the asks newer than the last one raised, mentioning no one, which the hourly operator run in scripts PR 40 posts to the error shipper's webhook; --delete-requested --only <keys> limits a run to the requests those keys name and leaves every other as it is; ADR 0062 clauses 2 and 5 name admitting a key and granting a plan as the person's acts, and ADR 0118 decision 9 records the ask; red with each fix off (the plan ask 1 passed, 1 failed; its CLI shape 0 passed, 1 failed), cargo test green, and ci/local.sh green against Postgres 18 with both lists and the --only walk (mnttvskv, lnwlmyou, xwtqnwkz) e06a5d44 · 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.