Skip to content

fix(auth): configured primary account blocks CLI fallback - #165583

Closed
alkor2000 wants to merge 50 commits into
openclaw:mainfrom
alkor2000:codex/fix-configured-profile-cli-fallback
Closed

alkor2000 wants to merge 50 commits into
openclaw:mainfrom
alkor2000:codex/fix-configured-profile-cli-fallback

Conversation

@alkor2000

@alkor2000 alkor2000 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #158421. Thanks to @HerbertHuerto for the corrected report and @aoclaw-glitch for the per-agent reproduction.

What Problem This Solves

A configured primary model@profile is treated as a conversation-wide account pin. After that primary fails, ordinary Chat or event-Cron fallback can reject the destination CLI before launching it because the primary account belongs to another provider.

User Impact

Fallback can select the destination runtime's account while genuine user and user-link pins remain strict. Scheduled inference keeps its recorded-account requirement. Preparation waits retain the current session intent and saved credential; native login identity stays separate from forwarded credentials.

Why This Change Was Made

The existing auth owner carries configured-account provenance as a runtime-only fact through the reply and Cron paths. New explicit intent clears that provenance even when its account values match. CLI preparation and final dispatch use the existing session, credential and cancellation owners.

This normal integration preserves main's shared preference and compatibility owners, native model/context facts, turn audiences, native-tool policy and requester construction. It maps the original configured-default condition to the shared preference's origin, instead of restoring the former inline precedence implementation. Both author and current-main Gateway lifecycle controls remain.

The public V1 registration signatures remain source-compatible with the shipped v2026.11.3 contract. The additive V2 types require deferred execution admission. The compatibility window remains owner-controlled and undated; this author update does not settle the remaining V1 deferred-effect decision or enforced owner approvals.

Evidence

Current author head 7a2a868f0cd23bc9ca6c348b5e12180fa8b740fb, tree 24d87bd3136d62c4ca86f36a27bd11210fb43dad, normally merges original author d61a1c17c521e3816f62ddebc25e396bfdf8f437 and official main 5dc668341a3d83a5fad2d33fa8db359b63eaf360. The complete proposal matches the fixed local source and independent review.

  • Actual owning-entry before → after: production source exactly at main 5dc66834, with the original process fixture and its database-worker classification, produces one intended Chat failure: Google CLI rejects the configured Anthropic account and no owned child launches. The scheduled missing-recorded-account refusal passes. Wrapper cost: 415.797 seconds; 15 other cases are unselected. The candidate's unchanged complete 17-case normal-entry file passes in 884.238 seconds (Vitest 645.26 seconds), including ordinary Chat/event-Cron, scheduled refusal, native account selection and late user/user-link pin edits. These use real configuration, canonical isolated storage, admission/placement and actual owned Node child I/O. Their contract spans asynchronous preparation and effect ownership; selector mocks do not establish it. They are not vendor CLI or operator-Gateway acceptance.
  • Supplementary owner and adapter checks: The five core owner files have 122 distinct passing cases: selection 7, Gateway lifecycle 38, Cron DTO 8 and the latest ordered credential/history replay 69 (397.187 seconds). The separate plugin-runtime file passes 3 cases (129.105 seconds); both complete Anthropic adapter files pass 96 cases (176.574 seconds). The adapter tests cover cold/warm deferred admission, current credentials, private input, retained callbacks and process cleanup through owned Node simulators. Together with the 17 entry cases, these are 238 distinct cases in 9 files; replayed attempts are not added again.
  • Types and tooling: production types pass (68.692 seconds); the canonical changed-test selector passes six relevant core test graphs (650.050 seconds); the representative Anthropic product/test consumer passes with canonical extension settings and ambient declarations (31.200 seconds). Type-aware lint passes on all changed core production paths, the six corresponding core test groups and all changed Anthropic product/test consumers. Format, mock-export, line-cap and main-relative whitespace guards pass. Canonical standalone SDK declarations pass in 337.242 seconds; the canonical SDK export check also passes.
  • Budget: the absolute native test-line gate passes at 6,656,788 / 6,656,788, 0 LF slack. Exact main passes at 6,655,499 / 6,655,499, so no inherited debt is funded. The original annotated 1,277-LF record and shared scalar stay unchanged; a distinct 12-LF record makes total credit 1,289 LF, exactly this proposal's net regression growth under the current fix-owned allocation rule. These tests protect real fallback versus explicit pins, recorded scheduled accounts, credential publication/replacement/SecretRef/cancellation, final execution/input authority and V1/V2 consumers. One duplicate raw-pin DTO row is removed; the stronger session controls and all 17 entry cases remain.
  • Fresh independent source review: two desktop reviewers inspected the complete 80-file main-relative proposal, split into disjoint 35-file core and 45-file caller partitions with cross-owner tracing. Both verified the fixed tree and whole diff SHA256 a2498a491a01ded3da1188d687c9b98a80aca959b8b7d6de465858c63c87570f; no actionable P0–P2 findings. This is read-only source/evidence review, not maintainer approval or reviewer-executed tests.
  • Execution scope: actual executable auditing observes zero Codex CLI executions in the controls and 17-case collection. The adapter fixtures use isolated state and owned Node protocol simulators. The standalone declaration build and every serial recovery command also have zero observed Codex CLI executions. Validation uses Node24.22.1/pnpm12.15.0, matching the actual branch manifest.

Natural CI run 43026451913, attempt 1, is completed/success, observed at 2026-11-11T21:48:06.170871+08:00 (Asia/Shanghai). The complete observation has 89 jobs: 62 successful and 27 skipped; skipped scopes are not executed proof. The native test-line job passes at 6,660,180 / 6,660,181, 1 LF slack. Its actual tested merge 6d16dcc6d613cb7462ecfcbedb9bfc03ea783b74 combines main 93e4800f6df9c6c0e3f3de2e7b8b1071fd170598 and this author head; fresh official commit objects and checkout logs agree. The Actions CI-gate job passed. The separate maintainer approval workflow still publishes pending dependency/security-sensitive statuses and a classic CI-gate failure awaiting approval; those are not test failures or approvals granted. Owner acceptance and the proof gaps below remain separate merge requirements.

Retained local failures and their investigation

The first main control omitted the fixture's database-worker membership and failed before reaching account behavior. That two-failure attempt remains invalid control evidence; the corrected production-main result above supplies the defect proof. A HEAD-relative whitespace check also included canonical upstream Gradle CRLF changes; the artifact is byte-identical to main, and the actual PR-range check passes without changing it.

The first supplemental collection reports 121 passing cases and one global post-case cleanup-hook timeout across five files. The synchronous credential case and setup bytes match the compared sources, but that does not establish inherited failure or flakiness. Retained transformed setup maps the timeout to the global afterEach at canonical test/setup-openclaw-runtime.ts:382–403; the unfinished lazy import/drain/reset/retirement step remains unclassified. The same two files, in the original order and with the unchanged timeout, subsequently pass all 69 cases in 397.187 seconds after standalone SDK preparation and serial scheduling. That is replay evidence, not a claimed hook repair; the original unfinished await remains unknown. The fail-fast scheduler left plugin-runtime and both Anthropic files unstarted; the results above describe their separate runs.

The first source-lint command failed before lint diagnostics because automatic SDK-boundary declaration preparation exceeded its existing 300-second deadline. The canonical standalone declaration producer completed on the same source; the subsequent validation retains its original timeouts. No source change or timeout increase is claimed as a repair for either infrastructure/setup failure.

Remaining Proof and Review

Arbitrary legacy V1 deferred I/O still needs its SDK/security compatibility decision and effect-boundary evidence. Real bundled vendor CLI/account behavior, installed latest-stable upgrade preserving settings/sessions, paired-node execution, Windows and release behavior remain separate, uncovered requirements. Earlier Gateway proofs keep their original source and authorization; they do not transfer to this revision. SDK/listed-owner acceptance and applicable enforced security-sensitive/dependency checks remain separate from author validation and natural CI. No author dependency override, protocol/SQLite schema change, release or upstream merge is proposed.

Earlier source-qualified validation and failures, retained with their original inputs

Closes #158421. Thanks to @HerbertHuerto for the corrected report and @aoclaw-glitch for the per-agent reproduction.

What Problem This Solves

A primary model configured with @profile can block Chat or event-Cron fallback to another CLI provider by treating the configured account as a conversation-wide pin.

User Impact

Fallback can use the destination runtime's account. Explicit user/user-link pins retain priority and are checked after preparation waits. Scheduled inference keeps its recorded-account and current-credential checks. Explicit native CLI account adoption remains supported.

Why This Change Was Made

The auth owner records configured-account provenance as a runtime-only fact and distinguishes a native login's selected identity from a forwarded credential ID. Existing admission and dispatch owners carry those facts to the final effect. Legacy V1 CLI registration signatures remain source-compatible; the additive V2 execution contract carries the required admission capability. The compatibility window remains owner-controlled and undated.

Literal saved CLI credentials join a known pending credential publication before launch. Admission rechecks the conversation pin and the same saved record after that wait; SecretRef-backed records retain refusal behavior, and the owning turn or process can cancel the wait.

Evidence

Current author head d61a1c17c521e3816f62ddebc25e396bfdf8f437 (tree cd0a09d6128e0d5ac7272d43f71e7f646ebef600) includes the reviewed saved-credential publication repair 7973e98be502. The production source is identical to that repair; this revision consolidates test resources without removing cases or security checks.

  • Original CI failure: the two saved-account Gateway failures in run 42198633248 were reproduced before the production repair. The repaired four-case Gateway replay and its 73-case owner scope retain their recorded 7973e98be502 qualification; they are not claimed rerun in this fixture-only revision.
  • Current regression proof: the first consolidation passed 257 cases in nine related suites. After the typed observation-flow correction, the four affected suites passed 100 cases; unchanged suite evidence retains its earlier test-tree binding. The before runs passed 69 authority/native-history cases and 190 preparation/steering cases. These counts overlap and are not added together.
  • Checks and review: all nine affected test type graphs, typed lint, formatting, line caps and whitespace pass. Fresh native P0-P2 review covers this complete nine-file test delta. The preceding independent production review remains bound to the unchanged 7973e98be502 source.
  • Budget: no allocation or shared scalar change. Common backend cleanup and credential fixtures remove 58 literal test newlines while retaining the replacement-during-wait, SecretRef, cancellation, current-account and pin controls. Net growth against official a6ee6a18a5d748a8ed8e395b63c4a5d2a6e02982 is 1,295 LF, below the prior 1,298 maximum; the existing 1,277-LF allocation remains unchanged. The exact current-main merge preview passes with 40 lines spare.

Validation used Node 24.22.1 / pnpm 12.15.0. Current-head PR CI supplies broad integration proof after this push. Installed latest-stable upgrade with the bundled vendor CLI, SDK-owner direction, security approval and dependency approval remain separate review items.

Earlier author integration and proof, with their original head qualifications

Previous author head 187f8c07b720ef84fd72e1a24122fe29cbe45b80 normally merges official main 982f3b1ee2b668afafe69c352d48baef470d2d20 into author head a03c06e, preserving earlier contributor history and the prior 669193e integration. This resolves an actual CI semantic merge: a newly added Anthropic test helper still referenced the V1 type name after the SDK import migrated to V2. Its parameter now uses the required V2 context, also restoring the callback's contextual type. No cast, any, compatibility alias, new test lines or production behavior was added for this repair. The package version 2026.10.10 comes from official main; no author version bump, schema/protocol change or dependency override is proposed.

November 6 maintenance integrates official main 7302f00ac3eea8d12f84b3591fb451564a7fed7e. Current author head 1072726de191505011819f356fd76efaadaf110c contains reviewed tree e5e86c43aecb99777c93c3296189005e8fb6a571. The saved-account branch retains both the session pin check and the existing credential authority. Standard and personal credential readers are prepared by their owners and asserted synchronously after the session pin read at local target launch and input, bundled Claude target and first prompt, and the paired-node dispatch authorization gate.

  • Omitting the inherited target-spawn check reproduced the existing refusal case failing. The integration passed 157 cases in 7 focused files, plus four persisted owner lifecycle cases and two personal credential owner cases. The four persisted-owner cases were repeated after the lint-only explicit return of the existing terminal error call.
  • Production and affected test types, typed lint, formatting, test-line ratchet and staged whitespace passed. Fresh independent review covered the retained account paths, fallback-stop behavior and metadata-only process view. The current author maintenance preserves the V1 and V2 SDK declarations from the preceding author revision.
  • The merge preview against 210d3df7f651979969ef940fc5cba6b43fa9cb95 immediately before push passed the native line budget. Test lines OK: 6537487; ceiling: 6537487; slack: 0.

Installed latest-stable upgrade proof with the bundled vendor CLI, SDK-owner direction, security approval and dependency approval remain separate review items.

Previous author evidence

Current committed tree ee890ea01c49eeace583561c6f999e60032f8c46 matches the reviewed candidate.

  • Type regression: the pre-fix tree exactly matched GitHub's tested merge b5e5ddedc8098203ca9503c9d819150ae0676f20 (main982f + authora03). The real extension-test type graph failed with the missing context type and its implicit-any callback (64.38s). The one-line repair passes the same graph (12.25s), typed lint including SDK declarations (169.20s), format and whitespace checks.
  • Actual Anthropic process behavior: all four task-ownership cases pass through the existing transport and owned subprocess fixtures (133.34s wrapper). They cover held current input, nested local-agent/workflow answers, and a descendant outliving its foreground parent. No real vendor authentication or inference was used.
  • Shipped built-entry Gateway / NativeV2: the 187f candidate passed both coupled flows below in82.54s. A unique named profile, fresh synthetic state, owned HTTP endpoint, physical local plugin and real Node executable exercise normal CLI/Gateway/RPC/account owners. Configured primary A receives an authenticated HTTP402; ordinary fallback selects B, awaits real V2 admission, launches the child, writes the prompt and returns its reply through public history. During a second preparation wait, public sessions.patch changes B to C with the same session incarnation/lifecycle; the real account guard rejects with an un-aborted signal and zero child I/O. Zero I/O by itself was not accepted as proof. All owned Gateway/child/broker processes exited, and source/index/head stayed unchanged. Raw RPC/HTTP/child/owner/source records are independently checked.
  • Build: pnpm build:runtime completes on187f in222.65s with matching build-info version/commit. Its advisory UI performance report lists five threshold overruns; this is not a UI-performance or release-validation pass.
  • Fresh source review: the complete69-file candidate against pinned main982f received a fresh canonical P0–P2 autoreview in two complete partitions, with no actionable findings. This is source review; reported runtime checks were not independently rerun by that reviewer.

Prior head-linked CI run41976118069 completed success at2026-11-05 06:20:05 UTC (14:20 Asia/Shanghai). The ratchet job records actual test merge b0f904096a7346d4c1caa46928a8c750c45d0ef6, combining official main 57382781c4c0620e672644f2a187163f79ec67db with187f. Its native test-line result is6,480,836 /6,480,842,with6 LF spare. This is a different source execution from the pinned982f local controls below; no author allocation or shared baseline was raised to obtain it. Maintainer dependency/security authorization still remains pending, so this is not an all-green merge gate.

The following failures remain recorded for the pinned main982f / standalone candidate comparison. Their assertions, budgets and outcomes were not weakened or retroactively relabeled by the later merged-CI success:

Check Current candidate / earlier PR CI Exact main982f control
Native test-line ratchet 6,479,375 LF /6,479,326 ceiling; over49; own delta and allocation both1,277 6,478,098 /6,478,049; already over49. Zero growth exits0 while explicitly retaining that debt.
Goal child authority owning flow Prior CI receives gateway not connected while expecting a FORBIDDEN response at line569 The same real owning test reproduces the same assertion on Node24.22.1 (296.79s wrapper). Its later assertions were not reached.

The Goal test and relevant role-policy/client owners are unchanged between that main and the tested PR merge. Main proactively closes a socket whose requested scopes no longer fit the revoked role. The source and control point to a transport expectation that no longer holds after role-policy socket invalidation. This remains an unresolved failure; no unrelated role-policy repair is included here. The named1,277 LF author allocation stays unchanged, and cannot pay the inherited49 LF debt. The earlier a03 cleanup independently removed a redundant mocked provenance-handoff case/import and shrank its allocation1,297→1,277; the four distinct admission controls remain.

The prior CI run41957583100 is bound to a03 and its actual b5e5 test merge, not this new head. Its two extension-type errors are now locally repaired; the other two failures have the exact-main controls above. Current-revision CI and maintainer dependency/security authorization remain merge requirements. No all-green merge gate or upstream merge is claimed.

Retained history: parent499df's full69-file source review and99 selected runtime cases remain prior-tree evidence (7 selection,17 real Chat/Cron CLI-entry,10 selected Cron account controls,20 forwarding,9 candidate,22 session-rotation,14 user-link). The original cumulative command timed out after completed shards; the remaining scoped commands completed separately, and30 other Cron cases were unselected. The earlier head-linked CI run41528841973 completed successfully; it is not a187f rerun. The a03 cleanup's four admission controls/types/lint are also retained prior-head checks. Current validation is listed separately above.

Uncovered: real vendor CLI credentials/protocol, paired-node execution, arbitrary legacy V1 deferred I/O, published npm artifact, latest-stable replacement with retained settings/sessions, and release behavior. The generic built Gateway proof does not certify those contracts. No operator Gateway, real account store or paid test resource was used. Listed-owner review and current-revision authorization remain required.

Current187f Gateway / owned NativeV2 observations
candidate=187f8c07b720ef84fd72e1a24122fe29cbe45b80 package=2026.10.10
built openclaw.mjs; Node24.22.1; unique named profile; fresh owned state
POST /v1/chat/completions model=fixture-primary bytes=55985
correctSyntheticCredential=true status=402
NativeV2 selected account-proof-cli:B; real admission allowed
child.launch pid=23656
child.prompt bytes=70 sha256=51cf9370ef8414c7cff76a3467642258257cb1346fd3332916820187f2f7b22d
child.complete; agent.wait=ok; bounded chat.history contains child reply
public sessions.patch B→C; same sessionId/lifecycleRevision; overrideSource=user
admission.rejected="Session account pin changed during preparation; retry with the current account."
aborted=false; negative child events=0; agent.wait=error; no child reply
PASS; source/index/head unchanged; all owned processes exited; cleanupErrors=[]

The HTTP credential match is the owned receiver's observation; raw Authorization headers and prompt bodies were not retained. History here is the bounded public projection, not a claim to a complete physical transcript. The earlier70.05s a03/10.9 run is retained separately. Earlier fixture setup failures remained unqualified and did not relax the account, cancellation or effect assertions.

Retained499df CLI-entry output; not a current-head rerun
Retained pre-commit candidate tree dd2b28f934178b2bf9a564ff41239704081a0bc9;committed byte-identically as499df0d8718014e7c76d821db88ebfce0403defc.
These are existing literal local wrapper outputs with ANSI removed,not new runs.
Original cumulative command (outer600-second timeout;wholecommand not PASS):
pnpm test src/agents/auth-profiles/session-override.test.ts src/agents/auth-profiles/session-override.selection.test.ts src/agents/auth-profiles/session-override.user-link.test.ts src/cron/isolated-agent.auth-profile-propagation.test.ts src/cron/isolated-agent/run.cron-model-override-forwarding.test.ts src/cron/isolated-agent/run-candidate-runtime.test.ts src/auto-reply/reply/agent-runner-cli-account.process.test.ts --maxWorkers=1

Completed CLI-entry shard within that cumulative command:
 ✓  infra  src/auto-reply/reply/agent-runner-cli-account.process.test.ts > protects chat null intent at placement (cross-provider) before actual CLI launch 29862ms
 ✓  infra  src/auto-reply/reply/agent-runner-cli-account.process.test.ts > protects chat user-link intent at before-execution (cross-provider) before actual CLI launch 17582ms
 ✓  infra  src/auto-reply/reply/agent-runner-cli-account.process.test.ts > protects scheduled-cron null intent at account-admission (cross-provider) before actual CLI launch 6193ms
 ✓  infra  src/auto-reply/reply/agent-runner-cli-account.process.test.ts > protects chat null intent at before-execution (native-user) before actual CLI launch 10679ms
 ✓  infra  src/auto-reply/reply/agent-runner-cli-account.process.test.ts > protects cron-event null intent at before-execution (native-cross-provider) before actual CLI launch 14439ms
 Test Files  1 passed (1)
      Tests  17 passed (17)
   Duration  317.23s (tests 78%, transform 19%, import 3%)

Completed separate selected Cron scope:
 ✓  cron  src/cron/isolated-agent.auth-profile-propagation.test.ts > runCronIsolatedAgentTurn auth profile propagation (#20624, #90991) > keeps a session account pin above a configured unavailable stored profile 2407ms
 ✓  cron  src/cron/isolated-agent.auth-profile-propagation.test.ts > runCronIsolatedAgentTurn auth profile propagation (#20624, #90991) > keeps a session account pin above a configured native login default 1799ms
 Test Files  1 passed (1)
      Tests  10 passed | 30 skipped (40)
   Duration  231.45s (transform 76%, tests 19%, import 3%, worker 2%)

The CLI fixture is an owned Node process exercising production Chat/Cron admission and session-account owners. No real vendor CLI,operator Gateway or installed upgrade is certified.

The committed production-entry regression source records the positive process and denied-origin/account controls. Case totals do not certify arbitrary legacy V1 deferred plugin I/O;that limit remains open.

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@alkor2000
alkor2000 marked this pull request as ready for review October 5, 2026 13:05
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: L labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Maintainer security review required

This external contributor PR changes sensitive security components. A maintainer must review these changes before merging.

Current SHA: 7a2a868f0cd23bc9ca6c348b5e12180fa8b740fb

These sensitive security changes were made:

  • src/agents/auth-profiles/credential-read.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/session-override.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/auth-profiles/store.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/cli-runner/auth-profile-preparation-error.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/cli-runner/prepare-selected-auth.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

After reviewing the changes, post a new PR comment containing only approval commands, each on its own line:

/allow-security-sensitive-change

A later push requires a fresh approval comment.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head d61a1c17c521e3816f62ddebc25e396bfdf8f437, but the PR head is now 7a2a868f0cd23bc9ca6c348b5e12180fa8b740fb. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-13T05:28:02.146Z sha 75e32ff :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T11:18:59.939Z sha 75e32ff :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T21:26:41.145Z sha c3f403b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T06:29:30.661Z sha 46f34c8 :: needs real behavior proof before merge. :: [P1] Preserve native-login identity when checking an unchanged account pin
  • reviewed 2026-10-27T14:29:47.740Z sha eb0b896 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-05T01:36:39.388Z sha 499df0d :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T04:39:52.453Z sha 187f8c0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-07T15:22:19.690Z sha d61a1c1 :: needs real behavior proof before merge. :: none

Recheck canonical conversation account restrictions after CLI preparation and at transport dispatch. Retain native session metadata and the original owner without new consumer SQL, and preserve legacy plugin contracts through versioned execution admission.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 5, 2026
Resolve the two transport import conflicts while retaining deferred account admission and upstream cancellation, MCP and tool policy owners.
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@alkor2000

alkor2000 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated author repair: head 810d10e1296bf4958c8dfb24c4ff465fe0378701, tree 0c07e90713378cb35f81c5b0287bf01e36856061, normal merge of official main 51420782b3810b4aa1230aa9621aec78f7dbbd3c. The approved main-relative net allocation remains capped at 1,298 lines: current native count 6,302,934 / ceiling 6,303,298, PASS with 364 lines spare. Baseline comments and counting rules remain intact. Four selected real public Chat/Cron account-entry cases pass on this integration (471.71 s wrapper; 12 unselected); consumer types, exact-base line cap and whitespace also pass. The prior 206-case execution and source review retain their recorded trees. The PR body records current source qualification, prior CI failures and the SDK/vendor/Gateway/install/upgrade proof gaps. Current-revision CI, maintainer security approval and SDK codeowner review remain separate; no upstream merge or gate exception is claimed.

Raise the ceiling from 6286325 to 6287623, exactly the approved 1298-line allocation for this PR. Existing source has 6287574 test lines and retains 49 lines of slack. Current-main integration remains separate.
Merge official main b61ab6d, preserving V2 admission and main per-input origin/private context. Allocate exactly the measured 1298 net test lines above the official 6295000 ceiling, retaining its 613-line slack. Plugin boundary typed lint remains unverified after its 300-second declaration prerequisite timeout.
Keep main runtime status and task adapters with the admitted CLI context. Retire cancelled status captures before the owner assertion. Preserve main test-line budgets.
Keep native and stored account selection in the shared owner while retaining
configured-default provenance through Cron and cross-provider fallback.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review current author head 499df0d8718014e7c76d821db88ebfce0403defc, tree dd2b28f934178b2bf9a564ff41239704081a0bc9. The durable review still refers to eb0b8969; it does not review this revision.

The current body now includes inspectable retained CLI-entry output tied to the candidate tree committed as this head. The completed 99-case scope, the interrupted aggregate and its completed shards, and all vendor/Gateway/V1/upgrade gaps remain explicitly separated. Exact-head CI run 41528841973 succeeded; current-revision dependency/security authorization remains pending and is not an all-green merge gate.

This requests a read-only review only. No repair, merge, permission bypass or new live-test claim is requested.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@alkor2000

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review head 187f8c07b720ef84fd72e1a24122fe29cbe45b80 (tree ee890ea01c49eeace583561c6f999e60032f8c46). The PR Evidence section records the current-tree build, isolated CLI and Gateway fixture results, and independent source review. The head-linked CI run completed successfully.

Dependency and security approval remain pending. The PR body lists the outstanding vendor, paired-node, legacy V1, installed-upgrade, and release cases.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Join known static credential publications before launch admission. Recheck the session pin and the same saved record after a wait, and cancel the wait with its owning turn or process.
@alkor2000

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review author head d61a1c17c521e3816f62ddebc25e396bfdf8f437 (tree cd0a09d6128e0d5ac7272d43f71e7f646ebef600). It includes the saved-credential publication repair. The Evidence section separates the retained four-case Gateway replay at 7973e98be502 from this revision’s fixture-suite checks and final 100-case recheck. Nine affected type graphs, lint and the exact main-relative budget pass; the existing allocation is unchanged.

Current-head CI is running. SDK-owner, security/dependency approval and the stated vendor/upgrade gaps remain open. This requests read-only review only.

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the thorough work on this. It identified the right producer and the right boundary: a configured primary account must not block a fallback to another provider's CLI, and session pins must stay strict.

This bug is now fixed on main by #198427 (merged as 684ec3d), which credits you as co-author. That PR makes the same decision at the reply-path CLI candidate. It passes the raw selection to the CLI auth owner only when the selection is the session's own pin. Otherwise it uses the existing provider-scoped selection, which the embedded candidate and the command path already use. So it needed no new runtime provenance field and no Cron/DTO/SDK changes (+11/−1 production). We proved it with an isolated Gateway and real Claude Code. On main, the fallback was rejected with cannot use auth profile "openai:acct-a" owned by "openai". With the fix, the fallback replied from claude-cli/claude-haiku-5-5.

I'm closing this PR as superseded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: anthropic gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. security-review-required security-sensitive-changed size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: configured default model @profile is resolved as an explicit user pin, blocking cross-provider (claude-cli) fallback

3 participants