Repository navigation
test: retain safe quota recovery failure evidence - #152003
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 2:42 PM ET / 18:42 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR records sanitized quota-recovery test diagnostics and retains them in CI failure artifacts. Merge readiness✅ Ready for maintainer review Keep open: the diagnostics remain useful and absent from current main. The introduced patch has no actionable correctness or security findings, and the separately merged quota-status correction does not supersede it. Priority: P3 Review scores
Verification
How this fits togetherThe quota test fixture connects a real Gateway and Codex transport to a synthetic provider. Its diagnostic serializer turns profile health, refresh attempts, and connection failures into bounded public evidence for CI investigation. flowchart LR
A[Synthetic quota provider] --> B[Gateway recovery tests]
C[Native transport logs] --> D[Diagnostic allowlist]
B --> D
D --> E[Public diagnostic JSON]
E --> F[CI failure artifact]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +276, Config +2. Total +278 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep diagnostic collection in the existing fixture, publish only its bounded allowlisted output, and preserve unknown refresh attribution. Do we have a high-confidence way to reproduce the issue? Not applicable to this diagnostic improvement: source confirms main lacks the added public evidence path. The historical hosted refresh trigger remains unexplained, and no tests were executed during this read-only review. Is this the best way to solve the issue? Yes. Extending the fixture's diagnostic producer and existing failure upload is a focused solution that preserves recovery assertions and avoids production instrumentation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d091c27f216a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Merge trusted main313c7ef including PR #151991. All seven quota diagnostic feature files remain byte-identical to the reviewed98686088 head. The103 focused planner/configuration cases pass; fresh full hosted CI remains required.
|
Merged via squash.
|
…pr-149282-proof-20260919 * commit '534100dfb1eda19b0793c14fd0fba67eaf729ee0': (1800 commits) perf(gateway): avoid roster scans in catalog delivery (#151938) fix(telegram): preserve dispatcher composition under Bun (#152055) test(gateway): seed fixture auth without native plugin imports (#152058) test: restore document focus after shared cleanup (#152065) fix(ui): preserve attachment reader focus during link refresh (#151858) perf(tests): isolate metadata heap checks (#152063) fix(ui): make RTL side panel resizing follow input direction (#151989) fix(doctor): move Workshop diagnostic reads off the caller thread (#149905) fix(google): prevent Gemini errors from optional schema metadata (#151327) test: retain safe quota recovery failure evidence (#152003) test(qa-lab): stabilize self-yield follow-up release proof (#152048) perf(codex): reduce residual app-server framing overhead (#152035) improve(cron): batch automation names in chat history (#152054) fix(ui): preserve transparent chat widget backgrounds (#151972) fix(ui): HTML attachment previews leave most of the side panel unused (#152031) perf(gateway): coalesce person presence activity broadcasts (#152042) fix(ui): keep session Actions clickable beside attachments (#151975) refactor(qa): reuse Matrix CLI JSON parser (#152087) feat(ui): navigate message images in the lightbox (#152027) fix(codex): avoid fallback replies after intentional silence (#151951) ...
* test: retain safe quota recovery failure evidence * test: update quota failure artifact workflow guard
Related: #151858
What Problem This Solves
When a real-Gateway quota recovery test fails, CI does not retain enough safe evidence to distinguish CLI profile health, OAuth refreshes and native WebSocket failures. The original hosted refresh trigger remains unexplained: the same 30-file, 60-case order passed locally without a refresh.
User Impact
This test-only change retains bounded failure evidence without changing production authentication, recovery behavior, fixture expiry, assertions or deadlines.
Why This Change Was Made
The fixture records refresh caller categories, connection attempts, native handshake status codes and selected profile health. A producer-owned allowlist emits
quota.public.json; the existing failure upload selects that exact filename alongside the existingfailure.public.json, with unchanged seven-day retention. Unknown attribution remains unknown. Tokens, headers, request bodies, raw URLs, stack traces, prompts, account/model identifiers and private logs are excluded. The workflow’s exact publication guard is updated with the same contract.The quota-status expectation was corrected independently on main in #152010. This PR preserves that accurate two-day versus CLI 24-hour explanation,
okexpectation and positive remaining-lifetime assertion. It introduces no competing correction to #151947 or #151942.Evidence
quota.public.jsonfiles, each with healthy two-day status, two refresh receipts of unknown caller and no recorded native handshake failure. The refresh trigger remains unknown.86c8b3234a42d9fb76f7588169f08403c2165941is fully green in run 35381265842: all 122 jobs passed, including real-Gateway, both Windows jobs and the original inventory shard. The maintained watcher joined successfully.85bf3ba40b8691b629d805426d3cd871975d4e89found no actionable P0–P2 findings. Six diagnostic/workflow blobs are unchanged from the previously tested head; the seventh only retains the upstream accurate comment during integration.One earlier synthetic-control attempt completed its test assertions but its outer observer exited 143 during cleanup. That result is retained; the bounded control-only recovery subsequently joined 0 in 35 seconds without source, assertion or timeout changes. The original hosted refresh cause remains unresolved, and no production repair is claimed here.