carlos / platform Public

hosts-floor-release: Astra review brief, round 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 109c4f97448d2059547435f53e68df5379f47c48 parent c5a9a57
1 file changed, +88 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hosts-floor-release-R2.md +88 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hosts-floor-release-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hosts-floor-release-R2.md
new file mode 100644
index 000000000..ade5245a2
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-hosts-floor-release-R2.md
@@ -0,0 +1,88 @@
+# Review brief: branch hosts-floor-release (the floor names a release), round 2 of 3
+
+Repo carlos/platform, branch `hosts-floor-release`, commit c5a9a576a68f3005bf0e3b913966c1c380e759cf.
+Under review: the diff `origin/main..c5a9a576` (main f86e9792), with the design note
+`docs/superpowers/specs/2026-11-05-hosts-floor-names-a-release-design.md` and the census card
+`docs/superpowers/notes/census-proposal-hosts-floor-release.md`.
+Authorities: `docs/superpowers/specs/2026-10-26-nearest-region-without-claims-design.md` §4 (the
+floor), README "The history's floor", AGENTS.md "The census" and "Stopping rules".
+
+You are an independent reviewer. Read the design note, then the code it names, and check every
+claim against that code. You are also the census reviewer for this branch (other model family
+than the Claude author).
+
+## Fixed: do not re-argue
+
+- Paul approved fixing the floor check on 2026-11-05 (the design note's status line). The choice
+ of changing the floor's data (a release floor) over teaching the CLI ancestry is the design;
+ report only mechanisms that fail its stated invariant.
+- Copy is approved by a delegated Luna pass (`docs/superpowers/notes/copy/hosts-floor-names-a-release.md`);
+ report a copy problem only if a sentence is false.
+- `ship-app.sh` (carloku-infrastructure) is out of scope (design §6).
+
+## What to check
+
+1. **Safety of raise-floor** (`internal/console/hostsused_floor.go`, `RaiseHostsFloor`,
+ `GitCheckout`). Invariant: after a raise, every build the release comparison accepts contains
+ the old floor commit, and a build genuinely older than the floor is still refused by every
+ floor check (`checkMigrationFloor`, roll-console.sh's commit ancestry). Can a raise write a
+ floor whose release does not contain the old floor commit? Can a ref, a moved/lightweight
+ tag, an abbreviated or ambiguous object name, a SHA-256 repo, or git's exit codes make it
+ accept wrongly? Is the check order such that every refusal writes nothing?
+2. **Conditional update.** The write is If-Match on the etag read; is there any path that writes
+ blind (empty etag on an existing floor; ErrCASConflict mapping; a floor deleted meanwhile)?
+3. **No serve lock.** The verb takes neither the console's serve lock nor its database. Is it
+ true that only `Activate` (under the lock) and this verb write `@floor`?
+4. **Activate.** The new release check (`hostsused_activate.go`) comes before any write; tests
+ (`TestActivateRefusesABuildThatIsNotARelease`) prove nothing is written. Does any existing
+ caller or test (cmd/console builds, scan test) still activate a non-release build?
+5. **CLI** (`accounts_hostsused.go`): B11 changes only the message for a floor whose version is
+ not a release; is any build now accepted that was refused before?
+6. **Census card.** Only envelope `.` re-pinned, no unit changed. Verdict for envelope `.`: does
+ the change let root open, run, query or follow anything new from a path or input a tenant,
+ app or box agent can create, write or name, or weaken any check root relies on?
+7. **README and design note** claims true against the code (including "all 31 releases from
+ v0.28.29 on contain 50c0cb14 and none before it does": `git tag --contains 50c0cb14`).
+
+## Round 2
+
+Earlier rounds: round 1, `docs/superpowers/notes/reviews/ASTRA-FINDINGS-hosts-floor-release-r1.md`
+(NOT READY: P1-1 moved older tag, P1-2 Windows test compile, P2-3 C14 build command; census
+envelope `.` APPROVED). The fixes are commit c5a9a576: raise-floor now accepts only the running
+console's own release (design note §4, "Only this console's release"), the binary test carries
+`//go:build !windows`, and C14 names `SHA=<tag>`. The root package (`.`) is unchanged since
+round 1, so the census fingerprint stands; confirm.
+
+First give one line per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved
+or partly resolved finding forward at its current severity, then add new findings. The verdict
+covers everything outstanding, earlier rounds included.
+
+## 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. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the section or task, the problem,
+the evidence (file:line, verified), the failure scenario, a concrete
+fix and the invariant or trust boundary it breaks (that is its fault
+family). Then the census verdict for envelope `.` (APPROVE or REJECT, citing lines read). End
+with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites (targeted `go test -run` is fine).