Skip to content

[Phase 4B] Post-merge: Report Glitch action and REQ→PR back-link #573

@frankbria

Description

@frankbria

Goal

Add a "Report Glitch" action to each merged PR in the history view that pre-populates the Glitch Capture form with the PR's scope, closing the quality compounding loop.

Background

Follows the PR history view (#572) and depends on the Glitch Capture form (#568). When a deployed PR causes a production glitch, the user should be able to go straight from "that PR" to "capture obligation" without manually re-entering scope. Also adds a back-link from each captured REQ to the PR that introduced the code it guards.

Scope

"Report Glitch" action on each merged PR row in the history view:

  • A [Report Glitch] button/link on each merged PR row
  • Opens the Glitch Capture modal from [Phase 3.5C] Glitch Capture: entry point and capture form #568, pre-populated with:
    • Scope: files changed in the PR (from GitHub API diff)
    • Source: defaults to "Production"
    • A reference note: "Reported from PR #{number}: {title}"
  • User fills in description and selects gates, then submits normally

Back-link on REQ detail:

Acceptance criteria

  • [Report Glitch] button on each PR history row opens pre-populated capture form
  • Scope field contains the PR's changed files
  • REQ detail shows Source PR link when applicable
  • npm test 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