Skip to content

server: fan ticket results out to each event subscriber - #113

Merged
joelteply merged 1 commit into
codex/s4-per-mind-integrationfrom
cormac/ticket-fanout
Nov 11, 2026
Merged

joelteply merged 1 commit into
codex/s4-per-mind-integrationfrom
cormac/ticket-fanout

Conversation

@joelteply

Copy link
Copy Markdown

A half-open learning event stream could consume a ticket result from the shared queue before the current core received it, leaving that core waiting indefinitely after reconnecting to a retained engine. Each subscriber now owns a queue, and terminal results are sent to every open subscriber.

Completed Cormac's handed-off implementation. Verified the rebuilt isolated CPU engine with tools/server/tests/learn-tickets.py, including two simultaneous streams receiving the same ticket result. The test also covers revoke/unload and no replay of results produced without subscribers. Build and live fixture passed on IntelMac; normal CI and core live-engine integration remain required. Core pin has not moved.

@joelteply
joelteply merged commit f310d4f into codex/s4-per-mind-integration Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant