Prevent premature Codex weekly reset confetti - #2482
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 11:18 AM ET / 15:18 UTC. ClawSweeper reviewWhat this changesThis PR prevents premature low Codex weekly-usage samples from replacing the public snapshot or triggering reset confetti until the previously advertised weekly reset boundary is due. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep this PR open for normal review: its narrow guard and focused regressions directly address the reported premature Codex weekly reset path, but the added packaged-app evidence observes an ordinary no-confetti run rather than exercising the reported pre-boundary rollover. A redacted end-to-end refresh trace is still needed before merge. Priority: P2 Review scores
Verification
How this fits togetherCodexBar polls provider usage and keeps per-account snapshots for its menu, widgets, history, and celebration behavior. Codex weekly samples pass through confirmation and publication checks before visible usage state changes or a reset confetti event is emitted. flowchart LR
A[Codex usage samples] --> B[Weekly reset confirmation]
B --> C[Public usage snapshot]
C --> D[Menu widgets and history]
B --> E[Reset celebration guard]
E --> F[Confetti event]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the prior-boundary guard, then add redacted end-to-end evidence from a refresh that exposes the previous boundary, the incoming low sample, the decision to preserve the displayed snapshot, and the absence of a reset event; keep the existing post-boundary regression coverage. Do we have a high-confidence way to reproduce the issue? Yes, from the supplied source diff and linked report: a prior 100% weekly sample followed by matching 0% samples with a future rolling boundary reaches the confirmation and celebration decisions before the prior boundary is due. Full current-main execution could not be independently verified because local read-only commands failed before execution. Is this the best way to solve the issue? Yes, provisionally: requiring the prior reset boundary to be due in both publication and celebration decisions is the narrowest shared fix, and the branch updates genuine post-boundary fixtures to preserve the intended reset path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02b4ba278c81. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review — added packaged integration-runtime evidence while keeping the temporal rollover claim bounded to deterministic regression tests. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Summary
Fixes #2481
Testing
make check✅swift test --filter CodexWeeklyResetConfirmationTests✅ (14 tests)swift test --filter CodexWeeklyResetPublicationTests✅ (12 tests)swift test --filter UsageStorePlanUtilizationCelebrationTests✅ (30 tests)make test.notFound/ownership fixture issues plus one isolated MCP-only expectation; the exact failing shard reproduces independently and none of its files are touched here.Integration runtime proof
025dd6d1); the app stayed running.Weekly limit resetconfetti event, and unified logs contained no matches for either reported provider error signature during the verification window.