Repository navigation
Conversation
Resolve the preliminary create lookup with the existing execution-host qualifier and scope mutation retries to that owner. Keep projected setup owner tokens consistent with their catalog publisher for Settings Open.
This was referenced Oct 9, 2026
…gents #26695 added Kiro to the history-search agent catalog and updated the unit tests, but the cross-version wire tests still built their expected older-host agent list as 'everything except the agents added later', which now included Kiro. Older hosts never accepted Kiro, and the client correctly withholds it, so those 7 tests failed on main. (cherry picked from commit 5eac4a6)
7 of 9 tasks
Collaborator
|
Closing as superseded. Its base (#27001) was closed, and the problem it targets (picking the wrong host when hosts share a project or setup ID) is now handled on main by the host-owner routing stack (#27176, #27218, #27288, #27298), which resolves each project by its own host and refuses ambiguous matches instead of picking the first. A 3,500-line rewrite of setup ownership on top of that is too much risk for the remaining case. |
6 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
When several hosts share a repository or setup ID, Orca can use the wrong setup or reject the one you selected. Setup actions and workspace creation now keep the selected execution host, Settings Open and setup-prompt Configure show its pane, and prompt dismissals stay with their exact owner through refresh.
What Changed
Keep the publishing runtime separate from the host where a setup executes. Carry the selected execution host through setup mutations, existing-folder linking and rollback, workspace creation, drafts, CLI calls and affected saved-target readers. Reconcile complete catalogs by their publisher.
The registered Create handler qualifies its preliminary lookup with the same existing owner selection used for creation. Creation retries include that host in the existing cache key. Unqualified desktop creation uses the runtime’s existing exact-ID selector, preserving unique legacy registrations and their canonical creation route; explicit host requests retain strict ownership validation. The shared Settings projection keeps publisher ownership so Open resolves the selected setup instead of a same-ID sibling. The existing dismissal filter migrates historical preferences from current repository records only when an alias identifies one owner; exact current keys remain unchanged. The prompt retains both the active workspace’s raw host and its publishing runtime. Configure and post-save Settings links carry the existing setup owner token through the renderer-only navigation target; explicit ambiguous lookups refuse rather than selecting the first sibling.
Why
An optional execution-host qualifier preserves existing IDs and unique legacy calls. New clients refuse qualified operations when an older server cannot honor the selected host, before any effect. Reusing the selector, retry cache, catalog projection and preference filter keeps the policy consistent rather than introducing new IDs or parallel routing. The separate prerequisite moves unchanged baseline functions into their existing domain modules; this PR applies the ownership correction there.
Linked Issue
Maintainer follow-up for independently reproduced setup-owner failures. Depends on the behavior-preserving prerequisite #27001, which depends on metadata authority #26959. No existing issue is claimed as fully fixed.
Visual Proof
Two hidden macOS production-route comparisons show creation/Settings ownership and prompt ownership. The first uses immutable
ee780f4before the dispatcher/projection correction and99a232aafter it; those captures predate the dismissal migration and prerequisite merges. The second builds thefc1e9c2checkpoint source and compares it with itsbdca1ffparent.Create before: B is selected, but the registered lookup refuses it.
Create after: the same draft registers B's workspace.
Settings before: Open B leaves A selected.
Settings after: Open B selects B and renders PrivateB.
The fixture uses actual components, the create action, preload bridge, registered streaming dispatcher and real SQLite Store, with injected catalog/status, paired-device context and transport. Both registration orders and local/direct SSH controls pass. Ten captures per head verify 6,493 immutable source inputs and durable raw-B metadata. Live SSH, network authentication/framing, remote filesystem execution, hooks, PTYs, the complete application/modal and remote native UI are outside this proof.
The prompt-checkpoint comparison shows active private B when A appears first in the catalog. Before, the real prompt names A; after, it names B.
Configure before opens an unavailable repository pane. After, the original navigation/selection/scroll effects open B's actual Setup Script and Archive Script editors.
This identical harness passes eight controls per head across both catalog orders. Dismissal writes only B's key through the actual UI Store and registered handler into SQLite; activating A still shows A. Duplicate explicit B rows produce no prompt action or inspection RPC. All 16 separately seeded databases were reopened read-only after the hidden apps exited; 274 artifact hashes match. Each build verifies 6,540 immutable production inputs, with zero mismatch. The fixture uses the real catalog/listing producers, PromptCard, Settings effects and RepositoryPane. Its owned shell supplies layout and unrelated fetch no-ops; active-workspace, paired registration/transport/status/auth inputs are injected. No pane is injected and B is not selected directly. This proves the mounted production routes, rather than a complete app session or live SSH execution. Existing unqualified hook inspection safely refuses the duplicate selector; no hook wire change or private command save is claimed.
Testing
At the frozen
fc1e9c2a19d136a98a89c3d1ef2eeda51911b37echeckpoint, the canonical macOS runner passes 528 cases across 39 suites, with no skips. Coverage includes registered dispatcher/schema/runtime/SQLite creation, Settings component → selection/store → derived reader, owner order and refusal controls, older capability peers, drafts, startup-agent/replay, CLI parent/target/agent, automation context and both repository-routing suites. New SQLite cases are in the canonical runtime manifest.Actual hydration → catalog refresh reproduces the lost historical dismissal before the migration and preserves it afterward. Controls cover private-owner ambiguity, local/raw legacy collisions, exact current tokens, opaque IDs, unavailable first-paint catalogs and retirement cleanup. A registered RPC control using one retry ID for two qualified hosts reproduces the wrong cached host before the fix; sequential/concurrent and same-owner retry cases now pass. This is an RPC retry-boundary control, not a claim that ordinary creation spontaneously reuses IDs.
The prompt controls use actual catalog/listing producers, dismissal storage, and Settings target → selection store → pane reader. All 21 new controls pass; immutable bdca source produces 15 failures and preserves six positive controls. Both row orders, publisher-only ambiguity, unknown raw ownership and proven legacy SSH/local/focused behavior are covered. Independent pinned Node replay passes 78 cases across seven suites with no skips; overlapping counts are not summed.
The separately retained web attachment suite passes all 16 cases. Six separately filtered legacy retry cases pass; 1,337 unrelated runtime cases are intentionally skipped in that separate run. These counts are reported separately. Node, CLI, private canonical web and scoped authority-fixture typechecks pass. All 108 changed files pass full-file lint and formatting; parent/default changed-code quality and whitespace checks pass. No file-size limit or suppression changes. The private web type closure contains 46 actual pinned packages/2,426 matching files and preserves the canonical source-file list, compiler options and existing aliases; no dependency install or shared mutation. Tests/apps use
ORCA_BACKGROUND_LAUNCH=1.Historical Windows at exact
99a232apassed 224 and failed 24 cases in the unchanged replay fixture's SQLite journal cleanup (EBUSY). A bounded exact51e7181run reproduced all 24 titles and that mechanism. Linux contact was lost after preparation and no test command was sent. These historical receipts do not validate the final head. Atfc1e9c2, hosted static/type checks, Linux and Windows packaging, relay integration and native smoke checks on macOS, Linux and Windows pass. Full unit CI found 20 failures in 12 files. Actual named-prerequisite controls distinguish two legacy-create regressions from stale fixture assumptions. The corrective lookup preserves the original local/runtime route expectations, and fixture updates retain full owner, argument, cleanup and concurrency assertions.For this correction, all 137 cases in 13 affected suites and 383 cases in all 36 shared worktree-harness suites pass with no skips; overlapping counts are not summed. The 12 new registered-handler controls cover opaque IDs, missing and duplicate owners, strict contradictory qualifiers, both sibling orders, propagated selector errors and refusal before creation effects. The mock delegates repository lookup to the actual runtime selector. Four typechecks, full-file lint/formatting and parent/PR-base changed-code quality pass. The new ordinary CI run remains pending.
Cross-version CI previously had seven Kiro expectation failures in two files, reproduced unchanged on named main
62878c3through a verified 77-module import cone. PR #27002 has since merged. This branch inherits its exact source commit5eac4a6with its original author preserved, changing only those two test expectations; all 122 ownership and fixture files at40ce1bcare unchanged. All 18 cases in the two compatibility suites pass locally atc07a30e, with full-file regular and anti-slop lint, formatting and changed-code quality passing. The prior failing CI receipts are retained. This PR remains a draft pending ordinary final-head CI; no failed job was retried and no separate final-head remote test job was run.The six Windows path-fixture failures from unit CI reproduce with the unchanged eight-test suite: named prerequisite
a7ae7d1passes all eight, whilec07a30efails six before path handling because its standalone runtime stub lacksshowRepo. This fixture now delegates to the existing runtime selector using its own mock store and checked constructor types. All eight unchanged path tests and 12 registered creation-owner controls pass locally, along with the Node typecheck, full-file regular and anti-slop lint, formatting and changed-code quality. These controls use Windows path inputs in the canonical Bun project on macOS; native Windows execution is outside this proof. The original failed CI log is retained, and ordinary final-head hosted CI remains pending.AI Disclosure
Codex assisted implementation, verification and review.
Review
Root and independent review accepted the original ownership change, dispatcher/projection correction, migration and prerequisite. The final merge ports all 23 affected function bodies and 25 test callbacks unchanged; the setup upsert retains the three existing expressions, including comparison to the previous owner on update. Clone and mutation resolution remain unchanged. Root and independent review of the additional exact ten-file prompt/Configure correction found no blocker, and the independent replay passed 78/7 with no skips. Rendered prompt proof at the
fc1e9c2checkpoint passes. Root and independent review accepted the corrective lookup and fixture contracts. The merged compatibility repair is inherited with its original author and exact source preserved. Ordinary final-head hosted CI remains pending; this draft is not ready for review.Related #26564 was investigated; its notifications/cache patch material is not retained here. Metadata contributor credit remains in the parent ancestry, with no new human coauthor trailer inferred from reports or agent review.
Agent skill upstream boundary
Notes
Ambiguous historical dismissal aliases suppress no current sibling. Unknown preferences remain during startup or unavailable catalogs; complete catalogs clean retired preferences. IDs stay unchanged and picker owner keys remain presentation values. Generic paired
repo.updaterename and workspace-registration retirement are separate follow-ups. Catalog removal makes no process-liveness inference. SSH, folder workspaces, mobile and independently updated peers are considered.Checklist
fc1e9c2passed