carlos / platform Public

census-ruling-claim-own-child: record platform-d8's acceptance (O1 to O4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 51983ecf84caa78d4c9325fa7775c7a6bd1e64e6 parent e2c006d
3 files changed, +8 −8
  • docs/superpowers/notes/census-proposal-claim-step8-readiness.md +1 −1
  • internal/provision/plan14_root_reads_test.go +2 −2
  • internal/provision/testdata/plan14-root-reads-claim-own-child.tsv +5 −5

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
index 4dfb60d9d..afe3d6dc9 100644
--- a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
+++ b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
@@ -141,7 +141,7 @@ Tests: `TestMigrationCensusKeepsRatchetsAndActivationLock` reproduces each harne
## Own child
-Status: PROPOSED to platform-d8. The harness's fourth 8.2 stop was `/proc/<pid>/task/<pid>: service: permission denied`. It comes from the retired-generation kernel census, which journal-migrate runs after the migration census. The census refused journal-migrate's own service-user registry child: uid 989, with journal-migrate as its parent. The root-task rule accepts a non-root task only inside a service whose ExecStart selects the running binary, and from an SSM or ssh root shell the child is in none. The quiesce scan had the same defect (G7, fixed at 465c3a08).
+Status: RULED (platform-d8, 2026-10-20): accepted as proposed (O1 to O4). Astra approved 5efe8763..e2c006d2 with no findings. The harness's fourth 8.2 stop was `/proc/<pid>/task/<pid>: service: permission denied`. It comes from the retired-generation kernel census, which journal-migrate runs after the migration census. The census refused journal-migrate's own service-user registry child: uid 989, with journal-migrate as its parent. The root-task rule accepts a non-root task only inside a service whose ExecStart selects the running binary, and from an SSM or ssh root shell the child is in none. The quiesce scan had the same defect (G7, fixed at 465c3a08).
The re-pins are in a new overlay, `internal/provision/testdata/plan14-root-reads-claim-own-child.tsv`, loaded last and marked `rev3=PROPOSED-claim-own-child`. It adds no accepted-legacy row, so the seal stands.
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go
index 138830f84..6393914b7 100644
--- a/internal/provision/plan14_root_reads_test.go
+++ b/internal/provision/plan14_root_reads_test.go
@@ -994,8 +994,8 @@ func TestPlan14RootReadCensus(t *testing.T) {
}
// Census overlay claim-own-child (the generation census accepts
// journal-migrate's own registry child past the root-task rule, untrusted),
- // loaded last. Proposed to platform-d8; no accepted-legacy row, so the
- // seal stands.
+ // loaded last. Ruled by platform-d8, accepted as proposed; no
+ // accepted-legacy row, so the seal stands.
if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-claim-own-child.tsv"), &inv, true); err != nil {
t.Fatal(err)
}
diff --git a/internal/provision/testdata/plan14-root-reads-claim-own-child.tsv b/internal/provision/testdata/plan14-root-reads-claim-own-child.tsv
index 5f37b2cc9..18c7b68c9 100644
--- a/internal/provision/testdata/plan14-root-reads-claim-own-child.tsv
+++ b/internal/provision/testdata/plan14-root-reads-claim-own-child.tsv
@@ -1,7 +1,7 @@
# Census overlay claim-own-child (platform-d8 deployment harness, the 4th 8.2 stop on 2026-10-20): the retired-generation kernel census refused journal-migrate's own service-user registry child, which from an operator shell sits in no service that selects the running binary. Only when journal-migrate runs the census (a context value with its pid) does a non-root, non-kernel task whose /proc stat ppid is that pid pass the root-task rule. It is not trusted: it must share the census's namespaces and pass every exe, cwd, root, descriptor, mapping and mount reference check, and the closing start-time re-read still binds the pid. procStatParent is the one ppid parser the quiesce scan and this census share. Classes unchanged.
@coverage internal/host 091a7e0e86404ff327ac6280eb4ea80066e8e3decfb9efa5c7cbd052212f8a76
-internal/host/claimjournal_migration_linux.go procParent authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-claim-own-child;identity=carlos system journal-migrate, offline operator CLI, uid 0;basis=reads one /proc/<pid>/stat; the ppid parse moved into procStatParent, shared with the generation census; a malformed file is an error the scan refuses on file:ReadFile@61 2640074280b6764a0ff4e9b817703c860790b2f4877322044f1d14a1933341e9
-internal/host/rootgeneration_kernel_linux.go generationKernel.task authority E2 rev3=PROPOSED-claim-own-child;identity=root generation census, uid 0;basis=unchanged reference checks; a non-root non-kernel task whose stat ppid equals the kernel's parent (set only by journal-migrate) passes the root-task rule untrusted, so namespaces must match and every reference check and the start-time re-read still apply; with no parent set the rule is exactly as before file:Readlink@1342 29f36b9d2d03972f66d7cf63803a25146b815f704dab47458696688a796a7818
-internal/host/rootmigration_production_linux.go migrateRootClaimAuthority authority G,J4,E3 rev3=PROPOSED-claim-own-child;identity=offline root migration uid 0;basis=as before; its generation kernel census carries the migration's own pid so its registry child is recognised as its own file:Open@1814,file:Open@374,file:Open@615,file:Open@739,file:Open@7567,file:Read@2766,file:ReadFile@1571,whole:Route@3079 62482c7d1b91514578397f3f0bac42f34ec41d02f6cf19e3ded9fdff90795cc8
-internal/host/rootgeneration_census_linux.go productionGenerationKernelCensus authority E2 rev3=PROPOSED-claim-own-child;basis=as before; passes the context's census parent (generationCensusParent, zero unless journal-migrate set it) to the kernel 3588ecc2628ef3914113d306029adbc82143f542fcfb129a5ba35a5c8f15eb93
-internal/host/rootgeneration_kernel_linux.go type generationKernel authority E2 rev3=PROPOSED-claim-own-child;basis=as before, plus parent: the pid whose direct children pass the root-task rule untrusted; zero everywhere but journal-migrate 5ac1e05c15d44a84a968385bb81aff33d440d9d27256a2e4cfa57141c2c87f97
+internal/host/claimjournal_migration_linux.go procParent authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=census-ruling-claim-own-child;identity=carlos system journal-migrate, offline operator CLI, uid 0;basis=reads one /proc/<pid>/stat; the ppid parse moved into procStatParent, shared with the generation census; a malformed file is an error the scan refuses on file:ReadFile@61 2640074280b6764a0ff4e9b817703c860790b2f4877322044f1d14a1933341e9
+internal/host/rootgeneration_kernel_linux.go generationKernel.task authority E2 rev3=census-ruling-claim-own-child;identity=root generation census, uid 0;basis=unchanged reference checks; a non-root non-kernel task whose stat ppid equals the kernel's parent (set only by journal-migrate) passes the root-task rule untrusted, so namespaces must match and every reference check and the start-time re-read still apply; with no parent set the rule is exactly as before file:Readlink@1342 29f36b9d2d03972f66d7cf63803a25146b815f704dab47458696688a796a7818
+internal/host/rootmigration_production_linux.go migrateRootClaimAuthority authority G,J4,E3 rev3=census-ruling-claim-own-child;identity=offline root migration uid 0;basis=as before; its generation kernel census carries the migration's own pid so its registry child is recognised as its own file:Open@1814,file:Open@374,file:Open@615,file:Open@739,file:Open@7567,file:Read@2766,file:ReadFile@1571,whole:Route@3079 62482c7d1b91514578397f3f0bac42f34ec41d02f6cf19e3ded9fdff90795cc8
+internal/host/rootgeneration_census_linux.go productionGenerationKernelCensus authority E2 rev3=census-ruling-claim-own-child;basis=as before; passes the context's census parent (generationCensusParent, zero unless journal-migrate set it) to the kernel 3588ecc2628ef3914113d306029adbc82143f542fcfb129a5ba35a5c8f15eb93
+internal/host/rootgeneration_kernel_linux.go type generationKernel authority E2 rev3=census-ruling-claim-own-child;basis=as before, plus parent: the pid whose direct children pass the root-task rule untrusted; zero everywhere but journal-migrate 5ac1e05c15d44a84a968385bb81aff33d440d9d27256a2e4cfa57141c2c87f97