carlos / platform Public

census: proposal for console secrets (appconfig classifier)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 44bb563ac8ed5be077748a9223fdf73196ea631f parent 104ab3a
3 files changed, +45 −0
  • docs/superpowers/notes/census-proposal-design-console-secrets.md +27 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv +17 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>a8c12a371cf421417</task-id> <tool-use-id>toolu_0163MxWNSfKh6C4ShvBJ1e2T</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/abe35d56-e4c2-40df-9005-6e66b76b1f50/tasks/a8c12a371cf421417.output</output-file> <status>completed</status> <summary>Agent "Implement Task 8 Save" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>All 8 Astra round-1 findings are fixed in commit 104ab3a0. It builds on your copy pass and changes only the three P2-3 outcome lines. - **Admission (P1-5, P2-2):** every op now passes the gates in your order, and only then does the page or any bundle get read. A rate-limited post now gets a plain message page with no form, so the draft isn't drawn back. - **Classification (P1-1):** the whole post is checked once before any op. A refusal draws nothing back and writes nothing. - **Edits, keys, add rows (P1-2, P1-3, P1-4, P2-1):** edits compare against a carried `orig.*`, and each envelope carries its own `fp.*`. Save refuses an envelope sealed to an old key. Save takes its own card's add row and refuses another card's. If a bundle can't be read, the draft comes back with Save off and a "Try again" button. - **Tests:** one regression test per reproduction, in `envformgate_test.go`. The targeted run including Chromium passes in 45 s. Two mutation checks were caught. Report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-console-secrets/.superpowers/sdd/2026-11-08-console-secrets/task-8-report.md`</result> <usage><subagent_tokens>300144</subagent_tokens><tool_uses>22</tool_uses><duration_ms>855082</duration_ms></usage> </task-notification>

Attributed to this commit: 53.3 g CO₂e (6,666,128 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-console-secrets, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-design-console-secrets.md b/docs/superpowers/notes/census-proposal-design-console-secrets.md
new file mode 100644
index 000000000..53786b3dc
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-design-console-secrets.md
@@ -0,0 +1,27 @@
+# Census approval: design-console-secrets
+
+Ruling `census-ruling-design-console-secrets`. The independent reviewer approves or rejects every change below, 3 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/appconfig/syncexec.go` `AwaitingRestart` | sites | -registry:App, -registry:Environment ×5, -registry:Host ×12, -registry:Unit, -whole:Route ×4 | now a projection of ClassifyWrite (reach.go): the per-route reach and resolution moved there unchanged; Pending() rebuilds today's Hosts/Unresolved/Undelivered/Blocked from the old notice's own rules; read sites moved out, none added |
+| `internal/appconfig/syncexec.go` `SyncExecWithCallbacks` | sites | -registry:Host, -whole:Route | the <host>.config collision set is built by routeHostSet (shared with the classifier) instead of inline; same rows read, same skip; no read site added |
+
+Envelopes re-pinned: `.`, `internal/appconfig`, `internal/rollout`, `internal/status`.
+
+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.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/appconfig/syncexec.go` `AwaitingRestart`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): a route bound to an OWNED environment bundle is skipped for a default-bundle write (it reads none of it) and its exec_delivery is resolved through standaloneDefault (no inheritance); the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=stamped routes (stampedForDelivery) in the notice: a BlockedStamps reason reported after the environment narrowing and the owned-environment boundary, the default bundle loaded for a stamped route whatever the exec-delivery opt-in and the instance overlay loaded through the loader the pass already uses, a failure of either reported Unresolved, an un-opted addr route reported Undelivered; reads Host, Environment and whole Route of rows already listed; no new bucket key
+- `internal/appconfig/syncexec.go` `SyncExecWithCallbacks`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=route-and-input (J1,J4, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), through syncExecSerialized: main's body, with a nested row whose write found no instance directory named and skipped (errInstanceDirAbsent, WhenInstanceDirAbsent) instead of failing the pass, and each in-scope host reported done or not done (WithHostOutcome) once the pass has gone through every route; no new read site;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the scoped pass's route filter (WithRouteFilter, syncOptions.kept) is checked in its three route loops, so a route the filter leaves out is out of scope before anything is read for it; three whole-Route sites added, each passing rt to kept; no bucket or file read added;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): checkOptedIn's default-bundle thunk answers no default bundle for an OWNED environment bundle, so its exec_delivery is its own and never inherited; the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=the stale-file notice loop gains the stamped case: os.Stat of ConfigEnvPath(dataDir, rt), the path the exec-addr case already stats, and a notice line; no write, no new path
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/appconfig/reach.go:ClassifyWrite`: reads +registry:App, +registry:Environment ×5, +registry:Host ×18, +registry:Status ×3, +registry:Unit ×3, +whole:Route ×9; written legacy, accepted-legacy, frozen
+- new `internal/appconfig/reach.go:reachShape`: reads +registry:Backing, +whole:Route ×5; written legacy, accepted-legacy, frozen
+- new `internal/appconfig/syncexec.go:routeHostSet`: reads +registry:Host, +whole:Route ×2; written legacy, accepted-legacy, frozen
+
+Seal: `75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4` → `2bc6cac82830d78932f5ba9de442804df09cb313cdfb0f6072c2226200491199`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 5217f22f9..369d8ae47 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -129,3 +129,4 @@ plan14-root-reads-region-ha-dr5.tsv f19eb78c1da1475cbf8e11a3d6c394d828aa1c8f88ae
plan14-root-reads-instance-syscall-filter.tsv b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c
plan14-root-reads-instance-restore-658-cli.tsv b970bb28c5a633d2572a1da549030e9258cfdabb6322ddffdd0ebf41b56c464c
plan14-root-reads-instance-stop-execstop-528.tsv 75fb3eb24d0bf3a8405b929675d919ec88f15386d43e9ff687ce138a7ed968a4
+plan14-root-reads-design-console-secrets.tsv 2bc6cac82830d78932f5ba9de442804df09cb313cdfb0f6072c2226200491199
diff --git a/internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv b/internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv
new file mode 100644
index 000000000..4740bf92a
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv
@@ -0,0 +1,17 @@
+# Census overlay design-console-secrets, written by census-propose (#369). census-ruling-design-console-secrets, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-design-console-secrets.md.
+# 0 body, 2 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 3 new dispositions: 0 reads re-frozen at their disposition with the claim, 3 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 639ba75b26a9e14c0efd4b2473f376555973bb18e09e3452965b553d791cb712 internal/appconfig/reach.go ClassifyWrite legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new; called by the console (config door, settings Save) and, through AwaitingRestart, by the CLI notice run as the invoking person; no root pass or agent pass calls it: classifies routes already listed from the registry plus provision-record hosts and box-report facts handed in by the caller; reads registry fields of those rows and the same bundles/overlay AwaitingRestart read; writes nothing registry:App@2562,registry:Environment@2955,registry:Environment@3769,registry:Environment@3808,registry:Environment@4741,registry:Environment@5823,registry:Host@10349,registry:Host@3022,registry:Host@4528,registry:Host@4599,registry:Host@4694,registry:Host@5115,registry:Host@5661,registry:Host@6189,registry:Host@6327,registry:Host@6443,registry:Host@6570,registry:Host@6662,registry:Host@6769,registry:Host@6901,registry:Host@7005,registry:Host@7402,registry:Host@7724,registry:Host@9090,registry:Status@2417,registry:Status@2436,registry:Status@2490,registry:Unit@3037,registry:Unit@6784,registry:Unit@7020,whole:Route@10332,whole:Route@2014,whole:Route@2468,whole:Route@2543,whole:Route@2600,whole:Route@3618,whole:Route@3660,whole:Route@507,whole:Route@922 8d6210254228ef0a8ff8ef03e341c9ac3598aa8d7ded58608f147457a1dfb6ea
+@legacy a46c84a812799b13af110c4659ab6cfb3681c202d8dfd6da7748694990d49dc4 internal/appconfig/reach.go reachShape legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new: picks a route's delivery shape from the existing predicates (stampedForDelivery, Backing, execSyncable, execSidecarCandidate, execAddrCandidate); reads fields of a row already listed; writes nothing registry:Backing@156,whole:Route@149,whole:Route@241,whole:Route@305,whole:Route@367,whole:Route@91 7003002dfc0e9683302c80a99088af4a6795645c57fe22fb6bb0446456ac6edf
+@legacy ae066157e571e5a52290accfddf566c56109cad38eda06b07ac3a604949e13df internal/appconfig/syncexec.go routeHostSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new: the set of hosts in a route list, extracted from SyncExec's inline loop for the .config collision check; reads Host of rows already listed registry:Host@147,whole:Route@128,whole:Route@99 311ff0a23ac5531d3402ade6bf09172c7ce031eaacf544a10492af508df8f914
+@legacy eb16930178b0bac21aef6358ed53413ee686ea0611f8c4da73de62572480c43e internal/appconfig/syncexec.go AwaitingRestart legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): a route bound to an OWNED environment bundle is skipped for a default-bundle write (it reads none of it) and its exec_delivery is resolved through standaloneDefault (no inheritance); the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=stamped routes (stampedForDelivery) in the notice: a BlockedStamps reason reported after the environment narrowing and the owned-environment boundary, the default bundle loaded for a stamped route whatever the exec-delivery opt-in and the instance overlay loaded through the loader the pass already uses, a failure of either reported Unresolved, an un-opted addr route reported Undelivered; reads Host, Environment and whole Route of rows already listed; no new bucket key;rev3=census-ruling-design-console-secrets;basis=now a projection of ClassifyWrite (reach.go): the per-route reach and resolution moved there unchanged; Pending() rebuilds today's Hosts/Unresolved/Undelivered/Blocked from the old notice's own rules; read sites moved out, none added whole:Route@371 13b9df27e53aa3e0e6315411b13eaa574473f7efbac769a3f2b6cbd7edf7efe7
+@legacy 335427c3a939bd00f6458be220212f905624b82947ac669932e34aab44d3ecbc internal/appconfig/syncexec.go SyncExecWithCallbacks legacy accepted-legacy accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=route-and-input (J1,J4, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), through syncExecSerialized: main's body, with a nested row whose write found no instance directory named and skipped (errInstanceDirAbsent, WhenInstanceDirAbsent) instead of failing the pass, and each in-scope host reported done or not done (WithHostOutcome) once the pass has gone through every route; no new read site;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the scoped pass's route filter (WithRouteFilter, syncOptions.kept) is checked in its three route loops, so a route the filter leaves out is out of scope before anything is read for it; three whole-Route sites added, each passing rt to kept; no bucket or file read added;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): checkOptedIn's default-bundle thunk answers no default bundle for an OWNED environment bundle, so its exec_delivery is its own and never inherited; the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=the stale-file notice loop gains the stamped case: os.Stat of ConfigEnvPath(dataDir, rt), the path the exec-addr case already stats, and a notice line; no write, no new path;rev3=census-ruling-design-console-secrets;basis=the <host>.config collision set is built by routeHostSet (shared with the classifier) instead of inline; same rows read, same skip; no read site added file:Stat@28831,file:Stat@30060,registry:App@10524,registry:App@10739,registry:App@16285,registry:App@28711,registry:Environment@10532,registry:Environment@10747,registry:Environment@16293,registry:Environment@28719,registry:Host@1031,registry:Host@1066,registry:Host@15793,registry:Host@16120,registry:Host@16218,registry:Host@17050,registry:Host@17401,registry:Host@18336,registry:Host@18877,registry:Host@21804,registry:Host@22021,registry:Host@22599,registry:Host@22779,registry:Host@22788,registry:Host@22807,registry:Host@25708,registry:Host@26325,registry:Host@26377,registry:Host@26533,registry:Host@29228,registry:Host@30378,registry:Host@866,registry:Host@937,whole:Route@10294,whole:Route@10352,whole:Route@10417,whole:Route@10478,whole:Route@10519,whole:Route@10636,whole:Route@10670,whole:Route@10734,whole:Route@1434,whole:Route@15705,whole:Route@15755,whole:Route@16280,whole:Route@25304,whole:Route@25718,whole:Route@26422,whole:Route@28579,whole:Route@28601,whole:Route@28659,whole:Route@28706,whole:Route@28811,whole:Route@29269,whole:Route@30040,whole:Route@30619,whole:Route@30692,whole:Route@693,whole:Route@721,whole:Route@750,whole:Route@776,whole:Route@811 75cfef9de4833036383a6db0d6a8dd04ea6fd963119af516b03351fdf9c6a375
+internal/appconfig/reach.go ClassifyWrite legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new; called by the console (config door, settings Save) and, through AwaitingRestart, by the CLI notice run as the invoking person; no root pass or agent pass calls it: classifies routes already listed from the registry plus provision-record hosts and box-report facts handed in by the caller; reads registry fields of those rows and the same bundles/overlay AwaitingRestart read; writes nothing registry:App@2562,registry:Environment@2955,registry:Environment@3769,registry:Environment@3808,registry:Environment@4741,registry:Environment@5823,registry:Host@10349,registry:Host@3022,registry:Host@4528,registry:Host@4599,registry:Host@4694,registry:Host@5115,registry:Host@5661,registry:Host@6189,registry:Host@6327,registry:Host@6443,registry:Host@6570,registry:Host@6662,registry:Host@6769,registry:Host@6901,registry:Host@7005,registry:Host@7402,registry:Host@7724,registry:Host@9090,registry:Status@2417,registry:Status@2436,registry:Status@2490,registry:Unit@3037,registry:Unit@6784,registry:Unit@7020,whole:Route@10332,whole:Route@2014,whole:Route@2468,whole:Route@2543,whole:Route@2600,whole:Route@3618,whole:Route@3660,whole:Route@507,whole:Route@922 8d6210254228ef0a8ff8ef03e341c9ac3598aa8d7ded58608f147457a1dfb6ea
+internal/appconfig/reach.go reachShape legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new: picks a route's delivery shape from the existing predicates (stampedForDelivery, Backing, execSyncable, execSidecarCandidate, execAddrCandidate); reads fields of a row already listed; writes nothing registry:Backing@156,whole:Route@149,whole:Route@241,whole:Route@305,whole:Route@367,whole:Route@91 7003002dfc0e9683302c80a99088af4a6795645c57fe22fb6bb0446456ac6edf
+internal/appconfig/syncexec.go routeHostSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-design-console-secrets;basis=new: the set of hosts in a route list, extracted from SyncExec's inline loop for the .config collision check; reads Host of rows already listed registry:Host@147,whole:Route@128,whole:Route@99 311ff0a23ac5531d3402ade6bf09172c7ce031eaacf544a10492af508df8f914
+internal/appconfig/syncexec.go AwaitingRestart legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): a route bound to an OWNED environment bundle is skipped for a default-bundle write (it reads none of it) and its exec_delivery is resolved through standaloneDefault (no inheritance); the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=stamped routes (stampedForDelivery) in the notice: a BlockedStamps reason reported after the environment narrowing and the owned-environment boundary, the default bundle loaded for a stamped route whatever the exec-delivery opt-in and the instance overlay loaded through the loader the pass already uses, a failure of either reported Unresolved, an un-opted addr route reported Undelivered; reads Host, Environment and whole Route of rows already listed; no new bucket key;rev3=census-ruling-design-console-secrets;basis=now a projection of ClassifyWrite (reach.go): the per-route reach and resolution moved there unchanged; Pending() rebuilds today's Hosts/Unresolved/Undelivered/Blocked from the old notice's own rules; read sites moved out, none added whole:Route@371 13b9df27e53aa3e0e6315411b13eaa574473f7efbac769a3f2b6cbd7edf7efe7
+internal/appconfig/syncexec.go SyncExecWithCallbacks legacy accepted-legacy accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=route-and-input (J1,J4, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), through syncExecSerialized: main's body, with a nested row whose write found no instance directory named and skipped (errInstanceDirAbsent, WhenInstanceDirAbsent) instead of failing the pass, and each in-scope host reported done or not done (WithHostOutcome) once the pass has gone through every route; no new read site;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the scoped pass's route filter (WithRouteFilter, syncOptions.kept) is checked in its three route loops, so a route the filter leaves out is out of scope before anything is read for it; three whole-Route sites added, each passing rt to kept; no bucket or file read added;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): checkOptedIn's default-bundle thunk answers no default bundle for an OWNED environment bundle, so its exec_delivery is its own and never inherited; the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=the stale-file notice loop gains the stamped case: os.Stat of ConfigEnvPath(dataDir, rt), the path the exec-addr case already stats, and a notice line; no write, no new path;rev3=census-ruling-design-console-secrets;basis=the <host>.config collision set is built by routeHostSet (shared with the classifier) instead of inline; same rows read, same skip; no read site added file:Stat@28831,file:Stat@30060,registry:App@10524,registry:App@10739,registry:App@16285,registry:App@28711,registry:Environment@10532,registry:Environment@10747,registry:Environment@16293,registry:Environment@28719,registry:Host@1031,registry:Host@1066,registry:Host@15793,registry:Host@16120,registry:Host@16218,registry:Host@17050,registry:Host@17401,registry:Host@18336,registry:Host@18877,registry:Host@21804,registry:Host@22021,registry:Host@22599,registry:Host@22779,registry:Host@22788,registry:Host@22807,registry:Host@25708,registry:Host@26325,registry:Host@26377,registry:Host@26533,registry:Host@29228,registry:Host@30378,registry:Host@866,registry:Host@937,whole:Route@10294,whole:Route@10352,whole:Route@10417,whole:Route@10478,whole:Route@10519,whole:Route@10636,whole:Route@10670,whole:Route@10734,whole:Route@1434,whole:Route@15705,whole:Route@15755,whole:Route@16280,whole:Route@25304,whole:Route@25718,whole:Route@26422,whole:Route@28579,whole:Route@28601,whole:Route@28659,whole:Route@28706,whole:Route@28811,whole:Route@29269,whole:Route@30040,whole:Route@30619,whole:Route@30692,whole:Route@693,whole:Route@721,whole:Route@750,whole:Route@776,whole:Route@811 75cfef9de4833036383a6db0d6a8dd04ea6fd963119af516b03351fdf9c6a375
+@coverage . bba7704e5cfa879667713e799122d8617cee309519c93750b5c5ba3dc196f871
+@coverage internal/appconfig 836113f45f48c49ea014b9f81289b79ae525f46811c79d8edae6393b47b14745
+@coverage internal/rollout c42a447c2c1a5c248bd3c9555ecab1d667b421c7b3852a09b8d5fdb4662e3dff
+@coverage internal/status 7a0a42d1f147673e2186782a9b788e2dc34ca3945db629ff69a5b26afb78e5a1