carlos / platform Public

review: Astra R1 READY for named-units-guard-fix; census approved

claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c05ed16be1afc927703bd14cadcae6792bafdebe parent bcbb39a
1 file changed, +26 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-named-units-guard-fix-R1.md +26 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>br7mjstik</task-id> <tool-use-id>toolu_01GdzMrUGf9iLveYzWQhZKog</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/95f33cc2-8998-4fa5-abb8-8043c3daeffb/tasks/br7mjstik.output</output-file> <status>completed</status> <summary>Background command "Run Astra's review of the guard fix" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 12.7 g CO₂e (1,669,563 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on named-units-guard-fix, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-named-units-guard-fix-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-named-units-guard-fix-R1.md
new file mode 100644
index 000000000..15300a4f1
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-named-units-guard-fix-R1.md
@@ -0,0 +1,26 @@
+Round 1, reviewed `origin/main...933016ff8748007c2678033242ce4e351bfa8ce1`. **No P1, P2 or P3 findings.**
+
+The change follows the ruling:
+
+- Existing `OpenTrustedFile` callers retain their checks. The split uses the same directory traversal and file validation. Directory symlinks and non-directory components return errors that remain refusals.
+- Permission failures from the directory stage become unguarded; permission failures from the marker-file stage still refuse.
+- An agent-owned `/opt/carlos` cannot supply declaration bytes or establish a trusted console binding. The fetch hold still checks hosts in the installed declarations and includes the trusted guard’s host. `proofnamed.go` is unchanged.
+- Installed and unchanged fetch outcomes preserve the unguarded reason in status and journal output. The local install verb prints it after a successful install.
+
+Census verdicts for the reviewed commit:
+
+| Unit or envelope | Verdict and evidence |
+|---|---|
+| `RunSystemNamedUnitsInstall` | **APPROVE** — `internal/host/unitops.go:254–273`: retains the root-only gate and operator-selected input; adds successful-install reporting. |
+| `consoleGuardHost` | **APPROVE** — `internal/host/unitops.go:195–228`: implements the directory/file distinction; retains marker size, host and exact-path checks. |
+| `OpenTrustedDir` — new disposition | **APPROVE**, `legacy / accepted-legacy` — `internal/rootstate/file_linux.go:38–43`, `state_linux.go:24–116`: reuses the existing trusted walk without creating directories. |
+| `OpenTrustedFileIn` — new disposition | **APPROVE**, `legacy / accepted-legacy` — `internal/rootstate/file_linux.go:50–63`, `internal/safefile/file_linux.go:61–104`: opens one name relative to the trusted descriptor and checks type, ownership, links and permissions. Production supplies a root-owned descriptor. |
+| `.` envelope | **APPROVE** — `system_namedunits.go:46`: pickup wording changes; command authority and dispatch remain unchanged. |
+| `internal/host` envelope | **APPROVE** — `unitops.go:58–103,195–273`; `namedunitsfetch.go:137–190,229–245,350–378`: validation, locking, source selection and rollback protection remain intact. |
+| `internal/rootstate` envelope | **APPROVE** — `file_linux.go:12–64`: existing opener unchanged; new helpers preserve its production checks. |
+
+By inspection, the untrusted-chain regression tests would fail under the previous refusing behavior. Trusted-chain tests cover malformed and oversized markers, symlinks, writable files and hard links.
+
+**Verification limit:** targeted tests could not start because the read-only sandbox blocked Go’s module update and build-directory creation. Runtime results and census-test execution are therefore unverified. `git diff --check` passed. No files were edited, reviewers spawned or full suites run.
+
+**READY**
\ No newline at end of file