feat(#192): add evidence cap to retro agent's before-proposing check#286
feat(#192): add evidence cap to retro agent's before-proposing check#286fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
Add guidance to the retro-analysis skill that prevents filing evidence issues for parent issues that already have >= 5 open evidence data points. When the cap is hit, the agent skips the proposal and instead notes the parent issue and current PR as an additional data point in the summary comment. This reduces tracking noise without losing signal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
|
🤖 Finished Review · ✅ Success · Started 9:16 AM UTC · Completed 9:28 AM UTC |
Review✅ Approve SummaryThis PR adds an evidence cap to the retro-analysis skill's "Before proposing" section, preventing the retro agent from filing redundant evidence issues when a parent issue already has ≥ 5 open data points. The change is well-scoped — a single skill definition file, a single concern — and directly addresses #192. AnalysisCorrectness. The logic flow is sound: classify as evidence-type → query count via Security. No code execution paths are changed. The skill instructs the agent to use Intent & coherence. The change matches the authorized work in #192 exactly. The scope is appropriately narrow. The approach — skill-level prompt guidance rather than code enforcement — is consistent with how other guardrails in this same file are implemented (e.g., the duplicate-check section immediately above). The definition of "evidence-type proposal" at the top of the subsection provides clear classification criteria for the agent. Style & conventions. The writing style, markdown structure, and heading levels match the surrounding content. The new subsection follows the same pattern as the duplicate-check section: explain the concept → provide a subagent prompt → show the query template → define skip/include behavior. Findings
Previous runReview — commentReviewed: SummaryThis PR adds an evidence cap subsection to the retro-analysis skill's "Before proposing" section. It addresses the noise problem documented in #192 (64 open evidence issues, top 5 parents owning 32 of them) by instructing the retro agent to skip evidence proposals when a parent issue already has ≥ 5 open data-point issues. The change is well-scoped, correctly placed, and architecturally consistent. The fail-open behavior is appropriate (this is a quality-of-life deduplication feature, not a security boundary). No security, intent, style, or documentation currency concerns were found. Findings1. Undefined "evidence-type proposals" concept — medium / correctnessFile: The new section references "evidence-type proposals" and the Risk: An LLM consuming this skill may misclassify a proposal that is similar to but not exactly an "evidence" issue, either over-suppressing new patterns or under-suppressing redundant evidence. Remediation (non-blocking): Consider adding a one-sentence definition of evidence-type proposals earlier in the "Before proposing" section or as a preamble to the new subsection, e.g.: "An evidence-type proposal is one where the agent observes a new instance of a pattern already tracked by an existing open issue, and would title its proposal 'Evidence for #N: ' rather than proposing a new improvement." 2. Search query tightly coupled to exact title format — low / robustnessFile: The Remediation (non-blocking): Consider dropping the trailing colon from the search phrase to match more broadly: Dimensions reviewed
Previous run (2)ReviewFindingsLow
Labels: PR modifies a skill definition (retro-analysis SKILL.md), which is documentation-category content. |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 10:19 AM UTC · Completed 10:27 AM UTC |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 11:12 AM UTC · Completed 11:22 AM UTC |
- Define "evidence-type proposal" explicitly at the start of the subsection so the retro agent has a clear classification criteria - Drop trailing colon from the gh api search query to match evidence issues more broadly regardless of minor title variations - Update subagent prompt to say "contains" instead of "starts with" to accurately describe the in:title search behavior Addresses review feedback on #286
🔧 Fix agent — iteration 1 (human-triggered)Addressed both review findings. (1) Added an explicit definition of evidence-type proposals at the start of the subsection. (2) Relaxed the search query by dropping the trailing colon for broader matching. Fixed (2):
Tests: passed Updated by fullsend fix agent |
|
🤖 Finished Review · ✅ Success · Started 11:27 AM UTC · Completed 11:32 AM UTC |
Summary
This reduces tracking noise (64 open evidence issues, top 5 parents owning 32 of them) without losing signal — the PR is still mentioned as a data point in the summary.
Supersedes #211 (rebased on current main to resolve CI failures from stale base).
Closes #192
Test plan
internal/scaffold/fullsend-repo/skills/retro-analysis/SKILL.mdgh apiquery template uses the correct search syntax for title-matching evidence issuesmake lintpasses (trailing whitespace, end-of-file, markdown links)Generated with Claude Code