rootfs-check-volumes: Astra review brief, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+33
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-check-volumes.md+33 −0
CI failed — run details
Intent
Attributed to this commit: 19.5 g CO₂e (2,284,132 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-check-volumes, 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-REVIEW-BRIEF-rootfs-check-volumes.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-check-volumes.md| new file mode 100644 |
| index 000000000..70116c4c8 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-check-volumes.md |
| @@ -0,0 +1,33 @@ |
| +# Review brief: rootfs-check-volumes (carlos ship --check keeps its data volume), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `rootfs-check-volumes`, review the diff `1fa2a99b..ece268bc7ae69b17307bbb97981189049462bee0` (this brief's commit follows it). |
| +Authorities on main: docs/superpowers/specs/2026-10-24-rootfs-apps-design.md (§5.8 the local check, §5.2 the launch contract), docs/superpowers/plans/2026-10-24-rootfs-apps-1-ship.md (Task 11, the check), AGENTS.md (census, copy, stopping rules). |
| + |
| +You are an independent reviewer. Read the diff, then the code it names, and check every claim against that code. |
| + |
| +## The bug |
| +`carlos ship --check` made the data volume a local-driver tmpfs volume. Docker and Podman unmount it when no container holds it, so what the `release` container wrote (migrations into CARLOS_DB) was gone before `web` started; examples/rails-shop failed with a 500. Box witness after the fix (r10r, podman): release 2.9 s, web 200 after 2.8 s, worker running after 5 s, passed, no leftovers. |
| + |
| +## Fixed: do not re-argue |
| +- Controller's design: data volume a plain local named volume; run volume stays tmpfs; a one-shot prepare container running the CLI's own linux binary (mounted at checkProbeMount) with hidden verb `__rootfs-check-prepare`, as root with only CAP_CHOWN, chmods then chowns that one directory. Report only mechanisms that fail it. |
| + |
| +## What to check |
| +1. The prepare container's privileges: `--user 0:0 --read-only --network none --cap-drop ALL --cap-add CHOWN --security-opt no-new-privileges`, mounts limited to the data volume and the probe. Can the image under check influence what runs as root (entrypoint, env, working dir, the volume's content, a symlink planted at the mount point, image metadata like USER/ENTRYPOINT/HEALTHCHECK, an ONBUILD)? The verb Lstats and refuses a symlink, no recursion, mode before owner (no CAP_FOWNER): correct? |
| +2. Docker and Podman both (rootful and rootless podman, Docker Desktop VM): does a plain local named volume persist between containers, and does chown to 65534 inside the prepare container give the check's user write access in each? macOS/Windows hosts: the probe binary is a linux build already required by the check. |
| +3. Cleanup on every path (success, prepare failure, Ctrl-C between steps): every container, volume and image the check made is removed; the persisted data volume does not survive the check. |
| +4. The refactor of start/runRelease into launch/waitExit: release behaviour unchanged (timeouts, failure lines, report wording). |
| +5. User-visible strings: the diff should add none needing copy review (a failed prepare reports through existing runtimeFailed wording). Flag any new human text. |
| +6. Census: card docs/superpowers/notes/census-proposal-rootfs-check-volumes.md (new unit ship_check_probe.go:prepareCheckDir, +file:Lstat; envelope `.` re-pinned) and internal/provision/rootfs_check_volumes_census_test.go (main.go main re-pinned). Give a verdict for every unit and envelope on the card per AGENTS.md "Getting a change approved". Note: this code runs in the user's CLI and inside a throwaway container, never as root on a box. |
| +7. Tests: do the new tests and mutations (listed in the commit) actually pin 1-3? |
| + |
| +## Severity |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Follow-up list only. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). |
| + |
| +## Output |
| +Findings ranked P1, P2, P3, each with the problem, evidence (file:line, verified), failure scenario, concrete fix and the invariant it breaks. Census verdicts per unit/envelope (APPROVE or REJECT with lines read). End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |