Swarm MVP: every team pane in one view, and anyone on the team answers agents #44

Closed
opened 2026-10-02 05:36:27 +00:00 by jhgaylor · 2 comments
Owner

Tracks: #36, #37, #38, #39, #40, #45, #46, #47

The first shippable cut of the swarm track: one view of every pane your team can see, where any teammate can answer an agent's question or approval and send it the follow-up.


Where we start (2026-10-02).

  • Multiplayer is done (M12, M13 and M14 merged): roles, presence, driving, attribution and trust grants. So is the cloud work (M17/M18, M19 and M21): accounts, the relay, E2E, teams with signed rosters, team daemons and push through control. Nothing in the multiplayer track has to come first.
  • Gaps this MVP fills:
    1. Who approved isn't recorded. Editors may approve (authz.rs), and the request carries its Principal, but an agent block's approve and answer don't record it.
    2. Claude Code in a terminal pane gets a card only for AskUserQuestion (M6c's hook). Its tool permission prompts are only a needs_input badge, so a teammate can't answer them.
    3. Notifications through control can't answer. They only open the pane, because the service worker has no channel to the daemon.
    4. The daemon's own push (not through control) and the M14 trust-request push go to the owner only.
    5. The page holds one host at a time (#39), and nothing gathers everything a team can see into one view.

Order:

  1. #45 (half a day) and #36 (about a day), side by side. Both done 2026-10-02 (b0d6c1b).
  2. #37 and #38, cut to the MVP lines below, side by side with #46.
  3. #39, then #47.
  4. #40, cut to the MVP lines below.

The MVP cut of each swarm ticket:

  • #36 (S16): done. Go on delta summaries, previews and Canvas 2D. Its findings are folded into #37, #39 and #40.
  • #37 (M23): activity, kind, project and the summary subscription with role filtering. Later: on-demand previews. In the MVP, hover uses the existing capture.
  • #38 (M24): the reasons ask (questions and approvals), failed and done, with bundle keys, and the actions allow, deny, answer and dismiss. Later: exited, prompt detection for input, and rerun/restart/send.
  • #39 (M25): all of it.
  • #40 (M26): the field, cluster by project, machine, kind and person (from #47), tiles with hover peek, click to open the pane, the rail with bundles and #46's team answering, the phone's bottom strip, and a small fake fleet for Playwright. Later: live preview text, pulse clustering, the correlation toast and keyboard shortcuts.

Done when:

  • Two people on a team, on different networks, each with a laptop, a phone and two machines, plus one team daemon, see all of the team's shared panes in one swarm, grouped by person.
  • A Claude Code tool approval in a terminal pane on one person's machine lifts to both people's rails. The other person allows it from their phone, the card says who allowed it, and they send "now run the tests" as the follow-up.
  • The agent carries on, and the pane's history attributes the approval and the follow-up to the person who sent them.
**Tracks:** #36, #37, #38, #39, #40, #45, #46, #47 *The first shippable cut of the swarm track: one view of every pane your team can see, where any teammate can answer an agent's question or approval and send it the follow-up.* -------- **Where we start (2026-10-02).** - **Multiplayer is done** (M12, M13 and M14 merged): roles, presence, driving, attribution and trust grants. So is **the cloud work** (M17/M18, M19 and M21): accounts, the relay, E2E, teams with signed rosters, team daemons and push through control. Nothing in the multiplayer track has to come first. - **Gaps this MVP fills:** 1. **Who approved isn't recorded.** Editors may approve (`authz.rs`), and the request carries its `Principal`, but an agent block's `approve` and `answer` don't record it. 2. **Claude Code in a terminal pane** gets a card only for `AskUserQuestion` (M6c's hook). Its tool permission prompts are only a `needs_input` badge, so a teammate can't answer them. 3. **Notifications through control can't answer.** They only open the pane, because the service worker has no channel to the daemon. 4. **The daemon's own push** (not through control) and the M14 trust-request push go to the owner only. 5. **The page holds one host at a time** (#39), and nothing gathers everything a team can see into one view. **Order:** 1. **#45** (half a day) and **#36** (about a day), side by side. **Both done 2026-10-02** (b0d6c1b). 2. **#37 and #38**, cut to the MVP lines below, side by side with **#46**. 3. **#39**, then **#47**. 4. **#40**, cut to the MVP lines below. **The MVP cut of each swarm ticket:** - **#36 (S16): done.** Go on delta summaries, previews and Canvas 2D. Its findings are folded into #37, #39 and #40. - **#37 (M23):** `activity`, `kind`, `project` and the summary subscription with role filtering. **Later:** on-demand previews. In the MVP, hover uses the existing `capture`. - **#38 (M24):** the reasons `ask` (questions and approvals), `failed` and `done`, with bundle keys, and the actions `allow`, `deny`, `answer` and `dismiss`. **Later:** `exited`, prompt detection for `input`, and `rerun`/`restart`/`send`. - **#39 (M25):** all of it. - **#40 (M26):** the field, cluster by project, machine, kind and **person** (from #47), tiles with hover peek, click to open the pane, the rail with bundles and #46's team answering, the phone's bottom strip, and a small fake fleet for Playwright. **Later:** live preview text, pulse clustering, the correlation toast and keyboard shortcuts. **Done when:** - Two people on a team, on different networks, each with a laptop, a phone and two machines, plus one team daemon, see all of the team's shared panes in one swarm, grouped by person. - A Claude Code tool approval in a terminal pane on one person's machine lifts to both people's rails. The other person allows it from their phone, the card says who allowed it, and they send "now run the tests" as the follow-up. - The agent carries on, and the pane's history attributes the approval and the follow-up to the person who sent them.
Author
Owner

The swarm MVP is done (2026-10-02), apart from real phones and different networks. All of it is on main, each ticket cut to the MVP above: #37 (M23), #38 (M24), #46 (M29), #39 (M25), #47 (M30) and #40 (M26).

The done-when, as one test: web/e2e/swarm-mvp.spec.ts (de35bbb) walks all three in a single flow.

  • Setup: Jake and Sam are on a team. Each has a laptop, a phone and two machines, and there's a team box. Every daemon is reached through a local control's relay, standing in for different networks.
  • One swarm: both people's swarms show all of the team's shared panes. By person there are three groups: you, the other person, and the team.
  • The approval: Claude Code in a terminal on Jake's machine asks to run cargo test. Its PermissionRequest hook is fed S18's recorded inputs through illogical hook, and the card lifts to all four rails.
  • The answer: Sam allows it from the phone's strip, and every card says "Allowed by sam, HH:MM".
  • The follow-up: Sam sends "now run the tests".
    • On Jake's machine it needs Jake's trust grant first. On the team's box it goes straight through.
    • It reaches the agent through its inbox hook, and the agent carries on.
  • Attribution: illogical log %1 --who and history attribute the approval and the follow-up to Sam.

Also covered:

  • team-swarm.spec: private panes, and revoking or locking within a second.
  • team-answers.spec: a viewer's 403, and an Allow from a notification through the service worker.
  • swarm.spec: every cluster mode, bundles, and each action from the rail and the phone strip.
  • swarm-fps.spec: 500 panes at 60 fps, on the laptop and on a 4x-throttled phone.
  • The opt-in real Claude Code checks (agents_real team, swarm-real).

Docs: the README, docs/features.md, Claude Code in a pane in docs/cli.md (every hook in one block), the project page, and docs/releases/0.3.0.md.

Still pending:

  • Real phones: iOS notification actions, a service worker's WebSocket there, and the canvas on real hardware.
  • People on genuinely different networks.
  • Each ticket's after-MVP items: previews and live preview text; prompt detection and rerun, restart and send; pulse clustering; the correlation toast; keyboard shortcuts.
  • Two owners of one team box count as one principal when driving.
**The swarm MVP is done (2026-10-02), apart from real phones and different networks.** All of it is on main, each ticket cut to the MVP above: #37 (M23), #38 (M24), #46 (M29), #39 (M25), #47 (M30) and #40 (M26). **The done-when, as one test:** `web/e2e/swarm-mvp.spec.ts` (de35bbb) walks all three in a single flow. - **Setup:** Jake and Sam are on a team. Each has a laptop, a phone and two machines, and there's a team box. Every daemon is reached through a local control's relay, standing in for different networks. - **One swarm:** both people's swarms show all of the team's shared panes. By person there are three groups: you, the other person, and the team. - **The approval:** Claude Code in a terminal on Jake's machine asks to run `cargo test`. Its `PermissionRequest` hook is fed S18's recorded inputs through `illogical hook`, and the card lifts to all four rails. - **The answer:** Sam allows it from the phone's strip, and every card says "Allowed by sam, HH:MM". - **The follow-up:** Sam sends "now run the tests". - On Jake's machine it needs Jake's trust grant first. On the team's box it goes straight through. - It reaches the agent through its inbox hook, and the agent carries on. - **Attribution:** `illogical log %1 --who` and `history` attribute the approval and the follow-up to Sam. **Also covered:** - `team-swarm.spec`: private panes, and revoking or locking within a second. - `team-answers.spec`: a viewer's 403, and an Allow from a notification through the service worker. - `swarm.spec`: every cluster mode, bundles, and each action from the rail and the phone strip. - `swarm-fps.spec`: 500 panes at 60 fps, on the laptop and on a 4x-throttled phone. - The opt-in real Claude Code checks (`agents_real team`, `swarm-real`). **Docs:** the README, `docs/features.md`, *Claude Code in a pane* in `docs/cli.md` (every hook in one block), the project page, and `docs/releases/0.3.0.md`. **Still pending:** - Real phones: iOS notification actions, a service worker's WebSocket there, and the canvas on real hardware. - People on genuinely different networks. - Each ticket's after-MVP items: previews and live preview text; prompt detection and rerun, restart and send; pulse clustering; the correlation toast; keyboard shortcuts. - Two owners of one team box count as one principal when driving.
Author
Owner

Swarm MVP done and released as v0.3.0 (2058b77). Merges: M23 70003e2, M24 4e34244, M25 33a749f, M29 a35f4a6, M30 6ab1fef, M26 06e1d7b, acceptance test and docs de35bbb. Real phones and different networks move to Needs Jake on #55; the after-MVP items stay in each milestone's PLAN.md "Not covered". Closing.

Swarm MVP done and released as v0.3.0 (2058b77). Merges: M23 70003e2, M24 4e34244, M25 33a749f, M29 a35f4a6, M30 6ab1fef, M26 06e1d7b, acceptance test and docs de35bbb. Real phones and different networks move to *Needs Jake* on #55; the after-MVP items stay in each milestone's PLAN.md "Not covered". Closing.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#44
No description provided.