carlos / platform Public

reviews: rootfs-apps-4 whole-branch R1 (NOT READY, fixed in 0e92f8b0), census R1 READY, and the R2 brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 1e74da931b3ad597cdce6d94c1f5921d1fb5e5a7 parent 0e92f8b
3 files changed, +49 −0
  • docs/superpowers/notes/branch-review-rootfs-apps-4-r1.md +12 −0
  • docs/superpowers/notes/census-review-rootfs-apps-4-r1.md +20 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-4-branch-R2.md +17 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>a7cae8e33e39568fb</task-id> <tool-use-id>toolu_01JzDBdeVukEkyGMugiWQm6h</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/18ea9266-acea-4f37-abab-b97c6a7faffa/tasks/a7cae8e33e39568fb.output</output-file> <status>completed</status> <summary>Agent "Fix Plan 4 whole-branch findings" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: done, all three fixes are in one commit. Commit SHA: 0e92f8b0 on `rootfs-apps-4-console`. Git printed the lock error you expected, and the commit landed anyway. The working tree is clean. Changes: 1. **Laravel fence:** In `docs/site/laravel-and-django.md` I added `"working_dir": "/app"` to the worker, release and console processes. I left web alone, since its Caddyfile path is already absolute. The fence is still valid JSON in the same layout. 2. **Rails rollback:** In `docs/site/rails.md` the fence is now `carlos rollback --app shop edge`. I confirmed both assumptions in `cli.go`. `carlos promote &lt;version&gt;` with no channel resolves to the app's only pipeline channel, which is `edge` by default (`pickPromoteChannel`). Rollback takes the channel as its single positional argument (`runRollback`). 3. **C104:** The line in `rails.md` and the row in `docs/superpowers/plans/2026-10-24-rootfs-apps-copy.md` now carry Paul's approved text byte for byte, copied from `copy-c104-approved.json`. The row's status is still `approved`. Tests, run with the sandbox disabled and the default `GOCACHE`: - `TMPDIR=/tmp/g go test . -run 'Copy|Applied|Built' -count=1` passed. - `go test ./internal/docsite/ -count=1` passed. What I did not do: the reviewer's fix for the rollback finding also said to establish a second successful promotion before the guide demonstrates a rollback. Your instruction covered only the fence change, so I did not touch that. A fresh app has only the `v1` promotion, so `carlos rollback --app shop edge` has no previous image to go back to unless the reader has deployed a second version first. You may want to decide whether the guide should add that. I left `/tmp/g` in place, since it is the shared socket-test directory and I didn't create anything in it.</result> <usage><subagent_tokens>52904</subagent_tokens><tool_uses>19</tool_uses><duration_ms>97125</duration_ms></usage> </task-notification>

Attributed to this commit: 9.66 g CO₂e (1,212,369 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-apps-4-console, 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/notes/branch-review-rootfs-apps-4-r1.md b/docs/superpowers/notes/branch-review-rootfs-apps-4-r1.md
new file mode 100644
index 000000000..74f88ce18
--- /dev/null
+++ b/docs/superpowers/notes/branch-review-rootfs-apps-4-r1.md
@@ -0,0 +1,12 @@
+1. **P1 — Laravel process startup: `artisan` cannot be found.**
+ [laravel-and-django.md:34](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/docs/site/laravel-and-django.md:34) declares relative `artisan` paths without `working_dir`. The local check defaults to `/` ([ship_check.go:215](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/ship_check.go:215)); production changes directory only when explicitly declared ([exec_rootfs.go:113](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/internal/instanceexec/exec_rootfs.go:113)). Neither selects `/app`. Following this recipe makes `release` fail before web starts; the worker has the same defect. **Fix:** declare `"working_dir": "/app"` for these processes. **Fault family:** process paths must resolve under the actual launch directory.
+
+2. **P1 — Rails rollback: the command targets an unused channel.**
+ [rails.md:204](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/docs/site/rails.md:204) runs `carlos rollback --app shop stable`. New apps receive only `edge` ([pipeline.go:134](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/internal/release/pipeline.go:134)), and the guide’s promotion uses that channel. Rollback reads the explicitly named channel’s pointer and fails when it is absent ([release.go:1384](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/internal/release/release.go:1384)). Following the guide therefore cannot perform the advertised rollback. **Fix:** use `edge` and establish a second successful promotion before demonstrating rollback. **Fault family:** guide commands must use the channel and history established by the recipe.
+
+3. **P2 — Release-failure documentation incorrectly includes hold deploys.**
+ Immediately after the `--swap hold` example, [rails.md:199](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/docs/site/rails.md:199) promises that the old version keeps serving after release failure or timeout. A failed hold release instead leaves the instance down; this distinction is explicit in [rootfsrelease.go:814](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/internal/activator/rootfsrelease.go:814) and the hold failure/timeout witnesses in [rootfs_release_outcomes_test.go:70](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/internal/rollout/rootfs_release_outcomes_test.go:70). **Fix:** qualify the promise as overlap-only and explain the hold outcome. **Fault family:** documented failure recovery must distinguish swap modes.
+
+No P3 findings. Sample quotations and `processes.json` matched in a read-only check. Targeted Go tests could not start because the sandbox refused creation of Go’s build directory. No files changed, subagents spawned, or full suites run.
+
+NOT READY
\ No newline at end of file
diff --git a/docs/superpowers/notes/census-review-rootfs-apps-4-r1.md b/docs/superpowers/notes/census-review-rootfs-apps-4-r1.md
new file mode 100644
index 000000000..072c0af33
--- /dev/null
+++ b/docs/superpowers/notes/census-review-rootfs-apps-4-r1.md
@@ -0,0 +1,20 @@
+| Unit / envelope | Class / disposition | Verdict | Lines read |
+|---|---|---|---|
+| `cli.go:runShip` | Body change; `legacy`, `accepted-legacy` retained | APPROVE | [cli.go:2261–2485](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/cli.go:2261) |
+| `.` | Source envelope re-pinned | APPROVE | `apimode.go:3320–3340,3460–3480`; `instances_cli.go:308–374,670–690`; `instances_rootfs.go:1–73`; `ship_rootfs.go:25–354`; `ship_check.go:188–258`; `ship_runtime.go:47–91`; `apimode_rootfs.go:31–60` |
+
+P1: None.
+P2: None.
+P3: None.
+
+Reviewed `origin/main...b0f90c61d01276cb43147ecc02e0137b27766b3c`, based on `674fec48`.
+
+The five additional root-package files are correctly covered by the `.` envelope. Their changed declarations introduce no separately tracked read sites. The scanner intentionally omits declarations without such sites while fingerprinting their complete source files. Both Linux architectures include these files. I independently reproduced the envelope hash, `runShip` digest, and its two recorded read-site offsets; all match the overlay.
+
+`--env` is refused unless `--check` is active. Its values enter a cloned container environment and become individual `-e KEY=VALUE` arguments. They do not modify the runtime CLI’s environment, the manifest’s process map, or either shipping payload. The check returns before publication. No production-root authority or existing validation is weakened.
+
+No record-write site or inventory changed. The [task report](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/.superpowers/sdd/2026-10-28-rootfs-apps-4-console/task-10-report.md:17) records all three targeted census tests passing with main’s record-write inventory. My rerun could not start because the read-only sandbox denied Go’s build directory; that pass is reported evidence, not independently rerun evidence.
+
+The temporary CLAIMS file was deleted as instructed. Its claim is preserved in the overlay and task report and agrees with the diff. No files were edited or subagents spawned.
+
+READY
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-4-branch-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-4-branch-R2.md
new file mode 100644
index 000000000..b7043a1c3
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-rootfs-apps-4-branch-R2.md
@@ -0,0 +1,17 @@
+# Review brief: whole branch rootfs-apps-4-console, round 2 of 3 (scoped)
+
+Repo carlos/platform, branch `rootfs-apps-4-console`, commit 0e92f8b004ad7ac4857a0b715e7d4182d9b2870a, worktree /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4.
+Under review: the fix diff `fbb2ac20..0e92f8b004ad7ac4857a0b715e7d4182d9b2870a` only, for round 1's findings (docs/superpowers/notes/branch-review-rootfs-apps-4-r1.md, also at /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/.superpowers/sdd/2026-10-28-rootfs-apps-4-console/branch-r1-astra.md). Paul approved the revised RFS-4-C104 text on 2026-10-28 (fixed; do not re-argue its wording). Controller ruling in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-4/.superpowers/sdd/2026-10-28-rootfs-apps-4-console/progress.md: the rollback fence is a bare example after the deploy section, not a walkthrough.
+
+You are an independent reviewer. Read-only.
+
+## What to check
+First give one line per round-1 P1 and P2: resolved, partly, or not, with evidence (file:line). Then any new P1 or P2 in this diff only: does the Laravel processes.json now resolve every relative command from its working_dir, as the local check (ship_check.go) and the box (internal/instanceexec/exec_rootfs.go) launch them? Does `carlos rollback --app shop edge` parse and target the channel the guide's `carlos promote --app shop v1` used? Does every copy gate still find its approved text?
+
+## Severity
+P1 blocks merge; P2 fixed without reopening; P3 follow-up only. A P1 states its failure scenario and evidence.
+
+## Output
+Findings ranked P1, P2, P3. End with exactly one verdict: READY / READY AFTER FIXES / NOT READY.
+
+Do not edit files. Do not spawn reviewers or subagents. Do not run the full test suites.