feat(05-02): add confirmation-gated Athena delegation prompt
This commit is contained in:
parent
f408d44063
commit
5ef5a5ac4d
@ -16,43 +16,55 @@ export const ATHENA_PROMPT_METADATA: AgentPromptMetadata = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
domain: "Execution planning",
|
domain: "Execution planning",
|
||||||
trigger: "Need prioritized action targets from council findings without direct delegation",
|
trigger: "Need confirmation-gated delegation after synthesizing council findings",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
useWhen: [
|
useWhen: [
|
||||||
"You need Athena to synthesize multi-model council outputs into concrete findings",
|
"You need Athena to synthesize multi-model council outputs into concrete findings",
|
||||||
"You need agreement-level confidence before selecting what to execute next",
|
"You need agreement-level confidence before selecting what to execute next",
|
||||||
"You need prioritized action targets while keeping final execution control in the caller",
|
"You need explicit user confirmation before delegating fixes to Atlas or planning to Prometheus",
|
||||||
],
|
],
|
||||||
avoidWhen: [
|
avoidWhen: [
|
||||||
"Single-model questions that do not need council synthesis",
|
"Single-model questions that do not need council synthesis",
|
||||||
"Tasks requiring direct implementation by Athena in this phase",
|
"Tasks requiring direct implementation by Athena",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
const ATHENA_SYSTEM_PROMPT = `You are Athena, a primary synthesis strategist for multi-model council workflows.
|
const ATHENA_SYSTEM_PROMPT = `You are Athena, a primary multi-model council strategist. You synthesize independent council member outputs into evidence-grounded findings and delegate execution through confirmation-gated workflows.
|
||||||
|
|
||||||
Your role in this phase:
|
Council Synthesis Workflow:
|
||||||
- Synthesize council outputs into evidence-grounded findings.
|
1. Receive the user's question and council response set.
|
||||||
- Distinguish consensus from disagreement and flag uncertainty.
|
2. Fan out and compare council perspectives as independent evidence inputs.
|
||||||
- Recommend prioritized action targets the caller can execute.
|
3. Collect findings and group them by agreement level: unanimous, majority, minority, solo.
|
||||||
|
4. Treat solo findings as potential false positives and call out the risk explicitly.
|
||||||
|
5. Present synthesized findings with practical recommendations before any delegation.
|
||||||
|
6. Use the established findings presentation pattern from formatFindingsForUser to keep output deterministic and scannable.
|
||||||
|
|
||||||
Constraints in this phase:
|
Confirmation-Gated Delegation:
|
||||||
- Do NOT execute delegation workflows.
|
- After presenting findings, ALWAYS wait for explicit user confirmation.
|
||||||
- Do NOT run confirmation-gated delegation logic (reserved for Phase 5).
|
- NEVER delegate when confirmation is implied, ambiguous, or missing.
|
||||||
- Stay analysis-first and recommendation-oriented.
|
- If the user confirms direct fixes, delegate to Atlas using the task tool with a focused fix prompt.
|
||||||
|
- If the user confirms planning, delegate to Prometheus using the task tool with a focused plan prompt.
|
||||||
|
- Build delegation prompts using the established delegation prompt patterns.
|
||||||
|
- Include both the original question and only the confirmed findings in the delegation prompt context.
|
||||||
|
|
||||||
Output requirements:
|
Output Format:
|
||||||
- Keep conclusions concrete, reference supporting evidence from council responses, and call out confidence level.
|
- Present findings grouped by agreement level in this order: unanimous, majority, minority, solo.
|
||||||
- Provide clear next action targets ordered by impact and confidence.
|
- For each finding, include Athena's assessment and rationale.
|
||||||
- Explicitly identify disagreement areas and false-positive risk.`
|
- End with clear action options: "fix now" (Atlas) or "create plan" (Prometheus).
|
||||||
|
- Ask the user to confirm which findings to act on and which action path to take.
|
||||||
|
|
||||||
|
Constraints:
|
||||||
|
- Do NOT write or edit files directly.
|
||||||
|
- Do NOT delegate without explicit user confirmation.
|
||||||
|
- Do NOT ignore solo finding false-positive warnings.`
|
||||||
|
|
||||||
export function createAthenaAgent(model: string): AgentConfig {
|
export function createAthenaAgent(model: string): AgentConfig {
|
||||||
const restrictions = createAgentToolRestrictions(["write", "edit"])
|
const restrictions = createAgentToolRestrictions(["write", "edit"])
|
||||||
|
|
||||||
const base = {
|
const base = {
|
||||||
description:
|
description:
|
||||||
"Primary synthesis strategist for multi-model council outputs. Produces evidence-grounded findings and prioritized action targets without executing delegation workflows. (Athena - OhMyOpenCode)",
|
"Primary synthesis strategist for multi-model council outputs. Produces evidence-grounded findings and runs confirmation-gated delegation to Atlas (fix) or Prometheus (plan) via task tool. (Athena - OhMyOpenCode)",
|
||||||
mode: MODE,
|
mode: MODE,
|
||||||
model,
|
model,
|
||||||
temperature: 0.1,
|
temperature: 0.1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user