Skip to content

feat(council): add Consensus Summary layer for multi-agent output (#1263)#1279

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775266813/pane-3
Apr 4, 2026
Merged

feat(council): add Consensus Summary layer for multi-agent output (#1263)#1279
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775266813/pane-3

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Define CouncilSummary, Disagreement, CouncilInput types for structured consensus output
  • Implement generateCouncilSummary service: aggregates opinions, detects consensus/disagreements, extracts blocking risks, recommends next step
  • Handle partial failures gracefully — degraded but useful summary when specialists fail
  • 11 test cases covering normal, partial failure, no-disagreement, blocker-heavy, and edge cases

Test plan

  • Normal case: all specialists respond → full summary with opinions, consensus, disagreements
  • Partial failure: 1+ specialist fails → degraded summary still produced
  • No disagreement: all agree → empty disagreements array
  • Blocker-heavy: multiple reject-stance agents → all blocking risks collected
  • nextStep always present even on total failure
  • Edge case: empty input, shared suggested changes

Closes #1263

)

Add CouncilSummary type and generateCouncilSummary service that aggregates
specialist opinions into consensus, disagreements, blocking risks, and a
recommended next step. Handles partial failures gracefully — produces a
degraded but useful summary even when some specialist calls fail.
@JeremyDev87 JeremyDev87 added feat tui TUI Agent Monitor mcp-server apps/mcp-server labels Apr 4, 2026
@vercel

vercel Bot commented Apr 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 4, 2026 1:53am

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE ✅

CI Status: ALL PASS (25/25)

Code Quality

  • Pure function generateCouncilSummary — no side effects, no I/O
  • CouncilSummary type: readonly properties throughout for immutability
  • Clean separation: types in .types.ts, logic in .service.ts
  • Graceful partial failure: failed agents tracked, degraded summary still produced
  • determineNextStep priority chain: blockers > failures > concerns > proceed
  • Shared suggestion detection across agents
  • Barrel export in index.ts

Tests (11)

  • All specialists respond → full summary
  • Partial failure (1+ fail) → degraded summary
  • Single survivor → still works
  • No disagreement → empty disagreements
  • Blocker-heavy → blocking risks collected
  • Total failure → meaningful nextStep
  • Empty input → safe defaults
  • Shared suggestions → detected in consensus

No Issues Found

  • No unused imports/variables
  • No any types
  • Reuses existing AgentOpinion and Stance types from ./types

Recommendation: APPROVE

@JeremyDev87 JeremyDev87 self-assigned this Apr 4, 2026
@JeremyDev87 JeremyDev87 merged commit 573c04c into master Apr 4, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775266813/pane-3 branch April 4, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat mcp-server apps/mcp-server tui TUI Agent Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(council): add a Consensus Summary layer on top of multi-agent outputs

1 participant