Skip to content

test(gateway): track actual history dispatch workers - #170080

Merged
steipete merged 1 commit into
mainfrom
dbasync/redmain-history-dispatch
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
dbasync/redmain-history-dispatch

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.

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.
@steipete
steipete merged commit b8ab5de into main Oct 12, 2026
37 of 39 checks passed
@steipete
steipete deleted the dbasync/redmain-history-dispatch branch October 12, 2026 18:18
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Oct 12, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant