chore: expand pr to issue tracing for impact report mapped outcomes
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 #Nbody parsing, missing canonical PR closing references. - PR collection limit (
500) truncated the analysis window in active repos.
- Linked issue detection relied primarily on
-
Changes
- Added
closingIssuesReferencesto both merged and closed-unmerged PR dataset queries. - Updated linked-issue derivation to merge:
- GraphQL closing references (
closingIssuesReferences) - Existing body-regex matches (fallback)
- GraphQL closing references (
- Deduplicated merged link sets before writing
linked_issue_numbers. - Replaced hardcoded PR limit with
OBJECTIVE_IMPACT_PR_LIST_LIMIT(default5000) for broader, configurable coverage.
- Added
-
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 Recompile workflows
@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 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.
@copilot Revert changes to
[.github/workflows/agentics-maintenance.yml. You are only allowed to make fixes/changes toobjective-impact-report.mdand it's prepare script.
Reverted in 43b161b — .github/workflows/agentics-maintenance.yml is restored to its pre-PR state.
@copilot Recompile workflow
@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.