Skip to content

refactor: centralize live provider drift policy#82033

Merged
steipete merged 1 commit into
mainfrom
codex/refactor-live-provider-drift
May 15, 2026
Merged

refactor: centralize live provider drift policy#82033
steipete merged 1 commit into
mainfrom
codex/refactor-live-provider-drift

Conversation

@steipete

@steipete steipete commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • centralize live-test provider drift classification for auth, billing, rate-limit, timeout, model-not-found, and transient provider-unavailable cases
  • split cache live direct-model resolution into a stable single-fixture API plus an explicit key-pool API for Anthropic retry rotation
  • update live model, gateway model, CLI backend, and cache regression lanes to use the shared drift policy while preserving existing skip/retry patterns

Verification

  • node scripts/run-vitest.mjs src/agents/live-test-provider-drift.test.ts src/agents/live-cache-regression-runner.test.ts src/agents/live-auth-keys.test.ts src/agents/models.profiles.live.test.ts src/gateway/gateway-models.profiles.live.test.ts src/gateway/gateway-cli-backend.live.test.ts passed: 4 files, 20 tests
  • pnpm check:changed passed in Blacksmith Testbox: tbx_01krn2akr0j4cf0awjwmxk835n
  • Codex review passed clean: no accepted/actionable findings

Real behavior proof

Behavior addressed: refactor live provider drift skip/retry logic without changing accepted transient/account-state behavior
Real environment tested: local macOS checkout plus Blacksmith Testbox
Exact steps or command run after this patch: node scripts/run-vitest.mjs src/agents/live-test-provider-drift.test.ts src/agents/live-cache-regression-runner.test.ts src/agents/live-auth-keys.test.ts src/agents/models.profiles.live.test.ts src/gateway/gateway-models.profiles.live.test.ts src/gateway/gateway-cli-backend.live.test.ts; pnpm check:changed; /Users/steipete/Projects/agent-scripts/skills/codex-review/scripts/codex-review --parallel-tests "node scripts/run-vitest.mjs src/agents/live-test-provider-drift.test.ts src/agents/live-cache-regression-runner.test.ts src/agents/live-auth-keys.test.ts src/agents/models.profiles.live.test.ts src/gateway/gateway-models.profiles.live.test.ts src/gateway/gateway-cli-backend.live.test.ts"
Evidence after fix: terminal capture from local focused suite showed 4 files and 20 tests passed; Blacksmith Testbox run tbx_01krn2akr0j4cf0awjwmxk835n exited 0; Codex review output reported no accepted/actionable findings
Observed result after fix: live-provider drift classification preserves raw HTML provider pages, Anthropic account/rate drift, and existing live skip labels while moving callers to the shared helper
What was not tested: full live provider sweep against external model APIs

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels May 15, 2026
@steipete steipete added the proof: override Maintainer override for the external PR real behavior proof gate. label May 15, 2026
@clawsweeper

clawsweeper Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor: centralize live provider drift policy This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete added proof: override Maintainer override for the external PR real behavior proof gate. and removed proof: override Maintainer override for the external PR real behavior proof gate. labels May 15, 2026
@steipete steipete merged commit 59d2e76 into main May 15, 2026
126 of 136 checks passed
@steipete steipete deleted the codex/refactor-live-provider-drift branch May 15, 2026 05:57
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
SYU8384 pushed a commit to SYU8384/openclaw that referenced this pull request Jun 3, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR proof: override Maintainer override for the external PR real behavior proof gate. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant