| new file mode 100644 |
| index 000000000..73ee87e2d |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-review-rootfs-apps-3-r3.md |
| @@ -0,0 +1,222 @@ |
| +# Census review rootfs-apps-3, round 3 (Astra, at e7479e5b) |
| + |
| +| Unit | Class/disposition | Verdict | Lines read | |
| +|---|---|---|---| |
| +| `internal/activator/activator.go:Service.finishStop` | body / legacy | APPROVE | R1 4759–4771 | |
| +| `internal/activator/activator.go:Service.respawnWorkerLocked` | body / authority | APPROVE | R1 4098–4122 | |
| +| `internal/activator/activator.go:Service.serveWakeError` | body / diagnostic | APPROVE | R1 5888–5904, 5927–5939 | |
| +| `internal/activator/activator.go:type Service` | body / authority | APPROVE | R1 1338–1375 | |
| +| `internal/activator/recoveryprobe.go:Service.finishRecoveryProbe` | body / legacy | APPROVE | R1 227–240 | |
| +| `internal/activator/rootfs.go:ExecBackend.rootfsGateCheck` | body / legacy | APPROVE | R1 141–170 | |
| +| `internal/activator/rootfs.go:ExecBackend.rootfsGates` | body / legacy | APPROVE | R1 130–132 | |
| +| `internal/activator/rootfs.go:ExecBackend.spawnRootfs` | body / legacy | APPROVE | 331–431 | |
| +| `internal/activator/rootfs.go:ExecBackend.startRootfs` | body / legacy | APPROVE | 286–317 | |
| +| `internal/activator/rootfs.go:ExecBackend.startRootfsFromLive` | body / legacy | APPROVE | R1 179–198 | |
| +| `internal/activator/rootfs.go:ExecBackend.startRootfsGen` | body / legacy | APPROVE | R1 208–238 | |
| +| `internal/appconfig/sync.go:syncHostClaimed` | body / legacy | APPROVE | R1 638–644 | |
| +| `internal/caps/converge.go:Converge` | body / authority | APPROVE | R1 229–236 | |
| +| `internal/host/agent.go:makeStartRoute` | body / authority | APPROVE | R1 4623–4630 | |
| +| `internal/host/agent.go:runAgent` | body / authority | APPROVE | R1 702–708 | |
| +| `internal/host/restart.go:restartPass` | body / authority | APPROVE | R1 762–769 | |
| +| `internal/host/restartscope.go:restartScopeLeg` | body / authority | APPROVE | R1 493–500 | |
| +| `internal/host/rollout.go:armRollout` | body / legacy | APPROVE | R1 403–412 | |
| +| `internal/host/rootfsplacement.go:agentRootfs.arm` | body / legacy | APPROVE | R1 374–382 | |
| +| `internal/host/systemapply.go:RunSystemApply` | body / authority | APPROVE | R1 113–142 | |
| +| `internal/host/systemapply.go:systemApplier.Run` | body / authority | APPROVE | R1 435–473, 479–515 | |
| +| `internal/provision/offline_move.go:offlineBegin` | body / legacy | APPROVE | R1 182–190 | |
| +| `internal/provision/provision.go:MoveRequest` | body / legacy | APPROVE | R1 1488–1496 | |
| +| `internal/provision/provision.go:MoveStartTransition` | body / legacy | APPROVE | R1 1528–1536 | |
| +| `internal/provision/seedswap.go:importShape` | body / legacy | APPROVE | R1 47–53 | |
| +| `internal/registry/registry.go:upsertRoute` | body / legacy | APPROVE | R1 1477–1542 | |
| +| `internal/release/adopt.go:PassFilter` | body / authority | APPROVE | R1 1238–1246 | |
| +| `internal/release/adopt.go:adoptHost` | body / authority | APPROVE | R1 2155–2162 | |
| +| `internal/release/rootrestart_history.go:RootRestarts.Observe` | body / authority | APPROVE | R1 250–257 | |
| +| `internal/schedule/converge.go:StatusFor` | body / legacy | APPROVE | R1 476–483 | |
| +| `internal/status/snapshot.go:CollectBox` | body / legacy | APPROVE | R1 1014–1020 | |
| +| `cli.go:addWrite` | new / legacy | APPROVE | R1 94–100 | |
| +| `cli.go:refuseAddRootfs` | new / legacy | APPROVE | R1 81–90 | |
| +| `internal/activator/activator.go:Service.awaitWake` | new / legacy | APPROVE | R1 1779–1791 | |
| +| `internal/activator/activator.go:Service.installProcLocked` | new / legacy | APPROVE | R1 3007–3029 | |
| +| `internal/activator/backend_exec.go:refuseRuntimeBinaryLaunch` | new / legacy | APPROVE | R1 2841–2846 | |
| +| `internal/activator/backend_exec.go:refuseUnknownRuntime` | new / legacy | APPROVE | R1 2831–2836 | |
| +| `internal/activator/backend_rootfs.go:ExecBackend.Processes` | new / legacy | APPROVE | R1 46–78 | |
| +| `internal/activator/backend_rootfs.go:Service.declaredProcesses` | new / legacy | APPROVE | R1 117–127 | |
| +| `internal/activator/backend_rootfs.go:Service.rootfsProcessesHook` | new / legacy | APPROVE | R1 90–112 | |
| +| `internal/activator/backend_unit.go:SplitBackend.PlaceRootfsDB` | new / legacy | APPROVE | R1 353–360 | |
| +| `internal/activator/backend_unit.go:SplitBackend.Processes` | new / legacy | APPROVE | R1 365–372 | |
| +| `internal/activator/backend_unit.go:SplitBackend.rootfsStartable` | new / legacy | APPROVE | R1 342–349 | |
| +| `internal/activator/genbackend.go:refuseHostCgroupProof` | new / legacy | APPROVE | R1 632–637 | |
| +| `internal/activator/layout.go:LayoutExempt` | new / legacy | APPROVE | R1 69–79 | |
| +| `internal/activator/rootfs.go:ExecBackend.rootfsStartable` | new / legacy | APPROVE | R1 137–139 | |
| +| `internal/activator/rootfs.go:ExecBackend.startStagedRootfs` | new / legacy | APPROVE | 253–279; `rootfs_staged_test.go` 376–395 | |
| +| `internal/activator/rootfs_service.go:Service.killResidentGens` | new / legacy | APPROVE | R1 938–959 | |
| +| `internal/activator/rootfs_service.go:Service.noteResidentRefusalLocked` | new / legacy | APPROVE | R1 591–598 | |
| +| `internal/activator/rootfs_service.go:Service.noteResidentStopLocked` | new / legacy | APPROVE | R1 1002–1021 | |
| +| `internal/activator/rootfs_service.go:Service.noteResidentWakeLocked` | new / legacy | APPROVE | R1 971–992 | |
| +| `internal/activator/rootfs_service.go:Service.noteRootfsRefusal` | new / legacy | APPROVE | R1 250–266 | |
| +| `internal/activator/rootfs_service.go:Service.placeRootfsDB` | new / legacy | APPROVE | 311–320 | |
| +| `internal/activator/rootfs_service.go:Service.residentHeldLocked` | new / legacy | APPROVE | R1 543–551 | |
| +| `internal/activator/rootfs_service.go:Service.residentJob` | new / legacy | APPROVE | R1 733–764 | |
| +| `internal/activator/rootfs_service.go:Service.residentLeaseLost` | new / legacy | APPROVE | R1 897–932 | |
| +| `internal/activator/rootfs_service.go:Service.residentOrderLocked` | new / legacy | APPROVE | R1 611–620 | |
| +| `internal/activator/rootfs_service.go:Service.rootfsBackendGates` | new / legacy | APPROVE | R1 205–242 | |
| +| `internal/activator/rootfs_service.go:Service.rootfsRefusalLocked` | new / legacy | APPROVE | R1 133–147 | |
| +| `internal/activator/rootfs_service.go:Service.rootfsStartRefusal` | new / legacy | APPROVE | R1 155–173 | |
| +| `internal/activator/rootfs_service.go:Service.rootfsTick` | new / legacy | APPROVE | R1 643–717 | |
| +| `internal/activator/rootfs_service.go:Service.rootfsWakeRefusal` | new / legacy | APPROVE | R1 288–296 | |
| +| `internal/activator/rootfs_service.go:firstWakeBudgetFor` | new / legacy | APPROVE | R1 49–54 | |
| +| `internal/activator/rootfs_service.go:healthBoundFor` | new / legacy | APPROVE | R1 37–42 | |
| +| `internal/activator/rootfs_service.go:markOwnershipRefusal` | new / legacy | APPROVE | R1 478–488 | |
| +| `internal/activator/rootfs_service.go:residentRunnable` | new / legacy | APPROVE | R1 577–584 | |
| +| `internal/activator/rootfs_service.go:residentShaped` | new / legacy | APPROVE | R1 564–566 | |
| +| `internal/activator/rootfs_service.go:rootfsGateKey` | new / legacy | APPROVE | R1 182–185 | |
| +| `internal/activator/rootfsdb.go:ExecBackend.PlaceRootfsDB` | new / legacy | APPROVE | R1 108–168 | |
| +| `internal/activator/rootfsdb.go:buildEmptySQLiteDB` | new / legacy | APPROVE | R1 58–92 | |
| +| `internal/activator/rootfsdb.go:writeBeneathExcl` | new / legacy | APPROVE | R1 172–185 | |
| +| `internal/activator/rootfsenv.go:ExecBackend.rootfsCmdVars` | new / legacy | APPROVE | R1 1–22 | |
| +| `internal/activator/rootfsmarker.go:Config.rootfsMarkerKey` | new / legacy | APPROVE | 58–67 | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.RootfsInitialized` | new / legacy | APPROVE | 140–154 | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.WriteRootfsMarker` | new / legacy | APPROVE | 156–168 | |
| +| `internal/activator/rootfsmarker.go:Service.rootfsFirstBoot` | new / legacy | APPROVE | 102–138 | |
| +| `internal/activator/rootfsmarker.go:SplitBackend.RootfsInitialized` | new / legacy | APPROVE | 170–177 | |
| +| `internal/activator/rootfsmarker.go:SplitBackend.WriteRootfsMarker` | new / legacy | APPROVE | 179–184 | |
| +| `internal/activator/rootfsmarker.go:SplitBackend.execMarker` | new / legacy | APPROVE | 186–192 | |
| +| `internal/activator/swap.go:Service.genHealthy` | new / legacy | APPROVE | R1 360–368 | |
| +| `internal/host/socket_advice.go:socketAdvice` | new / legacy | APPROVE | R1 134–139 | |
| +| `internal/layout/pass.go:Pass.Held` | new / legacy | APPROVE | R1 675–682 | |
| +| `internal/layout/pass.go:Pass.exempt` | new / legacy | APPROVE | R1 224–269 | |
| +| `internal/layout/pass.go:Pass.exemptRows` | new / legacy | APPROVE | R1 273–285 | |
| +| `internal/registry/registry.go:Registry.ResidentInstances` | new / legacy | APPROVE | R1 3139–3161 | |
| +| `internal/registry/registry.go:Registry.UpsertUnlessRootfs` | new / legacy | APPROVE | R1 1420–1439 | |
| +| `internal/registry/registry.go:Registry.upsert` | new / legacy | APPROVE | R1 1447–1473 | |
| +| `internal/registry/runtime.go:Route.ActivatorLeased` | new / legacy | APPROVE | R1 40–47 | |
| +| `internal/registry/runtime.go:Route.ActivatorOwned` | new / legacy | APPROVE | R1 25–32 | |
| +| `internal/registry/runtime.go:Route.Resident` | new / legacy | APPROVE | R1 34–38 | |
| +| `internal/registry/runtime.go:Route.Rootfs` | new / legacy | APPROVE | R1 16–18 | |
| +| `cli.go:addMintsNested` | reads / legacy | APPROVE | R1 140–149 | |
| +| `cli.go:runRouteHibernate` | reads / legacy | APPROVE | R1 1558–1568 | |
| +| `internal/activator/activator.go:Service.doWake` | reads / legacy | APPROVE | 2480–2670, 2910–2973; `rootfsmarker.go` 102–138 | |
| +| `internal/activator/backend_exec.go:ExecBackend.HasSidecar` | reads / legacy | APPROVE | R1 3083–3097 | |
| +| `internal/activator/genbackend.go:ExecBackend.EmptyHost` | reads / legacy | APPROVE | R1 726–749 | |
| +| `internal/activator/genbackend.go:ExecBackend.KillHost` | reads / legacy | APPROVE | R1 679–695 | |
| +| `internal/activator/genbackend.go:ExecBackend.StartStaged` | reads / legacy | APPROVE | R2 236–275; `rootfs.go` 253–279 | |
| +| `internal/activator/wakeidentity.go:wakeRouteChanged` | reads / legacy | APPROVE | R1 39–48 | |
| +| `internal/host/layoutleg.go:nestedRowsPresent` | reads / legacy | APPROVE | R1 327–333 | |
| +| `internal/layout/pass.go:Pass.recheck` | reads / legacy | APPROVE | R1 637–645 | |
| +| `internal/provision/reconcile.go:Reconcile` | reads / legacy | APPROVE | 1396–1437, 1526–1642; R1 remaining changes | |
| +| `internal/provision/reconcile.go:RouteFor` | reads / authority | APPROVE | R1 545–575 | |
| +| `internal/provision/reconcile.go:everywhereRoute` | reads / legacy | APPROVE | R1 415–423 | |
| +| `internal/provision/reconcile.go:shapeMismatch` | reads / legacy | APPROVE | R1 746–755 | |
| +| `internal/registry/registry.go:Registry.SetHibernate` | reads / legacy | APPROVE | R1 3034–3059 | |
| +| `internal/registry/registry.go:Registry.SetPlacement` | reads / legacy | APPROVE | R1 2781–2805 | |
| +| `internal/registry/registry.go:normalizeRoute` | reads / authority | APPROVE | R1 1547–1572 | |
| +| `cli.go:replicationRail` | sites / legacy | APPROVE | R1 1885–1896 | |
| +| `cli.go:runAdd` | sites / legacy | APPROVE | R1 309–317, 372–381 | |
| +| `internal/activator/activator.go:Service.ServeScheduled` | sites / legacy | APPROVE | R1 5774–5797 | |
| +| `internal/activator/activator.go:Service.begin` | sites / legacy | APPROVE | R1 1609–1692 | |
| +| `internal/activator/activator.go:Service.serve` | sites / legacy | APPROVE | R1 5799–5803, 5826–5837 | |
| +| `internal/activator/activator.go:Service.sweepOnce` | sites / legacy | APPROVE | R1 5050–5085, 5384–5391 | |
| +| `internal/activator/activator.go:Service.wake` | sites / legacy | APPROVE | R1 1927–1990, 2031–2091, 2136–2145 | |
| +| `internal/activator/backend_exec.go:ExecBackend.Seed` | sites / legacy | APPROVE | R1 976–982 | |
| +| `internal/activator/backend_exec.go:ExecBackend.SeedExe` | sites / legacy | APPROVE | R1 1001–1007 | |
| +| `internal/activator/backend_exec.go:ExecBackend.Start` | sites / legacy | APPROVE | R1 1932–1945 | |
| +| `internal/activator/backend_exec.go:ExecBackend.StartGen` | sites / legacy | APPROVE | R1 1974–1981 | |
| +| `internal/activator/backend_exec.go:ExecBackend.StartGenExe` | sites / legacy | APPROVE | R1 2001–2009 | |
| +| `internal/activator/backend_exec.go:ExecBackend.StartSidecar` | sites / legacy | APPROVE | R1 3103–3109 | |
| +| `internal/activator/backend_exec.go:ExecBackend.nestedGate` | sites / legacy | APPROVE | R1 2820–2859 | |
| +| `internal/activator/backend_exec.go:ExecBackend.spawnInCgroupGated` | sites / authority | APPROVE | R1 505–520 | |
| +| `internal/activator/containment.go:ExecBackend.spawnInCgroupAtTier` | sites / authority | APPROVE | R1 236–252 | |
| +| `internal/activator/genbackend.go:ExecBackend.StartSidecarGen` | sites / legacy | APPROVE | R1 456–462 | |
| +| `internal/activator/genbackend.go:SplitBackend.EmptyHost` | sites / legacy | APPROVE | R1 754–760 | |
| +| `internal/activator/genbackend.go:SplitBackend.KillHost` | sites / legacy | APPROVE | R1 701–707 | |
| +| `internal/activator/layout.go:ActivatorManaged` | sites / legacy | APPROVE | R1 57–67 | |
| +| `internal/activator/layout.go:Classify` | sites / legacy | APPROVE | R1 89–99 | |
| +| `internal/activator/swap.go:Service.swapOverlap` | sites / legacy | APPROVE | R1 475–606, 663–669, 708–717 | |
| +| `internal/activator/swaphold.go:Service.startPinnedAt` | sites / legacy | APPROVE | R1 430–437, 478–484 | |
| +| `internal/activator/wakeplan.go:Service.spawnPlanned` | sites / legacy | APPROVE | R1 378–385, 470–489 | |
| +| `internal/edge/edge.go:Edge.Reload` | sites / legacy | APPROVE | R1 810–819, 924–952, 979–985 | |
| +| `internal/host/layoutleg.go:layoutStatusReport` | sites / diagnostic | APPROVE | R1 207–213 | |
| +| `internal/host/probes.go:currentSocketProbe` | sites / legacy | APPROVE | R1 307–313 | |
| +| `internal/host/socket_advice.go:advisorySocketServing` | sites / diagnostic | APPROVE | R1 83–89 | |
| +| `internal/host/socket_advice.go:socketAdvisoryLoop` | sites / diagnostic | APPROVE | R1 121–139 | |
| +| `internal/host/socket_advice.go:warnExternalSockets` | sites / diagnostic | APPROVE | R1 40–48 | |
| +| `internal/layout/pass.go:Pass.Converge` | sites / legacy | APPROVE | R1 305–352 | |
| +| `internal/layout/pass.go:Pass.convergeHost` | sites / legacy | APPROVE | R1 354–360 | |
| +| `internal/layout/pass.go:Pass.recoverHost` | sites / legacy | APPROVE | R1 1181–1202, 1243–1253 | |
| +| `internal/layout/pass.go:Pass.restoreHold` | sites / legacy | APPROVE | R1 597–609 | |
| +| `internal/layout/pass.go:Pass.shift` | sites / legacy | APPROVE | R1 829–837 | |
| +| `internal/ops/hibernate_verify.go:HibernatingHosts` | sites / legacy | APPROVE | R1 55–63 | |
| +| `internal/ops/litestream.go:FleetDBsWithSkipped` | sites / legacy | APPROVE | R1 353–364 | |
| +| `internal/registry/registry.go:Registry.Upsert` | sites / authority | APPROVE | R1 1407–1473 | |
| +| `internal/registry/remote_dispatch.go:Registry.dispatchRemote` | sites / hint | APPROVE | R1 213–220, 309–316 | |
| +| `internal/release/pins.go:BuildStateKept` | sites / authority | APPROVE | R1 227–239 | |
| +| `internal/rollout/policy.go:Managed` | sites / legacy | APPROVE | R1 156–170 | |
| +| `internal/host/schedule_wiring.go:activatorDeliverer.managedByGenerations` | quiet / retired direct-read row | APPROVE | R1 373–377; `registry/runtime.go` 30–32 | |
| +| `.` | envelope / re-pin | APPROVE | R1 `cli.go` rows; `system.go` 286–386, 571–607 | |
| +| `internal/activator` | envelope / re-pin | APPROVE | Changed units above; `rootfsmarker.go` 1–192; `rootfsmarker_test.go` 95–402; `rootfs_gate_test.go` 63–107; `rootfs_service.go` 311–339 | |
| +| `internal/appconfig` | envelope / re-pin | APPROVE | R1 `sync.go` 638–644 | |
| +| `internal/caps` | envelope / re-pin | APPROVE | R1 `converge.go` 229–236 | |
| +| `internal/edge` | envelope / re-pin | APPROVE | R1 `edge.go` rows; `prober.go` 23–28 | |
| +| `internal/host` | envelope / re-pin | APPROVE | R1 unit rows; current diff for `rootfsplacement.go` and `systemapply.go` | |
| +| `internal/hostops` | envelope / re-pin | APPROVE | `fleetowner_classifier.go` 1–49; `mutation_classifier.go` 98–180, 406–415 | |
| +| `internal/instancectl` | envelope / re-pin | APPROVE | R1 `client.go` 524–557; reached `rootfs.go` 161–265, 1004–1115 | |
| +| `internal/layout` | envelope / re-pin | APPROVE | R1 `pass.go` rows | |
| +| `internal/ops` | envelope / re-pin | APPROVE | R1 `hibernate_verify.go` 55–63; `litestream.go` 353–364 | |
| +| `internal/provision` | envelope / re-pin | APPROVE | `reconcile.go` rows; `runtime.go` 1–250; `record_sequence.go` 113–182; `reconcile_rootfs_backstop_test.go` 1–162; `rootfs_apps_4_census_test.go` 58–91 | |
| +| `internal/registry` | envelope / re-pin | APPROVE | R1 unit rows; current `registry.go` diff; R1 `runtime.go` 1–47, `remote.go` 14–17 | |
| +| `internal/release` | envelope / re-pin | APPROVE | R2 `rootfs_ship.go` 184–225; `systempointer.go` 256–374; `systempublication.go` 32–48; R1 unchanged portions | |
| +| `internal/rollout` | envelope / re-pin | APPROVE | R1 `policy.go` 156–170 | |
| +| `internal/rolloutwords` | envelope / re-pin | APPROVE | R1 `words.go` 68–88 | |
| +| `internal/schedule` | envelope / re-pin | APPROVE | R1 `converge.go` 476–483 | |
| +| `internal/status` | envelope / re-pin | APPROVE | R1 `snapshot.go` 1014–1020 | |
| +| `cli.go:runRouteHibernate` | record-write re-pin / key-site | APPROVE | R1 1558–1568 | |
| +| `internal/console/apiinstancemove.go:Server.moveTransitionSaying` | record-write re-pin / record-writer | APPROVE | R1 359–384 | |
| +| `internal/console/apiinstancemove.go:Server.handleAPIInstanceMoveRequest` | record-write re-pin / record-writer | APPROVE | R1 574–590 | |
| +| `internal/provision/provision.go:SetRecordRegion` | record-write re-pin / record-writer | APPROVE | R1 1026–1035 | |
| +| `internal/console/fleets.go:Server.placeAppTarget` | record-write re-pin / record-writer | APPROVE | R1 674–720, 767–778, 806–820 | |
| +| `internal/console/lifetimes_create.go:Server.createRecordWithLifetimeLocked` | record-write re-pin / key-site | APPROVE | R1 60–75; `rootfs.go` 293–311 | |
| +| `internal/console/hostsused.go:Server.createRecordMarked` | record-write re-pin / record-writer | APPROVE | R1 560–575; `rootfs.go` 293–311 | |
| +| `internal/provision/record_sequence.go:WriteRecord` | record-write re-pin / record-primitive | APPROVE | 125–182; `runtime.go` 106–250 | |
| +| `internal/provision/reconcile.go:Reconcile` | record-write re-pin / key-site | APPROVE | 1396–1437, 1526–1642 | |
| +| `internal/ops/litestream.go:FleetDBsWithSkipped` | record-write re-pin / key-site | APPROVE | R1 353–364 | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.WriteRootfsMarker` | new record-write entry / nonrecord, `sel:Put` | APPROVE | 156–168; `rootfs_apps_4_census_test.go` 85–90 | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.rootfsPendingPath` | removed / never on main | APPROVE | R2 162–173; deletion diff; tree-wide absence check | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.BeginRootfsFirstBoot` | removed / never on main | APPROVE | R2 175–201; deletion diff; tree-wide absence check | |
| +| `internal/activator/rootfsmarker.go:ExecBackend.SettleRootfsFirstBoot` | removed / never on main | APPROVE | R2 203–235; deletion diff; retained bucket Put reviewed above | |
| +| `internal/activator/rootfsmarker.go:syncDirBestEffort` | removed / never on main | APPROVE | R2 237–244; deletion diff; tree-wide absence check | |
| +| `internal/activator/rootfsmarker.go:SplitBackend.BeginRootfsFirstBoot` | removed / never on main | APPROVE | R2 256–261; deletion diff; tree-wide absence check | |
| +| `internal/activator/rootfsmarker.go:SplitBackend.SettleRootfsFirstBoot` | removed / never on main | APPROVE | R2 263–268; deletion diff; new write forwarder reviewed above | |
| +| `internal/activator/rootfsmarker.go:Service.settleRootfsFirstBoot` | removed / never on main | APPROVE | R2 131–144; deletion diff; tree-wide absence check | |
| + |
| +R1/R2 references identify the lines read in the recorded earlier reviews; unprefixed references are at `e7479e5b8fc034db33f2d320f04259a6a245fe61`. `legacy` means frozen `accepted-legacy`. |
| + |
| +**The 169 unchanged approvals from rounds 1 and 2 stand:** 145 units, 15 envelopes and nine record-write re-pins. |
| + |
| +The current card contains **150 unique units**: 31 body, 41 sites, 60 new, 17 reads and one quiet. With 17 envelopes and 11 record-write entries, all **178 current rows are approved**. The table additionally approves the seven removals. Their pending-file behavior was deleted, not relocated; the retained bucket write and its forwarder are explicitly reviewed as new units. |
| + |
| +Earlier findings: |
| + |
| +- **R1 P1-1 — resolved.** `startStagedRootfs` passes `g.Tier` through to root; the regression checks both the requested limit and returned generation. |
| +- **R2 P1-1 — resolved.** A conditional-write conflict proceeds to an actual marker read; absent or unreadable confirmation refuses before database placement. |
| +- **R2 P1-2 — resolved.** Marker confirmation now precedes placement. No pending file or directory durability obligation remains. |
| +- **R1/R2 P2 — none.** |
| +- **R2 P3 — resolved.** The card’s count now matches its enumerated inventory. |
| + |
| +**P1: None.** |
| + |
| +**P2-1 — The marker-deletion recipe needs independent evidence that the lifetime never served.** |
| + |
| +- **Problem and evidence:** The repair instructions associate an empty replica prefix with confirmation that an instance never served: [rootfsmarker.go:28](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3/internal/activator/rootfsmarker.go:28) and [rootfs-first-boot-marker.md:40](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3/docs/superpowers/notes/rootfs-first-boot-marker.md:40). The note also states that stopping before the first replica upload means the instance never served at [line 33](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3/docs/superpowers/notes/rootfs-first-boot-marker.md:33). Neither establishes that fact: upload failure only logs and permits the wake to succeed ([rootfs_service.go:330](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-3/internal/activator/rootfs_service.go:330)); a previously uploaded replica may also be lost. |
| +- **Failure scenario:** An operator encounters a served lifetime whose replica is absent, treats the empty prefix as the documented confirmation, and deletes its marker. The next fresh wake initializes an empty database. |
| +- **Fix:** Correct both recipes to say that replica absence cannot distinguish interrupted initialization from lost data. Require independent evidence that the lifetime never served before deleting its marker; otherwise retain the refusal and recover the data. Remove the claim that “before the first replica upload” implies “never served.” This is a documentation correction; the automatic refusal remains approved. |
| +- **Fault family:** Database continuity—operator recovery must preserve “never boot empty after serving.” |
| + |
| +**P3: None newly raised.** |
| + |
| +The fleet-owner classifier admits only the validated account/fleet key, create-only `Put`, and a decoded body naming that same account and fleet. Other keys and operations do not gain admission. The ten record-write re-pins retain their targets, kinds and classes. Reconcile’s changed condition exempts static and upstream records while retaining the missing-runtime refusal for socket-backed records. |
| + |
| +Validation: source and diff inspection; inventory comparison; removed-symbol search; clean `git diff --check` for changed Go files and the round-3 diff. Targeted marker tests could not start because the read-only sandbox denied Go’s work-directory creation. No files were edited, no subagents were spawned, no full suites ran, and no verdict was posted to #280. |
| + |
| +Fix P2-1 without reopening the review, refreshing the affected census envelope as required. |
| + |
| +**READY AFTER FIXES** |
| \ No newline at end of file |