Repository navigation
Description
Priority and scope
P1. Planning-only ordinary SSH correction, not an opt-in handoff/ACK feature or release approval. Refs #93/#95, #97, #52, #87 and #69–#72; none of those existing items covers this ordinary completed-response case. The four 0.4.0 issues remain together.
Source finding (not a fresh reproduction)
Published [email protected] provenance source f335f07352c842f2f6ceb12bd2ca6274b52f69f7; main 332df52e559c398b83592e550a8cf08284506178 has no runtime diff.
remote() lines203–211 rejects done.interrupted before parsing and accepts only exit0/1/2 with ok matching SSH exit. Thus even one complete independently valid native success followed by SSH255/transport-shutdown timeout loses known submitted/status/target/queueId and becomes unknown/null. No live message or isolated execution was performed in this audit.
Python published1.0.3 strict completed-response handling is a design reference; its open #263 separately tracks incomplete-response classification. Do not assume Python is defect-free or copy weaker behavior.
Acceptance criteria
- Apply one bounded strict response parser and command/schema/native-target/request-context validation on normal and abnormal transport completion. Wrong target/context or malformed/contradictory result never proves submission.
- Preserve independently valid posted/queued, submitted:true, validated target and optional valid queueId after a later SSH255 or transport-shutdown timeout. Preserve valid definite refusal facts where their complete response establishes them; do not fabricate absent native fields or normalize absence to false/null.
- Document local
ok/exit/transport-diagnostic semantics explicitly. Positive native submission evidence need not mean transport exit0; normal verified exit0/1/2 propagation remains compatible. - Missing, partial, malformed, polluted or mismatched responses after a possible effect remain unknown/submitted:null/retryAllowed:false. No second native submission, fallback, failover or automatic resend.
- Preserve consumptionConfirmed:false semantics: submission is not injection, receiver consumption, ACK or completed work. Add no handoff state/receipt/observer/ledger fields.
- Distinguish why collection stopped: timeout/shutdown vs stdout byte overflow/process error. Never accept a retained valid prefix after excess output, rejected trailing material or framing violation.
- Retain nullable Claude names, existing supported target shapes, optional queueId absence, single-host flat output, ordered fanout/per-host isolation and JSON/text rendering.
- Add hermetic fake-SSH complete vs partial/empty/invalid × exit0/255/timeout cases, Claude and Codex targets, queueId retention, mixed-host results and request-count assertions (one submission maximum per host).
- Valid stdout plus invalid diagnostic stderr on exit0/255 must preserve protocol evidence; stderr is separately bounded/replacement decoded and sanitized, never used to manufacture success/refusal.
Boundaries and sequencing
Consume the linked strict raw-byte parser correction before accepting positive evidence on failed transport. Existing malformed-result isolation (#93/#95) and timeout cleanup (#87) remain protected. Draft107–109 may supply ideas but are not shipped ordinary SSH implementations; this fix does not depend on #69–#72 or adopt their unfrozen runtime behavior. Existing Python1.0.2 oracle/reference pin stays unchanged. No ACK/live experiment, install, repository configuration, merge or publication is authorized by this issue.
Linked parser prerequisite
#116 provides strict bounded bytes/framing. Review its overflow/pollution contracts before granting positive native evidence on abnormal transport completion; this is not a dependency on the 0.4.0 feature group.
Activity