Repository navigation
fix: preserve packaged macOS PTY smoke with ready-gated input - #23
Merged
Merged
Conversation
karlorz
marked this pull request as ready for review
October 11, 2026 22:56
8 of 9 tasks
karlorz
pushed a commit
that referenced
this pull request
Oct 19, 2026
…nce off the deprecated owner resolver (stablyai#30484) The eight mirroring callers (#23-#30) read the owner through runtimeEnvironmentIdWithLegacyFallbackUnlessTwin, so a twin is still not mirrored. Sort-order persistence (#2) leaves out ids that two hosts publish, and ids whose only server proof is a repo row (isUnprovenServerSshRoute), instead of writing them to this desktop's or a guessed server's meta. Deprecated importers 40 -> 31.
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
The macOS release check typed its test command while the shell was still starting. Startup code could consume that input, so packaging failed after seeing only the typed command. The check now waits through Orca's existing shell-readiness barrier before delivering it.
What Changed
shellReadySupported: truein the packaged terminal-host smoke request.docs/audits/MAC-RELEASE-SMOKE-2026-10-12.md.The required computed
OK 42, 20-second timeout, isolated packaged signed helper, x64/Rosetta execution requirement, signature checks, and signing order remain intact. Product runtime and protocol remain unchanged.Why
The spawn path already installs a readiness wrapper for this command. The verifier omitted the flag that activates the corresponding session input barrier. A controlled Linux profile that reads during startup reproduced the lost command through a real PTY; the identical fixture executed computed output after the fix. Using the existing contract keeps the fix narrow and preserves failure visibility.
Linked Issue
Recovery dispatch for the failed fork release: https://github.com/karlorz/orca/actions/runs/38175318730/job/114580948356
Visual Proof
N/A — this changes a headless packaging verifier and its tests.
Testing
Linux, current-source daemon and real PTY: unchanged smoke failed with a startup-reading profile; ready-gated smoke passed. New regressions initially failed against the unchanged verifier.
Focused Vitest run with repository config and one worker: 107 passed, 11 existing platform/benchmark skips, 6 suites (verifier, terminal startup, native-PTY prompt latency, session barrier, helper bundle, fork release workflow).
Changed-code quality gate against
2330847fbefdc48ace0067b19ce925e35cd5def5: zero new findings. Repository formatter and whitespace checks passed.Local tests used glibc Node 22.19.0 and an isolated copy of the installed Linux native PTY addon because this box has no C++ compiler. CI must provide native build validation.
macOS validation remains gated: the exact runner startup operation is unverified. Ordinary PR CI does not run self-signed macOS packaging. Genuine signed x64/Rosetta and arm64 package smoke evidence is required before declaring release recovery verified. Any build-only diagnostic workflow needs a scoped reviewed change with publication disabled; the coordinator owns that decision.
AI Disclosure
Implemented and verified with Grok Build. A read-only scout was cancelled following the coordinator correction; its output supplied no accepted evidence. All diagnosis, changes, and tests were completed in this coding tab.
Review
Attended fork merge gate: coordinator review and Karl/newbie approval required. No auto-merge. Existing
v1.4.224-2remains immutable; the coordinator owns a next-free release after approved merge.Agent skill upstream boundary
Notes
The verifier uses an existing optional daemon field; no protocol version or client/host runtime behavior changes. SSH, mobile, Windows, signing, template packaging, and updater metadata remain covered by existing contracts. Tests verify daemon exit and scratch cleanup on success and failures.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)The focused local checks above passed. Full build/typecheck and the CI matrix remain pending; signed macOS packaging requires additional gated CI evidence.