carlos / platform Public

Census review: envelopes get a verdict, the card shows each basis, diff against the amadan.net remote

Astra round 1 (REJECT), all three accepted:
- P1: an envelope-only card had no unit to review, so an envelope re-pin
  (how the census sees reads it cannot attribute to a unit) went
  unreviewed. The question now covers every re-pinned envelope: every
  changed function in the package and what it reaches.
- P2: "does it now read a tenant-writable input" missed weakened checks on
  inputs a disposition already permits. The card lists each unit's
  recorded disposition and basis, and the reviewer escalates on any
  weakened check, refusal, validation, argument or environment the basis
  relies on, or when the diff cannot settle it.
- P3: origin/main was hard-coded; the remote is whichever points at
  amadan.net.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 02e43f98834d9aa26da9dc5de28d6c82e41b247e parent d569c1e
3 files changed, +36 −9
  • AGENTS.md +16 −7
  • internal/provision/census_propose_internal_test.go +12 −1
  • internal/provision/census_propose_test.go +8 −1

CI passed — run details

diff --git a/AGENTS.md b/AGENTS.md
index b060f570a..a57f05a58 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -256,13 +256,22 @@ approved like this:
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.
+ card and the branch's diff against main on the amadan.net remote
+ (`origin` or `amadan`, as in the steps above). It gives a verdict for
+ every unit and every re-pinned envelope, citing the lines it read:
+ - a unit is compared with its recorded disposition and basis, which
+ the card lists;
+ - an envelope means every changed function in that package and what
+ it reaches, since an envelope re-pin is how the census sees reads its
+ scanner cannot attribute to a unit.
+
+ It escalates 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 it approves. Record each verdict
+ on #280 with the reviewer and the tip. An escalation 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.
diff --git a/internal/provision/census_propose_internal_test.go b/internal/provision/census_propose_internal_test.go
index 3c1b5a859..782e197fa 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", censusReviewQuestion} {
+ 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, "Recorded dispositions"} {
if !strings.Contains(p.Card, want) {
t.Errorf("card lacks %q:\n%s", want, p.Card)
}
@@ -371,3 +371,14 @@ func TestCensusClassifiesAKeyWithASpace(t *testing.T) {
t.Fatalf("changes = %+v, want one body for %q", cs, key)
}
}
+
+// An envelope-only card still asks the reviewer for a verdict: a re-pin
+// is how the census sees reads it cannot attribute to a unit (Astra
+// review, census-astra-approvals P1).
+func TestCensusCardReviewsAnEnvelopeAlone(t *testing.T) {
+ cs := []censusChange{{Key: "internal/a", Class: censusEnvelope, OldHash: strings.Repeat("1", 64), NewHash: strings.Repeat("2", 64)}}
+ card := rootReadCard("x", cs, nil, strings.Repeat("3", 64), "")
+ if !strings.Contains(card, censusReviewQuestion) || !strings.Contains(card, "`internal/a`") {
+ t.Errorf("card:\n%s", card)
+ }
+}
diff --git a/internal/provision/census_propose_test.go b/internal/provision/census_propose_test.go
index 13d7b5864..415fa5501 100644
--- a/internal/provision/census_propose_test.go
+++ b/internal/provision/census_propose_test.go
@@ -370,6 +370,13 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal
if len(units) > 0 || len(envelopes) > 0 {
b.WriteString(censusReviewQuestion)
}
+ if len(units) > 0 {
+ b.WriteString("Recorded dispositions, which each change must still satisfy:\n\n")
+ for _, c := range units {
+ fmt.Fprintf(&b, "- `%s` `%s`: %s, task %s. Basis: %s\n", c.Before.File, c.Before.Unit, c.Before.Class, c.Before.Task, c.Before.Basis)
+ }
+ b.WriteString("\n")
+ }
if len(decisions) > 0 {
b.WriteString("Decisions (write their rows by hand and ask on #280):\n\n")
for _, c := range decisions {
@@ -394,7 +401,7 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal
// 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"
+const censusReviewQuestion = "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.\n\n"
// censusProposeMark is in the first line of every overlay census-propose
// writes: a re-run replaces only a file that carries it.