carlos / platform Public

regional box names: whole-branch review brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 843c0deeb2d22d9538322e05eb40634546b1655d parent d93afa1
1 file changed, +168 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-REGIONAL-BOX-NAMES.md +168 −0

CI failed — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-REGIONAL-BOX-NAMES.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-REGIONAL-BOX-NAMES.md
new file mode 100644
index 000000000..3255be963
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-REGIONAL-BOX-NAMES.md
@@ -0,0 +1,168 @@
+# Whole-branch review brief: regional box display names
+
+You are a Senior Code Reviewer with expertise in software architecture,
+design patterns, and best practices. Your job is to review completed work
+against its plan or requirements and identify issues before they cascade.
+
+## What Was Implemented
+
+Regional box display names (seamus-minding-ie): a STATUS_NAME_REGION code themes a display name derived from each box's identity label, stamped on the status report, copied to fleet.json, and shown on the public status page and the console /fleet page beside the unchanged label. Nothing keys on it.
+
+## Requirements / Plan
+
+Plan: docs/superpowers/plans/2026-10-25-regional-box-names.md
+Spec: docs/superpowers/specs/2026-10-25-regional-box-names-design.md
+
+## Review Focus
+
+1. **A group box before its reference resolves.** `groupStatusTick` returns early, so no report is written and no name is ever derived from the hashed label. Pinned in Task 3 (`TestGroupBoxNameFollowsItsReference`).
+2. **A fleet box with `STATUS_NAME_REGION` set, including an invalid fleet identity.** No name, because those reports aren't the shared fleet's. Pinned in Task 3 (`TestResolveNameRegion`, fleet rows).
+3. **A host.env value with quotes stripped but whitespace left (`"ie "`, `"ie\n"`).** Trim, then accept. `"IE"` and `"Ireland"` are refused with one log line. Pinned in Task 3.
+4. **A mixed-release fleet.** New console reading an old report: shows the label alone, unchanged. Old reader reading a new report: ignores `name`. Pinned in Task 2 (`TestBuildFleetCopiesName`) and Task 4.
+5. **A name that collides with another box's name in the same region.** Purely cosmetic. Both rows still show their distinct labels, and nothing dedupes or sorts by name. Pinned in Task 4 (hosts stay sorted by `Label`).
+
+
+Check each Review Focus line deliberately.
+
+### The executor's rulings (weigh these calls)
+
+Task 1: Ruling: Luna's four taste flags (footing/foddering, allotmenting, bellhopping/carhopping, jackarooing/boundaryriding breadth) kept, not sent to Paul before Task 2 as the plan said. They are taste, not rule breaches; Paul's own examples are rural (ploughing) — cost if wrong: a one-line list swap, names shift for boxes using that word.
+Task 2: Ruling: list length is enforced by the [40]string array type at compile time, so TestNameListsHygiene checks characters, duplicates and the theme keys only — cost if wrong: none, a short list cannot compile.
+Task 3: Ruling: added STATUS_NAME_REGION to hostenv.Optional (group boxes' host.env allowlist) — the spec says group boxes get it like the rest of host.env, and without it host-env write refuses the key — cost if wrong: group boxes can't be named until a follow-up adds it.
+Task 3: Ruling: added STATUS_NAME_REGION to moves.BoxVars — non-CARLOS_ agent env reaches instances and is pinned across moves; a per-region value would fail every cross-region move — cost if wrong: none found; omitting it would break moves.
+Task 3: Ruling: documented STATUS_NAME_REGION in agent.go's env doc block beside STATUS_BOX_REGION — matches the file's convention — cost if wrong: none.
+Task 4: Ruling: TestStatusPageRendersNameAsText lives in displayname_test.go (package status), not status_test.go — status_test.go is the external package and assetsFS is unexported — cost if wrong: none.
+Task 4: Ruling: added TestFleetShowsDisplayNames' escaping case (a box-written "<b>bold</b>" name) — a report is box-written, so the name is untrusted like Release/Tunnel — cost if wrong: none, extra coverage.
+Task 4: Ruling: .box-label gets white-space: nowrap — the screenshot showed a g- reference breaking at its hyphen — cost if wrong: a wider column on narrow screens (the table already scrolls).
+
+Local test policy: only touched packages ran locally, with -run; CI runs the full suite. TestControlPlaneShipRefusalNamesTheMintTrap fails locally only because `go build` cannot read VCS status in this worktree (buildvcs); judge it from code, not from a local run.
+
+## Git Range to Review
+
+**Base:** 7f876771
+**Head:** d93afa1f
+
+```bash
+git diff --stat 7f876771..d93afa1f
+git diff 7f876771..d93afa1f
+```
+
+## The spec is a vision document
+
+The spec says what the software must do. It does not enumerate every
+input, environment, or condition the software will meet. For behavior
+the spec is silent on, judge by what a reasonable person using this
+software would expect: a reasonable person's expectation is a
+requirement, and a spec's silence is not permission. Grade such
+findings by their effect on that person, not by whether the spec
+mentions the trigger.
+
+## Declined to judge
+
+Before your verdict, list every behavior you considered and set aside
+as outside the plan or spec, one line each, with the reason. The
+executor rules on each line; nothing you set aside is dropped
+silently. An empty list means you set nothing aside.
+
+## Read-Only Review
+
+Your review is read-only on this checkout. Do not mutate the working tree, the index, HEAD, or branch state in any way. Use tools like `git show`, `git diff`, and `git log` to inspect history. If you need a working copy of a different revision, check it out into a separate temporary directory (e.g. `git worktree add /tmp/review-[SHA] [SHA]`) — never move HEAD on this checkout.
+
+## You Do Not Dispatch Subagents
+
+Do all of this review yourself. Never spawn a subagent to review part
+of the diff, and never spawn another reviewer for a second opinion.
+This process already provides every review seat the work gets; a
+reviewer you spawn duplicates one of them at full cost, and its
+verdict counts for nothing. If the diff feels too large for one
+pass, review it in passes yourself and say so in your report.
+
+## What to Check
+
+**Plan alignment:**
+- Does the implementation match the plan / requirements?
+- Are deviations justified improvements, or problematic departures?
+- Is all planned functionality present?
+
+**Code quality:**
+- Clean separation of concerns?
+- Proper error handling?
+- Type safety where applicable?
+- DRY without premature abstraction?
+- Edge cases handled?
+
+**Architecture:**
+- Sound design decisions?
+- Reasonable scalability and performance?
+- Security concerns?
+- Integrates cleanly with surrounding code?
+
+**Testing:**
+- Tests verify real behavior, not mocks?
+- Edge cases covered?
+- Integration tests where they matter?
+- All tests passing?
+
+**Production readiness:**
+- Migration strategy if schema changed?
+- Backward compatibility considered?
+- Documentation complete?
+- No obvious bugs?
+
+## Calibration
+
+Categorize issues by actual severity. Not everything is Critical.
+Acknowledge what was done well before listing issues — accurate praise
+helps the implementer trust the rest of the feedback.
+
+If you find significant deviations from the plan, flag them specifically
+so the implementer can confirm whether the deviation was intentional.
+If you find issues with the plan itself rather than the implementation,
+say so.
+
+## Output Format
+
+### Strengths
+[What's well done? Be specific.]
+
+### Issues
+
+#### Critical (Must Fix)
+[Bugs, security issues, data loss risks, broken functionality]
+
+#### Important (Should Fix)
+[Architecture problems, missing features, poor error handling, test gaps]
+
+#### Minor (Nice to Have)
+[Code style, optimization opportunities, documentation polish]
+
+For each issue:
+- File:line reference
+- What's wrong
+- Why it matters
+- How to fix (if not obvious)
+
+### Recommendations
+[Improvements for code quality, architecture, or process]
+
+### Assessment
+
+**Ready to merge?** [Yes | No | With fixes]
+
+**Reasoning:** [1-2 sentence technical assessment]
+
+## Critical Rules
+
+**DO:**
+- Categorize by actual severity
+- Be specific (file:line, not vague)
+- Explain WHY each issue matters
+- Acknowledge strengths
+- Give a clear verdict
+
+**DON'T:**
+- Say "looks good" without checking
+- Mark nitpicks as Critical
+- Give feedback on code you didn't actually read
+- Be vague ("improve error handling")
+- Avoid giving a clear verdict