Repository navigation
fix: keep retired auth profile lookup runtime-free - #129387
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
c8dad2c to
72e35f2
Compare
|
Codex review: found issues before merge. Reviewed August 25, 2026, 11:53 AM ET / 15:53 UTC. ClawSweeper reviewWhat this changesThis PR publishes Anthropic’s retired Claude CLI profile ID through lightweight provider policy and stops generic auth resolution from loading bundled provider runtimes for that lookup. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: the prior P1 remains on the unchanged head. The lookup reads only bundled policy, so a cold trusted external provider cannot retire its declared legacy profiles. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherGeneric authentication resolution checks provider-owned retired profile IDs before selecting stored credentials. Provider policy artifacts supply static metadata without loading a provider runtime, for both bundled and trusted external plugins. flowchart LR
A[Generic auth resolution] --> B[Retired profile lookup]
B --> C{Provider policy source}
C --> D[Bundled policy artifact]
C --> E[Trusted external policy registry]
D --> F[Retired profile IDs]
E --> F
F --> G[Credential selection]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +20. Total +35 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Resolve retired IDs through Do we have a high-confidence way to reproduce the issue? Yes, from source: configure a trusted external provider with Is this the best way to solve the issue? No: the patch fixes bundled Anthropic but misses the existing trusted-external policy contract. Reusing the registry-aware resolver is the narrower canonical solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9cfb4ff956c9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
72e35f2 to
16197b5
Compare
|
Fixed: retired auth-profile lookup now stays on the lightweight provider-policy path without cold-loading provider runtimes. |
…th barrel #129052 imported CLAUDE_CLI_PROFILE_ID from openclaw/plugin-sdk/provider-auth into the anthropic plugin's config-defaults, and #129387 moved the same barrel import into provider-policy-api itself. That barrel pulls the auth-profile store, oauth, config, and http infra - the policy artifact's import graph grew from 57 to ~2,216 modules. In dist-less checkouts (every checks-node CI job) the first test touching anthropic policy jiti-compiles that graph synchronously, and vitest's post-hoc elapsed check reports it as a 120s timeout: checks-node-compact shards have failed one rotating model/alias/auth-resolution test per worker on every PR since 11:48 UTC. The whole import existed to read one constant. The plugin now owns the retired profile id as a local literal in cli-constants.ts, and cli-constants.test.ts pins parity with the plugin-sdk constant (tests may import the barrel freely). Dist-less reproduction: model-resolution-consistency 145s timeout pre-fix, 46s all-pass post-fix.
Keep retired auth-profile lookup on the lightweight provider-policy path so generic auth resolution no longer cold-loads provider runtimes. Refs openclaw#129052
Summary
Keep retired auth-profile lookup on the lightweight provider-policy path instead of loading provider runtimes.
Root Cause
#129052 added provider-owned retired profile metadata, but
resolveProviderDeprecatedAuthProfileIdsread it throughresolveProviderRuntimePlugin.That path cold-loaded provider runtimes during generic auth resolution even though the requested fact is static manifest-owned policy. The unnecessary runtime graph caused four auth and media suites to exceed their test timeout under normal runner pressure.
Changes
Performance
Verification
git diff --checkRefs #129052