Grants: compose each seat's one shared worker; the builder binds it again after a deletion (H-A-468) #324

Merged
mesh-tools merged 3 commits from fix/seat-worker into main 2026-11-22 10:49:44 +00:00
Member

Why

The H2 builder pulls build steps through the seat's shared worker SEAT_MESH_BUILDS_worker, but no part created it: 2,248 asks waited unread on SEAT_MESH_BUILDS. The builder's whole test had made the worker itself, so nothing caught it.

What

Three commits:

  • grants: compose and create each seat's one shared worker — the grants part composes and creates the worker for every accept seat not pulled by kind, and holds it equal to mesh-sdk's SeatQueue.
  • grants: a seat's holder hears its shared worker created and deleted — the holder is granted the subscribe on the consumer CREATED/DELETED advisories.
  • builder: bind the seat's worker again after a deletion — the builder rebinds when its worker is deleted and created again.

Tests

Rows in the grants and builder tests, each fails without its change. The untagged suites and the integration packages are green.

Design: novox/hq design/47-H1-answers-59 H-A-468

Reviewed-by: mesh-code-reviewer@shanks at 0f65240139
Pushed-by: lead-47@shanks

## Why The H2 builder pulls build steps through the seat's shared worker `SEAT_MESH_BUILDS_worker`, but no part created it: 2,248 asks waited unread on SEAT_MESH_BUILDS. The builder's whole test had made the worker itself, so nothing caught it. ## What Three commits: - **grants: compose and create each seat's one shared worker** — the grants part composes and creates the worker for every accept seat not pulled by kind, and holds it equal to mesh-sdk's SeatQueue. - **grants: a seat's holder hears its shared worker created and deleted** — the holder is granted the subscribe on the consumer CREATED/DELETED advisories. - **builder: bind the seat's worker again after a deletion** — the builder rebinds when its worker is deleted and created again. ## Tests Rows in the grants and builder tests, each fails without its change. The untagged suites and the integration packages are green. Design: novox/hq design/47-H1-answers-59 H-A-468 Reviewed-by: mesh-code-reviewer@shanks at 0f65240139f61fc499e8e4540632e9a317142dd8 Pushed-by: lead-47@shanks
mesh-tools added 3 commits 2026-11-22 10:49:37 +00:00
The builder binds SEAT_MESH_BUILDS_worker and waits for the broker's part to make it, but the grants part made shared
workers only for seats pulled by kind, so no part made it and the seat's asks piled up unread. AskStreamsOf now keeps
the worker SeatQueue returns for every seat with an accept that is not pulled by kind; the grants principal carries
them, so AccountConsumers grants their create and the consumers pass creates them where the bus lacks them, leaving a
held one as it is and deleting none.

Builds: design 47 H2 H-A-468 (1)
The builder binds the seat's worker when the bus says it was created and again after a deletion, but no holder was
granted those advisories, so under scoped grants it would never hear them. Each holder of a seat with an accept not
pulled by kind is now granted the subscribe of CREATED and DELETED for that seat's worker. The worker the grants part
creates is SeatQueue's as returned, every shared setting copied, and a test holds it equal to SeatQueue's.

Builds: design 47 H2 H-A-468 (1), addendum, second addendum
The builder bound the seat mesh-builds' worker once, under a sync.Once, and stopped hearing the bus's advisories after
that, so a worker deleted and made again by the grants part was never pulled again and the asks piled up. The
advisories CREATED and DELETED are now heard for as long as the builder runs: a deletion lets the worker go and says
so, and a creation binds it again. The step test deletes the worker, makes it again and has an ask ended through it.

Builds: design 47 H2 H-A-468 (2)
mesh-tools merged commit 81f866c9e5 into main 2026-11-22 10:49:44 +00:00
mesh-tools deleted branch fix/seat-worker 2026-11-22 10:49:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-delivery#324