Census approvals go to an independent reviewer; the owner keeps decisions
The body/sites/envelope classes still need someone other than the author to read the diff (a body change can aim an existing Open at a tenant-writable path), but that need not be the census owner. A model from the other family reviews against one question the card now prints; escalations and decisions (reads/new/removed/other) stay with Paul.
Human
Prompt
Why do I need to approve every census update? What's that getting us? Shouldn't that just be an internal thing to keep up to date? Sounds good.
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+39
−15
AGENTS.md+24 −9internal/provision/census_propose_internal_test.go+1 −1internal/provision/census_propose_test.go+14 −5
CI cancelled — superseded by a newer push — run details
diff --git a/AGENTS.md b/AGENTS.md| index 59be1f922..b060f570a 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -222,13 +222,15 @@ anything. |
| GOPROXY=off`; go commands may need the sandbox disabled ("read-only file |
| system" from the toolchain is the tell). |
| -## The census: an approval, not a decision (Paul, 2026-10-24, #369) |
| +## The census: an approval, not a decision (Paul, 2026-10-24, #369; reviewer, 2026-10-25) |
| `TestPlan14RootReadCensus` (`internal/provision`) fails when a branch |
| changes a unit that reads root-owned state, or a package inside the |
| -census envelope. Every such change needs the census owner's approval on |
| -#280 before the merge. Most are approvals: the same reads in an edited |
| -body, or an envelope fingerprint that moved. Get them approved like this: |
| +census envelope. Every such change needs an approval on #280 before the |
| +merge. Most are approvals: the same reads in an edited body, or an |
| +envelope fingerprint that moved. An independent reviewer gives those; |
| +the census owner (Paul) sees only decisions and escalations. Get them |
| +approved like this: |
| 1. `make census-card` prints what changed and writes nothing. Each change |
| has a class: |
| @@ -251,18 +253,31 @@ body, or an envelope fingerprint that moved. Get them approved like this: |
| if any step fails. If the code changes again, rerun it with the same |
| NAME: it replaces its own overlay (only one it wrote itself), which must |
| still be the last line of the chain. |
| -4. Show the card to the census owner and ask for an approval. Ask in the |
| - session when they are there (one question: approve or hold); otherwise |
| - post the card on #280. Record the approval on #280: who, when, and the |
| - tip. Rows carry `rev3=census-ruling-<NAME>` from the start, so there is |
| +4. Get the approval from an independent reviewer: a model from the other |
| + family than the one that wrote the change (Astra for a Claude author, |
| + Opus or Fable for a Codex one), never the author itself. Give it the |
| + card and `git diff origin/main...HEAD` for the files the card names, |
| + and the one question the card prints: does any root read in these |
| + units now open, run, query or follow a path or input that a tenant, an |
| + app or a box agent can create, write or name? It answers approve or |
| + escalate for each unit, citing the lines it read. Record the verdict on |
| + #280: the reviewer, the tip, and approve or escalate. An escalation, or |
| + a reviewer that cannot tell, goes to the census owner as a decision. |
| + Rows carry `rev3=census-ruling-<NAME>` from the start, so there is |
| nothing to flip afterwards and no second CI run. |
| +Why a reviewer and not an automatic pass: the classes count kinds of |
| +read, not where a read points, so a `body` change can aim an existing |
| +`Open` at a tenant-writable path. Someone other than the author has to |
| +read the diff, but it need not be the owner. |
| + |
| The tool refuses decisions (`reads`, `new`, `removed`, `other`): a new |
| kind of read can make a unit's disposition wrong, so it is the owner's |
| call, not an approval. Write those rows by hand, following the overlays in the |
| chain, and ask on #280 with the card attached; the census owner decides |
| those. Nothing about the census's strength changes: every changed read is |
| -still named, digested and seen by a person before merge. The record-write |
| +still named, digested and read by someone other than its author before |
| +merge. The record-write |
| census (9B8, the `*_census_test.go` inventories) still takes hand-written |
| entries. |
diff --git a/internal/provision/census_propose_internal_test.go b/internal/provision/census_propose_internal_test.go| index 19a267956..3c1b5a859 100644 |
| --- a/internal/provision/census_propose_internal_test.go |
| +++ b/internal/provision/census_propose_internal_test.go |
| @@ -168,7 +168,7 @@ func TestCensusProposalClosesEveryApprovableChange(t *testing.T) { |
| t.Errorf("row does not name the ruling: %s", line) |
| } |
| } |
| - for _, want := range []string{"census-ruling-wake-timing", "internal/a/a.go", "body", "sites", "+registry:Host", "internal/a", seal, p.Seal, "logs the wake's timing"} { |
| + for _, want := range []string{"census-ruling-wake-timing", "internal/a/a.go", "body", "sites", "+registry:Host", "internal/a", seal, p.Seal, "logs the wake's timing", censusReviewQuestion} { |
| if !strings.Contains(p.Card, want) { |
| t.Errorf("card lacks %q:\n%s", want, p.Card) |
| } |
diff --git a/internal/provision/census_propose_test.go b/internal/provision/census_propose_test.go| index 7dd3fa823..13d7b5864 100644 |
| --- a/internal/provision/census_propose_test.go |
| +++ b/internal/provision/census_propose_test.go |
| @@ -6,8 +6,8 @@ package provision |
| // the same reads in an edited body, or an envelope fingerprint that moved. |
| // This file classifies each discrepancy, writes the overlay that closes the |
| // approvable ones (rows, @legacy fingerprints, envelope re-pins, the seal, |
| -// the chain manifest line), and the approval card a person reads to |
| -// approve it. Changes that need a disposition (a new unit, a removed one, |
| +// the chain manifest line), and the approval card an independent reviewer |
| +// reads to approve it. Changes that need a disposition (a new unit, a removed one, |
| // the scanner's field list) are decisions: it names them and writes |
| // nothing. |
| // |
| @@ -291,7 +291,7 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string |
| plain = append(plain, row) |
| } |
| header := []string{ |
| - fmt.Sprintf("# Census overlay %s, "+censusProposeMark+". %s, approved by the census owner before the merge; the approval card is docs/superpowers/notes/census-proposal-%s.md.", name, ruling, name), |
| + fmt.Sprintf("# Census overlay %s, "+censusProposeMark+". %s, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-%s.md.", name, ruling, name), |
| fmt.Sprintf("# %d body, %d sites, %d envelope: each changed unit re-frozen at its existing disposition with its claim appended.", counts[censusBody], counts[censusSites], counts[censusEnvelope]), |
| } |
| overlay := strings.Join(append(append(append(header, frozen...), plain...), cover...), "\n") + "\n" |
| @@ -324,8 +324,10 @@ func censusDiscrepancies(got rootReadScan, inv rootReadInventory, seal string) [ |
| return append(errs, checkRootReadDeclarations(got, inv)...) |
| } |
| -// rootReadCard is what a person reads to approve the change. newSeal is |
| -// empty for a dry run (make census-card). |
| +// rootReadCard is what the reviewer reads to approve the change (AGENTS.md, |
| +// The census): someone other than the author, because the classes count |
| +// kinds of read, not where a read points. newSeal is empty for a dry run |
| +// (make census-card). |
| func rootReadCard(name string, cs []censusChange, claims map[string]string, seal, newSeal string) string { |
| var b strings.Builder |
| fmt.Fprintf(&b, "# Census approval: %s\n\n", name) |
| @@ -365,6 +367,9 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal |
| if len(envelopes) > 0 { |
| fmt.Fprintf(&b, "Envelopes re-pinned: %s.\n\n", strings.Join(envelopes, ", ")) |
| } |
| + if len(units) > 0 || len(envelopes) > 0 { |
| + b.WriteString(censusReviewQuestion) |
| + } |
| if len(decisions) > 0 { |
| b.WriteString("Decisions (write their rows by hand and ask on #280):\n\n") |
| for _, c := range decisions { |
| @@ -387,6 +392,10 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal |
| return b.String() |
| } |
| +// censusReviewQuestion is what the independent reviewer answers for the |
| +// approvals on a card (AGENTS.md, The census). |
| +const censusReviewQuestion = "Review: a model from the other family than the author reads `git diff origin/main...HEAD` for the units above and answers, for each, approve or escalate: does any root read in it now open, run, query or follow a path or input that a tenant, an app or a box agent can create, write or name? Record the verdict on #280 with the tip. An escalation goes to the census owner as a decision.\n\n" |
| + |
| // censusProposeMark is in the first line of every overlay census-propose |
| // writes: a re-run replaces only a file that carries it. |
| const censusProposeMark = "written by census-propose (#369)" |