gh-aw icon indicating copy to clipboard operation
gh-aw copied to clipboard

chore: expand pr to issue tracing for impact report mapped outcomes

Open Copilot opened this issue 5 months ago • 2 comments

Impact Efficiency Report was undercounting accepted mapped outcomes because PR root-issue tracing only captured a subset of closing references and operated on a small PR sample. This change broadens linkage extraction and increases dataset coverage so mapped outcome counts reflect actual traced work.

  • Root cause

    • Linked issue detection relied primarily on Closes/Fixes/Resolves #N body parsing, missing canonical PR closing references.
    • PR collection limit (500) truncated the analysis window in active repos.
  • Changes

    • Added closingIssuesReferences to both merged and closed-unmerged PR dataset queries.
    • Updated linked-issue derivation to merge:
      • GraphQL closing references (closingIssuesReferences)
      • Existing body-regex matches (fallback)
    • Deduplicated merged link sets before writing linked_issue_numbers.
    • Replaced hardcoded PR limit with OBJECTIVE_IMPACT_PR_LIST_LIMIT (default 5000) for broader, configurable coverage.
  • Behavioral impact

    • More PR outcomes now resolve to traced root issues.
    • Accepted mapped outcome counts in the impact report are expected to increase from the previous undercount.
# Before (narrow + fixed cap)
gh pr list ... --limit 500 --json number,title,url,mergedAt,closedAt,body,labels

# After (broader tracing + configurable cap)
gh pr list ... --limit "$pr_list_limit" \
  --json number,title,url,mergedAt,closedAt,body,labels,closingIssuesReferences

Copilot avatar Jun 16 '26 17:06 Copilot

@copilot Recompile workflows

mnkiefer avatar Jun 16 '26 17:06 mnkiefer

@copilot Recompile workflows

Ran make recompile — all 249 workflows compiled successfully (0 errors). The .lock.yml files were already in sync with the workflow sources, so no new changes were produced.

Copilot avatar Jun 16 '26 17:06 Copilot

@copilot Revert changes to [.github/workflows/agentics-maintenance.yml. You are only allowed to make fixes/changes to objective-impact-report.md and it's prepare script.

mnkiefer avatar Jun 16 '26 18:06 mnkiefer

@copilot Revert changes to [.github/workflows/agentics-maintenance.yml. You are only allowed to make fixes/changes to objective-impact-report.md and it's prepare script.

Reverted in 43b161b — .github/workflows/agentics-maintenance.yml is restored to its pre-PR state.

Copilot avatar Jun 16 '26 18:06 Copilot

@copilot Recompile workflow

mnkiefer avatar Jun 16 '26 18:06 mnkiefer

@copilot Recompile workflow

Ran make recompile — all 249 workflows compiled successfully (0 errors). The .lock.yml files are already in sync with the current sources.

Copilot avatar Jun 16 '26 18:06 Copilot