Skip to content

Add broker shared control ring primitives#1072

Merged
wdcui merged 20 commits into
uliteboxfrom
wdcui/ulitebox/broker-control-ring-primitives
Jul 23, 2026
Merged

Add broker shared control ring primitives#1072
wdcui merged 20 commits into
uliteboxfrom
wdcui/ulitebox/broker-control-ring-primitives

Conversation

@wdcui

@wdcui wdcui commented Jul 23, 2026

Copy link
Copy Markdown
Member

Adds hostile-peer-safe shared control ring primitives: one exact memfd mapping with independent 64-slot SPSC request and response rings. Producers release-publish non-wrapping sequences; consumers copy and validate owned snapshots; producers validate shared reclamation heads.

Adds process-shared futex wait/wake over wrapping hint epochs. Empty and Full return race-free wait epochs, publication commits state before advancing its epoch, and role-bound endpoints avoid exposing raw mapping access.

Production requests and responses remain socket-framed; control ring integration is deferred to the next PR.

@wdcui wdcui changed the title Add broker shared control rings Add broker shared control ring primitives Jul 23, 2026
wdcui added 20 commits July 23, 2026 15:06
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ac86dd2d-0280-4d7b-87a8-5654ad1503a6
@wdcui
wdcui force-pushed the wdcui/ulitebox/broker-control-ring-primitives branch from eead0e4 to 64e8f27 Compare July 23, 2026 22:06
@wdcui
wdcui enabled auto-merge July 23, 2026 22:07
@wdcui
wdcui added this pull request to the merge queue Jul 23, 2026
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

Merged via the queue into ulitebox with commit c7c5dc3 Jul 23, 2026
8 checks passed
@wdcui
wdcui deleted the wdcui/ulitebox/broker-control-ring-primitives branch July 23, 2026 22:19
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