carlos / platform Public

census: rootfs-check-volumes proposal

Root-read census (Plan 14): make census-propose NAME=rootfs-check-volumes.
Envelope "." re-pinned; one new unit, ship_check_probe.go:prepareCheckDir
(reads +file:Lstat), the __rootfs-check-prepare verb run only inside the
ship --check prepare container on the person's machine, written legacy,
accepted-legacy, frozen. Card:
docs/superpowers/notes/census-proposal-rootfs-check-volumes.md. Awaiting
the independent reviewer's ruling on #280.

Record-write census (9B8): rootfsCheckVolumesWriteCensusInventory re-pins
main.go main (key-site, same literals) for the new dispatch line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev ece268bc7ae69b17307bbb97981189049462bee0 parent 85f31f0
5 files changed, +60 −1
  • docs/superpowers/notes/census-proposal-rootfs-check-volumes.md +15 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/rootfs_check_volumes_census_test.go +37 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-rootfs-check-volumes.tsv +6 −0
diff --git a/docs/superpowers/notes/census-proposal-rootfs-check-volumes.md b/docs/superpowers/notes/census-proposal-rootfs-check-volumes.md
new file mode 100644
index 000000000..e63a07dfb
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-rootfs-check-volumes.md
@@ -0,0 +1,15 @@
+# Census approval: rootfs-check-volumes
+
+Ruling `census-ruling-rootfs-check-volumes`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `.`.
+
+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.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `ship_check_probe.go:prepareCheckDir`: reads +file:Lstat; written legacy, accepted-legacy, frozen
+
+Seal: `94b8ccf921f64be24a4773f72d55a8e24ceba3acfb40eefe3b56af6f5b008138` → `87bf52b6c013b08d89d3d2e46510c7842d6a4d8a65ef919037e57f382c6bebf4`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-rootfs-check-volumes.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 4527593f2..3ac707aa4 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 := fleetSecretsKeyWriteCensusInventory()
+ inventory := rootfsCheckVolumesWriteCensusInventory()
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/rootfs_check_volumes_census_test.go b/internal/provision/rootfs_check_volumes_census_test.go
new file mode 100644
index 000000000..79496b2cb
--- /dev/null
+++ b/internal/provision/rootfs_check_volumes_census_test.go
@@ -0,0 +1,37 @@
+package provision
+
+// Record-write census entries for the ship --check data volume fix (#366,
+// branch rootfs-check-volumes), layered on fleetSecretsKeyWriteCensusInventory
+// (main's newest at the branch's base 1fa2a99b). Reviewed by the branch
+// author against the source; the census approval is recorded on #280 with
+// the root-read card
+// (docs/superpowers/notes/census-proposal-rootfs-check-volumes.md).
+//
+// One re-pin, no new unit:
+// - main.go main (key-site): dispatches __rootfs-check-prepare, the
+// carlos ship --check verb that makes the check's data volume its user's
+// inside a container on the person's machine, beside
+// __rootfs-check-probe and before the command switch; its instances and
+// sidecars literals are unchanged. It writes no record.
+func rootfsCheckVolumesWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), fleetSecretsKeyWriteCensusInventory()...)
+ repins := []censusEntry{
+ // rootfs-check-volumes: the __rootfs-check-prepare dispatch beside __rootfs-check-probe; the same literals.
+ {"main.go", "main", "key-site", "lit:instances,lit:sidecars", "9ce797683088785d55882487096e45cdbbd664fc692ccfe67c4eaea76c1be863"},
+ }
+ for _, r := range repins {
+ found := 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("rootfs-check-volumes re-pin changes the class or kinds of " + r.File + ":" + r.Unit)
+ }
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ panic("rootfs-check-volumes re-pin of an unlisted unit " + r.File + ":" + r.Unit)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 8d944141b..8e8150bef 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -34,3 +34,4 @@ plan14-root-reads-static-dir-slash.tsv fb7cd756f7c3eb2dc019c8fd55fea5475e2df7ee3
plan14-root-reads-named-unit-delivery-114.tsv d92c9d40eb2a9e66c859e2fe6df3af10a1b9d3a83b1d717ec928cb432eebb1aa
plan14-root-reads-fleet-secrets-key.tsv 9df7f5aca9a502966c9643b7062829c1c25bfbd86fa20e92d764d66f676d2cd6
plan14-root-reads-static-headers.tsv 94b8ccf921f64be24a4773f72d55a8e24ceba3acfb40eefe3b56af6f5b008138
+plan14-root-reads-rootfs-check-volumes.tsv 87bf52b6c013b08d89d3d2e46510c7842d6a4d8a65ef919037e57f382c6bebf4
diff --git a/internal/provision/testdata/plan14-root-reads-rootfs-check-volumes.tsv b/internal/provision/testdata/plan14-root-reads-rootfs-check-volumes.tsv
new file mode 100644
index 000000000..cf4e2b1f5
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-rootfs-check-volumes.tsv
@@ -0,0 +1,6 @@
+# Census overlay rootfs-check-volumes, written by census-propose (#369). census-ruling-rootfs-check-volumes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-rootfs-check-volumes.md.
+# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 68ae971d0826d417f0300390bfe36ce4f63e17a44a1dd3562afa6772e5d31476 ship_check_probe.go prepareCheckDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-check-volumes;basis=new: __rootfs-check-prepare (carlos ship --check), run only inside the check's prepare container on the person's machine (as 0:0 with CAP_CHOWN alone, no network, read-only root), never by a box: Lstats the one directory it is given (the check's data volume at /data/instances/check), refuses a symlink or non-directory, then chmod 0700 and lchown to --uid:--uid; no recursion. Read added: file:Lstat of that path. main.go dispatches the verb before the command switch beside __rootfs-check-probe; no root unit calls it. file:Lstat@67 f213124e29a00dadfc06d79f2bec3984906a33cc2ca585b6904668f94628b389
+ship_check_probe.go prepareCheckDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-check-volumes;basis=new: __rootfs-check-prepare (carlos ship --check), run only inside the check's prepare container on the person's machine (as 0:0 with CAP_CHOWN alone, no network, read-only root), never by a box: Lstats the one directory it is given (the check's data volume at /data/instances/check), refuses a symlink or non-directory, then chmod 0700 and lchown to --uid:--uid; no recursion. Read added: file:Lstat of that path. main.go dispatches the verb before the command switch beside __rootfs-check-probe; no root unit calls it. file:Lstat@67 f213124e29a00dadfc06d79f2bec3984906a33cc2ca585b6904668f94628b389
+@coverage . 226464b94908792fef13af167fb6c1fe856128570f1881f090b9c839e961716e