Skip to content

the review gate's token budget cannot complete a large review — the required check stays red on purpose #210

Open

Description

@aitrawog

The org review gate cannot complete a large review, so the required check stays red on purpose and the PR can never merge.

MEASURED (opencharly/lobster#2, verdict comment):

  • class: empty completion (the token budget was spent on reasoning before any answer; not retryable)
  • verdict class: infra — does NOT count toward AI_REVIEW_AUTO_CLOSE_AFTER
  • the engine's own line: the model emitted only 491045 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort
  • engine request line: reasoning_effort="low" max_tokens=262144 ... context_bytes=(system=35327 user=31652) files=1 comments=6
  • re-run with the same bounds reproduces it, so a re-run is not a remedy.

WHERE THE BOUNDS COME FROM, measured in opencharly/.github:
.github/workflows/pr-validator.yml reads them from repository/organization Actions variables, not from the file:

AI_REVIEW_REASONING_EFFORT: ${{ vars.AI_REVIEW_REASONING_EFFORT || '' }}
AI_REVIEW_MAX_TOKENS:       ${{ vars.AI_REVIEW_MAX_TOKENS || '' }}

So the remedy is a variable change, not a code change.

REMEDY OPTIONS (the gate names both):

  1. raise AI_REVIEW_MAX_TOKENS so the reasoning budget leaves room for an answer — this is the direct fix, and it
    costs more per review run;
  2. lower AI_REVIEW_REASONING_EFFORT so less of the budget is spent reasoning.

BLAST RADIUS: any PR whose review needs a large reasoning pass. The gate is deliberately RED on an unreviewed diff
("unreviewed code must never merge"), so this presents as an unmergeable PR rather than a red one — it is the same
shape as the .github#207 outage: an unreadable gate, not a failing one. It is a different mechanism, and it
affects only reviews large enough to exhaust the budget.

NEXT STEP: this is an org-wide AI-cost/policy setting, so it is the operator's call rather than an agent's. Whichever
option is chosen, the change is one variable and needs no PR; once set, a re-run of the affected threads produces a
real verdict.

Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — recorded from opencharly/lobster#2's INCONCLUSIVE verdict. No open PR or issue touched the bound before this; the fix is an operator variable change, so this issue carries the measurement and the remedy rather than a diff.

    Agent: lead
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  2. added
    category:governance
    type:fix
    on Nov 23, 2026
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

    category:governancetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions