fix(FN-000): simplify qmd memory settings

This commit is contained in:
gsxdsm
2026-04-17 08:16:36 -07:00
parent 1433ca98ce
commit 75dc5a8c77
20 changed files with 576 additions and 511 deletions

View File

@@ -2476,8 +2476,8 @@ describe("buildExecutionPrompt", () => {
const memorySection = memorySectionMatch![1];
// QMD should NOT unconditionally reference .fusion/memory.md in the memory section
expect(memorySection).not.toContain(".fusion/memory.md");
// Should instruct to consult project memory
expect(memorySection).toMatch(/consult.*project memory/i);
expect(memorySection).toContain("memory_search");
expect(memorySection).toContain("memory_get");
});
it("QMD prompt has actionable memory instructions", () => {
@@ -2493,8 +2493,7 @@ describe("buildExecutionPrompt", () => {
const memorySection = memorySectionMatch![1];
// QMD should NOT contain .fusion/memory.md
expect(memorySection).not.toContain(".fusion/memory.md");
// Contains consult guidance at start of execution
expect(memorySection).toMatch(/consult.*memory/i);
expect(memorySection).toContain("memory_search");
// Contains "end of execution" write guidance
expect(memorySection).toMatch(/end of execution/i);
});

View File

@@ -284,7 +284,8 @@ describe("buildSpecificationPrompt", () => {
);
expect(prompt).toContain("Specify this task");
expect(prompt).toContain("## Project Memory");
expect(prompt).toContain(".fusion/memory.md");
expect(prompt).toContain("memory_search");
expect(prompt).toContain("memory_get");
});
it("excludes memory instructions when memoryEnabled: false", () => {
@@ -313,7 +314,8 @@ describe("buildSpecificationPrompt", () => {
);
expect(prompt).toContain("Specify this task");
expect(prompt).toContain("## Project Memory");
expect(prompt).toContain(".fusion/memory.md");
expect(prompt).toContain("memory_search");
expect(prompt).toContain("memory_get");
});
});
@@ -377,8 +379,8 @@ describe("buildSpecificationPrompt", () => {
expect(prompt).toContain("## Project Memory");
// QMD should NOT unconditionally reference .fusion/memory.md
expect(prompt).not.toContain(".fusion/memory.md");
// Should instruct to consult project memory
expect(prompt).toMatch(/consult.*project memory/i);
expect(prompt).toContain("memory_search");
expect(prompt).toContain("memory_get");
});
it("QMD prompt has actionable memory instructions", () => {
@@ -399,8 +401,7 @@ describe("buildSpecificationPrompt", () => {
expect(prompt).toContain("## Project Memory");
// QMD should NOT contain .fusion/memory.md
expect(prompt).not.toContain(".fusion/memory.md");
// Contains consult guidance
expect(prompt).toMatch(/consult.*memory/i);
expect(prompt).toContain("memory_search");
});
});