reviews: census brief for log-retention-knobs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+35
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md+35 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md| new file mode 100644 |
| index 000000000..262dc760f |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md |
| @@ -0,0 +1,35 @@ |
| +# Review brief: log-retention-knobs census approval, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `log-retention-knobs`, commit 44da25ab95d84ef57df2d8b9f8686addcc8027dc. |
| +Under review: the diff `c48e91e5..44da25ab` (`git diff c48e91e5 44da25ab`), against the census card |
| +`docs/superpowers/notes/census-proposal-log-retention-knobs.md`. |
| +Authorities: AGENTS.md "The census: the reviewer decides"; errors spec |
| +docs/superpowers/specs/2026-09-07-errors-and-analytics-design.md §3.6 (errors follow log retention). |
| + |
| +You are the independent census reviewer (AGENTS.md). Read the card, then every changed function in the |
| +re-pinned envelopes `internal/host` and `internal/hostenv`, and what each reaches. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul no longer rules on census units; you decide (#280, 2026-10-26). |
| +- An earlier code review of fddc42f1 (docs/superpowers/reviews/CODEX-FINDINGS-log-retention-knobs.md) found no runtime bug; its P2 and P3 were fixed in dfc9c8bf. |
| + |
| +## What to check |
| + |
| +1. Envelope `internal/host`: new logretention.go (logRetentionFromEnv, pruneLedger), the edited logshipLoop/logshipFlush, errshipLoop/errshipFlush, and the agent.go comment. Does any of it 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? The prune LISTs and DELETEs only under applog.FamilyBoxPrefix(fam, acct, app, box) in the bucket (as chunkPrune did); confirm nothing widens that scope, and that bucket key names (written by this box, but listable in a bucket other boxes and the console also write) cannot steer a delete outside the box's own subtree. |
| +2. Envelope `internal/hostenv`: two names added to Optional. Does admitting CARLOS_LOG_RETENTION_DAYS / _MB through host.env weaken any check root relies on? Can a bad value stop the agent or remove a limit silently (consider MB=off, ceilings, parse paths)? |
| +3. The 9B8 record-write census re-digests of logshipFlush and errshipFlush (internal/provision/plan9_b8_census_test.go): still one Put of a non-record chunk, no record key? |
| + |
| +## 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. |
| +- **P3**: clarity or polish. 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 |
| + |
| +A verdict per envelope (`internal/host`, `internal/hostenv`) and for the 9B8 re-digests: approve or reject, citing the lines you read. Then findings ranked P1, P2, P3, each with evidence (file:line), failure scenario, fix and the invariant it breaks. End with exactly one verdict: **READY**, **READY AFTER FIXES**, or **NOT READY**. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |