M30: the team's swarm (everything the team can see, by person) #47

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

Depends on: #37 (MVP cut), #39
Blocks: #40
Part of: #44

Swarm MVP. The fleet is everything the team can see, not only your own machines, and the swarm can group it by person.


#39 connects the page to every host in your directory. This adds the team:

  • What's included:

    • your own daemons;
    • the team's daemons (M19);
    • sessions teammates shared with you or the team, on their personal daemons.

    Control's directory lists each of these with how to reach it, plus the grant that lets you in. It lists them, but never what's in them.

  • Summaries are filtered by role: a teammate's daemon sends you summaries only for the sessions you have a role on (#37's filtering, M12). Private panes (M14) never appear, not even as tiles.

  • People:

    • each pane carries its session's owner, and who's driving it (M13);
    • the swarm gains cluster by person;
    • a tile shows the avatar of whoever is driving or watching it.
  • Scale: a team of 5 with about 4 daemons each, so 20 summary connections from one browser, within #36's measured budget. Over the cap, the least recently used hosts drop to "stale" and refresh only on view.

  • Leaving: removing a member, revoking a share or locking the team (M19) takes those panes out of everyone's swarm within a second, along with their cards on the rail.

  • Done when:

    • two teammates with two machines each and one team daemon see the same team swarm;
    • each sees their own private panes, but not the other's;
    • cluster by person splits it into three groups (the two people and the team);
    • revoking a share removes those tiles and cards from the other person's view within a second.
**Depends on:** #37 (MVP cut), #39 **Blocks:** #40 **Part of:** #44 *Swarm MVP. The fleet is everything the team can see, not only your own machines, and the swarm can group it by person.* -------- #39 connects the page to every host in your directory. This adds the team: - **What's included:** - your own daemons; - the team's daemons (M19); - sessions teammates shared with you or the team, on their personal daemons. Control's directory lists each of these with how to reach it, plus the grant that lets you in. It lists them, but never what's in them. - **Summaries are filtered by role:** a teammate's daemon sends you summaries only for the sessions you have a role on (#37's filtering, M12). Private panes (M14) never appear, not even as tiles. - **People:** - each pane carries its session's owner, and who's driving it (M13); - the swarm gains **cluster by person**; - a tile shows the avatar of whoever is driving or watching it. - **Scale:** a team of 5 with about 4 daemons each, so 20 summary connections from one browser, within #36's measured budget. Over the cap, the least recently used hosts drop to "stale" and refresh only on view. - **Leaving:** removing a member, revoking a share or locking the team (M19) takes those panes out of everyone's swarm within a second, along with their cards on the rail. - **Done when:** - two teammates with two machines each and one team daemon see the same team swarm; - each sees their own private panes, but not the other's; - cluster by person splits it into three groups (the two people and the team); - revoking a share removes those tiles and cards from the other person's view within a second.
Author
Owner

Done 2026-10-02, apart from real phones and different networks. Merged in 6ab1fef.

What landed:

  • The fleet holds your machines, the team's machines, and teammates' machines that shared a session with you or with the team. Control's directory lists each one with how to reach it, never what's on it.
  • Whole-team shares on a personal machine. "Share with everyone in Acme" makes a team:<id> grant pinned to the team's founder.
    • The machine fetches the team's rosters from control (/api/daemon/teams) and checks them back to that founder.
    • It lets members in by the roster as they come and go, and only owners while the team is locked.
    • Control nudges members' machines on roster changes and locks.
  • People. Each pane carries its person (you, a teammate or the team), its driver, and who has it open.
    • fleet.byPerson() gives "cluster by person", and the host menu groups machines the same way.
    • Owners reached through control are called by their login, not "owner".
  • Private panes aren't in anyone else's fleet, not even as tiles.
  • Leaving. Revoking a share, removing a member or locking the team takes those panes and their cards out within a second.
    • The machine says why before hanging up, and the fleet drops those panes rather than greying them.
    • Control's shared relay socket now keeps a channel's close behind its last message.

Tests: e2e/team-swarm.spec.ts covers the done-whens:

  • the same team swarm on both pages;
  • each person's own private panes only;
  • three groups by person;
  • a revoked share gone in under a second;
  • a locked team's panes gone in about 0.23 s.

Not covered:

  • real phones and different networks;
  • two owners of one team box are still one principal as drivers.
**Done 2026-10-02, apart from real phones and different networks.** Merged in 6ab1fef. **What landed:** - The fleet holds your machines, the team's machines, and teammates' machines that shared a session with you or with the team. Control's directory lists each one with how to reach it, never what's on it. - **Whole-team shares on a personal machine.** "Share with everyone in Acme" makes a `team:<id>` grant pinned to the team's founder. - The machine fetches the team's rosters from control (`/api/daemon/teams`) and checks them back to that founder. - It lets members in by the roster as they come and go, and only owners while the team is locked. - Control nudges members' machines on roster changes and locks. - **People.** Each pane carries its person (you, a teammate or the team), its driver, and who has it open. - `fleet.byPerson()` gives "cluster by person", and the host menu groups machines the same way. - Owners reached through control are called by their login, not "owner". - **Private panes** aren't in anyone else's fleet, not even as tiles. - **Leaving.** Revoking a share, removing a member or locking the team takes those panes and their cards out within a second. - The machine says why before hanging up, and the fleet drops those panes rather than greying them. - Control's shared relay socket now keeps a channel's close behind its last message. **Tests:** `e2e/team-swarm.spec.ts` covers the done-whens: - the same team swarm on both pages; - each person's own private panes only; - three groups by person; - a revoked share gone in under a second; - a locked team's panes gone in about 0.23 s. **Not covered:** - real phones and different networks; - two owners of one team box are still one principal as drivers.
Author
Owner

Done per PLAN.md (#### M30) and shipped in v0.3.0. Merge commit: 6ab1fef ("Merge M30: the team's swarm"). Real phones and genuinely different networks move to Needs Jake on #55. Closing.

Done per PLAN.md (#### M30) and shipped in v0.3.0. Merge commit: 6ab1fef ("Merge M30: the team's swarm"). Real phones and genuinely different networks move to *Needs Jake* on #55. 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#47
No description provided.