carlos / platform Public

plans 6a census: hand overlay for seventeen new billing units (census-ruling-plans-6a-units), census-propose overlay and card, record-write layer; SetAccountPlan shares its upsert statement rather than a helper so it stays one census unit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev c0ae71e06e6ea5a5b674ff2df7a3d3ac10e431b4 parent 215ff50
7 files changed, +167 −30
  • docs/superpowers/notes/census-proposal-plans-6-checkout.md +38 −0
  • internal/console/accountplans.go +39 −29
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/plans6a_census_test.go +34 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −0
  • internal/provision/testdata/plan14-root-reads-plans-6-checkout.tsv +18 −0
  • internal/provision/testdata/plan14-root-reads-plans-6a-units.tsv +35 −0
diff --git a/docs/superpowers/notes/census-proposal-plans-6-checkout.md b/docs/superpowers/notes/census-proposal-plans-6-checkout.md
new file mode 100644
index 000000000..21a275643
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-plans-6-checkout.md
@@ -0,0 +1,38 @@
+# Census approval: plans-6-checkout
+
+Ruling `census-ruling-plans-6-checkout`. Every change below keeps the disposition it already has, so it needs an approval, not a decision.
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `cmd/console/main.go` `serve` | body | unchanged (3) | reads CARLOS_BILLING and the billing variables (billingConfig, a pure env parse plus the operator-configured CARLOS_PRICE_BOOK file through plans.LoadPriceBook, its own decision row) and fatals on a bad one; records the book version and digest in the console database (Store.NotePriceBook) and starts one more claim worker, StartBillingSyncPass, which returns at once with billing off; the same three /data literals; no read added |
+| `internal/console/accountplans.go` `Store.SetAccountPlan` | body | unchanged (1) | the upsert statement and its arguments moved into accountPlanUpsertSQL and accountPlanUpsertArgs so billing's guarded write (billingSetPlan) runs the same statement; the same one QueryRow on account_plans; no read added |
+| `internal/console/server.go` `NewServer` | body | unchanged (1) | refuses Config.Billing without a plan catalog, sets the billing runtime from Config.Billing, and registers POST /billing/webhook beside /api/ses/events; no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; no read added |
+| `internal/console/store.go` `Store.migrate` | body | unchanged (2) | calls migrateBilling last, which creates the console's own billing tables (plans 6a, its own decision row); no read added here |
+
+Envelopes re-pinned: `.`, `cmd/console`, `cmd/pricebook-export`, `internal/billing`, `internal/billing/billingtest`, `internal/billingstripe`, `internal/console`, `internal/plans`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `cmd/console/main.go` `serve`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=census-ruling-sec-sidecar-create-gate;basis=serve now parses CARLOS_SIDECAR_ACCOUNTS (sidecarAccounts, a pure env parse with log.Fatalf on a bad or empty-list value) before opening anything and passes it into console.Config.SidecarAccounts. No read was added: the same 3 root read sites.;rev3=census-ruling-sec-mail-user-boundary;basis=reads CARLOS_MAIL_USER_BOUNDARY and passes it to mail.NewAWSProvisioner; runs the one-shot boundary sweep behind CARLOS_MAIL_BOUNDARY_SWEEP=1, refused under CARLOS_HOST_CLAIM;rev3=census-ruling-pro-6214-service-runs;basis=the console (cmd/console serve, user carlos-console): reads CARLOS_RUN_KEYS, an environment variable, into Config.RunKeysEnabled; keyed run creates are refused 503 keys_not_ready unless it is on; the same three /data literals; no read added;rev3=census-ruling-plans-4-notices-grace;basis=starts one more claim worker, StartPlanGracePass (plans 4a), beside StartPlanLimitsPass; it returns at once with no plan catalog. No read added.
+- `internal/console/accountplans.go` `Store.SetAccountPlan`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-design-plans-and-caps;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4).;rev3=census-ruling-plans-4c-box-throttle;basis=the upsert also clears the account's throttle (plans 4c, Astra finding 3), so a plan change publishes without it. The same statement on the same table; no read added.
+- `internal/console/server.go` `NewServer`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved)
+- `internal/console/store.go` `Store.migrate`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added.
+
+Seal: `0304f49b933040c663b163ba830c3711ffffa4857abd4a389d3a717a17ce6fcd` → `aa9d80c0d3dcd6a5fc290dc8fd2eef49679b3967962235972df5d518848bfea5`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-plans-6-checkout.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
+
+## Decision: census-ruling-plans-6a-units
+
+Seventeen new units, written by hand in `internal/provision/testdata/plan14-root-reads-plans-6a-units.tsv` (chained before this proposal's overlay, seal `0304f49b933040c663b163ba830c3711ffffa4857abd4a389d3a717a17ce6fcd`). Each is accepted legacy, mirroring its closest sibling:
+
+- console SQL on the console's own billing tables (`billing_price_books`, `billing_accounts`, `billing_problems`): `Store.NotePriceBook`, `Store.SetBillingCustomer`, `Store.PutBillingState`, `Store.LiveBillingAccounts`, `Store.billingAccountWhere`, `Store.OpenBillingProblem`, `Store.BillingProblems`, `Store.BillingProblem`, `Store.CloseBillingProblem`, `Store.migrateBilling`, `Store.migrateBillingAccounts` (J4, as the plans-4a store units);
+- console SQL on `account_plans`: `Store.SetBillingPlan` (guarded transaction) and `billingSetPlan` (the same upsert as `Store.SetAccountPlan`) (J4);
+- `Server.handleAPIBillingProblems`: the one site is `r.URL.Query()` for `?all=1`, not a read;
+- `Server.handleBillingWebhook`: the request body bounded to 1 MiB, as `Server.handleSESEvents`; the provider signature is checked before the body is used;
+- `billingstripe.Client.do`: a Stripe API response body bounded to 1 MiB in memory; no filesystem read; redirects refused;
+- `plans.LoadPriceBook`: the operator-configured `CARLOS_PRICE_BOOK` file, read once at console start, as `plans.LoadCatalog`; also read by the operator-run `pricebook-export`.
+
+None of them runs as root or reads a path a tenant, an app or a box agent can name. All are dormant unless `CARLOS_BILLING` is set (the price book file is read only then). Reviewer: Astra (cross-model); decisions go to Paul on #280.
diff --git a/internal/console/accountplans.go b/internal/console/accountplans.go
index 683e318e6..85a16e617 100644
--- a/internal/console/accountplans.go
+++ b/internal/console/accountplans.go
@@ -91,45 +91,47 @@ func (s *Store) AccountPlan(accountID int64) (*AccountPlanRow, error) {
// It validates nothing: callers check the plan against the catalog first.
func (s *Store) SetAccountPlan(accountID int64, plan string, packs map[string]int, source string,
sponsored *plans.Limits, reason, by string, now time.Time) (int64, error) {
- return upsertAccountPlan(s.db, accountID, plan, packs, source, sponsored, reason, by, now)
+ args, err := accountPlanUpsertArgs(accountID, plan, packs, source, sponsored, reason, by, now)
+ if err != nil {
+ return 0, err
+ }
+ var rev int64
+ err = s.db.QueryRow(accountPlanUpsertSQL, args...).Scan(&rev)
+ if errors.Is(err, sql.ErrNoRows) {
+ return 0, ErrAccountGone
+ }
+ return rev, err
}
-// rowQuerier is what upsertAccountPlan needs: the store's handle or a
-// transaction.
-type rowQuerier interface {
- QueryRow(query string, args ...any) *sql.Row
-}
+// accountPlanUpsertSQL is SetAccountPlan's write, shared with billing's
+// guarded write (billingSetPlan) so both change a plan row the same way:
+// a deleted account writes nothing, and every change bumps the revision
+// and drops the throttle.
+const accountPlanUpsertSQL = `INSERT INTO account_plans
+ (account_id, plan, packs, source, sponsored, reason, revision, updated_by, updated_at)
+ SELECT ?, ?, ?, ?, ?, ?, 1, ?, ? WHERE EXISTS (SELECT 1 FROM accounts WHERE id = ? AND deleted_at = 0)
+ ON CONFLICT(account_id) DO UPDATE SET plan = excluded.plan, packs = excluded.packs,
+ source = excluded.source, sponsored = excluded.sponsored, reason = excluded.reason,
+ updated_by = excluded.updated_by, updated_at = excluded.updated_at, revision = revision + 1,
+ throttle = ''
+ RETURNING revision`
-// upsertAccountPlan is SetAccountPlan's write, shared with billing's
-// guarded write (SetBillingPlan) so both change a plan row the same way.
-func upsertAccountPlan(q rowQuerier, accountID int64, plan string, packs map[string]int, source string,
- sponsored *plans.Limits, reason, by string, now time.Time) (int64, error) {
+// accountPlanUpsertArgs are accountPlanUpsertSQL's arguments.
+func accountPlanUpsertArgs(accountID int64, plan string, packs map[string]int, source string,
+ sponsored *plans.Limits, reason, by string, now time.Time) ([]any, error) {
pj, err := canonicalPacks(packs)
if err != nil {
- return 0, err
+ return nil, err
}
sj := ""
if sponsored != nil {
b, err := json.Marshal(sponsored)
if err != nil {
- return 0, err
+ return nil, err
}
sj = string(b)
}
- var rev int64
- err = q.QueryRow(`INSERT INTO account_plans
- (account_id, plan, packs, source, sponsored, reason, revision, updated_by, updated_at)
- SELECT ?, ?, ?, ?, ?, ?, 1, ?, ? WHERE EXISTS (SELECT 1 FROM accounts WHERE id = ? AND deleted_at = 0)
- ON CONFLICT(account_id) DO UPDATE SET plan = excluded.plan, packs = excluded.packs,
- source = excluded.source, sponsored = excluded.sponsored, reason = excluded.reason,
- updated_by = excluded.updated_by, updated_at = excluded.updated_at, revision = revision + 1,
- throttle = ''
- RETURNING revision`,
- accountID, plan, pj, source, sj, reason, by, now.Unix(), accountID).Scan(&rev)
- if errors.Is(err, sql.ErrNoRows) {
- return 0, ErrAccountGone
- }
- return rev, err
+ return []any{accountID, plan, pj, source, sj, reason, by, now.Unix(), accountID}, nil
}
// canonicalPacks is the stored form of a pack map: JSON with sorted keys,
@@ -198,11 +200,19 @@ func (s *Store) SetBillingPlan(accountID int64, plan string, packs map[string]in
// billingSetPlan is the one place billing changes a plan row. It switches
// to Plan 4d-1's plan-change function when it lands (that function records
-// a lapse start); until then it is SetAccountPlan's own upsert, run inside
-// SetBillingPlan's transaction so the ownership guard and the write cannot
+// a lapse start); until then it is SetAccountPlan's own upsert
+// (accountPlanUpsertSQL), run inside SetBillingPlan's transaction so the ownership guard and the write cannot
// be split by an operator's write.
func billingSetPlan(tx *sql.Tx, accountID int64, plan string, packs map[string]int, reason string, now time.Time) error {
- _, err := upsertAccountPlan(tx, accountID, plan, packs, PlanSourceBilling, nil, reason, planBilling, now)
+ args, err := accountPlanUpsertArgs(accountID, plan, packs, PlanSourceBilling, nil, reason, planBilling, now)
+ if err != nil {
+ return err
+ }
+ var rev int64
+ err = tx.QueryRow(accountPlanUpsertSQL, args...).Scan(&rev)
+ if errors.Is(err, sql.ErrNoRows) {
+ return ErrAccountGone
+ }
return err
}
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 1e88e3ae1..2bf302345 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := edgeAssetCache1WriteCensusInventory()
+ inventory := plans6aWriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/plans6a_census_test.go b/internal/provision/plans6a_census_test.go
new file mode 100644
index 000000000..ad7dad80d
--- /dev/null
+++ b/internal/provision/plans6a_census_test.go
@@ -0,0 +1,34 @@
+package provision
+
+// Record-write census entries for plans 6a (billing sync), layered on
+// edgeAssetCache1WriteCensusInventory (main's newest at the branch point).
+// Three key sites change body only; none gains a record write:
+// - Server.registerCLIRoutes registers two operator billing doors
+// (GET /api/cli/billing/problems, POST
+// /api/cli/billing/problems/{id}/close), which read and close rows of
+// the console's own billing_problems table;
+// - NewServer refuses billing without a plan catalog, sets the billing
+// runtime and registers POST /billing/webhook, which writes the
+// account's plan row through the existing limits publish;
+// - main dispatches the new `carlos billing` command.
+// Their literals are unchanged (lit:instances, lit:sidecars).
+func plans6aWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), edgeAssetCache1WriteCensusInventory()...)
+ replacements := []censusEntry{
+ {"main.go", "main", "key-site", "lit:instances,lit:sidecars", "0c6df5fa68eb27e395a548112da6309ee58011cd2648fb767f0979d74b6aa730"},
+ {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "d75109b9c5d533b3a16ce9c8622a9582144876322e61b95b93ff35b37852cb4f"},
+ {"internal/console/server.go", "NewServer", "key-site", "lit:instances", "c1831a7b68439216e7593b23c561f68fea6cc0aa5ca500f3c619c1f8ac025523"},
+ }
+ for _, r := range replacements {
+ found := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ entries = append(entries, r)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 120ad9dbc..7c82c9659 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -32,3 +32,5 @@ plan14-root-reads-edge-asset-cache-1.tsv 1199c91ebbfb03869e89d06798176598526e818
plan14-root-reads-hunt-account-root-hardening.tsv ed721c45bf1af12467439061137d8c7a0757bc5ca1c921616ff42d5a7672d743
plan14-root-reads-plans-4c-units.tsv f6c05461d95d00fb468c5f580487de16370049b91963539546026cadadaa1c9d
plan14-root-reads-plans-4c-box-throttle.tsv c71b2974cd929122afc730f22cb53c63f3fdefdb4b26f7ca60db76fface906de
+plan14-root-reads-plans-6a-units.tsv 0304f49b933040c663b163ba830c3711ffffa4857abd4a389d3a717a17ce6fcd
+plan14-root-reads-plans-6-checkout.tsv aa9d80c0d3dcd6a5fc290dc8fd2eef49679b3967962235972df5d518848bfea5
diff --git a/internal/provision/testdata/plan14-root-reads-plans-6-checkout.tsv b/internal/provision/testdata/plan14-root-reads-plans-6-checkout.tsv
new file mode 100644
index 000000000..23dba1146
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-plans-6-checkout.tsv
@@ -0,0 +1,18 @@
+# Census overlay plans-6-checkout, written by census-propose (#369). census-ruling-plans-6-checkout, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-plans-6-checkout.md.
+# 4 body, 0 sites, 8 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 73d58e1b565dcbb453773704eb6a49fe04dd1d57c3535de5ff5334a89274ff03 cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=census-ruling-sec-sidecar-create-gate;basis=serve now parses CARLOS_SIDECAR_ACCOUNTS (sidecarAccounts, a pure env parse with log.Fatalf on a bad or empty-list value) before opening anything and passes it into console.Config.SidecarAccounts. No read was added: the same 3 root read sites.;rev3=census-ruling-sec-mail-user-boundary;basis=reads CARLOS_MAIL_USER_BOUNDARY and passes it to mail.NewAWSProvisioner; runs the one-shot boundary sweep behind CARLOS_MAIL_BOUNDARY_SWEEP=1, refused under CARLOS_HOST_CLAIM;rev3=census-ruling-pro-6214-service-runs;basis=the console (cmd/console serve, user carlos-console): reads CARLOS_RUN_KEYS, an environment variable, into Config.RunKeysEnabled; keyed run creates are refused 503 keys_not_ready unless it is on; the same three /data literals; no read added;rev3=census-ruling-plans-4-notices-grace;basis=starts one more claim worker, StartPlanGracePass (plans 4a), beside StartPlanLimitsPass; it returns at once with no plan catalog. No read added.;rev3=census-ruling-plans-6-checkout;basis=reads CARLOS_BILLING and the billing variables (billingConfig, a pure env parse plus the operator-configured CARLOS_PRICE_BOOK file through plans.LoadPriceBook, its own decision row) and fatals on a bad one; records the book version and digest in the console database (Store.NotePriceBook) and starts one more claim worker, StartBillingSyncPass, which returns at once with billing off; the same three /data literals; no read added data-literal@5338,data-literal@6439,data-literal@6676 bc159addf3e31fe62464ac87893ab6a5436078a63ec2b2db9785e1ccbf64e0da
+@legacy a2ef191433650c1c384e18a5e72d919980cc3465dc8fc396a44e3f8e943c1906 internal/console/accountplans.go Store.SetAccountPlan legacy accepted-legacy accepted-legacy;rev3=PROPOSED-design-plans-and-caps;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4).;rev3=census-ruling-plans-4c-box-throttle;basis=the upsert also clears the account's throttle (plans 4c, Astra finding 3), so a plan change publishes without it. The same statement on the same table; no read added.;rev3=census-ruling-plans-6-checkout;basis=the upsert statement and its arguments moved into accountPlanUpsertSQL and accountPlanUpsertArgs so billing's guarded write (billingSetPlan) runs the same statement; the same one QueryRow on account_plans; no read added file:QueryRow@329 6629f6f9042cb23c402b79b4adc6fa07f48531a697fb91f1baa7dda56eb3ad60
+@legacy 9788b66140c7bf7437d4c18babff9d58e4180113785eb3df236ff491690f6b7e internal/console/server.go NewServer legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved);rev3=census-ruling-plans-6-checkout;basis=refuses Config.Billing without a plan catalog, sets the billing runtime from Config.Billing, and registers POST /billing/webhook beside /api/ses/events; no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; no read added data-literal@9802 c1831a7b68439216e7593b23c561f68fea6cc0aa5ca500f3c619c1f8ac025523
+@legacy bca0eccd7fb344a322c0822f5a3e132f0363e87c5fe2b1eea6730a6e88b4bc59 internal/console/store.go Store.migrate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added.;rev3=census-ruling-plans-6-checkout;basis=calls migrateBilling last, which creates the console's own billing tables (plans 6a, its own decision row); no read added here file:Exec@12017,file:Exec@18238 ca759910b6edca7fe4ccf4fdbc9784ec02c22a37fbd00063c17c4bc9aead0506
+cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=census-ruling-sec-sidecar-create-gate;basis=serve now parses CARLOS_SIDECAR_ACCOUNTS (sidecarAccounts, a pure env parse with log.Fatalf on a bad or empty-list value) before opening anything and passes it into console.Config.SidecarAccounts. No read was added: the same 3 root read sites.;rev3=census-ruling-sec-mail-user-boundary;basis=reads CARLOS_MAIL_USER_BOUNDARY and passes it to mail.NewAWSProvisioner; runs the one-shot boundary sweep behind CARLOS_MAIL_BOUNDARY_SWEEP=1, refused under CARLOS_HOST_CLAIM;rev3=census-ruling-pro-6214-service-runs;basis=the console (cmd/console serve, user carlos-console): reads CARLOS_RUN_KEYS, an environment variable, into Config.RunKeysEnabled; keyed run creates are refused 503 keys_not_ready unless it is on; the same three /data literals; no read added;rev3=census-ruling-plans-4-notices-grace;basis=starts one more claim worker, StartPlanGracePass (plans 4a), beside StartPlanLimitsPass; it returns at once with no plan catalog. No read added.;rev3=census-ruling-plans-6-checkout;basis=reads CARLOS_BILLING and the billing variables (billingConfig, a pure env parse plus the operator-configured CARLOS_PRICE_BOOK file through plans.LoadPriceBook, its own decision row) and fatals on a bad one; records the book version and digest in the console database (Store.NotePriceBook) and starts one more claim worker, StartBillingSyncPass, which returns at once with billing off; the same three /data literals; no read added data-literal@5338,data-literal@6439,data-literal@6676 bc159addf3e31fe62464ac87893ab6a5436078a63ec2b2db9785e1ccbf64e0da
+internal/console/accountplans.go Store.SetAccountPlan legacy accepted-legacy accepted-legacy;rev3=PROPOSED-design-plans-and-caps;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4).;rev3=census-ruling-plans-4c-box-throttle;basis=the upsert also clears the account's throttle (plans 4c, Astra finding 3), so a plan change publishes without it. The same statement on the same table; no read added.;rev3=census-ruling-plans-6-checkout;basis=the upsert statement and its arguments moved into accountPlanUpsertSQL and accountPlanUpsertArgs so billing's guarded write (billingSetPlan) runs the same statement; the same one QueryRow on account_plans; no read added file:QueryRow@329 6629f6f9042cb23c402b79b4adc6fa07f48531a697fb91f1baa7dda56eb3ad60
+internal/console/server.go NewServer legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console construction adds queue and notification state. The existing logs/data route literal moves; it is not a filesystem read.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets consoleNameCfg from Config.ConsoleName and the challengeSem send bound, and registers the four /auth/email routes; no goroutine; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=sets the forwarded db read's open-read limits (dbReads, held by each read's request) and its timing (dbf); no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; the record-write census re-digests the same unit;rev3=census-ruling-design-edge-rate-limit-358;basis=one route registered beside the gate's form: POST /a/{sqid}/apps/{app}/ratelimit to handleAppRateLimit, the Settings page's rate-limit form, member-gated like the gate; no read added, its one data-literal site unchanged (offset moved);rev3=census-ruling-plans-6-checkout;basis=refuses Config.Billing without a plan catalog, sets the billing runtime from Config.Billing, and registers POST /billing/webhook beside /api/ses/events; no goroutine and no store call; the one data-literal is still the logs/data route pattern, moved; no read added data-literal@9802 c1831a7b68439216e7593b23c561f68fea6cc0aa5ca500f3c619c1f8ac025523
+internal/console/store.go Store.migrate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=adds the sessions.method column (default keymail, the backfill) and calls migrateEmailSignin; SQLite DDL on CONSOLE_DB; the existing site moves;rev3=census-ruling-plans-4-notices-grace;basis=calls migratePlanGrace last, which creates the console's own plan_cap_state table (plans 4a). No read added here; the new store units are the plans-4a-store decision.;rev3=census-ruling-plans-4c-box-throttle;basis=adds the additive account_plans.throttle column (plans 4c). No read added.;rev3=census-ruling-plans-6-checkout;basis=calls migrateBilling last, which creates the console's own billing tables (plans 6a, its own decision row); no read added here file:Exec@12017,file:Exec@18238 ca759910b6edca7fe4ccf4fdbc9784ec02c22a37fbd00063c17c4bc9aead0506
+@coverage . cff632ef0109a3cc8fbd144586e1d16ddafe50ae00f3e5f46dd204c47b4595f2
+@coverage cmd/console 6d4173d66b612f6d3025b822bf83b2cff98ba29073fc835249f3c5c0a74bf178
+@coverage cmd/pricebook-export 624784dc3f674ce3a5b2a030a1450c858b32db5278a3358dd900c6d684aadcc5
+@coverage internal/billing 8f23c947dc51b1b1dfebfef1e0cc66b6c8d5e5aad6656751edffffd10594ff54
+@coverage internal/billing/billingtest de9982090b870c9d62afbae977c7c5d62a681f957c424cd45ebdcdc30019519c
+@coverage internal/billingstripe 637410bc0ab070d9b7773ba26662ab23ee93d0b62a1ed07a33a2bd191c2d474f
+@coverage internal/console 883ee469bb3867b96e07893a406e5cd22b4ca10d9aa862da7ca5b449567d76c1
+@coverage internal/plans a4748bb01f6abab578de6f68cb536c1231278423f95eeea37cca7c0c638aeab9
diff --git a/internal/provision/testdata/plan14-root-reads-plans-6a-units.tsv b/internal/provision/testdata/plan14-root-reads-plans-6a-units.tsv
new file mode 100644
index 000000000..d56c39828
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-plans-6a-units.tsv
@@ -0,0 +1,35 @@
+# Census overlay plans-6a-units, written by hand: seventeen new units of plans 6a billing (console SQL on its own billing tables, the billing webhook body, the Stripe client response body, and the price book file), a decision. census-ruling-plans-6a-units; the card is docs/superpowers/notes/census-proposal-plans-6-checkout.md.
+@legacy 058848562e19e53835d838c5b4ddde13c8da81fae081e57cbd4eae204af25fe0 internal/billingstripe/client.go Client.do legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=the console (cmd/console serve under console.service, user carlos-console), billing only (CARLOS_BILLING test or live): reads one Stripe API response body into memory, bounded to 1 MiB (io.ReadAll of an io.LimitReader); no filesystem read; requests go only to the configured base URL (api.stripe.com) with redirects refused; plans 6a file:ReadAll@1372 81ecef4a9ff10808f4ac61a07b770c16140feb4662fa2590fdef59adf1660d0f
+@legacy a879651a44df2241f4cbac19c9042811c19738cd1ff24ec0de0f8f1ddf63b524 internal/console/accountplans.go Store.SetBillingPlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4): in one transaction reads the account and its plan row and writes only a row billing owns (source default or billing) when plan, packs or source change, through billingSetPlan; plans 6a file:QueryRow@349,file:QueryRow@598 ba89993cb322de2ef9c86aed18f84bd1608513abe4e898b6849877ff74af63bd
+@legacy bfb4a8acf48a9f3e5d0c532aa501674253caa47c5d48074f58260266d7c427ed internal/console/accountplans.go billingSetPlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own account_plans table, as Store.SetAccountPlan (J4): the same upsert statement (accountPlanUpsertSQL) run inside SetBillingPlan's transaction with source billing; plans 6a file:QueryRow@287 a61887543cf2597f94f6a2cc653f2ae1411fad05f2f72f7f03951aab76fa6a7a
+@legacy dd88742398c6b1bcf74d8f0f187f60391d6e6148832b0780a954430bea433c03 internal/console/apibilling.go Server.handleAPIBillingProblems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; the operator's GET /api/cli/billing/problems (operator-only, as the plan door); the one site is r.URL.Query() for ?all=1, not a database or file read; lists billing_problems through Store.BillingProblems (J4); plans 6a file:Query@174 e9d9cd6570860aedc97582d7a8530d455344cdc2a7c803abd3e9aa83628863e6
+@legacy 831351c8533c017530058710dcea1217203bb45dc9e97f36eda4834ed801bedf internal/console/billingstore.go Store.BillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:QueryRow@98 73cc657116805beac0faeeccd5f8ffa7c6d49ad1b4e18da1115c7bb0d5a59902
+@legacy d75a9b858f9af7957967d283480b8a403954582a7c29b7f3b816e2249de7bed4 internal/console/billingstore.go Store.BillingProblems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Query@215 d11e44fcf7e2104a94224603eccd98bcabcb362b542ad0e82096aa4ddf8ed7be
+@legacy fd3375ab332dd7f196f0dacdfb26bc99d324b9d33cf05de0f15478a14005f9b9 internal/console/billingstore.go Store.CloseBillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@99 e7dde269b31cab46f2c0a4d2ca85341ccb6687f73fa8ca397b7a695b234c8e06
+@legacy 5d55fae504cedcacbcb41da161f44cc288b97788ef75cc187f321affb395babb internal/console/billingstore.go Store.LiveBillingAccounts legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Query@111 3e48b56b487ce954544f28878d473e2f436681b654edffac01aa17d328a9c760
+@legacy 0a011a4e53352482026d67d5deffe6f3a00a5dd7e3527aca24491a8d58a5714b internal/console/billingstore.go Store.NotePriceBook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@99,file:QueryRow@329 3cf8826e10d32cc760bfe9226094859534661cfeb5412764c1f0bd056ac926ce
+@legacy 47e752bc6e2edcceb8096b3d6bddef8281d049f5f2da4d8fde610461e423e9ef internal/console/billingstore.go Store.OpenBillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@133 39c1d4852dafeb7056d203c67e099afeb74a02250481d78ce8cf56325d8b95ab
+@legacy 337372c4e0da10b62e9387d6b450729a68c015256303a459a9ce734c4804305e internal/console/billingstore.go Store.PutBillingState legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@199 45cd2c0644f5ace5c3e170a79b48229cb26915ff647246eaea3c12e1fa694284
+@legacy 0ae2fb6d6786cea9cadabba1710e239bb58bf5d709525af446ca217fba4210d1 internal/console/billingstore.go Store.SetBillingCustomer legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@176,file:QueryRow@544 1e9829853397ee44a682777daf9c31b17f3ace60740278e599b2dba29f4f2f8a
+@legacy 16100dbc3405ba377f0546e438b91a081b3e6040c6a0583a071f5d2e3c9b7f81 internal/console/billingstore.go Store.billingAccountWhere legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:QueryRow@116 98f22e23dbafcb7a4977f258be1650358ad8e9e1285e6297447f581c4b8e184a
+@legacy bdccb3e57c3cb4b9a770918489f24667093d281fb26800bb0aabbe7dc4a43996 internal/console/billingstore.go Store.migrateBilling legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@52 1cd231645b5c265c3eb3e8c5a9d46e072ad3858497985785c07ee6f476327c53
+@legacy 3faccfff6ae951f4f5e4459fff731688546a758117b69bfb10d52355f8452cb9 internal/console/billingstore.go Store.migrateBillingAccounts legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@60 da4af3384c63d1da7f7fe950a039c6295a4bf16b7a2b7a6d1ac7def058d93694
+@legacy 21d74eb85c819d54a948a93455baebbee1a7eb68806a4fb210798764c79bdba0 internal/console/billingwebhook.go Server.handleBillingWebhook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; reads the POST /billing/webhook request body bounded to 1 MiB (http.MaxBytesReader), as Server.handleSESEvents; the provider signature is verified before anything in it is used, and the body only names a subscription to re-read; plans 6a, 404 unless CARLOS_BILLING is set file:ReadAll@318 b016f33c678468c04fd9f48e2d0f561eb60a8cdb196024feca6d4a3ee20fdda6
+@legacy 0e6a30dcadac119d00e5b888deb64e86e1d918b29babba603b64f21b7e1515d8 internal/plans/pricebook.go LoadPriceBook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=the console reads the operator-configured CARLOS_PRICE_BOOK file once at start, as LoadCatalog reads CARLOS_PLAN_CATALOG; a bad file stops the console; pricebook-export (run by an operator) reads the same file; plans 6a file:ReadFile@79 49e82eef68a0fc7429f36030b042dd288f263067baf7009f584811b7ddd1049f
+internal/billingstripe/client.go Client.do legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=the console (cmd/console serve under console.service, user carlos-console), billing only (CARLOS_BILLING test or live): reads one Stripe API response body into memory, bounded to 1 MiB (io.ReadAll of an io.LimitReader); no filesystem read; requests go only to the configured base URL (api.stripe.com) with redirects refused; plans 6a file:ReadAll@1372 81ecef4a9ff10808f4ac61a07b770c16140feb4662fa2590fdef59adf1660d0f
+internal/console/accountplans.go Store.SetBillingPlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own account_plans table, as its store siblings (J4): in one transaction reads the account and its plan row and writes only a row billing owns (source default or billing) when plan, packs or source change, through billingSetPlan; plans 6a file:QueryRow@349,file:QueryRow@598 ba89993cb322de2ef9c86aed18f84bd1608513abe4e898b6849877ff74af63bd
+internal/console/accountplans.go billingSetPlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own account_plans table, as Store.SetAccountPlan (J4): the same upsert statement (accountPlanUpsertSQL) run inside SetBillingPlan's transaction with source billing; plans 6a file:QueryRow@287 a61887543cf2597f94f6a2cc653f2ae1411fad05f2f72f7f03951aab76fa6a7a
+internal/console/apibilling.go Server.handleAPIBillingProblems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; the operator's GET /api/cli/billing/problems (operator-only, as the plan door); the one site is r.URL.Query() for ?all=1, not a database or file read; lists billing_problems through Store.BillingProblems (J4); plans 6a file:Query@174 e9d9cd6570860aedc97582d7a8530d455344cdc2a7c803abd3e9aa83628863e6
+internal/console/billingstore.go Store.BillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:QueryRow@98 73cc657116805beac0faeeccd5f8ffa7c6d49ad1b4e18da1115c7bb0d5a59902
+internal/console/billingstore.go Store.BillingProblems legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Query@215 d11e44fcf7e2104a94224603eccd98bcabcb362b542ad0e82096aa4ddf8ed7be
+internal/console/billingstore.go Store.CloseBillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@99 e7dde269b31cab46f2c0a4d2ca85341ccb6687f73fa8ca397b7a695b234c8e06
+internal/console/billingstore.go Store.LiveBillingAccounts legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Query@111 3e48b56b487ce954544f28878d473e2f436681b654edffac01aa17d328a9c760
+internal/console/billingstore.go Store.NotePriceBook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@99,file:QueryRow@329 3cf8826e10d32cc760bfe9226094859534661cfeb5412764c1f0bd056ac926ce
+internal/console/billingstore.go Store.OpenBillingProblem legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@133 39c1d4852dafeb7056d203c67e099afeb74a02250481d78ce8cf56325d8b95ab
+internal/console/billingstore.go Store.PutBillingState legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@199 45cd2c0644f5ace5c3e170a79b48229cb26915ff647246eaea3c12e1fa694284
+internal/console/billingstore.go Store.SetBillingCustomer legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@176,file:QueryRow@544 1e9829853397ee44a682777daf9c31b17f3ace60740278e599b2dba29f4f2f8a
+internal/console/billingstore.go Store.billingAccountWhere legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:QueryRow@116 98f22e23dbafcb7a4977f258be1650358ad8e9e1285e6297447f581c4b8e184a
+internal/console/billingstore.go Store.migrateBilling legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@52 1cd231645b5c265c3eb3e8c5a9d46e072ad3858497985785c07ee6f476327c53
+internal/console/billingstore.go Store.migrateBillingAccounts legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; console SQL on its own billing tables (billing_price_books, billing_accounts, billing_problems), as its store siblings (J4); plans 6a billing, dormant unless CARLOS_BILLING is set file:Exec@60 da4af3384c63d1da7f7fe950a039c6295a4bf16b7a2b7a6d1ac7def058d93694
+internal/console/billingwebhook.go Server.handleBillingWebhook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=root-input; reads the POST /billing/webhook request body bounded to 1 MiB (http.MaxBytesReader), as Server.handleSESEvents; the provider signature is verified before anything in it is used, and the body only names a subscription to re-read; plans 6a, 404 unless CARLOS_BILLING is set file:ReadAll@318 b016f33c678468c04fd9f48e2d0f561eb60a8cdb196024feca6d4a3ee20fdda6
+internal/plans/pricebook.go LoadPriceBook legacy accepted-legacy accepted-legacy;rev3=census-ruling-plans-6a-units;basis=the console reads the operator-configured CARLOS_PRICE_BOOK file once at start, as LoadCatalog reads CARLOS_PLAN_CATALOG; a bad file stops the console; pricebook-export (run by an operator) reads the same file; plans 6a file:ReadFile@79 49e82eef68a0fc7429f36030b042dd288f263067baf7009f584811b7ddd1049f