carlos / platform Public

review: scoped root/census check, bounded-systemctl (passed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a386876c876f39d35ebb88d60f63d64f89837439 parent fe8da66
1 file changed, +33 −0
  • docs/superpowers/reviews/CHECK-bounded-systemctl-R2-fix.md +33 −0
diff --git a/docs/superpowers/reviews/CHECK-bounded-systemctl-R2-fix.md b/docs/superpowers/reviews/CHECK-bounded-systemctl-R2-fix.md
new file mode 100644
index 000000000..c7e3b2db7
--- /dev/null
+++ b/docs/superpowers/reviews/CHECK-bounded-systemctl-R2-fix.md
@@ -0,0 +1,33 @@
+Reviewed `fe8da668241e9c3c2d09eec6ab6184f51df98eea`, limited to fix `0fa550f8` and census update `9b22c61f`. This is the scoped post-R2 check, not another review round. No P1 or P2 findings.
+
+1. **Round-2 P2s — OK, both resolved.**
+
+ The observation-timeout fix preserves both classifications: `errors.As` reaches `*release.UnitNotUpError`, and `Temporary()` returns true. See [unitsettle.go:190](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:190).
+
+ The guard now visits calls throughout the file, including function literals, methods, package initializers and `init`. The original package-level function-literal counterexample and three related cases are included in [guard_test.go:126](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/guard_test.go:126).
+
+2. **Settle and adoption — OK.**
+
+ A deadline reached while `Show` fails returns the combined error at [unitsettle.go:233](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:233). Adoption independently checks temporary classification and not-up classification at [adopt.go:1976](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/release/adopt.go:1976). Consequently, it does not poison the version and selects rollback restart at [adopt.go:2066](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/release/adopt.go:2066).
+
+ The recovery still calls `ResetFailed` followed by `Restart`, replacing the process: [legacyrestart.go:86](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/legacyrestart.go:86). The selected root recovery also dispatches to rollback restart: [rootrestart.go:529](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/rootrestart.go:529).
+
+ Observed failed states and restart evidence remain non-temporary at [unitsettle.go:253](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:253). Wrong-executable and not-ready deadline verdicts remain non-temporary at [unitsettle.go:296](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/unitsettle.go:296). I found no newly introduced path that retries an observed broken build indefinitely or substitutes plain start for rollback restart. Persistent observation failure remains retryable by design.
+
+ The new [adoption regression:102](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/host/settle_verdict_adopt_test.go:102) checks rollback selection, absence of plain start, restored first-route version and continued adoption for the second route.
+
+3. **Guard traversal — OK.**
+
+ Binding collection and invocation checking each traverse the complete file at [guard_test.go:255](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/guard_test.go:255) and [guard_test.go:275](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/guard_test.go:275). Neither excludes nested function literals or methods. No enclosing-declaration bypass remains.
+
+ This remains a bounded syntax check, not general data-flow analysis. Function-produced strings and cross-package values remain outside its documented folding contract at [guard_test.go:54](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/guard_test.go:54).
+
+4. **Census — OK; approve all three scoped entries.**
+
+ - **`systemdUnits.Show`: approve**, retaining authority classification B3,J1,J4. Lines 61–68 preserve the query properties, parser and wrapped error. The revised claim accurately describes the downstream settle classification.
+ - **`internal/host` envelope: approve.** Reviewed the new error type and methods, plus the changed deadline branch at lines 181–238. No new read, executable, caller-controlled path or weakened authorization check is introduced.
+ - **`internal/systemd` envelope: approve.** This fix changes only guard tests; production execution remains unchanged. Reviewed the guard changes and production execution at [command.go:124](/home/paulca/amadan.net/carlos/platform-bounded-systemctl/internal/systemd/command.go:124).
+
+Focused tests could not start: Go attempted to update `go.mod` on the read-only filesystem. Go/census diff whitespace checks passed. No files were changed, reviewers spawned or full suites run.
+
+CHECK PASSED
\ No newline at end of file