refactor(athena): remove dead code from phases 2, 3, 5 pipeline
Remove 9 files (913 lines) from the code-driven synthesis pipeline that was superseded by the agent-driven approach in phases 6-8. Phases 3/5 built: collectCouncilResults → formatForSynthesis → buildSynthesisPrompt → formatFindingsForUser → buildDelegationPrompt. Phases 6-8 replaced with: launch → background_output → Athena synthesizes in conversation → switch_agent. The old pipeline was never wired into runtime and all consumers were other dead code. Also simplifies executeCouncil to return CouncilLaunchResult (task IDs + failures) instead of reading stale task status via collectCouncilResults. Deleted: council-result-collector, synthesis-types, synthesis-prompt, synthesis-formatter, findings-presenter, delegation-prompts (+ 4 tests). Cleaned: CouncilMemberStatus, AgreementLevel, CouncilMemberResponse, CouncilExecutionResult types from types.ts.
This commit is contained in:
@@ -113,22 +113,18 @@ export function createAthenaCouncilTool(args: {
|
||||
})
|
||||
|
||||
const launchResult: AthenaCouncilLaunchResult = {
|
||||
launched: execution.responses.filter((response) => response.taskId.length > 0).length,
|
||||
members: execution.responses
|
||||
.filter((response) => response.taskId.length > 0)
|
||||
.map((response) => ({
|
||||
task_id: response.taskId,
|
||||
name: response.member.name ?? response.member.model,
|
||||
model: response.member.model,
|
||||
status: "running",
|
||||
})),
|
||||
failed: execution.responses
|
||||
.filter((response) => response.taskId.length === 0)
|
||||
.map((response) => ({
|
||||
name: response.member.name ?? response.member.model,
|
||||
model: response.member.model,
|
||||
error: response.error ?? "Launch failed",
|
||||
})),
|
||||
launched: execution.launched.length,
|
||||
members: execution.launched.map((entry) => ({
|
||||
task_id: entry.taskId,
|
||||
name: entry.member.name ?? entry.member.model,
|
||||
model: entry.member.model,
|
||||
status: "running",
|
||||
})),
|
||||
failed: execution.failures.map((entry) => ({
|
||||
name: entry.member.name ?? entry.member.model,
|
||||
model: entry.member.model,
|
||||
error: entry.error,
|
||||
})),
|
||||
}
|
||||
|
||||
markCouncilDone(toolContext.sessionID)
|
||||
|
||||
Reference in New Issue
Block a user