feat(council): add Consensus Summary layer for multi-agent output (#1263)#1279
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
JeremyDev87
commented
Apr 4, 2026
JeremyDev87
left a comment
Owner
Author
There was a problem hiding this comment.
Review: APPROVE ✅
CI Status: ALL PASS (25/25)
Code Quality
- Pure function
generateCouncilSummary— no side effects, no I/O CouncilSummarytype:readonlyproperties throughout for immutability- Clean separation: types in
.types.ts, logic in.service.ts - Graceful partial failure: failed agents tracked, degraded summary still produced
determineNextSteppriority 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
anytypes - Reuses existing
AgentOpinionandStancetypes from./types
Recommendation: APPROVE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CouncilSummary,Disagreement,CouncilInputtypes for structured consensus outputgenerateCouncilSummaryservice: aggregates opinions, detects consensus/disagreements, extracts blocking risks, recommends next stepTest plan
Closes #1263