Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: stale review; fresh review needed. Summary Next step Review history (25 earlier review cycles; latest 8 shown)
|
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.
Resolve the two transport import conflicts while retaining deferred account admission and upstream cancellation, MCP and tool policy owners.
|
🦞👀 Re-review progress:
|
|
Updated author repair: head |
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.
|
@clawsweeper re-review Please review current author head 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. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review head Dependency and security approval remain pending. The PR body lists the outstanding vendor, paired-node, legacy V1, installed-upgrade, and release cases. |
|
🦞👀 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.
|
@clawsweeper re-review Please review author head Current-head CI is running. SDK-owner, security/dependency approval and the stated vendor/upgrade gaps remain open. This requests read-only review only. |
|
🦞👀 Re-review progress:
|
|
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 I'm closing this PR as superseded. |
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@profileis 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, tree24d87bd3136d62c4ca86f36a27bd11210fb43dad, normally merges original authord61a1c17c521e3816f62ddebc25e396bfdf8f437and official main5dc668341a3d83a5fad2d33fa8db359b63eaf360. The complete proposal matches the fixed local source and independent review.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.a2498a491a01ded3da1188d687c9b98a80aca959b8b7d6de465858c63c87570f; no actionable P0–P2 findings. This is read-only source/evidence review, not maintainer approval or reviewer-executed tests.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 merge6d16dcc6d613cb7462ecfcbedb9bfc03ea783b74combines main93e4800f6df9c6c0e3f3de2e7b8b1071fd170598and 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
afterEachat canonicaltest/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
@profilecan 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(treecd0a09d6128e0d5ac7272d43f71e7f646ebef600) includes the reviewed saved-credential publication repair7973e98be502. The production source is identical to that repair; this revision consolidates test resources without removing cases or security checks.7973e98be502qualification; they are not claimed rerun in this fixture-only revision.7973e98be502source.a6ee6a18a5d748a8ed8e395b63c4a5d2a6e02982is 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
187f8c07b720ef84fd72e1a24122fe29cbe45b80normally merges official main982f3b1ee2b668afafe69c352d48baef470d2d20into author heada03c06e, preserving earlier contributor history and the prior669193eintegration. 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 version2026.10.10comes from official main; no author version bump, schema/protocol change or dependency override is proposed.November 6 maintenance integrates official main
7302f00ac3eea8d12f84b3591fb451564a7fed7e. Current author head1072726de191505011819f356fd76efaadaf110ccontains reviewed treee5e86c43aecb99777c93c3296189005e8fb6a571. 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.210d3df7f651979969ef940fc5cba6b43fa9cb95immediately 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
ee890ea01c49eeace583561c6f999e60032f8c46matches the reviewed candidate.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.sessions.patchchanges 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.pnpm build:runtimecompletes 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.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 main57382781c4c0620e672644f2a187163f79ec67dbwith187f. 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:
gateway not connectedwhile expecting a FORBIDDEN response at line569The 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
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
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.