Skip to content

[Phase 4B] Post-merge: PR history view with proof snapshots #572

@frankbria

Description

@frankbria

Goal

Add a PR history view to the Review page listing recently merged PRs alongside their PROOF9 proof reports at time of merge.

Background

First half of the post-merge glitch capture loop. After PRs merge, users need to see what was shipped and what proof was attached — so they can identify which PR introduced a production glitch.

Scope

PR History section on the Review page (shown below the PR Status panel, or as a tab):

  • Lists the last 10 merged PRs for the workspace: PR title, merge date, author, link to GitHub
  • Each row shows a proof snapshot badge: how many gates passed / total at time of merge (e.g., "7/9 gates passed")
  • Clicking a row expands to show the gate-by-gate breakdown at time of merge
  • Backend: GET /api/v2/pr/history?workspace=...&limit=10 — queries merged PRs from GitHub API and joins with proof run records stored in the DB by PR number
  • Empty state: "No merged PRs yet" with link to Review page workflow

Acceptance criteria

  • PR history list renders with title, date, proof snapshot
  • Expanding a row shows gate breakdown
  • Backend endpoint returns correct merged PR + proof data
  • npm test and uv run pytest pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-4Phase 4: Multi-Agent Coordination

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions