Repository navigation
fix(setup): restore runtime capability review - #134101
Conversation
Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures. Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority.
Reject retained setup session reuse and track the native request that owns a pending wizard result. Revalidate that ownership after cancellation so completed prompt replies cannot leave cancellation waiting for a nonexistent request. Preserve ambiguous activation errors and prevent candidate changes during review. Adapt the useful ownership guards from the concurrently updated consent branch, and retain the separately verified fresh-runtime activation repair. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Keep hosted plugin capability review cancellable and move the durable-effect guard into the shared artifact and acceptance owners. Recheck the reviewed artifact after the guard yields, including reused update acceptance, and preserve the existing synchronous configuration commit lock. Reject late commit locks on cancelled wizard sessions and retain coverage for both normal completion after cancellation and attempted late durable effects. Exercise onboarding and channel wrappers with real staged filesystem installs and rollback behind a fixture npm transport. Co-authored-by: VACInc <[email protected]>
Retire wizard generations at the canonical clear owner so a delayed running reply cannot restore a cancelled prompt. Observe unresolved late admission through the existing answer-free next flow only when no request or prompt already owns it; retain visible cancellation recovery and exact request cleanup. Replace two chat fixture yield loops with the existing request gate's recorded entry, waking a failed precondition when startup completes without dispatch. Both cancellation failures and the fixture precondition failure were captured in exact-head disposable macOS CI before this correction. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(plugin-sdk): forward release caller contracts to main Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures. Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority. * fix(ui): review model activation through hosted setup wizard * fix(setup): host runtime capability consent during model activation * docs(setup): clarify terminal activation review outcomes * refactor(macos): share model activation lifecycle across setup paths * fix(ui): restore setup focus after activation review closes * chore(setup): satisfy activation consent lint and export checks * refactor(gateway): isolate shared setup activation wizard transport * docs(changelog): credit runtime consent report * fix(macos): refresh setup consent localization inventory * fix(setup): retain fresh runtime generation through activation * fix(setup): preserve activation session and request ownership Reject retained setup session reuse and track the native request that owns a pending wizard result. Revalidate that ownership after cancellation so completed prompt replies cannot leave cancellation waiting for a nonexistent request. Preserve ambiguous activation errors and prevent candidate changes during review. Adapt the useful ownership guards from the concurrently updated consent branch, and retain the separately verified fresh-runtime activation repair. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]> * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix: avoid orphaned catalog clients during inference setup * fix(ci): declare historical reader selector entry point * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test: include historical prerequisite in routing expectations * docs: preserve setup release notes after main refresh * fix(setup): close activation cancellation races Lock hosted activation before its first durable effect, retain commit-locked wizard sessions, and cancel late macOS admissions without advancing them. Co-authored-by: VACInc <[email protected]> Worked on by: - @VACInc * fix(setup): defer cancellation lock until reviewed plugin commit Keep hosted plugin capability review cancellable and move the durable-effect guard into the shared artifact and acceptance owners. Recheck the reviewed artifact after the guard yields, including reused update acceptance, and preserve the existing synchronous configuration commit lock. Reject late commit locks on cancelled wizard sessions and retain coverage for both normal completion after cancellation and attempted late durable effects. Exercise onboarding and channel wrappers with real staged filesystem installs and rollback behind a fixture npm transport. Co-authored-by: VACInc <[email protected]> * fix(macos): retire cancelled setup generations and observe late commits Retire wizard generations at the canonical clear owner so a delayed running reply cannot restore a cancelled prompt. Observe unresolved late admission through the existing answer-free next flow only when no request or prompt already owns it; retain visible cancellation recovery and exact request cleanup. Replace two chat fixture yield loops with the existing request gate's recorded entry, waking a failed precondition when startup completes without dispatch. Both cancellation failures and the fixture precondition failure were captured in exact-head disposable macOS CI before this correction. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>
Landed through the canonical maintainer workflow as 56b71ac114d5; the exact prepared head was
f291b3af2ba896b8ab384b5e5dc1bd9f47509e64. Required PR CI and the separate hosted recovery passed. Issue #133793 remains open for its explicitly requested signed fresh-profile GUI verification. No release was published.Related: #133793. Thanks @coygeek for reporting the missing capability review. This reconciles the useful session-ownership work by @roboclaw-bot and @VACInc with the independently tested fresh-runtime fix.
This replaces the proposed implementation in #134051 without overwriting that concurrently updated branch. The original branch is preserved; this replacement does not overwrite its concurrent work. The shared SDK caller-contract and CI prerequisite fixes have now landed through #134045 and deduplicate against main; the remaining PR covers interactive setup consent and its connected runtime/request lifecycle repairs. Required current-head CI and canonical maintainer landing checks still apply. No release publication is part of this PR.
What Problem This Solves
Fresh macOS and Control UI setup could not present the runtime plugin capability review during model activation. Testing the installed package then exposed a second failure: after approval installed the runtime, activation still used the Gateway's startup metadata, where that runtime did not exist. Source checkouts with a bundled runtime concealed both problems.
Why This Change Was Made
Activation now uses the existing Gateway-hosted setup wizard for the exact capability note, default-false confirmation, progress and result. The Gateway owns review and activation; clients keep the existing session and setup receipt. Decline, cancellation and ambiguous errors stop the interactive candidate sequence. Retained sessions cannot be replaced, and native cancellation follows the currently outstanding request after awaits rather than inferring ownership from a busy indicator.
The wizard prompter uses closure-bound enumerable methods so runtime installer adapters preserve its prompt behavior. The installation owner prepares a fresh metadata/cache/registry generation for artifact capture and the model probe, then independently revalidates fresh owner facts before committing the route. This leaves the Gateway's process-stable metadata unchanged and preserves the normal restart boundary.
The same installed-flow investigation found a leaked background catalog client in a temporary probe home. Isolated executable probes now request existing static catalog preparation; explicit live catalog callers retain their behavior, and no second client survives the one-shot run.
Control UI removes the duplicate synchronous activation task. The macOS app shares manual and detected activation lifecycle handling, retaining synchronous support only for shipped older Gateways. Two explicit UI diff-render return annotations also repair declaration generation without changing runtime behavior.
User Impact
Users can approve the exact runtime capabilities inside setup and continue through verification to working inference. Declining leaves the configured model unchanged. Failure and cancellation remain visible. The regressions below prove stale replies stay closed and late committed results remain observable.
Evidence
Real Chrome in a disposable macOS guest exercised the installed package with a fresh runtime and normal Codex CLI authentication. Approval on source
f491f1d4b3ae96ee58055fe1737b5cd86b912044installed the runtime, restarted the Gateway normally, verified the selected public model and reached Custodian onboarding with a successful chat response. There was one activation request, no client config writes, and the pending receipt was cleared. An independent owner-state inspection verified the accepted capability integrity matches the installed package and the configured runtime/model binding is valid.That proven archive has SHA256
4f3584f1b7ce685d9ac88002aa60b267a289c7217c63124647ee31ff0b7bffc9. The laterc6a5c9145b95archive includes the session/cancellation repairs and temporary-client cleanup; its separate fresh-guest approval/restart/verify/chat flow also passed. These screenshots specifically show the earlierf491owner proof. Signed native GUI proof remains unperformed; the documented environment limitation below applies to this main-source review.Before the fresh-generation repair, the actual installed
7321861candidate showed the review but failed after installation:The corrected
f491f1d4candidate presents the exact capability review:The same corrected candidate reaches working inference after approval and the normal restart:
The matching
c6a5c9145b95signed debug arm64 app and bundled worker passed canonical signature, relocation, SQLite and naming checks, followed by independent guest signature verification. Its ZIP SHA256 is2372decef9384dc756808ee6f15b226edca0f25ae08467d9ceaa12f96be5a9f4. This is a proof build, not notarized release packaging. Native before/after launch and capture wrappers are prepared with separate fresh profiles and state. The disposable macOS guest remains at the login window without an ordinary authenticated desktop session; both wrappers verified that condition and stopped at their login gate without launching the app. Ordinary GUI login is unavailable with the authorized access, so signed native GUI before/after proof is concretely infeasible in this environment. No GUI result is claimed. Given the actual installed-browser flow, signed and compiled artifacts, and 1,903 passing native app tests including all consent and cancellation cases, this documented gap does not by itself block the main-source repair after the remaining CI and canonical landing checks pass. The unperformed GUI check remains a documented follow-up; this disposition is neither a GUI pass nor a release-verification claim. This task is limited to landing the discussed main-source fixes, with no 2026.8.2 branch or release preparation.The separate actual declined-review flow also passed: visible declined outcome, one activation and no handoff, no configured model or accepted/installed runtime. Only an empty managed npm project scaffold remained; no byte-identical before/after config claim is made.
The final packaged owner-proof source is
c6a5c9145b955302b3efa060df7c1501209233f1; its canonical build passed in 4m 30.8s. Canonical package/import/integrity and naming checks passed. The final archive SHA256 is086d01d633d12cfffce646dfc7e0861c55051a9f07b140543f31edbfc243d623; fresh final-artifact browser proof passed. Independent observation confirmed all three new probe directories were removed, no new probe writer survived, and no cleanup warning occurred. Signed native GUI proof remains unperformed under the documented main-review disposition above. The later merge of main is a separate CI revision; this archive is owner-behavior proof, not an artifact built from that merged head.CI follow-up at
9233655214847ddcb41137329f3a36665c88180balso includes the reviewed Anthropic cold-registration repair and historical-prerequisite routing inventory correction. The unrelated agent-menu keyboard fixture now waits for opening focus and visual popup retirement; all six browser cases and the full changed gate pass without changed deadlines or weakened assertions. The preceding native app test run stalled under parallel execution and was cancelled before the new consent tests reported outcomes; its successful shared-library tests did not establish app-test coverage; the later successful app run below supplies that evidence.Native automated proof on exact head
9233655214847ddcb41137329f3a36665c88180bnow passed: the macOS app suite completed 1,903 tests in 197 suites, including all ten activation consent cases, both current-request cancellation races, and candidate ownership. This closes the app-test execution gap from the preceding stalled run; signed native GUI before/after proof remains an unperformed follow-up under the documented main-review disposition. Full CI run33399202877 is now green on that exact head. The isolated Windows checkout timeout passed its one targeted retry without source, deadline or retry-policy changes.Local checks completed:
Consent-only production changes through the ownership reconciliation are +789/-614 (net +175); tests/test support +1265/-354; generated protocol/localization +87; docs/changelog +10/-2. The connected temporary-home repair adds two net production lines, 33 test lines and one changelog bullet; the separately reviewed SDK and CI prerequisites have now landed on main and are outside the remaining PR diff. Growth supplies the additive activation-session protocol, explicit lifecycle ownership and bounded fresh-runtime preparation; the duplicate UI synchronous path and duplicated native activation handling are removed.
The required merge of pinned main
00d542d3dc1f88dc18526e11eee5641782dae9e7resolved one test import conflict: retain the consent helper and main's artifact-directory helper, then remove the redundant directory creation. Six consent/cancellation browser cases passed with screenshot/video capture enabled, and seven artifact-directory owner tests passed. Dependency manifests did not change. The public provider tutorial import also matches the reviewed correction; no runtime SDK rewrite or app rebuild was introduced.Current candidate:
f291b3af2ba896b8ab384b5e5dc1bd9f47509e64. The required main composition preserves both request cleanup and same-route reconnect recovery from #134268, all legitimate concurrent work and contributor credit, and main’s removal of already-shipped notes. The exact diagnostic predecessor94550699959da2e857630f8df12efa069c0345fereproduced both remaining native defects in canonical hosted macOS CI: a previously captured running reply restored a prompt after confirmed cancellation, and late admission whose cancellation was commit-locked never observed its terminal activation result. The app run completed 1,903 tests in 196 suites with those two expected failures and one separate chat-fixture precondition failure; no process crash occurred. Thanks @hannesrudolph for independently reporting the same native failures.The final native repair retires the wizard generation in the canonical clear owner and removes duplicate rotations. Unresolved cancellation starts an answer-free result read only when neither a tracked request nor a current prompt owns progress. Existing same-route reconnect handling, terminal/absent races, candidate ownership, visible recovery and no automatic prompt answers remain. The separate chat fixture now waits for recorded request entry instead of a fixed number of
Task.yield()calls; startup completion without entry wakes a failed precondition. Both sibling fixtures retain their route/reply/action, cancellation/restart and transport-deadline assertions.The installer correction moves cancellation locking from installer entry to the shared reviewed-artifact/acceptance commit boundary, rechecking staged bytes after the callback yields. Preaccepted updates use the same boundary. An already-cancelled session rejects a later commit lock, and the final configuration commit keeps its existing synchronous lock. Before/after evidence includes real filesystem staging and rollback with a real WizardSession behind fixture npm transport: hosted review cancellation/expiry failed before the correction and passed for onboarding and channel wrappers afterward. This is not a live registry install. The final local composition passed 321 installer/runtime/session/Gateway/inference tests plus core and core-test type checks. Native app and full test-target compilation, pinned strict lint and format passed; fresh scoped P0 reviews of the composition and final native fixture delta were clean. Exact final-head native CI now passed: job99627827675 completed 1,903 app tests in 196 suites, including all three request-ownership cases, both late-admission cases, all four ordinary unresolved provider-auth cases and both repaired chat fixtures. The shared library passed 1,514 tests in 118 suites. The complete exact-head hosted recovery run33436290669 is now green: 194 jobs passed, one intentionally skipped, and the required CI gate passed. This was one documented screenshot-capacity recovery after the original final-head run had 193 successful jobs and only two unassigned required screenshot jobs. The recovery also passed iOS build, both screenshot/evidence lanes, Windows, Android, core-auth and native; no source, assertion, deadline or runner-policy change was made. Canonical preparation passed on this exact head, reusing the green hosted proof without a source change or redundant push. The merge guard then correctly stopped because GitHub still selected the original automatic run’s failed aggregate as the required PR check. One targeted failed-job rerun of that original run admitted both cancelled screenshot jobs on the existing GitHub-hosted retry route, preserving its completed checks; that original run is now green on attempt 2, including both screenshot shards, evidence and required aggregate99658268291. GitHub’s required-check read now reports success. No guard or check bypass was used.
The superseded
271e4c6macOS job completed the shared OpenClawKit suite but the app Swift Testing process exited with signal 11, with no retained crash stack or native result bundle. This remains an unresolved test-process crash, not a confirmed flake. Its remaining screenshot jobs were cancelled only after an actual main conflict made that head obsolete; no old-head retry was spent. The separate macOS Periphery canary ended in GitHub startup failure without running a scan and is recorded as optional infrastructure/unperformed, not passed. Earlier green native and packaged-flow evidence retains its exact original source identity.Latest ClawSweeper review and rank-up disposition: server-owned review tokens and artifact-bound acceptance remain mandatory and are covered at the schema, session and artifact owners. The suggested additional exact-head fresh/retained-profile client/Gateway media matrix is not claimed; the ordinary signed-native GUI login limitation above remains concrete, while existing packaged browser evidence retains its original identity and final native CI covers the supported paths. Control UI co-ships with its Gateway; the macOS older-Gateway path remains intact. The review’s persistent-cache/vector-schema label is a false classification of process-local plugin metadata/registry scope: this PR changes no SQLite schema, migration or vector store. No release validation or publication is being requested by this main-only task.
Named follow-ups remain: signed native GUI before/after proof, provider-auth reconciliation generation fencing outside the corrected delayed-step path, the earlier unresolved native test-process crash, and the existing upstream dropdown rapid-transition behavior. The diagnostic fallback’s separate core-auth job failed before tests because a Matrix binary download was reset and its upstream error handler referenced an undefined variable; no retry was spent on the obsolete diagnostic head. Final proof follows the canonical graph selected for this change; an unselected extra diagnostic lane is not claimed as passed. Remaining diagnostic jobs were cancelled after their source became obsolete and are recorded as unperformed, not passed.
Worked on by: