review: Astra brief for named-units-guard-fix
1 file changed,
+19
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-guard-fix.md+19 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-guard-fix.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-guard-fix.md| new file mode 100644 |
| index 000000000..106c3a6c7 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-guard-fix.md |
| @@ -0,0 +1,19 @@ |
| +# Review brief: branch named-units-guard-fix (code + census), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `named-units-guard-fix`, commit 933016ff8748007c2678033242ce4e351bfa8ce1. Under review: `git diff origin/main...933016ff8748007c2678033242ce4e351bfa8ce1` (merge base 037f4355), and the census card docs/superpowers/notes/census-proposal-named-units-guard-fix.md. |
| + |
| +## Background |
| +v0.40.0 (main bde64b54) added root installing /etc/carlos/named-units.json from an operator SSM parameter. Its dev rehearsal found that on a fixed box /opt/carlos is owned by carlos:carlos (stat on dev dennis: /opt root 755, /opt/carlos carlos:carlos 755, /opt/carlos/system root 755, no guard/). consoleGuardHost read <opt>/system/guard/console-ready.json through rootstate.OpenTrustedFile, whose walk requires a root-owned chain, so every install was refused ("console guard marker: permission denied"). |
| + |
| +## Fixed: do not re-argue |
| +Paul's ruling (2026-11-19), "untrusted dir = no guard": if the directory chain to the marker isn't root-trusted, the box cannot hold a guard root honours, so install treats it as unguarded. A marker FILE that is itself untrusted in a trusted chain still refuses. The guard rule only keeps a declaration consistent with the release path (proofnamed.go). It grants no authority, because the content comes only from the operator. proofnamed.go must be unchanged. |
| + |
| +## What to check |
| +1. Does the split (rootstate.OpenTrustedDir, OpenTrustedFileIn) exactly preserve OpenTrustedFile's checks for every existing caller? Does only a permission failure of the directory walk count as an untrusted chain? Can a symlink, a non-directory component or any other error turn a refusal into "unguarded" in a way the ruling doesn't cover? |
| +2. Can an agent that owns /opt/carlos use this to make root install something the operator did not write, or to strand the release path's bindings? Remember the fetch step's rollback hold reads the guarded host from the same helper. |
| +3. Are the fetch step's status record and the install verb's output honest about the unguarded reason? |
| +4. The tests: do they fail without the fix, and do they cover the trusted-chain refusals? |
| +5. Census: a verdict per unit and per envelope on the card, as AGENTS.md "The census: the reviewer decides" says. |
| + |
| +## Severity and output |
| +P1 blocks merge; P2 is fixed without another round; P3 goes on a list. Each finding: file:line evidence, failure scenario, fix. Then census verdicts. End with READY, READY AFTER FIXES or NOT READY. Do not edit files, spawn reviewers, or run full suites. |