From 8938e515963a20d14848942b6d698b9498601399 Mon Sep 17 00:00:00 2001 From: ismeth Date: Sun, 1 Mar 2026 16:59:53 +0100 Subject: [PATCH] feat(athena): add Step 12b for mandatory synthesis.md persistence Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- .../athena/athena-config-injection.test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/agents/athena/athena-config-injection.test.ts b/src/agents/athena/athena-config-injection.test.ts index 24e7be1fd..85ae79b3b 100644 --- a/src/agents/athena/athena-config-injection.test.ts +++ b/src/agents/athena/athena-config-injection.test.ts @@ -42,10 +42,26 @@ describe("Athena prompt config injection placeholders", () => { it("#then uses sequential workflow step numbering", () => { expect(athenaConfig.prompt).toContain("Step 12: Synthesize") + expect(athenaConfig.prompt).toContain("Step 12b: Persist the synthesis") expect(athenaConfig.prompt).toContain("Step 13: Determine follow-up path from council_finalize runtime guidance") expect(athenaConfig.prompt).toContain("Step 14: Execute the runtime guidance action flow") }) + it("#then places Step 12b between Step 12 and Step 13", () => { + const prompt = athenaConfig.prompt ?? "" + const step12Idx = prompt.indexOf("Step 12: Synthesize") + const step12bIdx = prompt.indexOf("Step 12b: Persist the synthesis") + const step13Idx = prompt.indexOf("Step 13: Determine follow-up path from council_finalize runtime guidance") + + expect(step12Idx).toBeGreaterThan(-1) + expect(step12bIdx).toBeGreaterThan(step12Idx) + expect(step13Idx).toBeGreaterThan(step12bIdx) + }) + + it("#then references archive_dir for synthesis persistence", () => { + expect(athenaConfig.prompt).toContain("{archive_dir}/synthesis.md") + }) + it("#then omits legacy mixed step labels", () => { expect(athenaConfig.prompt).not.toContain("Step 1.5") expect(athenaConfig.prompt).not.toContain("Step 4.5")