What happened
The retro agent filed issue #7305 proposing AGENTS.md documentation about data-acceptable-bundles GC risk. This triggered the full pipeline: triage (run 27749792636), code (run 27750013305), and review (run 27750234906). Maintainer yftacherzog closed PR #7306 and the issue, explaining that PR #7164 had already implemented an upstream fix and the documentation was unnecessary. The entire pipeline (4 agent runs, ~40 minutes) was wasted work.
What could go better
The retro agent proposed a documentation change for a problem (issue #6997) that already had an active fix in PR #7164. Had the retro agent searched for existing PRs mentioning issue #6997 or the data-acceptable-bundles image, it would have found PR #7164 and could have either skipped the proposal or noted the existing fix attempt.
Existing issue #1948 covers searching for related open issues but does not extend to searching for related PRs (open or recently merged/closed) that may already address the root cause. This is a meaningful gap: in this case, the fix was a PR, not an issue, so issue-only dedup would not have caught it.
Confidence: High. The causal chain is clear — the retro agent filed an issue without checking for existing PRs addressing the same root cause, leading to wasted pipeline runs.
Proposed change
Extend the retro agent's pre-filing validation (in the retro agent definition or the retro-analysis skill's 'Before proposing' section) to include a PR search step alongside the existing issue search. Specifically:
- Before filing a new issue, the retro agent should search for open and recently-closed PRs in the target repo that reference the same root-cause issue or touch the same files/components.
- The search should use both
gh api search/issues (which covers PRs) with queries like <keywords> repo:<target> is:pr and direct searches for referenced issue numbers.
- If a related PR exists (open or closed within last 90 days), the retro agent should either skip the proposal or note the existing work and explain why additional action is still needed.
This refines the scope of #1948 to include PR-based dedup, not just issue-based dedup.
Validation criteria
In the next 10 retro agent runs that propose issues related to problems with existing PRs, the retro agent should either (a) skip the proposal and note the existing PR in its summary, or (b) explicitly justify why a new issue is needed despite the existing PR. Zero instances of filing issues for problems already addressed by existing PRs.
Generated by retro agent from konflux-ci/konflux-ci#7306
What happened
The retro agent filed issue #7305 proposing AGENTS.md documentation about data-acceptable-bundles GC risk. This triggered the full pipeline: triage (run 27749792636), code (run 27750013305), and review (run 27750234906). Maintainer yftacherzog closed PR #7306 and the issue, explaining that PR #7164 had already implemented an upstream fix and the documentation was unnecessary. The entire pipeline (4 agent runs, ~40 minutes) was wasted work.
What could go better
The retro agent proposed a documentation change for a problem (issue #6997) that already had an active fix in PR #7164. Had the retro agent searched for existing PRs mentioning issue #6997 or the data-acceptable-bundles image, it would have found PR #7164 and could have either skipped the proposal or noted the existing fix attempt.
Existing issue #1948 covers searching for related open issues but does not extend to searching for related PRs (open or recently merged/closed) that may already address the root cause. This is a meaningful gap: in this case, the fix was a PR, not an issue, so issue-only dedup would not have caught it.
Confidence: High. The causal chain is clear — the retro agent filed an issue without checking for existing PRs addressing the same root cause, leading to wasted pipeline runs.
Proposed change
Extend the retro agent's pre-filing validation (in the retro agent definition or the retro-analysis skill's 'Before proposing' section) to include a PR search step alongside the existing issue search. Specifically:
gh api search/issues(which covers PRs) with queries like<keywords> repo:<target> is:prand direct searches for referenced issue numbers.This refines the scope of #1948 to include PR-based dedup, not just issue-based dedup.
Validation criteria
In the next 10 retro agent runs that propose issues related to problems with existing PRs, the retro agent should either (a) skip the proposal and note the existing PR in its summary, or (b) explicitly justify why a new issue is needed despite the existing PR. Zero instances of filing issues for problems already addressed by existing PRs.
Generated by retro agent from konflux-ci/konflux-ci#7306