reviews: Astra round 2 findings for nearest-region-scan (NOT READY; stopping rule 2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+12
−0
docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r2.md+12 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r2.md b/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r2.md| new file mode 100644 |
| index 000000000..f667d0585 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-nearest-region-scan-r2.md |
| @@ -0,0 +1,12 @@ |
| +- R1 P1-1: **Resolved** — checked `find` output is hashed directly; the unchecked sort is gone. |
| +- R1 P1-2: **Partly resolved** — surrounding whitespace and slashes are handled, but internal path normalization still differs. |
| +- R1 P2-3: **Resolved** — failed output appends abort before publication. |
| +- R1 P2-4: **Partly resolved** — malformed response shapes can still pass validation. |
| + |
| +1. **P1 — Task 11, §§2–3: accepted prefixes can still miss replicas.** The scanner accepts `snapshots/../instances` and lists that literal prefix at [hosts-used-scan-aws.sh:126](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/scripts/hosts-used-scan-aws.sh:126). The box constructs replica paths with `path.Join` at [activator.go:160](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/internal/activator/activator.go:160), placing those replicas under `instances/`. Verified with the actual scanner functions against a mock containing `instances/old.example.com/db/1`: the scan returned `ok:true, entries:[]`. Activation can therefore complete without marking that hostname. Internal doubled slashes and `.` produce similar mismatches. **Fix:** refuse noncanonical prefixes before scanning, with witnesses for dot segments and doubled internal slashes. **Fault family:** agreement between the configured and inventoried namespace — the same family as R1 P1-2. Stopping rule 2 applies; the recommended cut is an upfront refusal gate. |
| + |
| +2. **P2 — Task 11, §§2,4,6: malformed S3 responses still become successful listings.** At [hosts-used-scan-aws.sh:106](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/scripts/hosts-used-scan-aws.sh:106), `.Contents // []` treats `false` as an absent collection. The validator also accepts multiple JSON objects; at line 112, combined `IsTruncated` values differ from literal `true`, ending pagination. Verified that `{"IsTruncated":false,"KeyCount":0,"Contents":false}` succeeds with empty entries, and that a truncated response followed by an empty terminal object succeeds without following its continuation token. **Fix:** require exactly one response object, explicitly validate the collection type, and add both malformed-response witnesses. **Fault family:** rejecting malformed provider responses rather than interpreting them as absence — carried forward from R1 P2-4. |
| + |
| +3. **P3 — Task 11, header contract: the listing is described as sorted.** [hosts-used-scan-aws.sh:30](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/nearest-region-scan/scripts/hosts-used-scan-aws.sh:30) still promises sorted output, while lines 161–164 encode `find` traversal order directly. **Fix:** remove “sorted” from the header. **Fault family:** documentation matching the implemented output contract. |
| + |
| +**NOT READY** |
| \ No newline at end of file |