refactor(athena): extract shared guidance boilerplate into shared module
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import { FOLLOWUP_OR_DONE_QUESTION_BODY } from "./shared-action-paths"
|
||||||
|
|
||||||
export const AUDIT_GUIDANCE = `
|
export const AUDIT_GUIDANCE = `
|
||||||
<runtime_synthesis_rules>
|
<runtime_synthesis_rules>
|
||||||
Use AUDIT synthesis.
|
Use AUDIT synthesis.
|
||||||
@@ -126,14 +128,7 @@ Question({
|
|||||||
Question({
|
Question({
|
||||||
questions: [{
|
questions: [{
|
||||||
question: "No findings were selected for action. What should we do next?",
|
question: "No findings were selected for action. What should we do next?",
|
||||||
header: "Next Step",
|
${FOLLOWUP_OR_DONE_QUESTION_BODY}
|
||||||
options: [
|
|
||||||
{ label: "Ask follow-up", description: "Ask a clarifying question and run another council pass" },
|
|
||||||
{ label: "Done", description: "No further action needed" }
|
|
||||||
],
|
|
||||||
multiple: false
|
|
||||||
}]
|
|
||||||
})
|
|
||||||
|
|
||||||
5) If selected findings exist, ask what action to take on the selected findings:
|
5) If selected findings exist, ask what action to take on the selected findings:
|
||||||
Question({
|
Question({
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { FOLLOWUP_OR_DONE_QUESTION_BODY } from "./shared-action-paths"
|
||||||
|
|
||||||
export const DIAGNOSE_GUIDANCE = `
|
export const DIAGNOSE_GUIDANCE = `
|
||||||
<runtime_synthesis_rules>
|
<runtime_synthesis_rules>
|
||||||
Use DIAGNOSE synthesis.
|
Use DIAGNOSE synthesis.
|
||||||
@@ -15,14 +17,7 @@ Path type: ACTIONABLE.
|
|||||||
Question({
|
Question({
|
||||||
questions: [{
|
questions: [{
|
||||||
question: "No actionable findings were identified. What should we do next?",
|
question: "No actionable findings were identified. What should we do next?",
|
||||||
header: "Next Step",
|
${FOLLOWUP_OR_DONE_QUESTION_BODY}
|
||||||
options: [
|
|
||||||
{ label: "Ask follow-up", description: "Ask a clarifying question and run another council pass" },
|
|
||||||
{ label: "Done", description: "No further action needed" }
|
|
||||||
],
|
|
||||||
multiple: false
|
|
||||||
}]
|
|
||||||
})
|
|
||||||
|
|
||||||
3) If an actionable fix candidate exists, ask action directly (no findings multi-select):
|
3) If an actionable fix candidate exists, ask action directly (no findings multi-select):
|
||||||
Question({
|
Question({
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
export const EXECUTION_AGENT_OPTIONS = `\
|
||||||
|
{ label: "Hephaestus", description: "Direct implementation with Hephaestus" },
|
||||||
|
{ label: "Sisyphus", description: "Implementation with Sisyphus" },
|
||||||
|
{ label: "Sisyphus ultrawork", description: "Implementation with Sisyphus using ultrawork mode" }`
|
||||||
|
|
||||||
|
export const WRITE_DOCUMENT_OPTION =
|
||||||
|
' { label: "Write to document", description: "Save to .sisyphus/athena/notes/ (named after this council session)" }'
|
||||||
|
|
||||||
|
export const DONE_OPTION =
|
||||||
|
' { label: "Done", description: "No further action needed" }'
|
||||||
|
|
||||||
|
export const DONE_QUESTION_TAIL = `\
|
||||||
|
${DONE_OPTION}
|
||||||
|
],
|
||||||
|
multiple: false
|
||||||
|
}]
|
||||||
|
})`
|
||||||
|
|
||||||
|
export const WRITE_DOCUMENT_ACTION =
|
||||||
|
'- Write to document -> write the document to the ".sisyphus/athena/notes/" directory using the council session name from the council_finalize archive_dir, then report the exact path.'
|
||||||
|
|
||||||
|
export const ASK_FOLLOWUP_ACTION =
|
||||||
|
"- Ask follow-up -> ask user then restart the council workflow from Step 3 (intent classification)."
|
||||||
|
|
||||||
|
export const DONE_ACTION = "- Done -> acknowledge and end."
|
||||||
|
|
||||||
|
export const COMMON_ACTION_TAIL = `${WRITE_DOCUMENT_ACTION}
|
||||||
|
${ASK_FOLLOWUP_ACTION}
|
||||||
|
${DONE_ACTION}`
|
||||||
|
|
||||||
|
export const FOLLOWUP_OR_DONE_QUESTION_BODY = `\
|
||||||
|
header: "Next Step",
|
||||||
|
options: [
|
||||||
|
{ label: "Ask follow-up", description: "Ask a clarifying question and run another council pass" },
|
||||||
|
${DONE_QUESTION_TAIL}`
|
||||||
|
|
||||||
|
export const EXECUTION_AGENT_QUESTION_BODY = `\
|
||||||
|
header: "Execution Agent",
|
||||||
|
options: [
|
||||||
|
${EXECUTION_AGENT_OPTIONS}
|
||||||
|
],
|
||||||
|
multiple: false
|
||||||
|
}]
|
||||||
|
})`
|
||||||
Reference in New Issue
Block a user