FN-8295: add persisted ideation mission handoffs
Persist bounded ideation sessions through agent tools, the Command Center, and atomic Mission convergence.
- Store ideation sessions and divergent candidates in PostgreSQL with async APIs and migration support.
- Expose gated ideation tools, chat routes, and agent lifecycle integration.
- Add the Ideation panel, documentation, release metadata, and regression coverage.
Files changed:
.changeset/fn-8295-ideation-diverge-converge.md | 7 ++
docs/ideation/persisted-diverge-converge.md | 22 ++++
docs/missions.md | 4 +
.../__tests__/postgres/ideation-store.pg.test.ts | 57 +++++++++
packages/core/src/async-ideation-store-queries.ts | 117 +++++++++++++++++
packages/core/src/async-ideation-store.ts | 138 +++++++++++++++++++++
packages/core/src/async-mission-store.ts | 27 ++--
packages/core/src/ideation-types.ts | 69 +++++++++++
packages/core/src/index.ts | 3 +
.../core/src/postgres/migrations/0022_ideation.sql | 67 ++++++++++
packages/core/src/postgres/schema-applier.ts | 18 ++-
packages/core/src/postgres/schema/project.ts | 49 +++++++-
packages/core/src/store.ts | 8 +-
packages/core/src/task-store/remaining-ops-8.ts | 14 +++
.../components/command-center/CommandCenter.tsx | 7 +-
.../components/command-center/IdeationPanel.css | 18 +++
.../components/command-center/IdeationPanel.tsx | 58 +++++++++
.../__tests__/CommandCenter.test.tsx | 6 +-
.../dashboard/src/__tests__/chat-manager.test.ts | 1 +
packages/dashboard/src/__tests__/chat.test.ts | 1 +
.../__tests__/ideation-tool-route-parity.test.ts | 29 +++++
packages/dashboard/src/chat.ts | 4 +
packages/dashboard/src/ideation-routes.ts | 50 ++++++++
.../src/routes/register-integrated-routers.ts | 2 +
.../src/__tests__/agent-ideation-tools.test.ts | 40 ++++++
.../src/__tests__/gating-classifications.test.ts | 16 +++
.../src/__tests__/permanent-agent-gating.test.ts | 2 +
packages/engine/src/agent-heartbeat.ts | 4 +-
packages/engine/src/agent-tools.ts | 67 ++++++++++
packages/engine/src/executor.ts | 2 +
packages/engine/src/gating-classifications.ts | 8 ++
packages/engine/src/index.ts | 1 +
packages/engine/src/triage.ts | 2 +
33 files changed, 897 insertions(+), 21 deletions(-)
Fusion-Task-Id: FN-8295
Fusion-Task-Lineage: 1b8b0752-22bd-4b2f-aebd-4305c63abcf9
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>