FN-8294: expose action-gated Mission hierarchy tools
Expose project-scoped Mission hierarchy operations to engine agents and eligible dashboard chat sessions.
- Add Mission, milestone, slice, and feature tool definitions backed by MissionStore
- Classify hierarchy mutations for action and permanent-agent approval gates
- Wire gated tool access through triage, executor, heartbeat, CLI, and chat lanes
- Cover tool availability, mutation gating, and chat integration with tests and documentation
Files changed:
.changeset/fn-8294-mission-engine-tools.md | 7 ++
docs/missions.md | 8 ++
packages/cli/src/extension.ts | 2 +-
.../dashboard/src/__tests__/chat-manager.test.ts | 48 +++++++++
packages/dashboard/src/__tests__/chat.test.ts | 1 +
packages/dashboard/src/chat.ts | 113 ++++++++++++++++++++-
.../src/__tests__/agent-mission-tools.test.ts | 43 ++++++++
packages/engine/src/__tests__/triage.test.ts | 34 ++++++-
packages/engine/src/agent-heartbeat.ts | 4 +-
packages/engine/src/agent-tools.ts | 64 ++++++++++++
packages/engine/src/executor.ts | 2 +
packages/engine/src/gating-classifications.ts | 11 ++
packages/engine/src/index.ts | 17 ++++
packages/engine/src/triage.ts | 111 ++++++++++++++++++++
14 files changed, 457 insertions(+), 8 deletions(-)
Fusion-Task-Id: FN-8294
Fusion-Task-Lineage: ab0f248b-8a38-40e3-b297-79f9dbe18075
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>