S16: spike before the swarm (about a day) #36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blocks: #37, #38, #39, #40
Swarm track: one live view of every pane on every machine. Panes form clusters on their own, and anything that needs you lifts out to a "needs you" rail. Today the page shows one host's tabs at a time, and attention is a four-state badge per tab. This spike measures what the rest of the track needs.
Done 2026-10-02, apart from the phone runs. See spikes/s16-swarm and PLAN.md's "S16". Merged in
b0d6c1b.StateStatebroadcasts are 34/s at 195 KB each: 6.6 MB/s to every client, and 14.7% of a core (20.4% with 5 clients). Field-level deltas at 1 Hz carry the same plus activity in 4.6 KB/s (0.44 KB/s compressed)last_output_msinStatus, set under the lockState::outputalready takes. The mux turns it into a rate; no timer, and parked panes aren't wokenkindfrom/procargv first: 52 of 54 labelled commands right, and it catches aliases (cforclaude). Only 8 of 105 real commands ran inside a git repoStill to run: a real phone for the canvas test, daemons on different addresses, a local control relay, and classification on real work (the real history was too thin to measure).
The plan as written:
running, attention,current/lastcommand, bytes per second, and last output time.State. Measure that at 500 panes against field-level deltas batched to 1–2 Hz.last_output_mscost when kept in the PTY reader? Does it wake parked panes (M9)?/api/panes/{id}/capturedoes), at 1 Hz, for 50 visible panes? Compare that with sending output bytes and rendering on the client.procinfo.rs);Output: a short write-up in
spikes/s16-swarm/, with numbers for each item and go/no-go on delta summaries, server-side previews and Canvas 2D.Part of the Swarm MVP (#44). The MVP cut of this ticket is listed there; anything not on that list is after the MVP.
Done 2026-10-02, apart from the phone runs: spikes/s16-swarm/README.md, merged in
b0d6c1b. Results are in PLAN.md under "S16: swarm spike": go on delta summaries, previews and Canvas 2D (up to about 2,000 panes). Still to run: a real phone, daemons on different addresses, and a local control relay.Closing: done 2026-10-02 and on main (
b0d6c1b; PLAN.md, S16; spikes/s16-swarm/README.md). Its findings are in #37, #39 and #40. Still pending: a real phone run of the canvas, fleet connections across a real tailnet, and classification on a week of real panes, noted in the README.