Trigger semantic reviews from CI after required checks pass #42

Closed
opened 2026-05-02 19:41:05 -07:00 by jwilger · 0 comments
Owner

Problem

Today the gateway starts a semantic review directly from PR webhooks. That spends LLM tokens before deterministic CI has passed, so auto_review may review code that already has objective failures. It also forces the gateway to understand CI/check status ordering itself.

Direction

Make the normal review trigger come from CI after the project-selected prerequisite jobs pass. The gateway remains the persistent service for chat commands, review history, learnings, posting reviews, and deduplication; CI only decides when the code is ready for semantic review.

Acceptance

  • Add an authenticated gateway endpoint for CI-triggered review dispatch.
  • The request includes owner, repo, PR number, head SHA, and trigger metadata.
  • The gateway verifies the PR still exists and the supplied head SHA matches Forgejo before dispatching.
  • Existing review-history dedup still prevents duplicate reviews for the same SHA unless force is requested.
  • Document a Forgejo workflow where auto_review runs in a job with normal needs: dependencies after deterministic checks pass.

Follow-ups / dependencies

Blocks: the workflow action wrapper, disabling webhook auto-review dispatch, and removing bundled linter execution.

## Problem Today the gateway starts a semantic review directly from PR webhooks. That spends LLM tokens before deterministic CI has passed, so auto_review may review code that already has objective failures. It also forces the gateway to understand CI/check status ordering itself. ## Direction Make the normal review trigger come from CI after the project-selected prerequisite jobs pass. The gateway remains the persistent service for chat commands, review history, learnings, posting reviews, and deduplication; CI only decides when the code is ready for semantic review. ## Acceptance - Add an authenticated gateway endpoint for CI-triggered review dispatch. - The request includes owner, repo, PR number, head SHA, and trigger metadata. - The gateway verifies the PR still exists and the supplied head SHA matches Forgejo before dispatching. - Existing review-history dedup still prevents duplicate reviews for the same SHA unless force is requested. - Document a Forgejo workflow where auto_review runs in a job with normal `needs:` dependencies after deterministic checks pass. ## Follow-ups / dependencies Blocks: the workflow action wrapper, disabling webhook auto-review dispatch, and removing bundled linter execution.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Slipstream/auto_review#42
No description provided.