Repository navigation
test(gateway): track actual history dispatch workers - #170080
Merged
Merged
Conversation
The cancellation fixture compared the last unique worker across reads that may legitimately use different lanes. Record the actual worker for every history dispatch, verify the cancelled task's matching native reply before consumer rejection, and check survival and native-close policy for each dispatched reader. Keep the exact history content assertions. Final-close admission retirement in 19eddcf (#169956) allows a reopened read to use discovery before a later read uses the history lane. This is source-supported fixture contract alignment, not a bisected first-bad attribution. Test-only: 31 lines added, 19 removed; no timeout increase or production change. Validation: pnpm test src/gateway/session-history-worker-lifecycle.test.ts --maxWorkers=1 passed 14/14 on composition 7732cef (516.21s runner, 576.27s wrapper), with a clean final checkout and no owned survivors or restoration blockers. The repair patch is unchanged from the reviewed and tested V13 version. Integration preserves the independent runtime-config snapshot setup introduced on main by 7e48efb (#169714), so the complete integrated file is different from the tested V13 blob. Scoped Codex review found no actionable issue in the repair. V12 lint/type gates and V10 build, dependency/Knip, topology and ratchet gates passed on compositions containing the repair; those results are prior-composition evidence, not a focused rerun of the integrated file or certification of current main.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 13, 2026
The cancellation fixture compared the last unique worker across reads that may legitimately use different lanes. Record the actual worker for every history dispatch, verify the cancelled task's matching native reply before consumer rejection, and check survival and native-close policy for each dispatched reader. Keep the exact history content assertions. Final-close admission retirement in a2cefc9 (openclaw#169956) allows a reopened read to use discovery before a later read uses the history lane. This is source-supported fixture contract alignment, not a bisected first-bad attribution. Test-only: 31 lines added, 19 removed; no timeout increase or production change. Validation: pnpm test src/gateway/session-history-worker-lifecycle.test.ts --maxWorkers=1 passed 14/14 on composition 7732cef (516.21s runner, 576.27s wrapper), with a clean final checkout and no owned survivors or restoration blockers. The repair patch is unchanged from the reviewed and tested V13 version. Integration preserves the independent runtime-config snapshot setup introduced on main by 5dbf215 (openclaw#169714), so the complete integrated file is different from the tested V13 blob. Scoped Codex review found no actionable issue in the repair. V12 lint/type gates and V10 build, dependency/Knip, topology and ratchet gates passed on compositions containing the repair; those results are prior-composition evidence, not a focused rerun of the integrated file or certification of current main.
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.
test(gateway): track actual history dispatch workers
The cancellation fixture compared the last unique worker across reads that may legitimately use different lanes. Record the actual worker for every history dispatch, verify the cancelled task's matching native reply before consumer rejection, and check survival and native-close policy for each dispatched reader. Keep the exact history content assertions.
Final-close admission retirement in 19eddcf (#169956) allows a reopened read to use discovery before a later read uses the history lane. This is source-supported fixture contract alignment, not a bisected first-bad attribution. Test-only: 31 lines added, 19 removed; no timeout increase or production change.
Validation: pnpm test src/gateway/session-history-worker-lifecycle.test.ts --maxWorkers=1 passed 14/14 on composition 7732cef (516.21s runner, 576.27s wrapper), with a clean final checkout and no owned survivors or restoration blockers. The repair patch is unchanged from the reviewed and tested V13 version. Integration preserves the independent runtime-config snapshot setup introduced on main by 7e48efb (#169714), so the complete integrated file is different from the tested V13 blob. Scoped Codex review found no actionable issue in the repair. V12 lint/type gates and V10 build, dependency/Knip, topology and ratchet gates passed on compositions containing the repair; those results are prior-composition evidence, not a focused rerun of the integrated file or certification of current main.