carlos / platform Public

reviews: rootfs-apps-3-workers whole-branch R1 READY and census R1 READY (Astra)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 4f57c2adc07b9b5b5497fd2d0bfac345cab42f5d parent 9ca5bd3
2 files changed, +67 −0
  • docs/superpowers/notes/branch-review-rootfs-apps-3-workers-r1.md +16 −0
  • docs/superpowers/notes/census-review-rootfs-apps-3-workers-r1.md +51 −0

CI passed — run details

diff --git a/docs/superpowers/notes/branch-review-rootfs-apps-3-workers-r1.md b/docs/superpowers/notes/branch-review-rootfs-apps-3-workers-r1.md
new file mode 100644
index 000000000..95e3df055
--- /dev/null
+++ b/docs/superpowers/notes/branch-review-rootfs-apps-3-workers-r1.md
@@ -0,0 +1,16 @@
+No P1, P2 or P3 findings in `origin/main...b7953789ad94140dea4c07ed3642d416e4a0e72a`.
+
+By inspection:
+
+- Worker launches remain tick-only and gated. Stop and lease-release paths retain workers that may still run.
+- Handover and restart retain old handles until observers and listeners finish, preventing premature socket reuse.
+- Never-started declarations need no proof; potentially executed workers retain their proof obligations and build pins.
+- Worker failures do not stop web. Binary and workerless rows omit `workers`.
+- v0.30.0 preserves its documented web-only behavior for worker declarations. Older JSON consumers tolerate the added report field.
+- Worker control requests, manifest reads, proofs and file cleanup run outside `a.mu`.
+
+W1’s post-review termination fixes and W2’s listener-retention fix remain consistent with these paths.
+
+`git diff --check` and formatting checks passed. Targeted tests could not start because the read-only sandbox denied Go’s work-directory creation; execution results remain independently unverified. No files changed, no subagents spawned, and no full suites run.
+
+READY
\ No newline at end of file
diff --git a/docs/superpowers/notes/census-review-rootfs-apps-3-workers-r1.md b/docs/superpowers/notes/census-review-rootfs-apps-3-workers-r1.md
new file mode 100644
index 000000000..73ba31872
--- /dev/null
+++ b/docs/superpowers/notes/census-review-rootfs-apps-3-workers-r1.md
@@ -0,0 +1,51 @@
+| Unit | Class / disposition | Verdict | Lines read |
+|---|---|---|---|
+| `Service.doWake` | body / legacy | APPROVE | `activator.go:3035–3046` |
+| `Service.finishStop` | body / legacy | APPROVE | `activator.go:4809–4851` |
+| `Service.stop` | body / legacy | APPROVE | `activator.go:4377–4393` |
+| `type Service` | body / authority | APPROVE | `activator.go:1243–1251` |
+| `Service.releasable` | body / legacy | APPROVE | `opset.go:690–713` |
+| `Service.rootfsTick` | body / legacy | APPROVE | `rootfs_service.go:658–704` |
+| `ExecBackend.observe` | body / legacy | APPROVE | `unitproc.go:354–503` |
+| `Service.residentLeaseLost` | sites / legacy | APPROVE | `rootfs_service.go:923–946` |
+| `Service.swapOverlap` | sites / legacy | APPROVE | `swap.go:749–760` |
+| `ExecBackend.LaunchRootfsWorker` | new / accepted-legacy | APPROVE | `backend_rootfs.go:348–429` |
+| `ExecBackend.RootfsWorkerGone` | new / accepted-legacy | APPROVE | `backend_rootfs.go:440–466` |
+| `ExecBackend.removeRootfsWorkerFiles` | new / accepted-legacy | APPROVE | `backend_rootfs.go:473–488` |
+| `SplitBackend.LaunchRootfsWorker` | new / accepted-legacy | APPROVE | `backend_unit.go:401–408` |
+| `SplitBackend.RootfsWorkerGone` | new / accepted-legacy | APPROVE | `backend_unit.go:412–419` |
+| `ExecBackend.prepareWorker` | new / accepted-legacy | APPROVE | `prepare.go:203–230` |
+| `ExecBackend.rootfsWorkerVars` | new / accepted-legacy | APPROVE | `rootfsenv.go:33–42` |
+| `Service.RootfsWorkers` | new / accepted-legacy | APPROVE | `rootfsworkers.go:1112–1139` |
+| `Service.declareRootfsWorkers` | new / accepted-legacy | APPROVE | `rootfsworkers.go:208–216` |
+| `Service.handOverRootfsWorkers` | new / accepted-legacy | APPROVE | `rootfsworkers.go:273–306` |
+| `Service.installRootfsWorkerLocked` | new / accepted-legacy | APPROVE | `rootfsworkers.go:360–392` |
+| `Service.noteWorkerExitLocked` | new / accepted-legacy | APPROVE | `rootfsworkers.go:613–681` |
+| `Service.proveWorkerGone` | new / accepted-legacy | APPROVE | `rootfsworkers.go:475–503` |
+| `Service.proveWorkerNames` | new / accepted-legacy | APPROVE | `rootfsworkers.go:780–895` |
+| `Service.registerRootfsWorkers` | new / accepted-legacy | APPROVE | `rootfsworkers.go:192–271` |
+| `Service.restartRootfsWorkerLocked` | new / accepted-legacy | APPROVE | `rootfsworkers.go:683–778` |
+| `Service.runWorkerStart` | new / accepted-legacy | APPROVE | `rootfsworkers.go:394–473` |
+| `SplitBackend.removeRootfsWorkerFiles` | new / accepted-legacy | APPROVE | `rootfsworkers.go:164–184` |
+| `ExecBackend.newRootfsWorkerProc` | new / accepted-legacy | APPROVE | `unitproc.go:206–224` |
+| `rootfsUnitFor` | new / accepted-legacy | APPROVE | `unitproc.go:191–204` |
+| `unitProc.stopUnit` | reads / legacy | APPROVE | `unitproc.go:287–305` |
+| `Service.rootfsProcessesHook` | removed / formerly legacy | APPROVE | Base `backend_rootfs.go:86–119`; replacement `rootfsworkers.go:208–306` |
+| `internal/activator` envelope | re-pinned | APPROVE | Above; `prepare.go:232–244,346–370`; `unitproc.go:53–108,323–347,546–589`; `generations_file.go:176–230`; `rootfsworkers.go:1–1157`; `activator.go:833–846,5854–5880` |
+| `internal/rollout` envelope | re-pinned | APPROVE | `manager.go:30–40`; `status.go:1–178` |
+| `internal/rolloutwords` envelope | re-pinned | APPROVE | `words.go:103–112` |
+| `internal/status` envelope | re-pinned | APPROVE | `snapshot.go:390–413`; unchanged `WriteBox` declaration |
+
+**P1:** None.
+**P2:** None.
+**P3:** None.
+
+Reviewed `origin/main...b7953789ad94140dea4c07ed3642d416e4a0e72a`, with merge base `cca7c9c33714b1b633fb2be7302605d4670b3fd9`.
+
+Worker launches preserve the existing root boundary: root resolves commands from the validated staged manifest; the agent supplies composed environment only, no argv. Names are validated before worker path/unit construction, memory comes from `g.Tier.MemoryMax`, and uncertain starts require termination proof. Unproven workers retain their lease and build pins. `internal/instancectl` is unchanged.
+
+All 30 overlay declaration hashes and four envelope hashes match the source. The removed hook’s manifest read is accounted for by registration; no validation was removed.
+
+Record-write inventories are unchanged. Their only entry in a changed file, `WriteBox`, retains its reviewed digest. **I could not confirm `TestPlan9B8RecordWriteCensus` passes:** the targeted census command failed before execution because the read-only sandbox prevented Go from creating its build directory. No full suites ran and no files changed.
+
+READY
\ No newline at end of file