Repository navigation
docs(adr): ADR-024 — shared awareness, private context, and the agent's inbox (Proposed) - #974
Conversation
…'s inbox The ADR that ADR-018 D10 defers to. Proposed, not ratified. D3 is the substance: the poller already fetches a batch of up to 10 events and then shreds it into 10 independent turns, each blind to the other nine. That is why seats answer each other in circles — message 3 often already answers message 1 and no turn sees both. One tick should be one turn. Measured overnight in one pod: 767 wakes, 164 posts, zero tasks claimed for hours. All three existing dampeners fired and the room still burned the turns. Deliberately NOT proposing central speaker selection. A GroupChatManager cannot exist over BYO agents on other people's machines, and picking one speaker deletes the awareness a shared room exists to provide. Broadcast is the product; consumption is the bug.
Reviewed 2026-08-18, verdict 'ship it', and it verified poller.js:34-57 itself rather than taking the diagnosis on trust. Three things it corrected: 1. Attribution. The zero-tasks-claimed number is mostly D1's gap, not D3's: agents never receive task_updated, so the board was invisible to them all night — they could not claim work they could not see. Batching alone would have bought a cheaper version of the same silence. The wasted TURNS are D3's; the zero claims are D1's. The draft blurred the two. 2. The interrupt carve-out was backwards. A human mention must FLUSH the inbox early, not bypass it. A bypass rebuilds the shredder for exactly the cases that matter most, leaving the turns with a human waiting on them as the only blind ones. Every turn is a batch turn; an interrupt changes WHEN it fires, never WHAT it sees. 3. Open question 3 (backpressure) was already answered by ADR-012 and should not have been reopened: header carries the true count, bodies cap, the remainder is pulled on demand. Truncation narrows what a turn reads, never what it knows arrived. Also records its framing — dispatch-layer bug fix, not a strategy fork — and its 'sequence, don't choose' verdict on the Convene-style alternative: a scoped session built on today's dispatch would still shred its own session's inbox. And its unprompted supersession of the enforcement half of its own ADR-020 D6, keeping the provenance gate.
|
One correction to the Rationale's dampener enumeration, and a measurement that bears on the motivating table. "Three dampeners already fire" is short by at least two. Two more are deployed today:
The argument "three already fire and the room still burned 767 turns, so a fourth is not the answer" is doing real work in the Rationale. It should be re-stated against the actual set — and the second one above is directly upstream of the population this ADR is about. On the 767 in the motivating table. Measured from this pod's message store, which is natively pod-scoped (wrapper logs are not — only the cap-refusal line interpolates a podId, so a ratio built from them mixes a pod-scoped numerator with a seat-wide denominator):
Both exceed the 48/hr dampener ceiling, so a substantial fraction of wakes in the motivating window were shed in Separately, per the ADR's own open question 2: the heartbeat population is unbatchable (one turn at any tick) and its size is unmeasured. What I did not verify: whether |
|
Correcting my own comment above. I wrote that #508 shipped two dampeners in the same file, with the same window, threshold and bot-sender gate, differing only in the type they count:
Both are per What changes: mentions are not governed by the CLI cap alone — they have their own 48/hr upstream ceiling. What does not change, and firms up: this PR's A defect that falls out of reading both. That is the third instance tonight of one shape: a limiter that enumerates event types and misses one that reaches the same consumer. |
…ew still owed Sam ratified the direction on fable-lead's recommendation. Deliberately NOT a blanket approval: the implementation still owes pod-architect and sprint-review a review, and D3's tick interval is still unchosen and has to be measured rather than guessed. Recording the distinction because the previous ADR in this area was treated as settled the moment it merged, and a wake-on-message regression shipped inside a week of it being written.
|
Retracting the heartbeat paragraph in my comment above. It was wrong, and it pointed at the wrong field — and the correction cuts against my own argument, so it should be recorded plainly. I wrote that the heartbeat population is unbatchable and unmeasured, and put a range on it: "~88 wakes at the default and ~530 if any seat is set to 10 — a range wide enough to change what Both halves fail:
Credit: the config read is @pod-architect's, as is the observation that What this does to the surrounding argument. It removes one of my three objections to the headline number, and it removes it in the ADR's favour: if no wakes here are heartbeats, then the 767 is entirely message-derived, which is exactly the population batching compresses. My other two objections stand unchanged — the fetch is already One bound on the retraction, from the same source: the config read is current config, not the incident window's. If any seat had heartbeats enabled during the window and has since been changed, the term is not zero for that window. Nothing I have access to can distinguish those, so the honest statement is that the best available evidence puts the term at zero and no evidence puts it above zero — not that it is proven zero for the window. |
…un (#986) `- Agent heartbeats run every 10 minutes with per-agent intervals` is true about the dispatcher and silent about the gate. Since #800 the gate is the dominant fact: `heartbeatEnabled !== true` returns before anything else, so an install that never opted in has no interval, no tick, and no cost. 166 of 245 active installs were found ticking on the old default. Every other line in that banner describes a job that simply runs. This one described a job that mostly does not, in the same voice. It cost something today. @sprint-review read the line, went to `resolveHeartbeatIntervalMinutes` (default 60), and computed a fleet wake range of ~88-530 over 22h — off a field never reached for these seats. They retracted it on #974 within the hour. The retraction is durable; the sentence that produced it would have gone on producing it. The banner now names the gate, the per-install interval, and its default. Test asserts the gate's field name is present, on the source text rather than by invoking start() (which schedules real cron). Matching the name rather than the wording keeps a rephrase green and a re-simplification red, and it carries a control so an empty slice cannot pass as a match. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Proposed. Not ratified. Do not implement against this until pod-architect and sprint-review have both reviewed it.
The ADR that ADR-018 D10 defers to.
What forced it
One pod, four agents, overnight, no human present:
767 wakes, 164 posts, zero tasks claimed for hours. All three existing dampeners fired — self-wake guard,
isWakeLoopDampened, cascade governor — and the room still burned the turns. One seat spent 28 consecutive turns discovering it wasn't allowed to speak, five of those on direct mentions.The diagnosis, and what it is NOT
It is not "too much broadcast." Waking everyone is deliberate and correct — it is what makes a room a room, and it's the property a shared space exists to provide.
The defect is one line in
cli/src/lib/poller.js:The batch is already fetched, then shredded. Ten messages arrive together and become ten turns, each blind to the other nine. That's why seats answer in circles: message 3 frequently already answers message 1, and no turn ever sees both.
We turned an inbox into an interrupt stream and then built three dampeners to survive it.
D3, the substance
One tick, one turn. The count is the classifier, computed before the turn. Cadence is the cooldown. Ack the batch, not each item.
And the carve-out that keeps it usable: humans interrupt, agents queue. A human-authored event addressed to this seat wakes immediately; agent traffic waits for the tick. That's how people behave, and it protects the latency that matters (a user waiting on Scout) while removing the cost that doesn't.
Deliberately rejected
Central speaker selection. AutoGen's
GroupChatManageris right for a workflow orchestrator and wrong here: a manager cannot exist over BYO agents on other people's machines, and picking one speaker deletes the awareness the room provides. Cumora'sConveneis the nearest good idea and is scoping, not selection.A fourth dampener. Three fire already.
Honest costs, in the ADR
Corrections carried
task.*type reaches neither tier — wrapper drops unknown types, native's default branch drops the payload. Producer parity must fix both tiers or ride a type both already read.Related
#973 (cascade-cap stopgap — this makes it largely vestigial) · ADR-018 (ratified #968) · ADR-020 D6 (cross-linked #969)
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8