carlos / platform Public

reviews: Astra round 3 findings for nearest-region-scan (NOT READY; last round)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 84478f249aab06e055166aa48adcf987ae905dc0 parent ba8a71f
1 file changed, +15 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r3.md +15 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r3.md b/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r3.md
new file mode 100644
index 000000000..329a746d0
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r3.md
@@ -0,0 +1,15 @@
+- R1 P1-1: **Resolved** — unchecked sorting is gone; failed `find` output is refused.
+- R1 P1-2: **Resolved** — the reported slash-normalization cases are rejected before AWS calls.
+- R1 P2-3: **Resolved** — failed output appends abort before publication.
+- R1 P2-4: **Resolved** — malformed S3 pages and keys are rejected.
+- R2 P1-1: **Resolved** — dot segments and doubled slashes are rejected.
+- R2 P2-2: **Resolved** — false/null collections and multiple JSON objects are rejected.
+- R2 P3-3: **Resolved** — the header no longer promises sorted output.
+
+1. **P1 — Task 11, §§2–3: plain prefixes can still cause activation to mark the wrong hostname.** The gate at [hosts-used-scan-aws.sh:74](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/scripts/hosts-used-scan-aws.sh:74) accepts `moves/archive.example.net`, verified against its actual jq predicate. A replica for `old.example.com` then lives under `moves/archive.example.net/old.example.com/…`. The scanner includes it, but [hostsused_map.go:56](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/internal/provision/hostsused_map.go:56) interprets `moves/` before the configured replica prefix, returning `archive.example.net` with no unmapped entry. Activation can complete without marking the orphaned replica’s actual hostname. `seeds/archive.example.net` has the same failure. **Recommended cut:** refuse replica prefixes nested beneath `moves/` or `seeds/` before any AWS call, with regression witnesses for both. **Fault family:** agreement between the configured storage namespace and the inventoried hostname; the namespace family from rounds 1–2 recurs, so stopping rule 2 applies.
+
+2. **P1 — Probe-directory change: both census fingerprints remain stale.** The change at [hostsused.go:55](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/internal/layout/hostsused.go:55) changes `HostsFromBoxListing`’s digest from `b3c85cf9…` to `3f114122…`, but [nearest_region_b_census_test.go:54](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/internal/provision/nearest_region_b_census_test.go:54) still pins the former. The Linux source envelope likewise changes from `6061e8c4…` to `2b40e510…`, while [plan14-root-reads-nearest-region-b.tsv:6](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/internal/provision/testdata/plan14-root-reads-nearest-region-b.tsv:6) retains the old value. Both mismatches were independently recomputed from source; they trigger the record-write and root-read census checks. The sandbox prevented executing Go tests. **Fix:** update the reviewed record-write fingerprint and add the required reviewed root-envelope proposal and chain entry. **Fault family:** census approval matching the source being merged.
+
+The P1s have separate causes. Upfront refusal removes the namespace-overlap case. The census failure requires updated review records; cutting the probe-directory change would also remove that mismatch.
+
+**NOT READY**
\ No newline at end of file