plans 6b: census re-layered on main's newest inventory (root-read envelopes . and internal/plans; record-write route sites)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+49
−1
docs/superpowers/notes/census-proposal-plans-6b-checkout-flow.md+11 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/plans6b_census_test.go+32 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-plans-6b-checkout-flow.tsv+4 −0
diff --git a/docs/superpowers/notes/census-proposal-plans-6b-checkout-flow.md b/docs/superpowers/notes/census-proposal-plans-6b-checkout-flow.md| new file mode 100644 |
| index 000000000..45be14526 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-plans-6b-checkout-flow.md |
| @@ -0,0 +1,11 @@ |
| +# Census approval: plans-6b-checkout-flow |
| + |
| +Ruling `census-ruling-plans-6b-checkout-flow`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +Envelopes re-pinned: `.`, `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. |
| + |
| +Seal: `f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7` → `f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-plans-6b-checkout-flow.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index d95103afb..ed18fb01b 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 := usageAttribution390WriteCensusInventory() |
| + inventory := plans6bWriteCensusInventory() |
| 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/plans6b_census_test.go b/internal/provision/plans6b_census_test.go| new file mode 100644 |
| index 000000000..869511521 |
| --- /dev/null |
| +++ b/internal/provision/plans6b_census_test.go |
| @@ -0,0 +1,32 @@ |
| +package provision |
| + |
| +// Record-write census entries for branch plans-6b-checkout-flow (checkout, |
| +// team plans and the billing page), layered on |
| +// usageAttribution390WriteCensusInventory (main's newest at the merge |
| +// c0e7d1dc). No record write is added, moved or reclassified: 6b's billing |
| +// state lives in the console's own SQLite tables, never in a record. |
| +// - Server.registerCLIRoutes: registers POST /api/cli/billing/house |
| +// (apibillinghouse.go). Same "instances" and "sidecars" literals: still |
| +// key-site. |
| +// - NewServer: registers the billing page, /upgrade and the billing |
| +// confirm, checkout, continue, done, change, renewal, seats and portal |
| +// routes. Same "instances" literal: still key-site. |
| +func plans6bWriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), usageAttribution390WriteCensusInventory()...) |
| + replacements := []censusEntry{ |
| + {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "c5994862b070edba9bdf909aa2b4e4249112939d99c1caacea8c8831cd50959a"}, |
| + {"internal/console/server.go", "NewServer", "key-site", "lit:instances", "67689b3f367cc9318eb29ac3448cba2413209f548911b16f65ddf16c7b9876da"}, |
| + } |
| + 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 { |
| + panic("plans-6b replacement of an unlisted unit " + r.File + ":" + r.Unit) |
| + } |
| + } |
| + return entries |
| +} |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 3bef53d39..5d2c07682 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -13,3 +13,4 @@ plan14-root-reads-ha-p1a-433.tsv f8acbc0dd8828636e3f73d9afd0e539d3dfd1346e0232d9 |
| plan14-root-reads-rollup-tenant-tags.tsv f8acbc0dd8828636e3f73d9afd0e539d3dfd1346e0232d91903c33d6eb27d820 |
| plan14-root-reads-alias-wake-338.tsv deeddee1bf22a18562acda97cc34c6d73ee0dff1825100c73fa0be4c6a3f3e7b |
| plan14-root-reads-analytics-onramp.tsv f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7 |
| +plan14-root-reads-plans-6b-checkout-flow.tsv f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7 |
diff --git a/internal/provision/testdata/plan14-root-reads-plans-6b-checkout-flow.tsv b/internal/provision/testdata/plan14-root-reads-plans-6b-checkout-flow.tsv| new file mode 100644 |
| index 000000000..ec7b43f64 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-plans-6b-checkout-flow.tsv |
| @@ -0,0 +1,4 @@ |
| +# Census overlay plans-6b-checkout-flow, written by census-propose (#369). census-ruling-plans-6b-checkout-flow, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-plans-6b-checkout-flow.md. |
| +# 0 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@coverage . b12f0b9a2da5faf7e61d6573e96ee8054460011fb9c786f0ebf2576abedec3e0 |
| +@coverage internal/plans 7a4f14b33511f6a91734575c0712215fb6ded1e56b682a8939a23adacd42dfe7 |