review: per-reviewer prompt-token cap #16
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tier: Improve Cadence (ranked #3) · small safety
Cadence sends artifacts to a paid review provider with no size ceiling. Adopt a per-reviewer prompt-token cap.
Why: GSD-core's
max_prompt_tokens_per_revieweris a one-key guard against an unbounded paid call. Cheap insurance.Cost: one key under
review.*plus the check that honors it.Source: internal GSD comparison note, 2026-07-18.
Closed by v2.1.0 (REV-03).
review.max_prompt_tokens(default 120000) bounds the payload before any paid call is issued: an over-cap payload is refused withok:false, reason: over-cap, and a non-string payload field is refused asbad-payloadfirst, since an unmeasurable field is an unbounded one. The cap governs cross-model provider calls; the freeclaude-subagentreviewer never runs that script.v2.3.0 (RES-03) moved the check to measure the payload FILE's contents rather than a composed string, so the cap still binds now that reviewers receive references instead of inlined artifacts.
Verified against the tree at the v2.3.0 close:
config.schema.json:65.