feat(FN-4063): enforce planning and triage memory write contracts
Enforces memory write contracts for triage and planning agents, adding tests in both `project-memory.test.ts` and `triage.test.ts` to guard the contract boundaries established in `project-memory.ts`. Fusion-Task-Id: FN-4063 Fusion-Task-Lineage: 5f86295b-d583-4757-9aa5-30a64b2cc2d6
This commit is contained in:
@@ -418,6 +418,9 @@ describe("buildSpecificationPrompt", () => {
|
||||
);
|
||||
expect(prompt).toContain("## Project Memory");
|
||||
expect(prompt).toContain(".fusion/memory/");
|
||||
expect(prompt).toContain("fn_memory_append");
|
||||
expect(prompt).toContain("Do **not** write");
|
||||
expect(prompt).toContain("or any other memory files directly");
|
||||
});
|
||||
|
||||
it("includes read-only wording for readonly backend without write directives", () => {
|
||||
@@ -462,6 +465,8 @@ describe("buildSpecificationPrompt", () => {
|
||||
expect(prompt).not.toContain(".fusion/memory/");
|
||||
expect(prompt).toContain("fn_memory_search");
|
||||
expect(prompt).toContain("fn_memory_get");
|
||||
expect(prompt).toContain("fn_memory_append");
|
||||
expect(prompt).toContain("Do **not** write memory files directly");
|
||||
});
|
||||
|
||||
it("QMD prompt has actionable memory instructions", () => {
|
||||
|
||||
Reference in New Issue
Block a user