docs: store versioning review brief, round 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+77
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-versioning-R3.md+77 −0
CI cancelled โ superseded by a newer push — run details
CI log
=== gate === go: downloading go1.26.10 (linux/arm64) go version go1.26.10 linux/arm64 opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1 tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz tofu: downloaded, digest verified aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip aws: downloaded, digest verified archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip archive: downloaded, digest verified installed in /tmp/carlos-opentofu-pOski8 .amadan/test-gate.sh go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0 go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0 go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5 go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0 go: downloading github.com/benbjohnson/litestream v0.5.14 go: downloading github.com/superfly/ltx v0.5.1 go: downloading modernc.org/sqlite v1.55.0 go: downloading golang.org/x/net v0.62.0 go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6 go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0 go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0 go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0 go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2 go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0 go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1 go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.45.6 go: downloading golang.org/x/sys v0.49.0 go: downloading golang.org/x/crypto v0.58.0 go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6 go: downloading github.com/pion/logging v0.2.4 go: downloading github.com/pion/stun/v3 v3.1.5 go: downloading github.com/pion/turn/v4 v4.1.4 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.31 go: downloading github.com/pion/dtls/v3 v3.1.4 go: downloading github.com/pion/transport/v4 v4.0.2 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/pion/randutil v0.1.0 go: downloading golang.org/x/text v0.43.0 go: downloading github.com/prometheus/client_golang v1.17.0 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18 go: downloading github.com/lmittmann/tint v1.1.3 go: downloading github.com/wlynxg/anet v0.0.5 go: downloading github.com/prometheus/common v0.45.0 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 go: downloading modernc.org/sqlite v1.55.0 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/mathutil v1.7.1 amadan: job cancelled โ a newer push superseded it
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-versioning-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-versioning-R3.md| new file mode 100644 |
| index 000000000..7f7d0b5e8 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-versioning-R3.md |
| @@ -0,0 +1,77 @@ |
| +# Review brief: store versioning (spec and branch), round 3 of 3 |
| + |
| +Repo carlos/platform, branch `store-versioning`, code tip |
| +`1ae9761bb1b721ede7235c9ae371075d6958350d` (this brief is committed after |
| +it and changes no code). Under review: the round 3 fix `8a67586ff..1ae9761bb`, |
| +and the whole branch `74aeb271c..1ae9761bb`, against |
| +`docs/superpowers/specs/2026-11-22-store-versioning-design.md` (ยง6.6 is new). |
| +Census card: `docs/superpowers/notes/census-proposal-store-versioning.md`, |
| +re-proposed. Authorities as in round 1. |
| + |
| +You are an independent reviewer. Read the document, then the code it names, |
| +and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul, 2026-11-22 (#1372): build opt-in store versioning here, for Slopbox. |
| +- Decision 3: there is no `off` (round 1). |
| +- **Paul's ruling on round 2's P1 (2026-11-22, #1380): option 3.** Every |
| + store version listing goes through one helper that requests and decodes |
| + URL-encoded keys, with a test that fails on any other call site. Report |
| + only a mechanism that fails to honour it, not the choice. |
| + |
| +## Round 3 |
| + |
| +Earlier rounds, both in `docs/superpowers/reviews/CODEX-FINDINGS-store-versioning.md`: |
| +round 1 (NOT READY, 3 P1 3 P2, all fixed) and round 2 (NOT READY, 1 P1 held |
| +for Paul, 4 P2 fixed and confirmed). First give one line per round 2 P1 and |
| +P2: resolved, partly, or not. The verdict covers everything outstanding. |
| + |
| +## What to check |
| + |
| +1. `internal/objstore/versionlist.go` `ListObjectVersionsPage`: every key, |
| + marker and prefix decoded exactly once, and nothing else; the raw-answer |
| + fallback; the decode-error path. Does any caller compare or reuse an |
| + undecoded key? Are inputs (Prefix, KeyMarker) sent correctly? |
| +2. The guard `TestEveryStoreVersionListingUsesTheHelper`: does it actually |
| + catch every other call shape in the store code, and is its scope right? |
| +3. The fixture tests (`versionlist_test.go`): is the fake S3 faithful enough |
| + (raw vs encoded answers, paging markers, HEAD, copy, delete) that the |
| + tests prove the property for listing, restore with a planted key, and |
| + teardown? Do they pass for the wrong reason anywhere? |
| +4. `EmptyVersions` deleting XML-unsafe keys by URL (`xmlSafeKey`, |
| + `deleteVersionByURL`): correct, and still inside the IAM grant? |
| +5. Anything this diff breaks elsewhere in the branch. |
| +6. Census verdicts for every unit and envelope the card lists. |
| + |
| +## 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 with section, problem, evidence |
| +(file:line, verified), failure scenario, fix and fault family. 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. |
| + |
| +This is round 3, so a NOT READY also says whether the P1s share one cause, |
| +and whether refusing the case up front or cutting the feature would remove |
| +them. Then the census verdicts. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |