Skip to content

Commit f88cda0

Browse files
author
CodeWhale Bot
committed
ci(review): budget complete DeepSeek Pro coverage for release PR 6002
Scope the approved 500000-character, 16-pass and 65536-output-token budget to PR Hmbown#6002 using the existing DeepSeek Pro BYOK route. Keep unrelated PR defaults, explicit repository overrides, pinned diff collection, and fail-closed complete coverage unchanged. Document the release exception alongside the general defaults. Validation: actionlint passed and git diff --check passed. No provider request or public mutation executed; full current-head coverage planning is recorded separately before the public update.
1 parent 9a9883f commit f88cda0

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

.github/workflows/codewhale-review.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ name: Codewhale PR Review
1616
# being fetched for its diff. Same-repository authors already have write access.
1717
#
1818
# CODEWHALE_REVIEW_MAX_CHARS bounds each complete ordered review pass
19-
# (default 200000). CODEWHALE_REVIEW_MAX_PASSES defaults to 1; increasing it is
20-
# an explicit spend/duration choice. Exceeding either bound never posts a prefix.
19+
# (normally 200000). CODEWHALE_REVIEW_MAX_PASSES normally defaults to 1.
20+
# PR #6002 has an explicitly approved 500000-char / 16-pass / 65536-output
21+
# DeepSeek Pro budget below; other PRs retain the conservative defaults.
22+
# Exceeding either coverage bound never posts a prefix.
2123
# Missing keys and provider outages keep the existing advisory policy, and
2224
# their explicit non-run receipts must never be counted as completed reviews.
2325

@@ -139,11 +141,14 @@ jobs:
139141
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
140142
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
141143
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
142-
CODEWHALE_REVIEW_PROVIDER: ${{ vars.CODEWHALE_REVIEW_PROVIDER }}
143-
CODEWHALE_REVIEW_MODEL: ${{ vars.CODEWHALE_REVIEW_MODEL }}
144-
CODEWHALE_REVIEW_MAX_OUTPUT_TOKENS: ${{ vars.CODEWHALE_REVIEW_MAX_OUTPUT_TOKENS }}
145-
CODEWHALE_REVIEW_MAX_CHARS: ${{ vars.CODEWHALE_REVIEW_MAX_CHARS }}
146-
CODEWHALE_REVIEW_MAX_PASSES: ${{ vars.CODEWHALE_REVIEW_MAX_PASSES }}
144+
# One approved release review, using the existing provider secret.
145+
# These ceilings authorize complete ordered passes only for PR #6002;
146+
# repository variables remain explicit operator overrides.
147+
CODEWHALE_REVIEW_PROVIDER: ${{ vars.CODEWHALE_REVIEW_PROVIDER || (github.event.pull_request.number == 6002 && 'deepseek') || '' }}
148+
CODEWHALE_REVIEW_MODEL: ${{ vars.CODEWHALE_REVIEW_MODEL || (github.event.pull_request.number == 6002 && 'deepseek-v4-pro') || '' }}
149+
CODEWHALE_REVIEW_MAX_OUTPUT_TOKENS: ${{ vars.CODEWHALE_REVIEW_MAX_OUTPUT_TOKENS || (github.event.pull_request.number == 6002 && '65536') || '' }}
150+
CODEWHALE_REVIEW_MAX_CHARS: ${{ vars.CODEWHALE_REVIEW_MAX_CHARS || (github.event.pull_request.number == 6002 && '500000') || '200000' }}
151+
CODEWHALE_REVIEW_MAX_PASSES: ${{ vars.CODEWHALE_REVIEW_MAX_PASSES || (github.event.pull_request.number == 6002 && '16') || '1' }}
147152
PR_NUMBER: ${{ github.event.pull_request.number }}
148153
run: |
149154
set -euo pipefail

docs/GITHUB_APP.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ with `--no-project-config`. Account mode deliberately pins the relay route:
7171
the account agent precondition reports a configured provider, but does not
7272
supply an exact model id or a vendor credential to the runner.
7373

74+
For release PR **#6002** only, the workflow supplies an explicitly approved
75+
`deepseek` / `deepseek-v4-pro` route and ceilings of **500000** characters per
76+
pass, **16** complete passes, and **65536** output tokens per request. Existing
77+
repository variables override these values. Other PRs retain the defaults
78+
below. This exception changes no credentials or coverage rules: a diff that
79+
requires more than 16 passes still fails before model review, and a provider
80+
non-run is never completed-review evidence. Keep the release head frozen
81+
during review to avoid cancellation and repeated provider cost.
82+
7483
## Complete diffs and input limits
7584

7685
The workflow checks out the event's pinned head SHA for same-repository PRs,

0 commit comments

Comments
 (0)