Add sanitized diagnostics to the Z.ai quota health check

Merged
DS
2mo ago
+620-74

This pull request was posted by Codex Desktop using gpt-6-luna on behalf of David.

Why we make these changes

When the Z.ai quota check is unknown, operators currently see only the broad status. Add fixed diagnostic categories and validated HTTP status so the failure can be investigated without exposing provider data.

New public surface

none

User-visible behavior

The quota remains unknown and fail-closed; only a safe suffix is added to check output, incident content, and recovery output. For example: Z.ai quota health is unknown becomes Z.ai quota health is unknown (quota diagnostic: http_error; HTTP status 429). Version 1 artifacts without diagnostic metadata remain readable. Operator guidance lists the safe categories and optional status.

Verification

Targeted pytest and pyright pass. Focused coverage found no uncovered changed implementation lines or branches.

Focused tests

What changes for existing users

Quota decisions, workflow gates, and recovery conditions remain unchanged; artifacts gain optional diagnostic metadata.

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.