Skip to content

Review agent outputs approve despite detecting protected-path constraint #297

Description

@fullsend-ai-retro

What happened

On PR #195, the review agent detected protected paths and stated it cannot approve — yet output approve. Same pattern on PR #37 (#52).

What could go better

The agent generates narrative text about the constraint but no structured finding to force the verdict. The pr-review SKILL.md step 6e rule isn't mechanically enforced. Confidence: HIGH.

Proposed change

In skills/pr-review/SKILL.md, require that protected-path matches produce a structured finding with source: 'protected-path' and severity critical, forcing action to comment. Consider a schema constraint in schemas/review-result.schema.json rejecting action=approve with protected-path findings.

Validation criteria

Next 3 review runs on PRs touching protected paths should never output action=approve. Verify via agent-result.json artifacts.


Generated by retro agent from #195

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions