beadboard/tests/lib
zenchantlive ab051952bd feat(logic): establish derived-activity engine and agent-session protocols
Today we reached a major architectural conclusion: project history shouldn't be stored, it should be derived. We rejected the overhead of a separate SQLite event store in favor of an O(N) snapshot-diffing engine that computes human-readable narratives directly from the issues.jsonl source of truth.

Key Triumphs:
- Implemented O(N) diffing algorithm in src/lib/snapshot-differ.ts that transforms raw JSONL into 16 distinct social event types.
- Engineered a file-based persistence layer (src/lib/activity-persistence.ts) to solve the 'Next.js HMR Wiped My Memory' bug, ensuring project heartbeat survives server restarts.
- Developed the agent-session data model that unifies Beads, Activity, and Cross-Agent Mail into a single 'Mission' context.

Raw Honest Moment:
We struggled for over an hour with 'missing history' before realizing that development-mode reloads were purging our in-memory buffers. The shift to a file-backed ring buffer was a reactive pivot that became a core project strength.
2026-02-14 00:19:59 -08:00
..
activity.test.ts feat(logic): establish derived-activity engine and agent-session protocols 2026-02-14 00:19:59 -08:00
agent-sessions.test.ts feat(logic): establish derived-activity engine and agent-session protocols 2026-02-14 00:19:59 -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 Add bd exec bridge and mutation API routes with tests 2026-02-11 19:46:02 -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
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
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
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.test.ts Add realtime watcher+SSE transport with tests and lock-retry read path 2026-02-11 21:05:27 -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
watcher.test.ts Add realtime watcher+SSE transport with tests and lock-retry read path 2026-02-11 21:05:27 -08:00
writeback.test.ts Add optimistic writeback flow with kanban drag-drop transitions 2026-02-11 19:59:55 -08:00