gsxdsm
6bd178bdcf
FN-8864: add durable agent activity stream
Add a persisted, project-scoped agent activity feed with query and live delivery surfaces.
- Store sequenced, attributed activity events with privacy-safe metadata and retention.
- Emit activity across agents, workflow execution, reviews, approvals, merges, and recovery.
- Provide paginated API history and resilient SSE tailing with coverage and documentation.
- Renumber the activity migration to 0049 after reconciling main’s 0048 GitHub check-state migration.
Files changed:
.changeset/fn-8864-agent-activity-events.md | 7 +
docs/architecture.md | 8 +
docs/diagnostics.md | 4 +
docs/storage.md | 1 +
.../__tests__/agent-activity-attribution.test.ts | 21 +
.../agent-activity-metadata-hygiene.test.ts | 60 +++
.../src/__tests__/agent-activity-writers.test.ts | 94 +++++
.../postgres/agent-activity-events.pg.test.ts | 57 +++
.../src/__tests__/postgres/schema-applier.test.ts | 34 +-
packages/core/src/agents/agent-store.ts | 24 ++
packages/core/src/agents/approval-request-store.ts | 15 +-
packages/core/src/index.ts | 4 +
.../0049_fn_8864_agent_activity_events.sql | 24 ++
packages/core/src/postgres/schema-applier.ts | 15 +-
packages/core/src/postgres/schema/project.ts | 19 +-
packages/core/src/store.ts | 17 +
.../core/src/task-store/agent-activity-outbox.ts | 75 ++++
.../src/task-store/async/async-agent-activity.ts | 71 ++++
packages/core/src/types.ts | 2 +
packages/core/src/types/agents/agents.ts | 79 ++++
packages/dashboard/app/api.ts | 54 +++
.../src/__tests__/agent-activity-route.test.ts | 68 ++++
.../src/__tests__/sse-agent-activity.test.ts | 315 +++++++++++++++
packages/dashboard/src/routes/README.md | 2 +-
.../src/routes/register-setup-activity-routes.ts | 19 +-
packages/dashboard/src/sse.ts | 139 ++++++-
.../src/__tests__/agent-activity-writers.test.ts | 442 +++++++++++++++++++++
packages/engine/src/executor.ts | 110 ++++-
packages/engine/src/merger.ts | 15 +-
packages/engine/src/self-healing.ts | 35 +-
30 files changed, 1809 insertions(+), 21 deletions(-)
Fusion-Task-Id: FN-8864
Fusion-Task-Lineage: 4938f35b-a0bc-4eb3-905c-178fed859cc6
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-09 14:39:17 -07:00
..
2026-08-09 09:14:56 -07:00
2026-08-08 14:25:19 -07:00
2026-08-09 14:39:17 -07:00
2026-08-09 14:39:17 -07:00
2026-08-08 14:25:19 -07:00
2026-08-08 14:25:19 -07:00
2026-08-09 14:39:17 -07:00
2026-08-09 04:50:30 -07:00
2026-08-08 14:25:19 -07:00
2026-08-08 14:25:19 -07:00
2026-07-27 19:40:08 -07:00
2026-08-08 14:25:19 -07:00