review: round 1 findings and round 2 brief, bounded-systemctl
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+196
−0
docs/superpowers/reviews/FINDINGS-bounded-systemctl-R1.md+140 −0docs/superpowers/reviews/REVIEW-BRIEF-bounded-systemctl-R2.md+56 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/FINDINGS-bounded-systemctl-R1.md b/docs/superpowers/reviews/FINDINGS-bounded-systemctl-R1.md| new file mode 100644 |
| index 000000000..c9207e88c |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/FINDINGS-bounded-systemctl-R1.md |
| @@ -0,0 +1,140 @@ |
| +Reviewed `origin/main...f0283ee4fccf746079d4c4cc97de0a4810f9fdc3`, base `7e50962dd68738bf9fc77cd49e6e73032ce0148b`. Round 1 of 3. The requested tip adds only the brief to the commit named inside it. |
| + |
| +1. **P1 — A timed-out restart can leave the new process running after rollback restores the old symlink.** |
| + Location: [agent.go:5574](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/agent.go:5574), [unitsettle.go:106](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:106). |
| + |
| + Killing `systemctl` does not cancel its systemd job. If systemd starts the new build but the client remains stuck awaiting completion, the helper returns `TimeoutError`. In legacy adoption, that error reaches [adopt.go:1976](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/release/adopt.go:1976): adoption restores the previous symlink, but selects the stronger rollback restart only for `UnitNotUpError` at line 2066. A `TimeoutError` instead takes the ordinary start callback. `systemctl start` succeeds without replacing an already-running new process. The running executable and restored symlink can therefore disagree after the rollback. |
| + |
| + The void `systemctlTryRestart` path at [agent.go:5549](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/agent.go:5549) also logs the newly possible timeout and lets adoption continue without establishing the job’s outcome. |
| + |
| + **Invariant / fault family:** a client timeout is an unknown mutation outcome; rollback or successful adoption must establish which process actually runs. |
| + |
| + **Fix:** handle an ambiguous restart outcome explicitly. Reconcile the outstanding job and running invocation before completing adoption or rollback; a rollback must verify that the restored executable runs. Preserve existing authorization and operator-stop checks. Add a regression where the new process starts, the client times out, and a plain subsequent `start` would be a no-op. |
| + |
| +2. **P2 — Two paths turn a temporary observation failure into a verdict against the build.** |
| + Locations: [converge.go:1043](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/caps/converge.go:1043), [unitsettle.go:62](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:62). |
| + |
| + `Ops.systemctl` formats the new timeout using `%v`. Consequently, `caps.Restart → adoptHost` loses `Temporary()`, and adoption poisons the version for the remainder of the pass. |
| + |
| + Separately, `systemdUnits.Show` preserves the timeout, but `settleUnit` converts it into `UnitNotUpError` at [unitsettle.go:205](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:205). One query consuming the default 30-second settle window therefore triggers rollback, version poisoning and the not-up recovery path without evidence that the new process failed. The helper’s temporary classification does not survive that conversion. |
| + |
| + **Invariant / fault family:** inability to obtain systemd’s answer must remain distinguishable from evidence that a build is unhealthy. |
| + |
| + **Fix:** wrap the caps error with `%w`. Preserve a temporary, unknown-observation outcome when settling expires because queries failed. Keep real failed-state, wrong-executable and readiness failures distinct. Test both paths through adoption, including the poison decision. |
| + |
| +3. **P2 — The 18-minute per-command bound does not provide the stated apply/recovery budget.** |
| + Location: [systemapply.go:204](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/systemapply.go:204). |
| + |
| + Each call receives a fresh 18 minutes and a detached context. The update unit’s 20-minute limit covers the entire apply, including earlier draining and work. For example, after a 150-second drain, a hung command’s helper deadline falls after the update unit’s deadline. Systemd kills the apply before this helper returns and initiates the claimed rollback. Recovery uses the same helper despite its own **13-minute** unit limit. |
| + |
| + Thus “18 minutes is below 20 minutes” does not establish the stated behavior. It also leaves ordinary control calls such as `daemon-reload` with the edge restart’s extended allowance. |
| + |
| + **Invariant / fault family:** operation deadlines must fit within the remaining enclosing operation budget, including recovery work. |
| + |
| + **Fix:** carry an enclosing apply/recovery deadline into the command seam, distinguish the operation requiring the extended allowance, and define what happens when insufficient budget remains. Verify the complete ordered unit dependencies and reserve time for the intended failure handling. Add budget tests covering elapsed pre-command work and recovery’s shorter limit. |
| + |
| +4. **P2 — The guard permits unbounded local shell invocations.** |
| + Location: [guard_test.go:121](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/guard_test.go:121). |
| + |
| + The matcher accepts only exact program-name literals or strings ending in `/systemctl` or `/journalctl`. This bypass passes: |
| + |
| + ```go |
| + exec.Command("sh", "-c", "systemctl restart carlos-edge.service").Run() |
| + ``` |
| + |
| + So does a shell command held in a variable. Constant concatenation such as `"system" + "ctl"` also escapes the literal check. The fixture explicitly accepts `"systemctl show"` without distinguishing a message from executable shell text. |
| + |
| + **Invariant / fault family:** the guard must enforce bounded execution across supported invocation forms. |
| + |
| + **Fix:** inspect executable call sites and local shell-command arguments, resolve constant expressions, and add negative fixtures for shell execution, variables and concatenation. Preserve a narrow distinction for `grouproll/box.go`, which constructs a remote command; its existence does not justify exempting all shell-command strings. |
| + |
| +5. **P2 — `Detached()` bypasses the host-context ratchet.** |
| + Location: [command.go:82](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/command.go:82). |
| + |
| + The new host call sites create detached contexts through another package. The classifier at [scan_test.go:491](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/codehealth/scan_test.go:491) counts only direct `context.Background` and `context.TODO` uses in host packages. None of these new detached sites counts, and future callers can use the same wrapper without raising the metric. |
| + |
| + The calls previously had no context, so this is not removal of an existing cancellation guarantee. It is nevertheless a new way around the measurement boundary. |
| + |
| + **Invariant / fault family:** moving context creation behind a helper must not hide detached host operations from the ratchet. |
| + |
| + **Fix:** pass caller contexts where available. For deliberately context-free interfaces, either use explicitly justified, counted contexts at the call sites or teach the classifier to count `systemd.Detached` there, with fixtures and an explicit reviewed allowance. |
| + |
| +No P3 findings. |
| + |
| +The prober change is sound on inspection: [prober.go:143](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/edge/prober.go:143) applies the effective probe timeout, including the two-second fallback, and [upstreamdial.go:51](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/edge/upstreamdial.go:51) retains `upstreamguard.Dialer`. Its control hook still rejects link-local addresses before calling the test hook or connecting. |
| + |
| +The 30-second query bound is a reasonable finite ceiling, subject to finding 2. Five minutes covers the simple shipped-unit timings cited in the helper, but those timings cannot prove every job completes within five minutes: queued dependencies and operator-supplied named units also matter. Correct handling of an unknown outcome is therefore essential. |
| + |
| +The new process tests use fake executables, including replacement of the absolute-path program. They cover helper killing and error shape, but not the caller-level rollback and classification failures above. The prober test exercises the dial lifetime independently of the HTTP request timeout. Removing the dialer timeout would make that test fail; removing the helper deadline would make its hung-process tests fail to return promptly. |
| + |
| +`git diff --check` passed. I attempted `GOFLAGS=-mod=mod GOPROXY=off go test ./internal/systemd -count=1`, but Go could not create its work directory in the read-only sandbox. No tests executed. I ran no full suites and changed no files. |
| + |
| +The census constructor name is acceptable. The scanner deliberately recognizes `Command` conservatively, and retaining caller sites preserves their existing authority obligations. The new helper’s implementation is also covered by its own entry and envelope. This does not conceal the implementation change. |
| + |
| +The following verdicts cover all **47 units and nine envelopes** on the card. “Approve” retains the recorded disposition and basis. “Reject” withholds approval for this implementation because of the cited finding; it does not propose dropping or downgrading the unit’s existing authority classification. |
| + |
| +| Unit and source read | Recorded disposition | Verdict and basis | |
| +|---|---|---| |
| +| `Ops.query` — [converge.go:1060](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/caps/converge.go:1060) | authority E4,J1,J4 | **Approve.** Same query arguments and conservative false-on-error behavior. | |
| +| `Ops.systemctl` — [converge.go:1036](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/caps/converge.go:1036) | authority E4,J1,J4 | **Reject.** Findings 1–2 affect restart and adoption outcomes. | |
| +| `unitsAreActive` — [adopt_advice.go:49](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/adopt_advice.go:49) | diagnostic H3 | **Approve.** Same diagnostic query and host-derived arguments. | |
| +| `systemctlStartUnit` — [agent.go:5695](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/agent.go:5695) | legacy | **Reject.** Finding 1: this start is insufficient to resolve the newly ambiguous rollback outcome. | |
| +| `systemctlTryRestart` — [agent.go:5548](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/agent.go:5548) | legacy | **Reject.** Finding 1: timeout is swallowed without establishing the restart outcome. | |
| +| `systemctlTryRestartUnit` — [agent.go:5573](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/agent.go:5573) | legacy | **Reject.** Finding 1. | |
| +| `systemctl` — [bootstrap.go:851](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/bootstrap.go:851) | legacy | **Approve.** Same launch-plan arguments; errors still stop bootstrap. | |
| +| `adoptTimerActive` — [probes.go:44](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/probes.go:44) | legacy | **Approve.** Same fixed timer query and parser. | |
| +| `configPathActive` — [probes.go:62](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/probes.go:62) | legacy | **Approve.** Same fixed path-unit query and parser. | |
| +| `restartPathActive` — [probes.go:81](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/probes.go:81) | legacy | **Approve.** Same fixed path-unit query and parser. | |
| +| `systemUpdatePathActive` — [probes.go:95](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/probes.go:95) | legacy | **Approve.** Same fixed path-unit query and parser. | |
| +| `productionSysOps` — [systemapply.go:216](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/systemapply.go:216) | authority D,F,J4 | **Reject.** Finding 3: the claimed bounded failure/recovery behavior is not established. | |
| +| `systemctlProbe` — [systemunits.go:326](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/systemunits.go:326) | legacy | **Approve.** Same arguments, stdout and returned error. | |
| +| `daemonReload` — [unitops.go:190](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitops.go:190) | legacy | **Approve.** Fixed reload command; failure remains an error. | |
| +| `probeUnits` — [unitops.go:139](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitops.go:139) | legacy | **Approve.** Same properties and positional parser; count validation remains. | |
| +| `systemctlRestartUnit` — [unitops.go:201](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitops.go:201) | legacy | **Approve.** Existing bound-unit delivery checks remain; timeout is returned as failure. | |
| +| `systemctlVerb` — [unitsettle.go:105](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:105) | authority B3,J1,J4 | **Reject.** Finding 1: restart completion assumptions need repair. | |
| +| `systemdUnits.JournalTail` — [unitsettle.go:74](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:74) | authority B3,J1,J4 | **Approve.** Same journal selection; no added input or execution authority. Partial output can still be returned on error. | |
| +| `systemdUnits.Show` — [unitsettle.go:61](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:61) | authority B3,J1,J4 | **Reject.** Finding 2: its timeout becomes an unsupported unhealthy-build verdict. | |
| +| `Server.runGVisorProbe` — [gvisorprobe.go:154](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/instancectl/gvisorprobe.go:154) | legacy | **Approve.** Fixed unit, attempt-specific journal window and five-second diagnostic context remain; cleanup proof is unchanged. | |
| +| `type Server` — [server.go:180](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/instancectl/server.go:180) | legacy | **Approve.** Journal seam declaration only; no request-controlled callback. | |
| +| `Command` — [command.go:108](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/command.go:108) | new legacy | **Approve.** Conservative census site retained; constructor stores the closed program selector and arguments. | |
| +| `bounded` — [command.go:170](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/command.go:170) | new legacy | **Approve.** Existing executable choices, argv and environment are preserved through the reviewed callers; caller context and finite deadline reach `exec.CommandContext`. | |
| +| `UnitBackend.systemctl` — [backend_unit.go:104](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/activator/backend_unit.go:104) | legacy | **Approve.** Same seam, verb, unit and caller context. | |
| +| `systemctlControlGroup` — [control.go:200](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/activator/control.go:200) | legacy | **Approve.** Same property; errors remain errors. | |
| +| `systemctlUnitMainExit` — [control.go:167](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/activator/control.go:167) | legacy | **Approve.** Same four properties and parser. | |
| +| `systemctlUnitState` — [control.go:121](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/activator/control.go:121) | legacy | **Approve.** Same state/invocation query; no error-to-success conversion. | |
| +| `systemctlUnitsListed` — [control.go:144](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/activator/control.go:144) | legacy | **Approve.** Same read-only listing and glob. | |
| +| `var systemctl` — [demobuild/unit.go:78](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/demobuild/unit.go:78) | legacy | **Approve.** Absolute executable, fixed environment and capped output remain. | |
| +| `MainProcess` — [native_linux.go:78](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/hairpin/native_linux.go:78) | legacy | **Approve.** Same fixed edge query and kernel identity binding. | |
| +| `filesSeedEdgePID` — [claimfilesseed_delegation_linux.go:19](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimfilesseed_delegation_linux.go:19) | authority C,J4 | **Approve.** Fixed edge query, three-second deadline and PID checks remain. | |
| +| `var claimSystemctl` — [claimjournal_migration_linux.go:42](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimjournal_migration_linux.go:42) | authority C,G,J4 | **Approve.** Same caller arguments, context and output/error contract. | |
| +| `claimLaunchFor` — [claimlaunch_production.go:93](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimlaunch_production.go:93) | authority C,D,J4 | **Approve.** Claim-unit runner wiring preserves authorization and caller context. | |
| +| `NewProductionClaimStopHandler` — [claimstop_production.go:49](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimstop_production.go:49) | authority C,J4 | **Approve.** Authentication query remains fixed and bounded at three seconds; errors refuse. | |
| +| `agentUnitCgroup` — [claimstop_writers_linux.go:388](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimstop_writers_linux.go:388) | authority C,G,J4 | **Approve.** Existing deadline and local-path checks remain. | |
| +| `rootStopAgentCgroup` — [claimstop_writers_linux.go:433](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimstop_writers_linux.go:433) | authority C,J4 | **Approve.** Same containment properties and fail-closed parser. | |
| +| `captureProductionClaimUnitSocket` — [claimunit_socket_migration_linux.go:86](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/claimunit_socket_migration_linux.go:86) | authority E2 | **Approve.** PID validation, peer binding and socket identity recheck remain. | |
| +| `dbReadUnits` — [dbreads_linux.go:20](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/dbreads_linux.go:20) | legacy | **Approve.** Fixed read-only glob and caller context remain. | |
| +| `systemctlOutput` — [egress_source.go:386](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/egress_source.go:386) | legacy | **Approve.** Same argument seam; upstream unit validation remains. | |
| +| `maintenanceEdgeProcess` — [group_maintenance_verbs_linux.go:166](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/group_maintenance_verbs_linux.go:166) | legacy | **Approve.** Absolute path, fixed environment, `/` working directory, one-second context and bounded output remain. | |
| +| `platformUnitRestarts` — [restartwatch.go:258](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/restartwatch.go:258) | legacy | **Approve.** Fixed diagnostic query and existing shorter deadline remain. | |
| +| `generationServiceShow` — [rootgeneration_services_linux.go:108](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/rootgeneration_services_linux.go:108) | authority E2 | **Approve.** Same properties and error refusal before trust decisions. | |
| +| `runscSystemctl` — [runscensure.go:36](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/runscensure.go:36) | legacy | **Approve.** Same caller-selected fixed operations and context. | |
| +| `newHairpinResetServer` — [instancectl/hairpin.go:324](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/instancectl/hairpin.go:324) | legacy | **Approve.** Runner wiring only; existing hairpin checks remain. | |
| +| `systemdEdgeMainPID` — [peer_linux.go:99](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/instancectl/peer_linux.go:99) | legacy | **Approve.** Fixed edge query, three-second deadline and authentication refusal remain. | |
| +| `runWithClaim` — [server.go:315](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/instancectl/server.go:315) | authority C,D,G | **Approve.** Systemctl retains caller context; journal execution moves to a dedicated fixed-program seam. No added request-selected executable. | |
| +| `systemdDaemonReload` — [ops.go:232](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/ops/ops.go:232) | legacy | **Approve.** Fixed command and existing one-minute deadline remain. | |
| + |
| +Envelope verdicts include the changed functions cited above and their relevant consumers: |
| + |
| +| Envelope | Verdict | |
| +|---|---| |
| +| `internal/activator` | **Approve.** Same command inputs and state/error parsing. | |
| +| `internal/caps` | **Reject.** Findings 1–2 affect the daemon restart/restore path. | |
| +| `internal/demobuild` | **Approve.** Fixed execution environment and output limits preserved. | |
| +| `internal/edge` | **Approve.** Dial bound added without weakening destination refusal. | |
| +| `internal/hairpin` | **Approve.** Fixed systemd query and process identity verification preserved. | |
| +| `internal/host` | **Reject.** Findings 1–3 affect adoption, settling and system recovery. Finding 5 also requires correction. | |
| +| `internal/instancectl` | **Approve.** Existing command selection, authentication and cleanup proofs preserved; journal seam remains diagnostic. | |
| +| `internal/ops` | **Approve.** Fixed reload with its original shorter deadline. | |
| +| `internal/systemd` | **Approve for census scope.** Closed executable selection and bounded execution add no untrusted input authority. Guard coverage and ratchet accounting still require findings 4–5 to be fixed. | |
| + |
| +NOT READY |
| \ No newline at end of file |
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-bounded-systemctl-R2.md b/docs/superpowers/reviews/REVIEW-BRIEF-bounded-systemctl-R2.md| new file mode 100644 |
| index 000000000..fa72343f2 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-bounded-systemctl-R2.md |
| @@ -0,0 +1,56 @@ |
| +# Review brief: branch bounded-systemctl, round 2 of 3 |
| + |
| +Repo carlos/platform, branch `bounded-systemctl` (tip in the reviewer's |
| +prompt). Under review: the diff `origin/main...<tip>` (base 7e50962). |
| +Authorities: `docs/superpowers/plans/2026-11-16-go-code-health.md` (batch 3), |
| +AGENTS.md ("The census", "Writing Go here", "Stopping rules"). |
| + |
| +You are the independent reviewer and the census reviewer (card: |
| +`docs/superpowers/notes/census-proposal-bounded-systemctl.md`, 48 claims; |
| +verdict per unit and envelope, citing lines read). Root-side. |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: round 1, Astra, |
| +`docs/superpowers/reviews/FINDINGS-bounded-systemctl-R1.md` (NOT READY: one |
| +P1, four P2s). First give one line per round-1 P1 and P2: resolved, |
| +partly, or not. Carry unresolved ones forward at their severity, then add |
| +new findings. The verdict covers everything outstanding. |
| + |
| +What changed since round 1 (commits 888c4b88, c306f717, 6b4c47ea, f0e81caf): |
| +- **Scope cut (answers the P1 and P2-3):** only state-free verbs (show, |
| + is-active, list-units, cat, other read-only verbs) and journalctl get a |
| + 30 s bound. Every mutating verb (start, stop, restart, try-restart, |
| + reload, daemon-reload, the system apply and recovery) runs under the |
| + caller's context only, exactly as before the branch, through the helper |
| + so the guard sees it. The 5 min and 18 min classes are gone. Bounding job |
| + verbs is moved to a spec: amadan #1214. |
| +- **P2-2:** caps Ops.systemctl wraps with %w. The settle rule is kept as |
| + before: a show that fails until the deadline stays UnitNotUpError, so the |
| + not-up recovery (reset-failed + restart) replaces the process. A first |
| + attempt to make it an "unknown" outcome was reverted because rollback |
| + plus a plain start would recreate the P1 mismatch; that change is now |
| + part of #1214. Judge whether keeping the old rule is right for this |
| + branch. |
| +- **P2-4:** the guard folds constants and inspects local sh/bash/dash -c |
| + arguments, fmt.Sprintf command lines, vars and concatenation; grouproll's |
| + remote script is a named, checked exception. |
| +- **P2-5:** Detached() removed; context-free callers use an explicit, |
| + commented context.Background(), raising host-context by 17 sites, each |
| + with a `# raised: bounded-systemctl: ...` record line. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| +- **P2**: wrong or missing. Fixed without reopening this review (root and |
| + census changes in the fix still get a scoped check). |
| +- **P3**: clarity or polish. Follow-up list only. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3 with file:line, failure scenario and fix, and |
| +the invariant each breaks. Then the census verdicts. End with exactly one |
| +verdict: READY, READY AFTER FIXES, or NOT READY. In round 2 a NOT READY |
| +also says whether the P1s share one cause with round 1's, and whether |
| +cutting further would remove them. Do not edit files, spawn reviewers or |
| +run full suites. |