review: Astra brief for the named-units parameter plan
1 file changed,
+18
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-param-114-plan.md+18 −0
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-param-114-plan.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-param-114-plan.md| new file mode 100644 |
| index 000000000..68e13ffe9 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-units-param-114-plan.md |
| @@ -0,0 +1,18 @@ |
| +# Review brief: named-unit declarations from a parameter (spec + plan), round 1 |
| + |
| +Repo: this worktree, branch named-units-param-114, commit 30bb9443. |
| +Read: |
| +- docs/superpowers/specs/2026-11-19-named-units-from-parameters-design.md (approved by Paul) |
| +- docs/superpowers/plans/2026-11-19-named-units-from-parameters.md (the plan under review) |
| +- the code both cite: internal/appconfig/declarations.go, unitsync.go, sync.go; internal/host/unitops.go, proofnamed.go, proofbinding.go, rootrollback.go, agent.go (runAdoptUnderRootRelease), haself.go; internal/hostenv/awsssm.go; internal/status/snapshot.go; infra/modules/region-host/main.tf. |
| + |
| +Background: #114 (bf4df27) made root deliver config to systemd units only when /etc/carlos/named-units.json, a root-owned declaration, names them (Paul's ruling 2026-10-28: the registry selects, never authorizes; declaration edits serialised under the config-sync flock). This change lets root take that file from an operator-written SSM parameter /carlos/host/named-units/<instance-id>, read with the box role during the root adopt pass. |
| + |
| +Question: is the plan, as written, safe and correct to build? Focus on: |
| +1. Authority: can anything on the box (the box agent as uid carlos with IMDS reach, a tenant process, a bucket/registry row) cause root to install declarations an operator did not write, or to read a different parameter? Is ParameterNotFound / error / equal-bytes handling fail-safe? |
| +2. The release path: does the shared strict gate truly cover everything proofnamed.go would refuse? Does installing a new file (new inode) strand release rollbacks beyond the in-flight hold the plan specifies? |
| +3. Locking and ordering in runAdoptUnderRootRelease: placement after the restart-only return and outside the CARLOS_SECRETS_KEY branch; interaction with SyncUnits' own lock and the tripwire. |
| +4. The status record and heartbeat: anything root trusts from it, size bounds, a box lying in it. |
| +5. Plan defects: claims about existing code that are wrong, interfaces that don't line up between tasks, tests that cannot fail. |
| + |
| +Answer as a findings list, each: severity P1/P2/P3, file:line evidence, the failure, and the smallest fix. Then a one-line verdict: READY or NOT READY. Do not edit files. |