From b056a306fa48dd5f446be8480c7594b3772da41b Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Tue, 28 Jul 2026 17:31:50 +0000 Subject: [PATCH] fix(mcp): advance prd_next_id expectation to 0003 for PRD 0002 The standards test asserts prd_next_id against the live prd/ directory, so adding prd/0002-hourly-hire-us-rate.md moves the next free id to 0003. This assertion advances with every PRD added to the repo. Co-Authored-By: Claude Opus 5 (1M context) --- packages/logicsrc-mcp/src/standards.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/logicsrc-mcp/src/standards.test.ts b/packages/logicsrc-mcp/src/standards.test.ts index a80eeaa..dc50ef5 100644 --- a/packages/logicsrc-mcp/src/standards.test.ts +++ b/packages/logicsrc-mcp/src/standards.test.ts @@ -202,7 +202,8 @@ describe("MCP: OpenPRD", () => { it("reports the next free id and the allowed lifecycle moves", async () => { const client = await connect(); - expect(toolText(await client.callTool({ name: "prd_next_id", arguments: {} }))).toBe("0002"); + // Asserted against the live prd/ directory, so this advances with every PRD added. + expect(toolText(await client.callTool({ name: "prd_next_id", arguments: {} }))).toBe("0003"); const moves = await client.callTool({ name: "prd_next_statuses", arguments: { ref: "0001" } }); const payload = JSON.parse(toolText(moves)) as { status: string; allowedNext: string[] };