T4: the runtime answers mesh/queue.waiting, a holder's own queue read without consuming

mesh/queue.waiting {seat} answers {asks: [{id, module, age_seconds}], capped}: for each worker the
holder's membership lists on the seat's stream, every message after the worker's delivered
sequence, read by a direct get by subject, never consumed; at most 768 KB; refused for a seat the
module holds no queue of (ADR 0596: a holder reads its own store).

Builds: design 47 H2 §777, H-A-410
This commit is contained in:
2026-11-22 00:58:23 +01:00
parent bebf2538db
commit 917195a302
4 changed files with 157 additions and 2 deletions
+6
View File
@@ -500,6 +500,12 @@ func Start(module, entry string, env []string, mesh Bus, logf func(string, ...an
if answered, err = mesh.Seat(strings.TrimPrefix(m.Method, "mesh/seat."), m.Params, nil); err == nil {
result = answered
}
case "mesh/queue.waiting":
// The asks that wait on the holder's own queue of a seat (design 47 H2 H-A-410).
var answered json.RawMessage
if answered, err = mesh.Seat("waiting", m.Params, nil); err == nil {
result = answered
}
case "mesh/seat.take", "mesh/seat.answer":
mu.Lock()
seatTaker = c