Changes touching this path
- plans through Clerk Billing are mirrored into the account tier, ADR 0103 decision 6: migration 0038 adds plan_limit, the one table that keeps what each plan allows, keyed on the Clerk plan slug and seeded free at 1 GB with no collaborator, runner or pipeline and pro at 50 GB with five collaborators and three runners, and account_plan, the plan in effect per Clerk user, written by the site billing module over forge_identity and left SELECT only to the forge role; the site writes a row only after reading the subscription again from the Clerk Backend API, when a Svix-verified webhook at POST /api/billing/webhook names a payer and on an hourly in-process pass over every account, deletes it when no plan is in effect, and refuses every delivery while CLERK_WEBHOOK_SIGNING_SECRET is unset; GET /api/billing/plan answers an account its plan and every plan limits. the pass is started by the planResync request middleware, after wideEvent, through outsideRequest in server/wide-event.ts, which runs it with the recorder store exited so its timers carry no request recorder. the account page UserButton opens the profile by navigation on the Clerk hosted Account Portal, because the profile Billing tab opens a checkout that loads Stripe.js and the account page carries no script policy on the origin that holds the seed, and a test holds every clerk-react import to a set checked to mount no payment surface. ADR 0103 takes a seven-day trial where it said fourteen, and ADRs 0103 and 0096 and CONTEXT.md say so. red under named mutations, each restored: a canceled item never in effect, no preference for a chosen plan, no secret guard and a pass that stops at a failure (each 1 failed and 15 passed), the signature unchecked (2 failed and 14 passed), the UserButton back to a modal with a PricingTable import (2 failed), ensurePlanResync called directly rather than through outsideRequest, and outsideRequest running its work under the store (each 1 failed and 23 passed), migration 0038 granting forge UPDATE on account_plan (2 failed and 75 passed, one the checksum pin); on Postgres 18, 0038 without its account_plan revoke (3 failed and 701 passed, one the checksum pin) and planOf ignoring the mirrored row (2 failed and 123 passed). cargo test green, 5071 passed over 146 test result lines with 15 ignored; ci/local.sh green on Postgres 18 with the site live suites at 125 passed; site gate green on the tree with the 406 fix at 1231 passed, every surface under its ceiling; scripts suite 428 passed. owes a forge release and deploy, which applies migration 0038, a commit of the scripts repo work, then a site deploy (lzntyyrz)
f6126a2c ·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 ·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.