Repository navigation
fix: guard exited-member cancellation and reconcile lean delivery tests - #51
Conversation
|
CI currently fails in the full suite (18 failed files, 375 passed, 1 skipped). This is not a green-CI claim. I checked a pristine checkout of the target branch commit 64a41f4 without this PR's diagnostic change. The atomicity, replay-recovery, and guidance suites reproduced 12 failures / 53 passes, including the missing beforeWrite expectation and queued/report lifecycle fixture mismatches seen in Actions. This confirms those failures already exist in the target branch; it does not classify all 18 CI failures. The real collaboration scenario, persistence check, and mailbox tests passed locally for the narrow diagnostic change. The broader branch's dispatch/report fixtures and baseline test expectations still need reconciliation before claiming the collaboration branch is fully validated. Keeping this PR narrow and #50 open. |
|
Follow-up to the earlier red-CI note: commit 21c4d2f now repairs the branch's stale dispatch/report/replay fixtures and expectations in addition to the narrow cancellation diagnostic fix. All 18 previously failing test files passed together on Windows / Node 24.14.1: 190 passed, 0 failed, 0 skipped. Report fixtures wait for real PTY delivery, restart replay checks actual worker stdin, and the stopped-worker report case stops and verifies the real run. Static checks and production build also passed; four independent reviews found no remaining blocker in this scoped change. The new upstream CI run is 37038342539. It is still running; I am not claiming full-suite or cross-platform success yet. #50 remains open for the broader reliability work. |
|
The latest head is 764f6c8 (code changes through c3c98d3; the final commit is an empty CI trigger). CI run 37042699762 is now successful: verify, all six Linux/macOS/Windows × Node 22.18/26 platform jobs, and result passed. The dispatch/report/replay fixture failures are repaired, and the real Windows PTY stop test now resolves the configured @lydell/node-pty dependency. Local Windows verification passed 190/190 affected tests, plus 15/15 platform regressions under both Node 24 and Node 26. Node 26 default and scriptless package smoke checks also passed using the upstream archive. One prior Windows/Node 26 package smoke produced a SQLite disk I/O error. The same-code rerun and local reproduction attempts passed; I cannot establish its cause from that single failure. No assertion was removed or weakened to obtain the green result. Extended full-suite platform jobs were not selected by this PR's CI plan. No remaining blocking finding was identified by the four independent reviews. This PR is ready for maintainer review within its stated scope; #50 remains open for broader collaboration reliability work. |
831870d
into
tt-a1i:codex/lean-agent-communication
|
Thanks for the real CLI/HTTP/SQLite/PTY coverage and cross-platform validation. I see the Windows affected-suite results, the restart replay test that records actual stdin, and the successful latest-head CI. Those establish useful correctness evidence. Before we decide whether to bring the entire lean-communication branch into main, could you clarify the actual before/after validation?
This is a follow-up evidence request on the already-merged PR, not a claim that the existing real integration tests are missing. The main-branch integration is currently paused. |
|
Thanks for distinguishing the merged protocol fix from integration of the broader branch. Here is the scope of the evidence I can substantiate:
Accordingly, I withdraw any implication that these integration tests establish an efficiency improvement or that the broader branch is ready for main based on that claim. Main integration remains paused; the requested diagnostic comparison and performance/real-agent evidence remain unvalidated. This comment adds clarification, not a claim that those experiments have been completed. |
Problem
Cancelling a delegated subtree after its member exits logs an expected PTY-inactive error. The lean-communication branch also has tests that still report queued dispatches or use obsolete prompt, schema, and send-prompt contracts, preventing CI from validating the current protocol.
Value
Keep real cancellation failures visible while removing the exited-worker diagnostic. Restore meaningful delivery/report/replay coverage against the current protocol, including Windows PTY behavior.
Approach
PtyInactiveErroronly after confirming that no active run remains. Durable cancellation and pending accounting are unchanged.@lydell/node-ptydependency instead of a stale hardcodednode-ptypath. Keep the real stop and stderr assertions.Refs #50. This targets
codex/lean-agent-communication; it does not complete the broad reliability investigation or change report eligibility.Validation
Windows / Node 24.14.1:
corepack pnpm check,corepack pnpm build, andgit diff --checkpassed.tsc --noEmitexposes pre-existing branch errors; production build compilation and the selected upstream checks passed.One earlier Windows/Node 26 package smoke reported a SQLite disk I/O error. It did not recur locally or in the same-code upstream rerun; its cause remains unconfirmed. The final empty commit only triggers CI because GitHub requires upstream admin rights for direct reruns.
Impact
Production behavior changes only for an exited-worker cancellation diagnostic. The remaining changes reconcile tests with the branch's existing delivery protocol. No dependencies or workflow permissions change. Windows terminal rendering is not used as proof of received payloads.
Self-Review
Four independent reviews covered failure boundaries (A), architecture and cleanup (B+), test evidence (B+), and protocol alignment (A-). The stopped-worker test was strengthened to stop the actual PTY and verify that its active run disappeared. All four reviews found no remaining blocking finding. Atomicity unit coverage is complemented by the retained real HTTP/SQLite outbox tests.
The subsequent PTY-package resolution fix also received four independent reviews (A, A-, A-, A) with no blocking finding.