5 files changed,
+42
−1
docs/superpowers/notes/census-proposal-billing-dashboard-1.md
+11 −0
internal/provision/billing_dashboard_1_census_test.go
+26 −0
internal/provision/plan9_b8_census_test.go
+1 −1
internal/provision/testdata/plan14-root-reads-billing-dashboard-1.tsv
+3 −0
internal/provision/testdata/plan14-root-reads-chain.tsv
+1 −0
| new file mode 100644 |
| index 000000000..42625bcc3 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-billing-dashboard-1.md |
| @@ -0,0 +1,11 @@ |
| +# Census approval: billing-dashboard-1 |
| + |
| +Ruling `census-ruling-billing-dashboard-1`. 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: `.`. |
| + |
| +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. Reject 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. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Seal: `7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652` → `7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-billing-dashboard-1.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
| new file mode 100644 |
| index 000000000..ed2b0408a |
| --- /dev/null |
| +++ b/internal/provision/billing_dashboard_1_census_test.go |
| @@ -0,0 +1,26 @@ |
| +package provision |
| + |
| +// billingDashboard1WriteCensusInventory is the billing dashboard plan 1 |
| +// review of the record-write census: Server.registerCLIRoutes gains the two |
| +// operator read doors GET /api/cli/billing/revenue and GET |
| +// /api/cli/billing/payments, which read the console DB only and write no |
| +// record. Its kinds and class are unchanged; only the digest moves. |
| +func billingDashboard1WriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), gvisorDemosWriteCensusInventory()...) |
| + reviewed := []censusEntry{ |
| + {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "6f1c241bb872e2d1b807c72e71986c1a39e5919a17e89c4f25c610ab6549a0ce"}, |
| + } |
| + for _, r := range reviewed { |
| + replaced := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + entries[i], replaced = r, true |
| + break |
| + } |
| + } |
| + if !replaced { |
| + entries = append(entries, r) |
| + } |
| + } |
| + return entries |
| +} |
| index ee0d8337a..c939a79db 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 := gvisorDemosWriteCensusInventory() |
| + inventory := billingDashboard1WriteCensusInventory() |
| 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 ")) |
| new file mode 100644 |
| index 000000000..9e8d43c9b |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-billing-dashboard-1.tsv |
| @@ -0,0 +1,3 @@ |
| +# Census overlay billing-dashboard-1, written by census-propose (#369). census-ruling-billing-dashboard-1, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-billing-dashboard-1.md. |
| +# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@coverage . c22abc56445e0bd91a531e54857f7d8e89c4b4fdb72ea01f606c56658cb60fcb |
| index 4c12aba2c..b495ccc62 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -136,3 +136,4 @@ plan14-root-reads-edge-page-cache-1.tsv 2774b43ac5970e4340339b859204bce5eb9f83d4 |
| plan14-root-reads-cli-default-console-carloku.tsv 2774b43ac5970e4340339b859204bce5eb9f83d4c2551f0984e919a2853d0216 |
| plan14-root-reads-gvisor-demos.tsv f05716181a82721b38cba9b2d89c47925dc2ca426e5c4876ebf1df7b45895ee3 |
| plan14-root-reads-dns-fresh-lookup-724.tsv 7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652 |
| +plan14-root-reads-billing-dashboard-1.tsv 7ac2bde8301c37c7546e9aa19d375f1468fc8061876a618fa8f93dd4543c5652 |