Skip to content

Review agent should cross-reference ADRs cited in PR descriptions to validate implementation compliance #3007

Description

@fullsend-ai-retro

What happened

On PR #2954, human reviewer ralphbean caught that the migrate-customizations command was placed under fullsend admin instead of fullsend agent, violating ADR-0058 which specifies agent management commands belong under the agent subcommand tree. The PR description explicitly referenced ADR-0064, and ADR-0058 is a related architectural decision governing CLI structure. The fullsend-ai-review bot ran 18 times and never flagged this CLI placement issue despite it being documented in a committed ADR. The human reviewer's knowledge of ADR-0058 was the key differentiator.

What could go better

The review agent does not read or cross-reference ADR documents when reviewing feature implementations, even when the PR description explicitly cites an ADR by number. Human reviewers have internalized these architectural decisions; the agent has no mechanism to access them during review. This is a missing-context gap: the information exists in the repo (as committed ADR files) but the review agent does not consult it.

Proposed change

Add a review sub-agent step or repo-level skill that extracts ADR references from PR descriptions and commit messages (pattern: ADR-NNNN or docs/ADRs/NNNN-*.md), reads the referenced ADRs plus any ADRs they cross-reference, and validates that the implementation is consistent with stated requirements. For this specific case, reading ADR-0064 would have surfaced ADR-0058 (referenced in the deprecation context), which states agent management commands go under fullsend agent. This could be implemented as a skill in .claude/skills/ that the review agent automatically picks up, or as an enhancement to the pr-review skill's sub-agent dispatch logic.

Validation criteria

On the next 5 PRs that reference ADRs in their description, the review agent should read the cited ADRs and flag any implementation choices that contradict ADR requirements. Validate by checking review agent transcripts for ADR file reads and corresponding findings. Success means the agent catches at least one ADR compliance issue it would have previously missed.


Generated by retro agent from #2954

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/reviewReview agentcomponent/harnessAgent harness, config, and skills loadingfeatureFeature-category issue awaiting human prioritizationpriority/mediumNormal priority, plan for next cycleready-for-triageRetro-filed issue awaiting triage agenttriagedTriaged but awaiting human prioritizationtype/featureNew capability request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions