carlos / platform Public

Gate fixes: record-write census, parity page, pinned seats string

The full gate failed on three checks this branch caused. The record-write census rejected routeDecls, whose only change is the removed seats door: a flat-plans layer re-pins it, with the review in its comment. docs/parity.md is regenerated (make parity-doc) for the dropped route. BDP-149's '%s seats' constant is restored, unused, because the approved billing-dashboard copy record pins it.

The other local failures (internal/host lifecycle provider, activator store-time deadlines, a hostexec timeout) fail the same way at the base commit b9eaea97c on this shared box, so they are environmental.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 12003f22c70386cbe95433c26b1a951c167bba40 parent 61ea5dd
4 files changed, +36 −3
  • docs/parity.md +1 −1
  • internal/console/opbilling_copy.go +4 −1
  • internal/provision/flat_plans_census_test.go +30 −0
  • internal/provision/plan9_b8_census_test.go +1 −1

CI passed — run details

diff --git a/docs/parity.md b/docs/parity.md
index ac1e801e5..1464719fa 100644
--- a/docs/parity.md
+++ b/docs/parity.md
@@ -63,7 +63,7 @@ CLI rows are checked against the command registry (`parity/cli.tsv`).
| Row | Status | CLI | Console | Package | Note |
|---|---|---|---|---|---|
-| billing | console-only | | `GET /a/{sqid}/billing`<br>`GET /upgrade`<br>`POST /a/{sqid}/billing/confirm`<br>`POST /a/{sqid}/billing/checkout`<br>`GET /a/{sqid}/billing/continue`<br>`GET /a/{sqid}/billing/done`<br>`POST /a/{sqid}/billing/change`<br>`POST /a/{sqid}/billing/renewal`<br>`POST /a/{sqid}/billing/seats`<br>`POST /a/{sqid}/billing/portal`<br>`POST /a/{sqid}/billing/card` | | Payment goes through the Stripe pages in a browser. |
+| billing | console-only | | `GET /a/{sqid}/billing`<br>`GET /upgrade`<br>`POST /a/{sqid}/billing/confirm`<br>`POST /a/{sqid}/billing/checkout`<br>`GET /a/{sqid}/billing/continue`<br>`GET /a/{sqid}/billing/done`<br>`POST /a/{sqid}/billing/change`<br>`POST /a/{sqid}/billing/renewal`<br>`POST /a/{sqid}/billing/portal`<br>`POST /a/{sqid}/billing/card` | | Payment goes through the Stripe pages in a browser. |
## config
diff --git a/internal/console/opbilling_copy.go b/internal/console/opbilling_copy.go
index 3f1776a7d..7ed1ad5ad 100644
--- a/internal/console/opbilling_copy.go
+++ b/internal/console/opbilling_copy.go
@@ -364,7 +364,10 @@ const (
billCopyDashTileLink = "Billing"
// BDP-148: after the note, only in test mode.
billCopyDashTileTestMode = "Stripe test mode"
- // BDP-149: overview and accounts page, under the plan name.
+ // BDP-149: overview and accounts page, under the plan name. Unused
+ // since per-member plans went (#1033); kept because the approved
+ // record pins it.
+ billCopySeats = "%s seats"
// BDP-150: overview and accounts page, under the plan name, after BDP-149 joined by a comma.
billCopyPacks = "%s packs"
)
diff --git a/internal/provision/flat_plans_census_test.go b/internal/provision/flat_plans_census_test.go
new file mode 100644
index 000000000..d3fa8dfff
--- /dev/null
+++ b/internal/provision/flat_plans_census_test.go
@@ -0,0 +1,30 @@
+package provision
+
+// flatPlansWriteCensusInventory is the flat-plans branch's (#1033) review
+// of the record-write census, layered on the G6 pool path's inventory.
+// Self-review only; the independent #280 verdict is the reviewer's.
+//
+// - var routeDecls (internal/console/routedecls.go): one declaration
+// removed, "POST /a/{sqid}/billing/seats" (Match seats), whose handler
+// went with per-member billing. No declaration is added or changed, so
+// no record key or bucket object is newly reachable from a door.
+// key-site, kinds as before.
+// - No other unit: at the branch tip the census rejects routeDecls alone.
+func flatPlansWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), g6PoolWriteCensusInventory()...)
+ for _, r := range []censusEntry{
+ {"internal/console/routedecls.go", "var routeDecls", "key-site", "lit:instances,lit:sidecars", "3549d749f1dae9279fb34f062f87157d696d69aec9f63aadf7a4802af61336e2"},
+ } {
+ 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
+}
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 9bc78108d..a0b5903ad 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 := g6PoolWriteCensusInventory()
+ inventory := flatPlansWriteCensusInventory()
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 "))