Repository navigation
Description
Split from #177 (Phase 3)
Summary
/review-council produces a multi-agent review verdict locally but has no mechanism to post findings to a GitHub PR. The council's findings currently exist only in the terminal session. This issue adds optional GitHub review posting so the council's consolidated verdict can be shared with PR authors and other reviewers.
Current State
| Capability | /review-pr |
/review-council |
|---|---|---|
| GitHub review posting | Step 11 (verdict-aligned) | None (local only) |
| Review state awareness | Step 7.5 (dedup, CODEOWNER, stale) | None |
| Human confirmation | Required before posting | N/A |
| Inline comments | Up to 15, with suggestion blocks | N/A |
Proposed Changes
Add an optional final step to /review-council that:
- Detects whether the current branch has an open PR (via
gh pr view --json number) or accepts a PR number as argument - If a PR exists, offers to post the consolidated council findings as a GitHub review
- Maps the council verdict to GitHub API event types:
- APPROVE →
APPROVE - REQUEST CHANGES →
REQUEST_CHANGES - APPROVE WITH ADVISORIES →
COMMENT
- APPROVE →
- Aggregates findings from all Divisor personas into a single review body with per-persona sections
- Includes inline comments for file-specific findings (capped at 15)
- Performs pre-posting checks:
- Duplicate review detection
- Stale review dismissal warnings (APPROVE only)
- CODEOWNER requirement warnings
- Requires human confirmation before posting
Design Considerations
- Command convergence: This makes
/review-councila superset of/review-prfor the posting step. Consider whether/review-prshould be deprecated or whether the two commands serve different use cases (lightweight single-agent vs. thorough multi-agent) - Protocol 2 becomes available: With PR context, the
review-contextskill's Protocol 2 (Issue Linking) can
be executed. This may resolve the issue linking investigation (see linked ticket) without requiring a
local-mode variant - Opt-in, not default: Posting should be offered, not automatic, to preserve
/review-council's local-first
identity
Acceptance Criteria
- GitHub review posting offered after council verdict when a PR exists
- Human confirmation required before posting
- Council verdict mapped to correct GitHub API event type
- Per-persona findings aggregated into single review body
- Inline comments for file-specific findings (capped at 15)
- Pre-posting checks: duplicate detection, stale review warnings, CODEOWNER warnings
- No behavioral change when no PR exists (local-only mode unchanged)
- Graceful degradation when
ghCLI unavailable or unauthenticated
Dependencies
- feat: migrate /review-council to consume review-context skill #296 (review-context skill integration) — should merge first
- Phase 2 (CI causality) — recommended but not required; posting a review that hard-gated on pre-existing failures would be misleading
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone ✔️
Activity
fix: address review feedback for review-council posting
feat: add GitHub review posting to /review-council
feat: add GitHub review posting to /review-council
feat: add GitHub review posting to /review-council
feat: add GitHub review posting to /review-council