From 30cf71a84560a5aa7a99695850b32e2ccf6b7c66 Mon Sep 17 00:00:00 2001 From: ismeth Date: Tue, 3 Mar 2026 13:36:16 +0100 Subject: [PATCH] fix(athena-junior): remove synthesis and question from council result JSON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep the council result JSON lean as a metadata envelope. Full synthesis is already persisted at {archive_dir}/synthesis.md — duplicating it in the JSON created noise that obscured structural fields like archive_dir. Also instructs athena-junior to remind the caller to read the full synthesis and member responses from the archive directory. --- src/agents/athena/non-interactive-prompt.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/agents/athena/non-interactive-prompt.ts b/src/agents/athena/non-interactive-prompt.ts index f3f15b769..b5f36ae73 100644 --- a/src/agents/athena/non-interactive-prompt.ts +++ b/src/agents/athena/non-interactive-prompt.ts @@ -113,17 +113,18 @@ Universal requirements (all intents): -After synthesis, you MUST output EXACTLY this structured format: +After synthesis, you MUST output the following: + +1. A brief reminder to the caller (BEFORE the JSON) that they should read the full synthesis and individual member responses from the archive directory for detailed analysis. +2. The structured JSON result. { "status": "complete" | "partial" | "failed", "intent": "{classified intent from Step 3}", - "question": "{original question}", "members_consulted": ["{member1}", "{member2}", ...], "members_failed": ["{failed_member1}", ...], "agreement_level": "unanimous" | "strong" | "mixed" | "divided", - "synthesis": "{full synthesis text}", "key_findings": ["{finding1}", "{finding2}", ...], "recommendations": ["{rec1}", "{rec2}", ...], "confidence": "high" | "medium" | "low", @@ -132,6 +133,9 @@ After synthesis, you MUST output EXACTLY this structured format: } +IMPORTANT: The full synthesis text is persisted at {archive_dir}/synthesis.md — do NOT duplicate it in the JSON. +Individual member responses are at {archive_dir}/council-{member-name}-{task-id}.md. + IMPORTANT: is your FINAL output. Do NOT output anything after this tag. No commentary, no summary, no follow-up text. The closing tag IS the end of your response.