Design 47 H2: H-A-500 the runner's take-in consumer and cheap late events; H-A-501 per-message TTL on the builds stream

This commit is contained in:
2026-11-22 22:09:33 +01:00
parent 4954d68add
commit 48cff5171a
@@ -1234,3 +1234,14 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
- **H-A-497 second addendum (a chain key a stop left is deleted at the start, 02:40)** A chain runs only inside one
indexer process, so a chain key found at the indexer's start was left by a stop; the start deletes every chain key
before its own take-in, so no ask answers "a chain runs" for a chain that does not. P-failure-loud.
- **H-A-500 (the runner hears a take-in on its own consumer; a late event of an ended ask costs nothing, 02:55)** 22 Nov
22:07: the runner heard source 118's take-in ten minutes late, because its one serial event consumer was working
through hundreds of ask-taken and step-progress events of the cancelled main.309 at two to three seconds each. So:
(a) an event for an ask whose run has ended is acknowledged at once from the runner's own state, with no read of
another part (it says one journal line per hundred, not per event); (b) take-in.taken (and pipeline cancel/start
asks) are heard on a consumer of their own, so a pipeline is created within seconds of its take-in whatever the
step traffic. P-failure-loud; the NATS-native rule (events first, nothing waits behind unrelated traffic).
- **H-A-501 (per-message TTL on the builds' event stream, 02:55)** The indexer's version-reserved publishes carry a
per-message TTL and the stream refuses them ("per-message TTL is disabled", err 10166), so every such event is
given up after five tries. The grants part composes the mesh-builds event stream with per-message TTL allowed
(the SDK's events template says so for every event stream), and the publisher's TTL header stays. P-failure-loud.