feat(FN-2087): finalize canonical memory path migration

- Remove legacy .fusion/memory.md fallback references and normalize prompts/docs to .fusion/memory/MEMORY.md
- Stop legacy mirror writes and fallback reads in core memory backend and project memory flows
- Update engine worktree boundary checks and tests for canonical memory file handling
- Align dashboard memory/settings surfaces and route tests with canonical memory behavior
- Add model-favorites persistence test coverage for mission interview and new agent dialogs
This commit is contained in:
Fusion
2026-04-18 22:47:17 -07:00
committed by gsxdsm
parent 63ecb21c39
commit d642af311d
32 changed files with 503 additions and 307 deletions

View File

@@ -499,8 +499,8 @@ describe("buildAgentChatPrompt", () => {
});
it("builds an identity-aware prompt with soul, memory, instructions, and project memory", async () => {
await mkdir(join(testDir, ".fusion"), { recursive: true });
await writeFile(join(testDir, ".fusion", "memory.md"), "Project preference: avoid force pushes.");
await mkdir(join(testDir, ".fusion", "memory"), { recursive: true });
await writeFile(join(testDir, ".fusion", "memory", "MEMORY.md"), "Project preference: avoid force pushes.");
const agent = makeAgent({
name: "Avery",