fix(cpa): isolate credential-pool failures - #8308
diegosouzapw merged 2 commits into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
da920c7 to
8701022
Compare
|
Rebased the single focused commit onto current Fresh focused verification:
There is no owner review feedback and Git reports the PR mergeable. The broad failed jobs are the same baseline set present on merged #8292/#8296 (Docs Gates, Fast Quality Gates, Vitest, unit shards 1–4); their failures are unrelated to this five-file CPA provenance/key-health change, so no unrelated baseline fixes were added. |
The local recordKeyHealthStatus wrapper in handleChatCore only declared (status, creds), so the transport argument added for CPA credential-pool isolation was silently dropped at the call site (TS2554 "Expected 2 arguments, but got 3" once chatCore.ts is typechecked with tsc directly — this file is not in tsconfig.typecheck-core.json's file list, so `npm run typecheck:core` did not surface it). The CPA isolation guard in keyHealth.ts never received `transport`, so it never fired. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
|
Confirmed the owner follow-up commit
No unrelated baseline fixes were added. The refreshed CI run is still in progress. |
|
Merged into |
* fix(cpa): isolate credential pool failures Co-Authored-By: Claude <noreply@anthropic.com> * fix(cpa): forward transport through the chatCore key-health wrapper The local recordKeyHealthStatus wrapper in handleChatCore only declared (status, creds), so the transport argument added for CPA credential-pool isolation was silently dropped at the call site (TS2554 "Expected 2 arguments, but got 3" once chatCore.ts is typechecked with tsc directly — this file is not in tsconfig.typecheck-core.json's file list, so `npm run typecheck:core` did not surface it). The CPA isolation guard in keyHealth.ts never received `transport`, so it never fired. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
* fix(cpa): isolate credential pool failures Co-Authored-By: Claude <noreply@anthropic.com> * fix(cpa): forward transport through the chatCore key-health wrapper The local recordKeyHealthStatus wrapper in handleChatCore only declared (status, creds), so the transport argument added for CPA credential-pool isolation was silently dropped at the call site (TS2554 "Expected 2 arguments, but got 3" once chatCore.ts is typechecked with tsc directly — this file is not in tsconfig.typecheck-core.json's file list, so `npm run typecheck:core` did not surface it). The CPA isolation guard in keyHealth.ts never received `transport`, so it never fired. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Summary
Verification
node --import tsx/esm --test tests/unit/chatcore-key-health.test.ts— 6 passednpm run typecheck:core— passedgit diff --check— passedThe broad CI failure set matches the repository baseline on merged PRs #8292 and #8296: Docs Gates, Fast Quality Gates, Vitest, and all four unit shards fail independently of this five-file CPA diff. No unrelated baseline files were modified.
This is the focused CPA credential-pool isolation follow-up; the Kimi non-stream half is handled separately in #8302.
Refs #8280