Skip to content

fix(docs): make Agent docs review the only gate - #688

Open
rachaelrenk wants to merge 1 commit into
mainfrom
rachaelrenk/agent-docs-review-check-only
Open

fix(docs): make Agent docs review the only gate#688
rachaelrenk wants to merge 1 commit into
mainfrom
rachaelrenk/agent-docs-review-check-only

Conversation

@rachaelrenk

Copy link
Copy Markdown
Contributor

Summary

Makes the required Agent docs review status check the only automated merge gate. Bot review results remain visible on the PR, but they no longer create a sticky GitHub CHANGES_REQUESTED state.

Changes

  • Publishes every independent-agent verdict as a non-blocking GitHub review comment.
  • Dismisses only stale CHANGES_REQUESTED reviews created by github-actions[bot]; human reviews and the current commit's review remain untouched.
  • Adds regression coverage for comment-only review events, hidden parseable signals, and stale-review selection.

Unverified claims

None — this changes internal documentation-review automation only.

Documentation risk

Risk: low
Rationale: This internal review-workflow change removes stale bot review states without changing public product documentation.
Docs override: none

Validation

  • python3 .agents/skills/doc_quality_policy/test_publish_review_signal.py — passed (4 tests).
  • python3 .agents/skills/doc_quality_policy/test_verify_review_signal.py — passed (14 tests).
  • python3 .agents/skills/doc_quality_policy/test_stale_review_requests.py — passed.
  • Workflow YAML parsed successfully.

Co-Authored-By: Warp agent@warp.dev

Co-Authored-By: Warp <agent@warp.dev>
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 4, 2026 9:29pm UTC

Request Review

@cla-bot cla-bot Bot added the cla-signed label Sep 4, 2026
@warp-for-oss

warp-for-oss Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

@rachaelrenk

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@rachaelrenk rachaelrenk added the warpy-factory Opened by the Warp factory agents label Sep 4, 2026

@warp-for-oss warp-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR changes the agent-docs review publisher to submit non-blocking review comments and adds a workflow step/script to dismiss stale automated change-request reviews.

Concerns

  • The stale-review dismissal step only reads the first page of pull request reviews, so a long-lived PR can keep an older bot change-request review on a later page and still be blocked by GitHub review state.
  • The dismissal pipeline can mask failures from the Python selector under the workflow's default shell behavior, leaving stale review states in place while later steps continue.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

env:
GH_TOKEN: ${{ github.token }}
run: |
gh api "repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100" > /tmp/reviews.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] This fetch only reads the first 100 reviews, so a long-lived agent PR can retain a stale CHANGES_REQUESTED review on a later page and still keep GitHub's review gate blocking merge after this step completes. Paginate and slurp all pages before passing them to stale_review_requests.py.

python3 .agents/skills/doc_quality_policy/stale_review_requests.py \
--reviews /tmp/reviews.json \
--head-sha "${{ github.event.pull_request.head.sha }}" |
while IFS= read -r review_id; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] If stale_review_requests.py exits non-zero, this pipeline can still succeed under the default implicit bash shell because only the while loop's status is checked; that would skip dismissals without failing the workflow. Enable pipefail or write the selected IDs to a temp file before looping.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

The independent agent completed its review for this commit.

Findings

  • risk-classification (1)
  • doc-drift (1)
  • ci-pagination (1)

Verdict

Request changes

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

Labels

cla-signed warpy-factory Opened by the Warp factory agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant