The drain's rows join the stopping runtime's table, the settings reader joins the start's cases, and
the pull through a bundle's channel joins the take through it: 162 test functions become 159, every
case kept (review round 1, finding 4).
Builds: design 47 H2 §819
The page watch ignored delete markers, so a reader following pages of a bucket with history kept
a deleted key's last value. A kept delete (a purge reads as one) is now an entry deleted: true with
no value at its sequence, seen-again like any message (review round 1, finding 1, state.go:375).
Builds: design 47 H2 §779, H-A-451 (1), H-A-382 (2)
SeatAnswer answered the drain's unanswered error as {"error": "answered nothing"}; it now sends no
reply, as answerCalledOn does, so the caller's kept call meets the next runner (review round 1,
finding 2, seat.go:222).
Builds: design 47 H2 §813 (12), H-A-369
mesh/queue.waiting reads from each worker's acknowledgement floor, so an ask a worker holds or
handed back is listed with again: true; the holder tells the two apart by its own state taken.
Builds: design 47 H2 §777, H-A-410 (second addendum)
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
drain-bound, kept-call-pace-first and kept-call-pace-max are placed in no file: the process reads
them from MESH_CONFIG_<KEY>, so each is marked "runtime": true, which the manifest validator asks.
Builds: design 47 H2 §775, §813 (12), H-A-370
The bus package waited within Until's fixed 5 s eighteen more times, the kind
the per-node test's fix names; raised in its one place, Until in meshtest,
which runtime, console, firstview and provide wait with too. The bound only
ends a wait that never hears what it waits for.
Builds: design 47 H H-A-363 (fix-a-bug-met-twice: a fixed bound a loaded machine overruns)
mesh/state.put answers {"revision", "fill": {"count", "bytes", "max_bytes"}}, buscalls.Fill's
form, read from the bound stream's info once per put, since the key-value put answers no figures;
a bundle's prune reads it from the put.
Builds: design 47 H2 DMC-14, H-A-350, H-A-386
mesh/state.page reads a state from an ordered watch starting after the cursor's sequence, never a
replay of the bucket per page: each kept message once across the pages of a read, a key's older
kept revisions included, at most 768 KB a page, next the opaque cursor, empty at the end. A value
written after the read reached its bucket comes marked seen-again (the cursor carries that mark;
the runner keeps nothing per read); a deleted key gets no entry. A state kept one bucket per node is
read one node's bucket after another.
Builds: design 47 H2 §779, H-A-254, H-A-382
Under load TestAPerNodeStateIsServedAcrossEveryNodesBucket failed 2 of 30: a
bucket made during the watch is taken in on the bus's creation advisory, which a
loaded machine delivers after mt.Until's fixed five seconds. The test now waits
as the watch hands each change over, bounded only for a watch that never hears.
Builds: design 47 H H-A-363 (fix-a-bug-met-twice: a fixed bound a loaded machine overruns)
node-tools declares drain-bound (30s), kept-call-pace-first (1s) and kept-call-pace-max (30s) as
duration settings; the runner reads the pace through the SDK at its start, as it reads its drain
bound, and stops before it serves on a value that is no duration.
Builds: design 47 H2 §775, §813 (12), §781, H-A-370, H-A-377
The runner reads its setting drain-bound as the node-engine composes it (MESH_CONFIG_DRAIN_BOUND)
with the SDK's duration reader, and stops before it serves on a value that is no duration.
Builds: design 47 H2 §813 (12), §781, H-A-369, H-A-370, H-A-377
A refusal would end the caller's kept call; left unanswered, the kept call paces and meets the new
runner. The ask made once the drain began ends Unanswered, so the bus sends its caller nothing.
Builds: design 47 H2 §813 (12), H-A-369
A hearing's loops, SeatTake's heartbeat and followGrants' retry loop outlive the
call that started them and read the package's settings on every turn; a test
that sets a setting back as it ends then raced the loop (the race detector:
streams_test.go:232's cleanup write of RebindEvery against the rebind loop's
read, in TestAConsumerNamedBeforeItExistsIsBoundOnceItDoes at -count=30). Each
loop now takes RebindEvery, NakDelay, EventHeartbeat, WorkHeartbeat,
GrantsRetry, GrantsRetryMost, GrantsPatience and StateTimeout once, as consumes
already took IdleHeartbeat and its tick hook.
Builds: design 47 H H-A-363 (fix-a-bug-met-twice: a goroutine outliving its settings)
A worker bound for a pull was kept for the process, so a later connection's pull
used a worker bound on a closed connection and answered "connection closed"
(every run of TestAHolderPullsOneMessageWhenItHasRoom after the first). The
bound workers and the pulled messages are now the Conn's.
The two tests that failed main.165 and main.115 asserted on bus figures before
the bus had delivered them: the worker's pending count right after a publish, a
no-wait pull right after a publish, a callback counter read when a flush
returned, a 300 ms delay and a 2 s ack wait a loaded machine overruns. They now
count binds on a channel the watcher's reader fills, pull with a wait that ends
at the delivery, prove "nothing fetched ahead" by the second message's first
delivery, and use bounds a loaded machine stays within.
Builds: design 47 H H-A-363 (fix-a-bug-met-twice; whole-module tests under load, H-A-327)
A wait by seat and event name was refused for a seat the catalog half's own definitions do not
name (the runner's mesh-pipeline-runner.pipeline-ended, defined in the delivery repository's
contracts module), though the seat list declares the event under the seat's events family. Every
seat of the seat list is now an emitter by its declared events.
Builds: design 47 H2 §821, H-A-343
Every tool call and seat verb the tool runner serves hands the bundle the ask id the kept call set
in the header x-ask (stdio.AskHeader) under _meta mesh/ask (stdio.MetaAsk), beside mesh/call; a call
whose header carries none names none.
Builds: design 47 H2 §775, H-A-351
Once told to stop, the tool runner makes no new ask of a bundle (a call after the stop is refused),
waits for the asks in flight within the drain bound (30 s by default), cuts each still in flight at
the bound with a journal line naming the bundle, the verb and the call's age, leaves its caller
unanswered (a transport fault), and only then stops its bundles itself.
Builds: design 47 H2 §813 (12), H-A-342 (2), H-A-353
The runtime asked the bucket's stream info before every get, put, delete and
listing, so each state read was two answers on the bus (a third of the night's
flood came this way, ten thousand reads per sweep). A Conn is one account's
connection; it now keeps one binding per bucket, shared by concurrent askers,
and binds again once when the bus says the bucket is gone.
Builds: design 47 H H-A-251
The fill was a listing of every description in the store, deleted chunks'
leftovers included; a receiver reading it per chunk made one connection read
about 14 MB/s. The fill is now one stream info request: its bytes, its cap,
and its live subjects as the count.
Builds: design 47 H H-A-227
The bus package's doc names the proof, so node-tools rebuilds against the SDK version the same merge call publishes; go.mod keeps mesh-sdk at the zero version.
Builds: design 47 H §5 step 7, G §370
Review round 1 (P7): the runner's bind copied the SDK's claim wrapper and its
caller lookup. It now calls process.ConsumeOnce, which claims, pulls and
releases (at a stop, or once a drain or the bus ended the loop, before its
Closed is closed), naming the claim for the module whose hearing it is.
Builds: design 47 H H-A-197, H-A-196
A tool runner built before H-A-132/133 ran two pull loops on the indexer
bundle's one durable, each event reached one loop only, and nothing said so;
the SDK's guard (H-A-196) could not see it, since the runner bound through the
bus client directly. hearing.bind now claims each durable with
process.PullOnce, naming the runner's hearing and the part that asked it, and
releases the claim as the loop is stopped or drained, or as the bus ends it,
so a re-serve (which stops its old loop first) binds again without a refusal.
The heartbeat test's second consume pulled the same durable: it gets its own.
Builds: design 47 H H-A-197, H-A-196
Review round 1. A ledger binding heard while a module was loaded again
made refreshRepairs serve the repairs on the reload's stand-in, whose
subscriptions nobody stopped: the repairs were served twice, and still
answered after the runtime stopped. The stand-in is now marked as
reloading and the refresh leaves it alone; the reload serves the module's
repairs as its binding is when the load ends. The reload test holds a
bundle's start, issues the binding inside the reload, and asks a repair
after the runtime stopped: without the change it still answered (6 of 6
runs, GOMAXPROCS=1 and 24).
No test failed without keep's stop waiting for the heartbeat's goroutine.
The heartbeat test now holds one Say and stops meanwhile: stop must not
return before that Say has; without the wait it failed 50 of 50 runs at
GOMAXPROCS=1 and at 24.
Builds: design 47 H §774, H-A-160; principle 11
When a module's ledger binding came or went, refreshRepairs stopped every
subscription of its tools and served them all again, so a call in that
gap was dropped the same way as on a membership (H-A-158). serve is now
the one routine that changes a module's subscriptions, by tool address:
it keeps those still named, subscribes the new, then stops those no
longer named; refreshRepairs and the first serve both go through it, so
no tool is served twice or not at all.
The ledger test's later binding now comes and goes ten times, and the
module's own tool must answer the first call after each, within the
tests' 2 s bound; it failed without the change at GOMAXPROCS=1 and 24.
Builds: design 47 H §774, H-A-158, H-A-160; principle 11
TestTheRuntimeSaysItIsThereEveryInterval slept 70 ms and wanted three
beats at 20 ms: a loaded machine that did not schedule the heartbeat in
time failed it (main.20's integration step on the build node); and its
stop returned before the heartbeat's goroutine ended, so a beat could be
said after it ("said after it was stopped"). The ticks are now the
caller's (keep, beside Keep's own ticker), the test drives them and waits
on each beat, and stop returns once nothing more is said. Pinned to one
processor at idle priority beside six busy loops, the old test failed 13
of 100 runs; the new passes 100 of 100.
TestTwoWritersIncrementingOneCounterOnTheBusLoseNoUpdate bounded a
writer's tries at 1000, a guess: on one processor the scheduler lets one
writer win every round and the other lost its 1000 tries every time. A
write is lost only to the other writer's write, so the bound is the
other's count plus one.
Builds: design 47 H §774; principle 11
On every membership of a module, HandleCalled stopped each subscription
of a tool and subscribed again on the same subjects; a call the bus
routed in that window was dropped by the client in silence, and its
caller waited the runner's whole bound (30 s). On the build node this
was the 30 s of TestAReplacedBundlesOldToolStaysGoneOnTheNextMembership
and of TestTheLedgerRepairsAreToolsOfEveryLedgerOwner, and most of the
integration level's 72 s. Now a membership keeps every subscription whose
subject and queue it still names, subscribes the new ones, and only then
stops those it no longer names (make before break).
The test asks the served tool once after each of five memberships, with
the tests' own call bound of 2 s (principle 11); it fails without the
change. The runtime tests' call helper and the ledger listing wait that
bound, not the runner's 30 s.
Builds: design 47 H §774, H-A-158; principle 11
Review round 1: no test failed when serve went back to firstview.Start.
startViews starts the follower and answers the options runtime.Run is
given; its test holds that on a module's own account the follower binds
nothing and the runtime is given the hearer, and on the machine's
account the follower binds its own.
Builds: design 47 H §752, H-A-113, H-A-132, H-A-133
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
In a module's own runtime the branch follower (first views) and the
bundles each bound the module's durable <node>_<module>_tools with a pull
loop of their own, so each event reached one of the two: the catalog
revision of main.1 reached the follower and never the indexer's bundle,
whose revision verb answered none-yet. The runtime now binds the consumer
once, for the bundles, and hands each event to the follower after the
bundles took it (runtime.WithHearer); the machine's runtime keeps the
follower's own binding.
Builds: design 47 H §752, H-A-113, H-A-132
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
main's body is `serve(ctx)`, which the process calls with the service manager's signals and one integration test calls with a
credential file and the node-engine's environment: it serves a bundle's tool and seat verbs over a seat list read from a stand-in of
the seat mesh-catalog, waits a verb its definition's timeout, and rereads the list for a verb the first read does not name.
Builds: design 47 H §774, §760, H-A-16, H-A-61
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
The fixture state mesh-delivery-checker.owed, which the retiring checker keeps, is the assigner's `pins`: the three tests of the
file assert the same of a state watched by a module that is granted it.
Builds: design 47 H §764 (The checker), H-A-61
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
The row of an ask the router holds back as the fourth open one goes, and the router's refusal row names another refusal: the
operator channel keeps no limit on open asks, and its record no state `held-back` (mesh-sdk, mesh-contracts).
Builds: design 47 H §764 (The operator channel's limit), H-A-57
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
The `admitted` hook, its parameter of serveSeats and its comments go; the test rows that built definitions with Callers and Class
go with the field mesh-sdk removes. A seat's verb is answered for every caller.
Builds: design 47 H §752, §764 (Every seat contract), H-A-41
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
The console's surface holds the runner's seat definitions; a seat verb's call waits its `timeout`, and a timeout's text names the
bound waited, not a fixed 30s.
Builds: design 47 H §760, H-A-43
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
Tool gains RunWithin and Within; a bundle's tool call waits `within` where the seat verb it serves names a timeout, else
CallTimeout. serveSeats takes the bound of a verb's key beside `chunked`.
Builds: design 47 H §760, H-A-43
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
The runner reads the `timeout` (whole seconds) of a seat's verb from the seat list's definitions beside `chunked` and hands it to
the bus connection's ask (AskWithin, AskAsWithin, AskAsChunkedWithin); a verb that names none, a seat the definitions do not hold
and a module's tool wait the runner's own bound, RequestTimeout.
Builds: design 47 H §760, H-A-43
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy