review brief: DPA and retention spec, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+85
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-dpa-and-retention.md+85 −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-qnz37J .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/aws/smithy-go v1.28.1 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 modernc.org/sqlite v1.55.0 go: downloading github.com/benbjohnson/litestream v0.5.14 go: downloading github.com/superfly/ltx v0.5.1 go: downloading golang.org/x/sys v0.49.0 go: downloading golang.org/x/net v0.62.0 go: downloading golang.org/x/crypto v0.58.0 go: downloading github.com/oschwald/maxminddb-golang v1.13.1 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/sesv2 v1.66.6 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/pion/dtls/v3 v3.1.4 go: downloading github.com/pion/transport/v4 v4.0.2 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/wlynxg/anet v0.0.5 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/prometheus/client_golang v1.17.0 go: downloading golang.org/x/text v0.43.0 go: downloading github.com/prometheus/common v0.45.0 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e go: downloading modernc.org/sqlite v1.55.0 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/google/uuid v1.6.0 go: downloading modernc.org/mathutil v1.7.1 amadan: job cancelled — a newer push superseded it
Intent
Attributed to this commit: 72.3 g CO₂e (7,402,053 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on dpa-and-retention, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-dpa-and-retention.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-dpa-and-retention.md| new file mode 100644 |
| index 000000000..f764702c1 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-dpa-and-retention.md |
| @@ -0,0 +1,85 @@ |
| +# Review brief: DPA and customer-set retention spec, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `dpa-and-retention`, commit 111e59db034be3e7ab44d2d6b568904b8ffb0b98. |
| +Under review: `docs/superpowers/specs/2026-11-25-dpa-and-retention-design.md`. |
| +Authorities: the code on this commit (its base is main edaed836). Relevant |
| +merged work: the visitor-statistics prune (`internal/console/analyticsprune.go`, |
| +`internal/analytics/prune.go`), box log retention (`internal/host/logretention.go`, |
| +`internal/host/logship.go`), console delivery (`internal/console/delivery.go`, |
| +`consolemail.go`), the owner-notice pattern (`notifyPlanOwners` in |
| +`internal/console/plangracepass.go`), account deletion (`internal/console/ownership.go`), |
| +route declarations (`internal/console/routedecls.go`), the operator gate |
| +(`operatorOnly`), step-up auth (`internal/console/stepup.go`), and AGENTS.md. |
| +Do not review against unmerged branches; if this work needs one, say so as a P1 and stop. |
| + |
| +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's rulings, 2026-11-25 (spec §1): the DPA is accepted in the console |
| + with no operator approval step; every promise in the privacy policy and |
| + DPA is built; customers set retention per account and per app, default |
| + indefinite. Report only mechanisms that fail to honour them. |
| +- Logs may only be shortened, not lengthened past the box's retention |
| + (§5.3). You may argue the mechanism, not the scope. |
| +- The DPA legal text (§7) is boilerplate pending a lawyer; review whether |
| + §7 matches what the platform actually does (subprocessors, regions, |
| + deletion, breach), not its legal drafting. |
| + |
| +## What to check |
| + |
| +1. §2: is every "built" claim true on this commit? Is any privacy-policy |
| + promise (the policy text is quoted in §2 and §8) missing from the table? |
| +2. §3: gate order and roles against the existing owner-only settings POSTs |
| + and `requireFreshAuth`; whether the acceptance record proves what was |
| + accepted (§3.4 digest fetch: SSRF, redirects, size, timeouts — the URL |
| + comes from an operator, but the console fetches it). |
| +3. §4: the notice pass against `notifyPlanOwners`: retry, duplicates on |
| + restart, accounts created after publish, owner changes, deleted accounts, |
| + and whether "bounded per tick" can starve. |
| +4. §5.4: whether `analytics.Prune`'s walk can take a per-app resolver as |
| + described (does it walk per app? where do account and app names come |
| + from in the key layout?), and whether an app with no setting really costs |
| + no listing. The daily admission and cursor semantics must still hold. |
| +5. §5.5: the box read of `apps/<sqid>/<app>/retention.json`. Is there an |
| + existing per-app record the agent already reads on the serial bump that |
| + this can ride, or does it add per-box polling of new keys (S3 request |
| + cost is a standing concern: no new per-box polling)? Old-box/new-console |
| + and new-box/old-console behaviour; the census implication. |
| +6. §6: deleting a user — every table that references a person's address |
| + (grep the store for address/user columns), what breaks for sole owners, |
| + in-flight sessions and CLI tokens, Keymail links, and whether "one |
| + transaction" is achievable given the store's layout. |
| +7. Anything in the spec that contradicts AGENTS.md (gate order, wire-shape |
| + additivity, "every carlos command is designed for a user with no infra |
| + access", provider-neutral core). |
| + |
| +## 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). 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. |