beadboard/tests/lib
zenchantlive e47230c2dd feat(data): complete bb-ui2.15 - Swarm Cards Data Builder
STORY:
The Swarm view needs to show epics as "swarms" - groups of agents
working together on a mission. This requires aggregating bead data
by swarm/epic and computing health statistics.

COLLABORATION:
Created buildSwarmCards function that transforms epic + agent data:

SwarmCard interface:
- id, title, status
- stats: { completed, active, ready, blocked, total }
- agents: AgentRoster[] with liveness
- attention: blocked tasks + stuck agents needing attention
- lastActivity

We also created swarm-molecules.ts for molecular composition patterns
used by the swarm orchestration layer.

DELIVERABLES:
- src/lib/swarm-cards.ts with SwarmCard, AgentRoster types
- src/lib/swarm-molecules.ts for molecular composition
- tests/lib/swarm-cards.test.ts
- tests/lib/swarm-molecules.test.ts

VERIFICATION:
- npm run typecheck: PASS
- npm run lint: PASS
- npm run test: PASS

CLOSES: bb-ui2.15
BLOCKS: bb-ui2.16, bb-ui2.17
2026-02-15 21:18:13 -08:00
..
activity.test.ts feat(logic): establish derived-activity engine and agent-session protocols 2026-02-14 00:19:59 -08:00
agent-liveness.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-mail.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-protocol.test.ts feat(protocol): wire session aggregation and API with liveness 2026-02-14 10:43:02 -08:00
agent-registry.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-reservations.test.ts docs(beads): etch project history into memory bank and finalize skill-bb 2026-02-14 00:21:25 -08:00
agent-sessions-liveness.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-sessions-state.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
agent-sessions.test.ts feat(protocol): wire session aggregation and API with liveness 2026-02-14 10:43:02 -08:00
agent-takeover.test.ts feat(protocol): wire session aggregation and API with liveness 2026-02-14 10:43:02 -08:00
aggregate-read.test.ts feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e) 2026-02-12 23:36:41 -08:00
bd-path.test.ts Add bd exec bridge and mutation API routes with tests 2026-02-11 19:46:02 -08:00
bridge.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
coalescer.test.ts Add realtime watcher+SSE transport with tests and lock-retry read path 2026-02-11 21:05:27 -08:00
graph-view.test.ts fix: always enable SSE auto-refresh on kanban page 2026-02-13 14:51:31 -08:00
graph.test.ts fix: always enable SSE auto-refresh on kanban page 2026-02-13 14:51:31 -08:00
identity-isolation.test.ts fix(protocol): implement Identity Isolation to prevent task pollution 2026-02-14 13:29:28 -08:00
issue-editor.test.ts feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e) 2026-02-12 23:36:41 -08:00
kanban.test.ts ui: unify aero chrome surfaces and shared hero across kanban/graph 2026-02-13 12:17:57 -08:00
mission-pathing.test.ts feat(sessions): progress bb-buff.3.3 - Active Mission Pathing (data layer) 2026-02-15 21:15:48 -08:00
mutations.test.ts chore: clear lint warnings and finalize shared epic chip strip 2026-02-13 12:44:14 -08:00
parser.test.ts feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e) 2026-02-12 23:36:41 -08:00
path-overlap.test.ts feat(protocol): implement core backend engine for Operative Protocol 2026-02-14 10:38:10 -08:00
pathing.test.ts chore: initialize beadboard baseline 2026-02-11 17:42:51 -08:00
project-context.test.ts feat: add project context model 2026-02-11 19:44:47 -08:00
project-scope.test.ts feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e) 2026-02-12 23:36:41 -08:00
read-issues.test.ts feat: attach project context to read issues 2026-02-11 19:44:55 -08:00
read-text-retry.test.ts Add realtime watcher+SSE transport with tests and lock-retry read path 2026-02-11 21:05:27 -08:00
realtime-history.test.ts feat(observability): chronological timeline and agent productivity APIs 2026-02-14 00:21:02 -08:00
realtime.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
registry.test.ts feat: add Windows project registry API and persistence 2026-02-11 20:35:36 -08:00
scanner.test.ts feat(graph): Implement Graph View with Dagre Layout and Epic Scope (bb-18e) 2026-02-12 23:36:41 -08:00
snapshot-differ.test.ts feat(logic): establish derived-activity engine and agent-session protocols 2026-02-14 00:19:59 -08:00
social-cards.test.ts feat(data): complete bb-ui2.10 - Social Cards Data Builder 2026-02-15 21:17:52 -08:00
swarm-cards.test.ts feat(data): complete bb-ui2.15 - Swarm Cards Data Builder 2026-02-15 21:18:13 -08:00
swarm-molecules-simple.test.ts feat(data): complete bb-ui2.15 - Swarm Cards Data Builder 2026-02-15 21:18:13 -08:00
swarm-molecules.test.ts feat(data): complete bb-ui2.15 - Swarm Cards Data Builder 2026-02-15 21:18:13 -08:00
watcher.test.ts feat(telemetry): complete bb-buff.1.3 - Backend Liveness Refactor 2026-02-15 21:14:05 -08:00
writeback.test.ts Add optimistic writeback flow with kanban drag-drop transitions 2026-02-11 19:59:55 -08:00