Repository navigation
fix(orchestration): observe created workers during pending startup - #9
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 6, 2026
DoozyX
pushed a commit
that referenced
this pull request
Oct 20, 2026
…win projections stay on their host (review-5 #2 #9 #11) (stablyai#30890) * fix(renderer): host writes route only through the strict owner, and twin projections stay on their host (review-5 #2 #9 #11) A selected ssh: host that two paired servers proxy now resolves ambiguous at the one selected-host resolver, so no caller can fall back to this app's own SSH connection. File Explorer and SSH mutation expectations derive the full {endpoint, place} pair from resolveOwner, so a server folder's nested SSH target stays the write's host. A local lineage write projects onto its own host's rows only. The id-only store-write ratchet now also covers persistence repo-row lookups by id alone (review-5 #10's shape). * fix(ratchet): the id-only lookup scan also sees optional chaining and destructured ids * fix(renderer): an unstamped folder keeps reading its host from its repos; editor focus fallback left for a follow-up * docs(renderer): the File Explorer owner comment names its folder fallback
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
A worker that is still starting should remain readable while its terminal belongs to the same process. A disconnected SSH worker should remain unverifiable until its host supplies a verdict.
What Changed
Previously,
orca orchestration worker-showcould reportidentity_changedandworker-readcould fail while a supervised worker start was still pending. They now recognize the terminal recorded when that start created it, provided the pane and process still match. Moving the same pane to another tab preserves access; a replaced process or an uncertain start remains excluded.Pending SSH starts now report
unverifiablerather thanexitedwhen the host verdict is missing, using the host recorded with the created terminal. Regression tests cover these cases, and the slow-exit release fixture supplies the newly consumed database method.The
agent_readinesswait is unchanged. The reported readiness timeout did not reproduce on current main; Codex readiness now comes from rule files that handle headerless Codex screens.Why
The terminal record proves which process this start created without granting worker authority before readiness. Retaining pane equivalence supports tab moves without accepting another process. The release fixture supplies its real dependency instead of hiding the missing method behind an optional-call fallback in production code.
Linked Issue
Fixes #1
Visual Proof
N/A — no visible UI change; this changes orchestration CLI/RPC observation output only.
Testing
Tested on macOS only. SSH behavior is covered by unit regressions, not a live remote.
Commands and results:
ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/runtime/rpc/methods/orchestration/worker/: 343/343 tests passed at the final revision.env -u TMPDIR ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/runtime/terminal-close-slow-agent-exit.test.ts: 4/4 passed after the three missing-method failures were reproduced before the fixture fix.pnpm tc: passed.pnpm exec oxlint src/main/runtime/rpc/methods/orchestration/worker/starting-worker-terminal-identity.ts src/main/runtime/rpc/methods/orchestration/worker/worker-observation.ts src/main/runtime/rpc/methods/orchestration/worker/worker-terminal-custody-at-creation.test.ts src/main/runtime/terminal-close-slow-agent-exit.test.ts: passed.pnpm exec oxfmt --checkon the changed files: passed across the fix rounds.pnpm run check:code-quality:changed 6b85338989d7c952ccb3d1d681f21dce7d696202: passed.git diff --check 6b85338989d7c952ccb3d1d681f21dce7d696202..8ecf08001eeee361426cc80e8b5ec72d447e6040: passed.env -u TMPDIR ORCA_BACKGROUND_LAUNCH=1 pnpm test: exit 1; 11,012 files passed and 13 failed. Three pre-existing failure files wereconfig/scripts/check-changed-code-quality.test.mjs,src/shared/agent-resume-argv-drop.test.ts, andtests/e2e/relay-region-correction.unit.test.ts. All ten additional failure files passed sequential isolated reruns withenv -u TMPDIR ORCA_BACKGROUND_LAUNCH=1 pnpm test <file>; these failures occurred under host load. The full suite was not green.Full
pnpm lintandpnpm buildwere not run; direct oxlint, formatting, the changed-code gate, and typechecking ran instead.Review
Three review rounds; final verdict clean.
Agent skill upstream boundary
Notes
Security: process identity remains required; observation does not grant startup authority.
Cross-platform: no operating-system-specific logic added; only macOS tested.
SSH: a missing host verdict remains unverifiable; unit coverage only.
Mobile: no mobile UI change; existing observation consumers receive the corrected verdict.
Compatibility: no new wire fields or opcodes; pending-start observation behavior changes for existing clients.
Performance: the missing-verdict path may read one existing terminal record; readiness polling is unchanged.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass — narrower checks passed as listed above; the full suite retains the documented failures, and full lint/build were not run.