Skip to content

fix(ssh): preserve Windows exits and refresh published skill guidance - #134

Merged
abruption merged 2 commits into
mainfrom
abruption/fix-034-windows-ssh-exit
Oct 12, 2026
Merged

abruption merged 2 commits into
mainfrom
abruption/fix-034-windows-ssh-exit

Conversation

@abruption

@abruption abruption commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #133. Closes #118. Refs #20; Windows-client jump remains open.

  • Forward native $LASTEXITCODE after Windows-destination --version and --stdio-request. Invocation without a native exit fails with 1. Keep strict framing/native evidence validation and exact-version/host-key protections.
  • Add real-PowerShell Windows contract cases for native 0/1/2/255, malformed/missing stdout, nonzero preflight and missing executable. Preserve submitted/queueId after complete abnormal results, one request per destination, and stdin-only messages. POSIX command tests assert framing only.
  • Complete feat(skill): refresh TS companion guidance and bounded metadata compatibility #118 after the independently published TS skill 0.2.0: pin four guides to 8482cf644507c682915e35c85aa3384c53864906, record the tag/SKILL hash, preserve dated design history and separate runtime/skill/min/full/metadata_only meanings.
  • Add an explicit unreleased 0.3.4 validator row for the two exact published skill profiles; unreviewed 0.3.5 still rejects. Compiled VERSION and package version remain 0.3.3. Remove stale release-preparation prose from the four README/guide entry points and retain historical evidence in VALIDATION.

Reproduction and physical verification

Base: public npm 0.3.3 source c0ed302.
Physical Windows 10 x64 / PowerShell 5.1.19041.6456 / Node 24.16.0 with macOS arm64 / Node 24.16.0 client: all 24 isolated SSH fixture scenarios passed. Native exit 2 now returns client exit 2; complete success+native 255 retains queued/submitted:true/queueId with transport failure, client exit 1 and no retry. Malformed/missing outputs remain unknown/submitted:null. Nonzero/mismatched preflight dispatches no request; two aliases of one physical machine retain ordered mixed results. Missing native executable returns 1. Owned remote fixture root was removed and absence rechecked.

These are synthetic native responses, not real Codex/Claude queue, injection or ACK evidence. No agent session or live message was used. Native arguments contain only the fixed flag; the fixture receives body data through stdin. Captured decoded raw stdout matches the legacy/forwarding controls. The tested compiled launcher matches the final rebuilt launcher.

Local checks

  • npm ci --ignore-scripts: PASS; no global installation.
  • npm run build and npm run test:types: PASS (also run by npm test).
  • npm test: 190 total, 185 PASS, 0 FAIL, 5 Windows-only SKIP.
  • npm run test:package: PASS, reproducible package/isolated installation/removal and bash/zsh contract/lifecycle.
  • node scripts/check-repository.mjs, git diff --check: PASS.
  • npm audit: 0 vulnerabilities.
  • Exact upstream Python 1.0.2 reference 47c23713d0a2a3c11ebde6186afd8c43489b8b65: entrypoint/core/fixture 19 files byte-compared before conformance; no parity repin.
  • Published TS SKILL: 12,835 bytes, SHA-256 00c6fc343fdbeb8f6dc1b1ee1b730f04cef71bbfb08205a7be3559202f1d8804. Actual complete bytes accepted by candidate default/explicit 0.3.3 and explicit 0.3.4; 0.3.2 and unreviewed 0.3.5 reject. Pure metadata 20/20 and guidance 2/2 passed separately.

Initial full-suite run failed because the physical-harness type:module package boundary affected temporary CommonJS fake executables (149 passed / 36 failed / 5 skipped). A separate owned test root fixed that setup. The next run found two old exact-command assertions requiring the new suffix (183 passed / 2 failed / 5 skipped); updating those complete-command expectations led to the successful final run. These failures are not hidden as all-green results.

Review and boundaries

Initial CI run 38187131255 at 238da70 passed both macOS/Ubuntu contract matrices, CodeQL, policy and GitGuardian. Both Windows jobs passed the added native-exit case but the following existing SSH contract inherited its call log (16 calls versus its own expected 2). Commit 12765bb initializes that subtest's own log and preserves exact call-count assertions; types/repository/diff checks passed before pushing. Runtime source is unchanged by this correction. Final head 12765bb561db14f0dae9ea68bd92e976342d71a4 passed all 12 checks: CLI run 38187343010, CodeQL run 38187340609, and GitGuardian. Both Windows-native Node 22/24 jobs are successful. The initial failed-head result is retained above, not reported as all green.

The automatically triggered Code Review and Security Review both completed on original head 238da70a0530260eaebda7556b645c7fa3178ae6, with no findings: review summary. The later commit changes only two files (Windows subtest log initialization and its validation record), with no runtime source change. It has full current-head CI but no separate current-head automatic review was requested or claimed. No manual review mentions are needed. Actual Windows CI must validate the added native-PowerShell subtest; macOS skips are not Windows evidence.

Human merge gate. No merge, release/tag/npm publication, version bump, SSH configuration/key/known_hosts change, skill installation, operational change, or 0.4 feature promotion. Existing draft PRs/worktrees are preserved. 0.3.4 milestone is planning only.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T00:15:43.384486Z 238da70 PR opened
🔒 Security Review ✅ Completed 2026-10-12T00:18:51.468389Z 238da70 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit c210ee9 into main Oct 12, 2026
12 checks passed
@abruption
abruption deleted the abruption/fix-034-windows-ssh-exit branch October 12, 2026 02:18
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.

fix(ssh): preserve Windows native exit codes through PowerShell feat(skill): refresh TS companion guidance and bounded metadata compatibility

1 participant