gsxdsm
5a1853cac6
FN-8934: add memory pre-steering across agent prompts
Add bounded memory-first guidance and consolidation observability across agent workflows.
- Apply mode-aware memory pre-steering to execution, triage, reviewer, heartbeat, and merger prompts.
- Export and test shared memory nudges while documenting memory inclusion settings.
- Expose agent memory consolidation history through dashboard API and detail UI.
Files changed:
.changeset/fn-8934-memory-pre-steering.md | 7 ++
docs/agents.md | 4 +
docs/settings-reference.md | 2 +
.../core/src/__tests__/memory-pre-steering.test.ts | 28 +++++++
packages/core/src/__tests__/project-memory.test.ts | 22 ++++++
packages/core/src/index.gate.ts | 7 ++
packages/core/src/index.ts | 7 ++
packages/core/src/memory/index.ts | 1 +
packages/core/src/memory/memory-pre-steering.ts | 41 ++++++++++
packages/core/src/memory/project-memory.ts | 19 +++++
packages/dashboard/app/api/agents/agents.ts | 12 +++
packages/dashboard/app/api/legacy.ts | 2 +
.../dashboard/app/components/AgentDetailView.css | 41 ++++++++++
.../dashboard/app/components/AgentDetailView.tsx | 56 +++++++++++++-
...etailView.memory-consolidation-history.test.tsx | 58 +++++++++++++++
.../__tests__/AgentDetailView.test-helpers.ts | 3 +
.../register-agent-memory-consolidations.test.ts | 87 ++++++++++++++++++++++
.../register-agent-reflection-rating-routes.ts | 36 +++++++++
.../memory-pre-steering-injection.test.ts | 50 +++++++++++++
packages/engine/src/__tests__/reviewer.test.ts | 18 +++++
packages/engine/src/__tests__/triage.test.ts | 18 ++++-
packages/engine/src/agent-heartbeat.ts | 14 +++-
.../engine/src/agents/agent-heartbeat-prompts.ts | 2 +
packages/engine/src/agents/agent-instructions.ts | 16 ++--
packages/engine/src/execution/reviewer.ts | 31 +++++---
packages/engine/src/executor/execution-prompt.ts | 6 +-
packages/engine/src/merger.ts | 9 ++-
packages/engine/src/triage.ts | 12 ++-
28 files changed, 577 insertions(+), 32 deletions(-)
Fusion-Task-Id: FN-8934
Fusion-Task-Lineage: a062cc6b-1277-4d36-9926-b3ecba4945eb
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-11 04:57:14 -07:00
..
2026-08-09 23:21:02 -07:00
2026-08-11 04:57:14 -07:00
2026-08-09 23:21:02 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 01:30:04 -07:00
2026-08-09 07:06:06 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 09:04:45 -07:00
2026-08-10 02:56:58 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-03 00:20:53 -07:00
2026-08-11 04:57:14 -07:00
2026-08-03 00:20:53 -07:00