Skip to content

feat: add GitHub review posting to /review-council #314

Description

@yvonnedevlinrh

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:

  1. Detects whether the current branch has an open PR (via gh pr view --json number) or accepts a PR number as argument
  2. If a PR exists, offers to post the consolidated council findings as a GitHub review
  3. Maps the council verdict to GitHub API event types:
    • APPROVE → APPROVE
    • REQUEST CHANGES → REQUEST_CHANGES
    • APPROVE WITH ADVISORIES → COMMENT
  4. Aggregates findings from all Divisor personas into a single review body with per-persona sections
  5. Includes inline comments for file-specific findings (capped at 15)
  6. Performs pre-posting checks:
    • Duplicate review detection
    • Stale review dismissal warnings (APPROVE only)
    • CODEOWNER requirement warnings
  7. Requires human confirmation before posting

Design Considerations

  • Command convergence: This makes /review-council a superset of /review-pr for the posting step. Consider whether /review-pr should 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, thereview-context skill'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 gh CLI unavailable or unauthenticated

Dependencies

Metadata

Metadata

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions