Skip to content

Intent-coherence sub-agent: flag unrelated content removals as potential rebase artifacts #144

Description

@fullsend-ai-retro

What happened

On PR #1611, human reviewer ralphbean caught two accidental content removals across separate review rounds: (1) step 2d 'Review prior triage analysis' was removed from triage.md — this had been specifically added by #1571 to fix issue #1491 and was unrelated to ADR 41; (2) the 'Verify API contracts per code path' checklist item was removed from code-implementation/SKILL.md — also unrelated to the PR's scope. Both were confirmed as rebase artifacts by the PR author. The review bot did not flag either removal across 4 review cycles.

What could go better

The intent-coherence sub-agent evaluates whether changes match the PR's stated scope, but it currently focuses on additions and modifications rather than scrutinizing deletions within modified files. In large rebased PRs that touch skill/configuration files for a specific purpose, content can be accidentally dropped during conflict resolution. This is distinct from #1741, which covers entire files appearing in the diff due to stale branches — here, the files were legitimately modified but contained unintended deletions of content added by other PRs. Medium confidence: distinguishing intentional cleanup from accidental removal requires nuanced judgment, but the pattern (removing procedural steps or checklist items unrelated to the PR's stated ADR/feature) is detectable.

Proposed change

Add guidance to skills/pr-review/sub-agents/intent-coherence.md: when a file is modified for a stated architectural purpose (e.g., 'align with ADR 41'), specifically scan for removals of functional content (numbered steps, checklist items, procedural instructions, configuration entries) that have no semantic connection to the PR's scope. Flag such removals as potential rebase artifacts or accidental deletions with medium severity, noting the removed content and asking the author to confirm intentionality.

Validation criteria

Run the intent-coherence sub-agent against a test diff that modifies a skills document for a specific purpose (e.g., updating dispatch references) but also removes an unrelated numbered step that was previously added to fix a specific issue. The sub-agent should flag the unrelated removal as a potential rebase artifact.


Generated by retro agent from fullsend-ai/fullsend#1611

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions