Repository navigation
fix(ssh): validate bounded responses and preserve native outcomes - #127
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0180fedae6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This was referenced Oct 9, 2026
abruption
force-pushed
the
fix/116-strict-ssh-response
branch
from
October 9, 2026 06:37
8c882fa to
89464fd
Compare
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.
Summary
Closes #116. Closes #115. Milestone: 0.3.3 — Ordinary SSH reliability and migration.
This is the ordinary SSH correction, independent of the Draft 0.4.0 handoff/app-server/observation work. No runtime version bump or publication is included.
ok,status,submitted, target and optional queue ID remain unchanged; local exit 1 plus client-ownedsshTransportreports transport failure. Normal verified exits 0/1/2 retain their contract. No retry, fallback or failover.sshTransport; preserve unrelated additive fields. Reject contradictory success/error, refused/queue-ID and dry-run/queue-ID records. Explicit remote aliases use a receiver-derived, validated and stripped wire-onlyrequestedCodexHomescalar; the caller never resolves remote paths locally.Verification
Local macOS arm64, Node 24.16.0, with the Python oracle extracted from exact commit
47c23713d0a2a3c11ebde6186afd8c43489b8b65:npm run build,npm run test:types,node scripts/check-repository.mjs,git diff --check: PASS.npm test: 168 tests, 163 pass, 0 fail, 5 Windows-only skips. The affected parser/CLI/transport tests also passed separately (32 tests). Exact-head CI runs the full suite again.npm run test:package: PASS, including isolated install/uninstall, declarations and bash/zsh shorthand contract/lifecycle. The first package attempt lacked this new worktree's local TypeScript dependency;npm ci --ignore-scriptsin the isolated checkout resolved that environment failure.npm audit: 0 vulnerabilities.node scripts/release.mjs packandnode scripts/release.mjs artifact: PASS, 54 allowlisted files, source commit8c882fab220ade044d00beb9d23bf6ecb7727bdc, local artifact SHA-256deec9bbcd6ac4faefa21c9c601a1f4e4af1234c7037df34773ced2127b787c61. The first regeneration correctly refused this task's stale previous-headrelease-dist; that owned directory was archived before creating the exact-head artifact. This is a local development artifact, not a release/stage authorization.New fixtures cover complete/partial/empty/polluted/invalid UTF-8 and duplicate-key output × exit 0/255/actual collection timeout; byte/depth/node boundaries; split multibyte UTF-8; invalid or excessive diagnostic stderr; requested-target/home/opt-in mismatches; queue-ID retention; ordered mixed-host isolation; reserved diagnostic spoofing; text warning; and exactly one request per host. The POSIX CLI fixture uses a test-only import to shorten the existing 90-second request deadline; no production test knob was added.
Portable parser/process cases are explicitly included in
test:windows. The native Windows fixture adds complete Codex output + exit 255 + invalid diagnostic UTF-8 through the existing encoded-PowerShell path, with exactly one queue stand-in call. Windows execution is CI evidence only; the local POSIXtransport.test.tsresult is not presented as Windows validation.Review and boundaries
Pre-PR source review findings were fixed and regression-tested: contradictory success/error, peer-owned transport diagnosis, missing home/opt-in binding, and explicit-home echo without a returned home. Automatic Code and Security Review completed on
0180fedae69f6c61c06362c705911e1f931269ed. Code Review reported four P2 findings; commit8c882fab220ade044d00beb9d23bf6ecb7727bdcfixes all four and adds portable regressions across normal/abnormal completion: reject queue IDs in every failed send, refuse unknown submission facts for dry-run requests, require the selected absolute home in every successful Codex result, and bind remote doctor's SSH route evidence to the exact requested return destination. Security Review supplied no separate findings. A bounded read-only follow-up audit of the four changes confirmed consistency with actual send and remote probe contracts and found no remaining blocking defect; it did not execute live tests. Review completion is not claimed for the new commit; no separate review mentions were sent. Latest exact-head CI: cli run37863835806, CodeQL run37863832399. All 12 current-head checks passed without reruns, including CodeQL, macOS/Ubuntu Node 22/24, Windows native 22/24, repository policy, release gate and GitGuardian.All execution used dedicated temporary fixtures/fake endpoints. No live delivery/ACK experiment, real SSH host, transcript access, credential use, native queue re-execution, installation of a user runtime/skill, protection change, merge, tag, release or npm publication occurred. Remote canonical-path alias mapping remains destination context evidence, not independent filesystem authentication or a generation guarantee. Submission is not injection, ACK or completed work. Human approval is the merge gate.
Merge preparation checkpoint — 2026-10-09 KST
Rebased onto the #125 merge
1c78a0c3977504ca8706f0d0077fd10db9d89ce4. Current head:89464fd5243c8ad86f8b2771cf4a98b6389a49b9. The only conflict was PARITY.md; the accurate historical 0.3.2 record and new SSH correction section are both retained. Runtime/tests/release sources are byte-identical to reviewed head8c882fab220ade044d00beb9d23bf6ecb7727bdc; changes relative to that head are the five #125 documentation files.Local build, type tests, strict-response parser/CLI tests (17 passed, 0 failed), repository checker and diff check passed. Exact-head CI
37894499567and CodeQL37894496779completed successfully (12/12 checks, Windows Node 22/24 included). Bound squash merge:8f12972a37a0755904bdf6f20e4bfb4a0b9d6cbe. No protection/admin bypass was used.