Expand description
The memory delivery’s shared state: the deliveries being composed and cached, the
frontend fallback’s claims, the compaction boundaries a block’s CLI wrote and the
notices parked behind them. The handlers (server/memory_delivery_handlers.rs) drive
it; the stdout readers under blockcontroller record the boundaries and take the
parked notices, so it sits below both.
Structs§
- Delivery
- Delivery
Key - Delivery
State - Deliveries and fallback claims, behind one lock so “who claimed this event first” is decided atomically.
- Entry
Size - One item of a delivery as the notice shows it: one card row
(SPEC_CONTEXT_DELIVERY_2026_09_30 §3.1, §3.4).
labelandsourceare what older builds read; the rest is per-item detail. Sizes are those of what was delivered, so an item cut by the part cap reports its slice. - Fallback
Delivery - A re-delivery srv composed for the frontend’s fallback (CD2b).
- Startup
Detail - What a
startup_fileitem adds (SPEC_LAUNCH_CONTEXT_WORKSPACE_RULE_AND_ STARTUP_FILES_2026_09_30.md §4.1,backend::startup_files).
Enums§
- Fallback
Claim - What the fallback’s claim found.
Constants§
- BOUNDARY_
ORIGINS_ MAX - How many compaction boundaries’ origins are remembered. Boundary uuids are unique across blocks.
- CLAIM_
WINDOW_ MS - How long a claim on one event (a session start, a compaction) holds: the
hook and the frontend’s fallback for the same event arrive within
seconds of each other, and one block has no two such events that close.
Not for a fallback that waited behind a turn: a dated claim
(
DeliveryState::claim_event) covers that. - DELIVERY_
TTL_ MS - How long a composed delivery stays cached for its remaining parts and acknowledgements. The hooks of one session start run within seconds.
- EVENT_
SLACK_ MS - A fresh session’s
agentmux_session_outcomeframe can be written just after the respawn it reports (retry_after_resume_failure), so a hook delivery composed up to this long before the frame is still that session’s. - PARKED_
NOTICE_ WAIT - How long a compaction’s notice waits for its boundary before it is written anyway, so a CLI that never writes one still leaves the card.
- PENDING_
POLL - PENDING_
WAIT - How long the fallback waits for a hook delivery still in flight, and how often it looks. A hook that never finishes must not leave the agent with no memory, so after this the fallback delivers instead.