census: domain transfers (root reads + record writes)
Root reads: overlay domain-transfers re-pins the envelopes . and internal/registrar; no unit changed, seal unchanged. Card at docs/superpowers/notes/census-proposal-domain-transfers.md. Record writes: domainTransfersWriteCensusInventory on fleetRestartWakeWriteCensusInventory re-pins var routeDecls (five new gateNoHostClaim transfer routes), class and kinds unchanged. linkedPolicies is unchanged. The layer is not in notscanned.go: gitleaks does not flag it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+60
−1
docs/superpowers/notes/census-proposal-domain-transfers.md+11 −0internal/provision/domain_transfers_census_test.go+43 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-domain-transfers.tsv+4 −0
diff --git a/docs/superpowers/notes/census-proposal-domain-transfers.md b/docs/superpowers/notes/census-proposal-domain-transfers.md| new file mode 100644 |
| index 000000000..4983679a8 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-domain-transfers.md |
| @@ -0,0 +1,11 @@ |
| +# Census approval: domain-transfers |
| + |
| +Ruling `census-ruling-domain-transfers`. 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/registrar`. |
| + |
| +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: `f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6` → `f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-domain-transfers.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/provision/domain_transfers_census_test.go b/internal/provision/domain_transfers_census_test.go| new file mode 100644 |
| index 000000000..196cf362a |
| --- /dev/null |
| +++ b/internal/provision/domain_transfers_census_test.go |
| @@ -0,0 +1,43 @@ |
| +package provision |
| + |
| +// domainTransfersWriteCensusInventory is the record-write census for |
| +// domain transfers in (branch design-domain-transfers, plan |
| +// 2026-11-21-domain-registration-transfers-in), layered on |
| +// fleetRestartWakeWriteCensusInventory (main's newest at the branch's |
| +// merge base d3266e8e). No deployment-bucket record write is added, moved |
| +// or reclassified; one unit is re-pinned with its class and kinds: |
| +// |
| +// - var routeDecls (internal/console/routedecls.go): re-digested. The |
| +// branch adds five declarations, all gateNoHostClaim: the account |
| +// transfer form and its start (GET and POST |
| +// /a/{sqid}/domains/transfer/{domain}, Task 9), the CLI transfer check |
| +// and start (POST /api/cli/accounts/{account}/domains/transfers/check |
| +// and .../transfers, Task 10) and the operator's resolve door (POST |
| +// /api/cli/system/domains/purchases/{id}/resolve, Task 6). None names |
| +// instances or sidecars; the lit:instances and lit:sidecars sites are |
| +// the existing route patterns, unchanged. |
| +// |
| +// var linkedPolicies (internal/console/linkedpolicy.go) keeps its digest: |
| +// the new routes are account and system doors, not {app} routes, so the |
| +// linked-app table needs no row for them. |
| +func domainTransfersWriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), fleetRestartWakeWriteCensusInventory()...) |
| + for _, r := range []censusEntry{ |
| + {"internal/console/routedecls.go", "var routeDecls", "key-site", "lit:instances,lit:sidecars", "c9761191c08e520e630ab01ce439691ad669c1abdcb2e6c525eff7fd042cd44f"}, |
| + } { |
| + replaced := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + if e.Class != r.Class || e.Kinds != r.Kinds { |
| + panic("domain-transfers census: classification changed for " + r.File + ":" + r.Unit) |
| + } |
| + entries[i], replaced = r, true |
| + break |
| + } |
| + } |
| + if !replaced { |
| + panic("domain-transfers census: re-pin of an unlisted unit " + r.File + ":" + r.Unit) |
| + } |
| + } |
| + return entries |
| +} |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index f267413cc..c7d6684f0 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 := fleetRestartWakeWriteCensusInventory() |
| + inventory := domainTransfersWriteCensusInventory() |
| 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/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index d6b71e9a3..6a11215b5 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -274,3 +274,4 @@ plan14-root-reads-media-spike-fixes.tsv 194e88ad9cd7413c93b1181c0ac1e962107039ad |
| plan14-root-reads-media-spike-values.tsv 194e88ad9cd7413c93b1181c0ac1e962107039ad84525e065893a8c14cdb3138 |
| plan14-root-reads-path-routes-across-boxes.tsv f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6 |
| plan14-root-reads-headers-security-allowlist.tsv f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6 |
| +plan14-root-reads-domain-transfers.tsv f959a3626e83650aaad1880eecc3feddebdbd78474937f4c619df658eb46a1d6 |
diff --git a/internal/provision/testdata/plan14-root-reads-domain-transfers.tsv b/internal/provision/testdata/plan14-root-reads-domain-transfers.tsv| new file mode 100644 |
| index 000000000..f7cd619a6 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-domain-transfers.tsv |
| @@ -0,0 +1,4 @@ |
| +# Census overlay domain-transfers, written by census-propose (#369). census-ruling-domain-transfers, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-domain-transfers.md. |
| +# 0 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@coverage . 483d9802c20b9bb97b1d5733b4efa56b08b0e82b34a3fc30341b21b14515f26b |
| +@coverage internal/registrar e21ce8885350c0ad730c1a885568f4c07af266a1b4d6b4c50b063df76e666798 |