Skip to content

fix: preserve packaged macOS PTY smoke with ready-gated input - #23

Merged
karlorz merged 1 commit into
fork-mainfrom
fix/mac-terminal-host-smoke-2026-10-12
Oct 11, 2026
Merged

karlorz merged 1 commit into
fork-mainfrom
fix/mac-terminal-host-smoke-2026-10-12

Conversation

@karlorz

@karlorz karlorz commented Oct 11, 2026

Copy link
Copy Markdown
Owner

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

  • Send shellReadySupported: true in the packaged terminal-host smoke request.
  • Fail immediately when the daemon rejects terminal creation, preserving its error and cleanup.
  • Add computed-output, real native PTY startup-profile, echo-only, silent-delivery, rejected-create, and cleanup regressions. Run this suite under Node in CI.
  • Record cause evidence and limitations in 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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

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-2 remains immutable; the coordinator owns a next-free release after approved merge.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (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.

@karlorz
karlorz marked this pull request as ready for review October 11, 2026 22:56
@karlorz
karlorz merged commit 8778814 into fork-main Oct 11, 2026
51 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant