carlos / platform Public

reviews: Astra round 1 on #892 S1, READY, census approved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 64e7aba560e83b7b3893d1f0bfaad7667736d096 parent 33b468a
1 file changed, +23 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-STATELESS-SCALE-S1-R1.md +23 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-STATELESS-SCALE-S1-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-STATELESS-SCALE-S1-R1.md
new file mode 100644
index 000000000..4bc89dc0b
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-STATELESS-SCALE-S1-R1.md
@@ -0,0 +1,23 @@
+# Astra findings: #892 S1 branch and census, round 1
+
+Reviewer: Astra (codex exec -m gpt-6-astra, read-only), brief CODEX-REVIEW-BRIEF-STATELESS-SCALE-S1.md, code tip 4dd2825a. Final answer verbatim below.
+
+Findings: **P1: none. P2: none. P3: none.**
+
+Reviewed `origin/main..4dd2825a`, using the authority specified in the brief.
+
+- All five launch roles satisfy S1. Web and workers derive MiB from the exact limit passed to root; release, run and session environments remove the name after composition. Manifest validation also rejects `CARLOS_*` variables.
+- Config-change comparisons, `launchInputs`, escrow and moves retain their existing file-environment inputs. The worker/web equality check remains consistent.
+- The tests have assertions that can detect incorrect values, tenant overrides, missing removal, rounding errors, map mutation and unapplied copy. The web memory test compares against the captured root request; the worker test deliberately changes `g.Tier`.
+
+Targeted tests **could not run**: Go failed to create its work directory under `/home/paulca/.cache/tmp` because the sandbox is read-only. This is a source-review verdict, not a test-pass claim.
+
+| unit | approve or reject | lines read | reason |
+|---|---|---|---|
+| `ExecBackend.spawnRootfs` | approve | `internal/activator/rootfs.go:331–446` | Sets the variable after environment composition from `tier.MemoryMax`, also passed to root at line 387. Existing gates, reads and failure handling remain intact. |
+| `ExecBackend.rootfsCmdVars` | approve | `internal/activator/rootfsenv.go:39–46,56–63`; `backend_rootfs.go:340–346` | Removes the name after all merges; release inherits that removal. No new read or weakened check. |
+| `ExecBackend.rootfsTTYVars` | approve | `internal/activator/rootfsenv.go:48–54`; `backend_rootfs.go:340–343` | Removes the name from the final session environment without changing socket, database or authentication checks. |
+| `ExecBackend.rootfsWorkerVars` | approve | `internal/activator/rootfsenv.go:65–76`; `backend_rootfs.go:502–589` | Uses `g.Tier.MemoryMax`, matching root’s request at line 562; overrides the retained file environment. No new authority or read source. |
+| `internal/activator` envelope | approve | `rootfs.go:78–103,331–446`; `rootfsenv.go:19–76`; `backend_exec.go:3410–3439`; `prepare.go:345–368`; changed tests | The new helper only copies maps and formats an existing integer. All changed production functions preserve root’s existing paths, commands, validation and refusal behavior. |
+
+**READY**