Repository navigation
Description
From section 6 of the second external performance review (11-01), which kept four items in the capacity backlog. Narrowed 11-20 against main e08a1cb; three of the four are settled:
1.Done. Sonny: lists rank once per letter typed; browser commands share the process budget #819 admitted agent-browser commands into the shared process budget, and every call Sonny serves now takes a place in that budget's fair queue (sonny.tool_processesis not a whole-host limit.admitinsonny/src/served.rs).execwas already bounded. Sonny installs its own pinned agent-browser and agent-desktop #1036 replaced the trusted-copy admission and its per-agent scan with Sonny's own pinned installs.2. The sky's feed is unbounded.Not planned. Measured 11-08: the window drains about 250k to 500k events a second against the daemon's roughly 100k a second replay, so no backlog builds, and a bounded feed would make large replays trip client lag. Reopen only if a slow-consumer measurement shows growth.3. A status refresh reads each agent's turns one after another.Done by Each bot carries its whole status; /status reads it from the listing (#658) #831 (each bot row carries its status), Sonny: /status opens on histories read before, kept and read off the loop #834, and since then Sonny: a window lists its project once and follows it #1180, Sonny: a window's count builds again only the agents that moved #1195, Sonny: /status draws at once and fills in; closed agents leave it #1206 and Sonny: /status draws its card again without laying out every row #1225 (a window follows its project, counts only what moved, and/statusdraws at once and fills in).
What is left
4. Sky replay's start reads all history. To draw who had already told whom, the replay's prior state reads retained accepted/steered history before the requested window starts (Prior in sonny/src/sky.rs). The retained state is bounded, but the work to build it grows with history: at 1,010 agents and 80k turns it took 0.99 s on 11-08, linear in history.
Direction: keep pair state at checkpoints, or read it from an indexed summary, so a replay starts from the newest checkpoint before its window. Any memory comparison should replay a fixed persisted event trace, as the review noted.
Activity
lydakis commentedon Nov 2, 2026
Item 3 is measured in #658. A warm
/statusrefresh takes 0.65 s per 1,000 agents in one project, and the first, cold one takes 3.2 s. The pane refreshes every 2 s inside Sonny's loop. That issue lists a client-only option alongside the daemon projection.Generated by Claude Code
Sonny: lists rank once per letter typed; browser commands share the p…
lydakis commentedon Nov 14, 2026
11-14 reconciliation against main 9556455:
execwas already bounded (SCRIPTS/LIVE). Separately, the agent-browser/desktop trusted-copy admission will move to Sonny-owned installs under~/.agent/sonny/programs(approved 11-14), which removes its per-agent scan.Generated by Claude Code
[-]Capacity backlog: what is left after the fleet perf review (sky feed, status reads, tool host bounds, sky replay start)[/-][+]Capacity: sky replay's start reads all retained history[/+]lydakis commentedon Nov 20, 2026
Narrowed against main
e08a1cb. Item 1 is done: every served call now takes a place in the process budget, and #1036 removed the trusted-copy scan. Item 2 was left alone on purpose after the 11-08 measurement. Item 3 was done by #831 and the later window work (#1180, #1195, #1206, #1225). Only item 4, the sky replay's start, is left, so the title and body now cover just that.Generated by Claude Code