Skip to content

test: retain safe quota recovery failure evidence - #152003

Merged
steipete merged 5 commits into
mainfrom
codex/qa-quota-status-fixture
Sep 18, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/qa-quota-status-fixture

Conversation

@steipete

@steipete steipete commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

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 existing failure.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, ok expectation and positive remaining-lifetime assertion. It introduces no competing correction to #151947 or #151942.

Evidence

  • Eight privacy, unknown-value and bounded-output cases pass, alongside 20 auth-health contract cases. Both affected compiler graphs, scoped typed lint, formatting, size guards and workflow sanity pass. The existing workflow guard fails before its caller migration and passes afterward.
  • The three original real-Gateway quota UI cases pass locally. An explicitly injected first-upgrade HTTP 401 control passes the original recovery assertions and captures the actual native 401 plus OAuth refresh safely. Temporary injection bytes were restored and verified; this control does not establish that the historical hosted failure encountered HTTP 401.
  • Hosted collection is verified in run 35375013301: its failure artifact contains only three quota.public.json files, each with healthy two-day status, two refresh receipts of unknown caller and no recorded native handshake failure. The refresh trigger remains unknown.
  • Run 35377258883 passed real-Gateway, the workflow guard, both Windows jobs, types, lint and all UI shards. Its sole substantive failure was the separate Git-inventory buffer boundary already repaired upstream by fix(test): preserve complete Git test inventories beyond one MiB #151991; normal integration includes that repair and all 103 planner/config cases pass locally. The final integrated head 86c8b3234a42d9fb76f7588169f08403c2165941 is 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.
  • Fresh independent review of the final seven-file diff against main 85bf3ba40b8691b629d805426d3cd871975d4e89 found 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.

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 18, 2026 17:33
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 18, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 2:42 PM ET / 18:42 UTC (Revision 4).

ClawSweeper review

What this changes

The 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
Reviewed head: 86c8b3234a42d9fb76f7588169f08403c2165941

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused diagnostic improvement with meaningful privacy guards and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate does not apply to this maintainer-authored PR, and no authority change triggers additional proof. Recorded native 401 control and hosted collection evidence exercise the changed diagnostic path; artifact metadata was verified, but archive access was blocked by the reviewer environment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate does not apply to this maintainer-authored PR, and no authority change triggers additional proof. Recorded native 401 control and hosted collection evidence exercise the changed diagnostic path; artifact metadata was verified, but archive access was blocked by the reviewer environment.
Evidence reviewed 9 items Introduced scope and review continuity: The verified merge-base-to-head delta contains diagnostic collection, sanitization, tests, and the upload selection. Comparing the previous reviewed head with this head identifies only the quota UI test as changed among these paths; the previous review recorded no findings. Some historical blobs were unavailable locally, so no unsupported line-level continuity or introduction claims are made.
Producer-owned privacy boundary: The serializer emits fixed categories, finite numbers, availability flags, and omission counts. Each of four event streams retains at most 128 entries; raw URLs, headers, bodies, stacks, account identifiers, and native log text are not copied. Tests cover private canaries, unknown values, and bounded output.
Narrow artifact publication: The failure upload adds only quota-refresh-*/quota.public.json alongside the existing timeout public JSON. The pinned upload action, failure condition, permissions, and seven-day retention remain unchanged; the workflow guard checks the updated selection.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +276, Config +2. Total +278 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 284 8 +276
Docs 0 0 0 0
Config 1 4 2 +2
Generated 0 0 0 0
Other 0 0 0 0
Total 7 288 10 +278

Review metrics

Metric Value Why it matters
Public evidence bounds 4 streams capped at 128 entries; 7-day retention The added publication path limits retained diagnostic volume and preserves the existing retention period.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This improves internal failure investigation without changing production recovery or user-visible behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor-proof gate does not apply to this maintainer-authored PR, and no authority change triggers additional proof. Recorded native 401 control and hosted collection evidence exercise the changed diagnostic path; artifact metadata was verified, but archive access was blocked by the reviewer environment.

Evidence

What I checked:

  • Introduced scope and review continuity: The verified merge-base-to-head delta contains diagnostic collection, sanitization, tests, and the upload selection. Comparing the previous reviewed head with this head identifies only the quota UI test as changed among these paths; the previous review recorded no findings. Some historical blobs were unavailable locally, so no unsupported line-level continuity or introduction claims are made. (ui/src/e2e/quota-reset-status.real-gateway.e2e.test.ts:397, 86c8b3234a42)
  • Producer-owned privacy boundary: The serializer emits fixed categories, finite numbers, availability flags, and omission counts. Each of four event streams retains at most 128 entries; raw URLs, headers, bodies, stacks, account identifiers, and native log text are not copied. Tests cover private canaries, unknown values, and bounded output. (test/e2e/qa-lab/runtime/quota-reset-diagnostics.mjs:65, 86c8b3234a42)
  • Narrow artifact publication: The failure upload adds only quota-refresh-*/quota.public.json alongside the existing timeout public JSON. The pinned upload action, failure condition, permissions, and seven-day retention remain unchanged; the workflow guard checks the updated selection. (.github/workflows/ci.yml:3035, 86c8b3234a42)
  • Still necessary on current main: Fetched main has no quota-reset-diagnostics.mjs and uploads only the existing failure.public.json. The same new diagnostic module is absent from the supplied latest release tag v2026.9.4. The requested diagnostic retention therefore remains distinct work. (.github/workflows/ci.yml:3036, d091c27f216a)
  • Separate merged assertion repair: The GitHub-verified patch for fix(ui): show starting branch for cloud sessions #152010 restores the two-day credential explanation and healthy status assertion. This PR retains that correction and adds diagnostics without changing those assertions or deadlines. (ui/src/e2e/quota-reset-status.real-gateway.e2e.test.ts:108, 3c02c5f7f9b9)
  • Recorded runtime and hosted evidence: The captured PR body reports three passing real-Gateway scenarios and an injected first-upgrade HTTP 401 control that recorded the native failure and OAuth refresh. GitHub confirms failure artifact 10559834366 exists for run 35375013301 at head 632ebf3, and the real-Gateway job passed in run 35377258883 at head 9868608. Archive inspection was blocked by the storage-host allowlist; its contents were not independently verified. Neither the reported control nor the artifact establishes the historical refresh trigger. (632ebf339281)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-18T17:39:56.989Z sha 632ebf3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T18:06:07.314Z sha 9868608 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-18T18:27:49.664Z sha 99f7f73 :: needs maintainer review before merge. :: none

Integrate current main and preserve the two-day fixture expiry from PR #151947 and positive remaining lifetime check from PR #151942. Restore the healthy CLI expectation and retain safe failure diagnostics. Historical hosted refresh attribution remains unknown.
@steipete steipete changed the title fix: retain safe quota recovery failure evidence test: align quota recovery health and retain safe failure evidence Sep 18, 2026
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.
@steipete steipete changed the title test: align quota recovery health and retain safe failure evidence test: retain safe quota recovery failure evidence Sep 18, 2026
@steipete
steipete merged commit 58f54ff into main Sep 18, 2026
178 of 179 checks passed
@steipete
steipete deleted the codex/qa-quota-status-fixture branch September 18, 2026 19:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 18, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
* test: retain safe quota recovery failure evidence

* test: update quota failure artifact workflow guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant