Repository navigation
fix(cli): report a denied runtime connection instead of a dead Orca - #22341
Conversation
Inside Codex's macOS Seatbelt sandbox, connect() on the runtime socket fails with EPERM. The CLI dropped the errno and reported "Could not connect ... Restart Orca", appended "Orca is not running. Run 'orca open' first.", and `orca status` answered ok:true with `starting` (its pid probe also gets EPERM). An agent following that advice restarts a healthy app, which cannot help. EPERM/EACCES on the metadata read or the socket/pipe connect now fails with a CLI-local `runtime_access_denied` error: ok:false, non-zero exit, operation/systemCode/processState:"unverifiable"/retryable:false and nextSteps that say to re-run with escalated permissions and not restart. CODEX_SANDBOX only picks the wording. `orca open` stops before launching. The status pid probe is unchanged: a refused or missing socket proves the caller reached the endpoint, so a later EPERM probe is another uid and keeps #20098's `starting`. Missing, refused, stale-pid and timeout paths are unchanged. Adapted from the diagnosis and tests in #20487 (and #19605, #13583). Co-authored-by: lifeodyssey <[email protected]>
…estart The shared CLI-resolution block told every bundled skill to run `orca open` when a command says Orca is not running. Add the counterpart for the new access-denied code so sandboxed agents re-run with escalated permissions instead of launching or restarting Orca. Regenerated stubs and manifest.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe CLI now classifies Priority: ⬇️ Low Merge Risk: 🔵 Low · up to Rare runtime metadata I/O failures can incorrectly report Orca as stopped, and users outside a sandbox may receive incomplete recovery guidance for permission-denied connections. Address these bounded correctness issues before merge if possible. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: da739aa9-9ced-4ccd-b88e-7df87c9bdceb
📒 Files selected for processing (17)
resources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-stubs/_shared/cli-resolution.mdskills/computer-use/SKILL.mdskills/linear-tickets/SKILL.mdskills/orca-cli/SKILL.mdskills/orca-emulator-android/SKILL.mdskills/orca-emulator/SKILL.mdskills/orca-linear/SKILL.mdskills/orca-per-workspace-env/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/runtime/metadata-access-denied.test.tssrc/cli/runtime/metadata.tssrc/cli/runtime/runtime-access-denied.test.tssrc/cli/runtime/runtime-access-denied.tssrc/cli/runtime/status.tssrc/cli/runtime/transport.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
| } catch (error) { | ||
| // Why: a denied read says nothing about whether Orca is running, so it must not read as absent. | ||
| throwIfAccessDenied(error) | ||
| return null |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '1,130p' src/cli/runtime/metadata.ts
sed -n '1,130p' src/cli/runtime/status.ts
rg -n 'tryReadMetadata|readMetadata|runtime_unavailable|not_running' src/cli/runtime src/cliRepository: stablyai/orca
Length of output: 16085
🏁 Script executed:
sed -n '1,115p' src/cli/runtime/metadata-access-denied.test.ts
sed -n '1,130p' src/cli/runtime/runtime-access-denied.ts
sed -n '110,165p' src/cli/runtime/status.test.ts
sed -n '195,245p' src/cli/runtime-client.test.ts
rg -n 'metadata|not_running|stale_bootstrap|ENOENT|ENOTDIR|ELOOP|ENAMETOOLONG' src/cli/runtime src/shared README.md docs --glob '!**/*.snap'Repository: stablyai/orca
Length of output: 41898
🏁 Script executed:
sed -n '1,100p' src/cli/runtime/runtime-access-denied.tsRepository: stablyai/orca
Length of output: 2422
Do not treat unexpected metadata read failures as absence.
When readFileSync() fails with ELOOP, ENAMETOOLONG, or another non-absence error, tryReadMetadata() returns null. getCliStatus() then reports not_running. Return null for ENOENT and ENOTDIR, preserve the existing malformed-JSON fallback, and propagate other read errors.
🐛 Suggested fix
} catch (error) {
// Why: a denied read says nothing about whether Orca is running, so it must not read as absent.
throwIfAccessDenied(error)
- return null
+ if (error instanceof SyntaxError) {
+ return null
+ }
+ if (
+ error instanceof Error &&
+ 'code' in error &&
+ (error.code === 'ENOENT' || error.code === 'ENOTDIR')
+ ) {
+ return null
+ }
+ throw error
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| return null | |
| if (error instanceof SyntaxError) { | |
| return null | |
| } | |
| if ( | |
| error instanceof Error && | |
| 'code' in error && | |
| (error.code === 'ENOENT' || error.code === 'ENOTDIR') | |
| ) { | |
| return null | |
| } | |
| throw error |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — reviewed the full diff at 0b11f50 (2 commits, 17 files) and verified the behavior, tests, and generated artifacts.
- New
runtime_access_deniedclassification (src/cli/runtime/runtime-access-denied.ts): an EPERM/EACCES from the metadata read or socket/pipe connect becomes one shared error carryingoperation,systemCode,processState: 'unverifiable',retryable: false, optionalpid/codexSandbox, andnextSteps.CODEX_SANDBOXonly selects the wording; the errno decides classification. - Denied read no longer reads as absent (
metadata.ts): bothreadMetadataandtryReadMetadatanow throw the shared error on EPERM/EACCES. Missing/malformed metadata still maps tonot_running, and the single caller (status.ts) handles the throw. - Denied connect reported as a denial, not a dead app (
transport.ts): the connect'error'handler maps EPERM/EACCES to the new error instead ofruntime_unavailable; no request bytes are written. - Status refuses to guess (
status.ts):getCliStatusrethrows the denial before thekill(pid, 0)probe, while preserving #20098's behavior for a refused/missing socket plus an EPERM/ESRCH pid probe. orca openaborts before launching:openOrcacallsgetCliStatus()first, so a denial prevents a second app spawn.- Bundled skill guidance (
skill-stubs/_shared/cli-resolution.md+ 8skills/*/SKILL.md, regenerated manifest and snapshot registry): tells agents to escalate rather than restart on this code.
Verification I ran at this head: pnpm tc:cli, check:code-quality:changed, oxfmt --check on the changed skill files, verify:bundled-skill-guides, and verify:skill-bundle-manifest all pass; the full src/cli suite is green (130 files, 1334 passed / 4 skipped). I also confirmed the tests can fail: reverting the three production files to base and removing the new module makes the new tests fail on the exact runtime_access_denied codes, the nextSteps text, and the starting vs stale_bootstrap discrimination. The author-disclosed caveats (Windows pipe path unit-tested with a faked errno only; intentional exit-code change for orca status) are reasonable, and I did not find anything actionable beyond them.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…error A denied metadata read was never observed under a sandbox, and it turned an unreadable user-data path (the Linux launch contract's root-owned HOME) into runtime_access_denied instead of "Orca is not running". Keep metadata reads as on main and classify only the socket/pipe connect. One helper now maps a socket errno to the error or null; the error data keeps only systemCode and nextSteps. Tests drop cases already pinned by status.test.ts.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — reviewed the incremental delta at 8af3cb0 (the third commit, on top of the prior pullfrog review at 0b11f50), plus the full PR diff.
- Narrowed the classification to the connect path:
metadata.tsis reverted tomain, so an EPERM/EACCES metadata read no longer becomesruntime_access_denied; only the socket/named-pipe connect errno decides. This keeps an unreadable user-data path reportingnot_running(the Linux launch contract) rather than a denial. - Leaner shared error:
runtime-access-denied.tsnow exposes oneruntimeAccessDeniedError(socketError)returning the error ornull;datadropsoperation/pid/processState/retryable/codexSandbox(none are consumed anywhere undersrc), keepingsystemCodeandnextSteps.CODEX_SANDBOXstill only picks the wording. - Transport and status unchanged in shape:
transport.tsroutes the connect'error'through the helper;status.tsrethrows on the code before thekill(pid, 0)probe, so #20098's pid-probe behavior (starting/stale_bootstrap) is preserved. - Skill guidance trimmed: the shared CLI-resolution block and the 8 bundled guides say a denial means "escalate, don't restart"; the manifest and snapshot registry are regenerated.
Verification at this head: pnpm tc:cli passes, runtime-access-denied.test.ts + status.test.ts pass (18 tests), and both skill-generator verifies leave the tree clean. The dropped test cases are genuinely redundant — the generic non-Codex wording is asserted by the main EPERM/EACCES case, and the pid-probe starting/stale_bootstrap pins live in status.test.ts.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: d284544d-af24-41e6-bd2f-bd15c0f45893
📒 Files selected for processing (15)
resources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-stubs/_shared/cli-resolution.mdskills/computer-use/SKILL.mdskills/linear-tickets/SKILL.mdskills/orca-cli/SKILL.mdskills/orca-emulator-android/SKILL.mdskills/orca-emulator/SKILL.mdskills/orca-linear/SKILL.mdskills/orca-per-workspace-env/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/runtime/runtime-access-denied.test.tssrc/cli/runtime/runtime-access-denied.tssrc/cli/runtime/status.tssrc/cli/runtime/transport.ts
🚧 Files skipped from review as they are similar to previous changes (7)
- skills/orca-emulator/SKILL.md
- skills/orca-cli/SKILL.md
- skills/orca-per-workspace-env/SKILL.md
- skill-stubs/_shared/cli-resolution.md
- skills/orchestration/SKILL.md
- skills/orca-linear/SKILL.md
- skills/linear-tickets/SKILL.md
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review.
| and retry. If it fails with `runtime_access_denied`, your sandbox blocked the connection: | ||
| re-run it with escalated permissions, and do not run `ORCA open` or restart Orca. If | ||
| `skills get` is unknown, explain that updating Orca restores the guide; use `--help` for |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '1,100p' src/cli/runtime/runtime-access-denied.ts
sed -n '20,40p' skill-stubs/_shared/cli-resolution.md
rg -n --hidden --glob '!node_modules' 'cli-resolution\.md|skill-stubs|runtime_access_denied' config scripts package.json skills | head -200Repository: stablyai/orca
Length of output: 4990
🏁 Script executed:
sed -n '1,180p' skill-stubs/_shared/cli-resolution.md
printf '\n--- specific stubs and composition bindings ---\n'
cat -n skill-stubs/computer-use.md | sed -n '1,100p'
cat -n skill-stubs/orca-emulator-android.md | sed -n '1,100p'
sed -n '1,120p' config/scripts/skill-stub-composition.mjs
printf '\n--- generator source/projection paths ---\n'
sed -n '240,370p' config/scripts/generate-bundled-skill-guides.mjs
printf '\n--- relevant package scripts ---\n'
rg -n '"[^"]*(generate|skill)[^"]*"|generate-bundled-skill-guides' package.json config/scriptsRepository: stablyai/orca
Length of output: 35216
Describe runtime_access_denied as a connection-permission failure.
With CODEX_SANDBOX unset, EPERM or EACCES can indicate OS permissions, and the runtime provides an authorized-user recovery path. Both cited skills use this shared block. Update it and regenerate the skill guides with pnpm run generate:bundled-skill-guides.
🐛 Suggested fix
-If it fails with `runtime_access_denied`, your sandbox blocked the connection:
-re-run it with escalated permissions, and do not run `ORCA open` or restart Orca. If
+If it fails with `runtime_access_denied`, the sandbox or OS permissions denied the connection:
+re-run it outside the sandbox, or as a user allowed to reach Orca, and do not run `ORCA open` or restart Orca. If📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| and retry. If it fails with `runtime_access_denied`, your sandbox blocked the connection: | |
| re-run it with escalated permissions, and do not run `ORCA open` or restart Orca. If | |
| `skills get` is unknown, explain that updating Orca restores the guide; use `--help` for | |
| and retry. If it fails with `runtime_access_denied`, the sandbox or OS permissions denied the connection: | |
| re-run it outside the sandbox, or as a user allowed to reach Orca, and do not run `ORCA open` or restart Orca. If | |
| `skills get` is unknown, explain that updating Orca restores the guide; use `--help` for |
…ead Orca A crashed Orca leaves its metadata and socket file behind, and a sandbox denies the connect with EPERM before the CLI can see ECONNREFUSED. The sandbox still reports ESRCH for a gone pid, so a denied connect now probes the metadata pid and falls through to the ordinary unavailable path when the pid is proven gone. isProcessRunning moves to its own module so transport and status share it.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — reviewed the incremental delta at 9fdfb94 (commits 4–5, on top of the prior pullfrog review at 8af3cb0), plus the full PR diff.
- A denied connect now checks pid liveness (
src/cli/runtime/runtime-access-denied.ts, newruntime-pid-liveness.ts):runtimeAccessDeniedErrorreturnsnullfor EPERM/EACCES whenisProcessRunning(metadata.pid)proves the pid gone (ESRCH), so a dead Orca's leftover socket falls through to the ordinaryruntime_unavailablepath and the existing "Orca is not running. Run 'orca open' first." advice. A live pid, orEPERMfrom the pid probe, keepsruntime_access_denied.isProcessRunningmoves out ofstatus.tsinto the shared module. status.tsre-throws the denial before itskill(pid, 0)fallback; the fallback still reportsstale_bootstrap/startingper #20098.- Inlined the error code (
9fdfb94): the exportedRUNTIME_ACCESS_DENIED_CODEconstant is gone and the literal is used at both sites, matching how other CLI error codes (selector_not_found,runtime_unavailable) are compared.runtimeAccessDeniedErrornow takessocketError: Errorand readscodedirectly. - Tests (
runtime-access-denied.test.ts): added themockKillhelper, turned the status case intoit.each([undefined, 'EPERM']), and added a test pinning the dead-pidESRCHpath to not-running advice andstale_bootstrap.
Verification at this head: pnpm tc:cli passes; runtime-access-denied.test.ts (9) and status.test.ts (11) pass. I confirmed the dead-pid test would fail without the pid probe: without it, EPERM classifies as runtime_access_denied, so both the "Orca is not running" expectation and the stale_bootstrap resolution would fail. The inlining matches the repo's convention of comparing error-code string literals rather than importing constants, so I don't consider the removed export a regression.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
When the
orcacommand runs inside a sandbox (for example Codex's), the sandbox can stop it from talking to Orca even though Orca is running fine. Until now the command read that as "Orca is dead" and told the agent to restart Orca or runorca open, which can't help and interrupts a working app. Now the command says what happened: access was denied. Run it with more permissions; don't restart anything.What Changed
Before, inside Codex's
workspace-writesandbox on macOS, with Orca running:orca status --json→ exit 0,ok: true,runtime.state: "starting",reachable: false,connectionState: "disconnected". Older builds reportedstale_bootstrapwithapp.running: falseinstead.orca worktree list→Could not connect to the running Orca app. Restart Orca and try again./Orca is not running. Run 'orca open' first.After, same setup:
orca statusincluded, fails with exit 1 andok: false,error.code: "runtime_access_denied":--jsonoutput includesdata: { systemCode, nextSteps }.ready, reachable, same worktree list.Mechanism. The socket/pipe connect in
transport.tsused to turn every socket error intoruntime_unavailablewith restart advice. It now passes the error toruntimeAccessDeniedError(src/cli/runtime/runtime-access-denied.ts), which returns aruntime_access_deniederror forEPERM/EACCESandnullotherwise. The decision depends only on that error code, with one exception: if Orca crashed, it leaves its metadata and socket file behind, and the sandbox denies the connect before the CLI could see "connection refused". So a denied connect also probes the metadata pid withisProcessRunning(moved fromstatus.tstoruntime-pid-liveness.tsso both files share it). The sandbox still reportsESRCHfor a gone pid (verified inside Seatbelt), so a proven-dead pid falls through to the ordinary path:orca statusreportsstale_bootstrap, and other commands say "Orca is not running. Run 'orca open' first." A live pid, orEPERMfrom the pid probe, keepsruntime_access_denied. TheCODEX_SANDBOXvariable only changes the wording: with it set, the message names the Codex sandbox and says to re-run with escalated permissions; without it, a generic message says the command's sandbox or OS permissions block the connection.orca status(status.ts) re-throws this error instead of falling back to itskill(pid, 0)guess.formatCliErroralready printsnextStepsfor any client error, so the new code never reaches the branch that adds "Orca is not running. Run 'orca open' first."orca openchecks status before it launches the app, so a denial now stops it before it starts a second app or polls. The shared skill-resolution block that every bundled skill carries gets a sentence telling agents that this code means "escalate, don't restart".Reading
orca-runtime.jsonis unchanged: an unreadable file still means "not running". Sandboxes that block the socket (Codex's Seatbelt included) still allow that read, and an unreadable user-data path (for example aHOMEowned by another user, as in the Linux launch contract) really does mean there is no Orca this user can reach.Unchanged otherwise: missing metadata →
not_running. Refused or missing socket plus a gone pid (ESRCH) →stale_bootstrap. Refused socket plus a live pid →starting. Timeouts behave as before. Nothing retries a denied connection, and no request bytes are written.The pid check keeps #20098's behavior.
status.tsnow re-throws a denied connection before the pid check runs, so a sandboxed caller never reaches it. When the check does run, the socket either refused the connection or wasn't there. That proves the caller reached the endpoint, so the sandbox isn't what failed. AnEPERMfrom the pid check at that point means the process belongs to another user, and "don't restart" would be the wrong advice. It still reportsstarting(a test pins this).Why
The sandbox blocks the connection, so the CLI can't know whether Orca is healthy. Any status value (
starting,stale_bootstrap,not_running) would be a guess, and agents act on those values. Failing the command, with a message that says Orca may be running normally, is the only honest answer. It's also whatdocs/reference/ssh-execution-boundary.mdasks for: losing contact is never evidence that a process is dead.Alternatives considered:
stale_bootstrap. That repeats the original problem: agents readstale_bootstrapas "restart it".orca statuswould still exit 0, so scripts would treat it as success.runtime_permission_denied,runtime_unverifiable). This PR uses one code, keeps fix(cli,relay): stop reading an unsignalable pid as a dead one (+ unverifiable-collapse sweep result) #20098's handling of pid-check errors other than EPERM/EACCES, and names the fix ("escalate, don't restart") in both the message andnextSteps, so agents act on it.CODEX_SANDBOXwould miss other sandboxes and Windows pipe ACLs. The error code is what actually proves the denial. The variable only improves the wording.Code name:
runtime_access_denieddescribes what the caller experienced (it was denied access), matches theEACCESfamily, and stays distinct fromruntime_unavailable, which existing recovery logic (for example the orchestration "outcome unknown" list) treats as "maybe the request landed". A denied connection never sends a request, so it must not join that list.Linked Issue
Fixes STA-8126. Addresses #19604 (diagnostics portion of #12528 / #13539). Windows named-pipe denials (STA-3813) take the same path because they're classified by the same
EPERM/EACCEScodes.Visual Proof
N/A: CLI-only change, no rendered UI. Instead, real Codex agent sessions were run against real Orca instances with the CLI built from this PR's head (
9fdfb94d4d). Only read-only Orca commands were used.Each run was
codex exec(Codex 0.155.1, gpt-5.6-sol) with this prompt: "Run<cli> status --jsonthen<cli> worktree list --json; report the exact output; tell me what I should do next." In the sandboxed runs,CODEX_SANDBOXreadseatbeltinside the session.1. Live Orca, from an Orca terminal on the running app:
--sandbox workspace-write, network offstatus: exit 0,ok: true,starting, unreachable.worktree list:runtime_unavailable"…Restart Orca and try again."runtime_access_denied,systemCode: EPERM, Codex wording and both next steps--dangerously-bypass-approvals-and-sandbox(Orca's YOLO launch)ready, reachable, connected; 138 worktreesready; 138 worktreesThe Manual row passes because this machine's
~/.codex/config.tomlsetssandbox_mode = "danger-full-access". With a stock config, Manual mode runs in Codex's workspace-write sandbox, which is the Before/After row.2. Orca that crashed while its terminals survived (the dead-pid path): an isolated Orca (this branch's build,
orca-dev serve, its own user-data dir) with one terminal. The terminal ran a script that first ran the sandboxed Codex session against the live instance, then waited while the Orca main process wasSIGKILLed. The terminal daemon and the terminal's shell survived, and the runtime metadata and socket file were left behind. The same shell then ran the sandboxed Codex sessions below.runtime_access_denied, EPERMstatus: exit 0,stale_bootstrap,app.running: false.worktree list: exit 1,runtime_unavailable"…Restart Orca and try again." (plain-text output adds "Orca is not running. Run 'orca open' first.")Inside the same Seatbelt sandbox, the OS-level probe against the leftover files gave
connect EPERMandkill(pid, 0) ESRCH, so the dead-Orca run did take the new pid-probe fallback rather than a refused connection. The denial does not leak into this case: no "don't restart" text appears.In the sandboxed runs Codex first read the installed
orca-cliskill stub, which predates this PR and still says "if Orca is not running, runorca open". In the denied runs it followed the new error's guidance anyway.Testing
I manually tested these changes locally (macOS: real
codex execsessions, sandboxed and unsandboxed, against the running Orca from an Orca terminal and against an isolated Orca killed withSIGKILLwhile its terminal survived, as above; read-only commands, no restart of the user's Orca)Automated tests added/updated
runtime-access-denied.test.tscovers: EPERM/EACCES on connect with no restart or not-running text and no request bytes written; Codex versus generic wording; ECONNREFUSED stayingruntime_unavailable;orca statusfailing without a pid probe;orca opennot launching; the--jsonenvelope; and a denied connect plus a dead pid (ESRCH) giving not-running advice andstale_bootstrapwith no "don't restart" text, while a live orEPERMpid keeps the denial. The dead-pid test fails without the pid probe. The existingstatus.test.tspins fix(cli,relay): stop reading an unsignalable pid as a dead one (+ unverifiable-collapse sweep result) #20098 (a missing socket plus an EPERM pid check still reportsstarting). Withtransport.tsreverted tomain, all 6 denial tests fail; with onlystatus.tsreverted, the 3 status/open tests fail.pnpm tc;pnpm tc:cli; fullsrc/clisuite (129 files, 1328 tests);pnpm run check:code-quality:changed;oxlint;oxfmt;verify:bundled-skill-guides;verify:skill-bundle-manifest. An unreadable user-data path still prints "Orca is not running. Run 'orca open' first." (the Linux CLI launch contract). Insidecodex sandbox(workspace-write), a temp user-data dir with metadata pointing at a dead pid and a leftover socket file gaveconnect EPERM/kill ESRCHat the OS level; the rebuilt CLI reportedstale_bootstrapforstatusand "Orca is not running. Run 'orca open' first." forworktree list, while the live Orca still gaveruntime_access_denied.AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
EPERM/EACCEShits the same check. It isn't tested on a real Windows sandbox; the unit tests fake the errno.orca statusexit 0 plusreachable: falseas "not ready yet" now get exit 1 when access is denied, which is intended: before, they waited forever on a state that could never change.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)