Recognize `CREDIT_LIMIT` windows in Z.ai provider health checks
This pull request was posted by Codex Desktop using gpt-6.1-sol on behalf of David.
Related issue: #10637.
The Z.ai quota check skipped valid CREDIT_LIMIT rows, leaving both required windows undiscovered. A sanitized Actions-secret diagnostic confirmed successful responses with valid 5-hour and weekly windows, each 1% used. The parser now accepts these rows with the existing validation.
New public surface
None.
Verification
test_zai_quota_parses_observed_windows_and_ignores_mcp_limitcovers both limit types and the healthy quota result.test_zai_quota_exhaustion_uses_latest_exhausted_window_resetchecks exhausted-window behavior for both types.test_zai_quota_parser_attaches_fixed_diagnostickeeps malformed and incompleteCREDIT_LIMITdata invalid.test_check_command_reads_zai_quota_and_writes_secret_free_artifactverifies the check command acceptsCREDIT_LIMITand writes secret-free health state.
Targeted provider-health pytest, focused Pyright, the workflow policy guard, and pre-commit passed.
Recovery
The fix merged to main in 5c8a6c1; CI, coverage, and benchmarks passed. A fresh provider health run confirmed recovery and explicitly closed incident #10637.
The consumer review workflow for #10444 completed successfully, publishing a formal CHANGES_REQUESTED review on head 15ec804. The earlier timeout is tracked separately in #10680. The WebSocket finding belongs to the #10444 owner; no model or budget change was needed for this provider-health fix.
What changes for existing users
No public API changes; the health check recognizes both quota row types.
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
- PR title is fit for the release changelog.