Repository navigation
ci(lens): let /lens recheck opt into the raised verify budget - #4806
Conversation
A recheck always ran at verify_max_tokens (8,000). A reasoning model can spend all of it before answering, and the recheck then reported only "no verdict came back", with no way to give it more room. /lens recheck verify-budget F-… [reason] now uses verify_max_tokens_opt_in, as /lens verify-budget does for a round, and a recheck that runs out of output budget says so and names the opt-in.
|
/lens |
lens summary · updated after round 2 (re-review · only commits since c48dd16)✅ Ready to merge — every finding is resolved Open findings: 🔴 0 critical · 🟠 0 high · 🟡 0 medium · ⚪ 0 low (nit) lens reads this PR as — A one-off Approach check — sound. ✔️ Resolved (1)
🕘 Round history (2)
round 2 · $0.037 of $1.00 · 24 model calls · 0 failed requests · 79% prompt cache hits · gpt-6-luna |
A provider that stops at its output cap after starting the verdicts call returns truncated arguments that parse to no verdict. That was reported as {} and not a cut-off, so the opt-in went unnamed. A capped call now counts as cut off whenever any finding lacks a verdict; completed verdicts are kept, and the retry line names only the findings left unjudged.
|
/lens |
|
✅ lens · round 2 · re-review · only commits since c48dd16 — ready to merge — every finding resolved · $0.04 Open findings: 🔴 0 critical · 🟠 0 high · 🟡 0 medium · ⚪ 0 low (nit) Approach check — ✅ sound
$0.037 of $1.00 · 24 model calls · 0 failed requests |
Summary
/lens recheckalways called the model withverify_max_tokens(8,000). Reasoning tokens count against that limit, so a hard finding can use all of it before the model writes a verdict. The recheck then reports only "no verdict came back", and the author can't give it more room. Rounds already have an opt-in for this (/lens verify-budget); rechecks didn't.This happened on #4731: two rechecks of one finding, both with evidence, each ended at
out=8000 reasoning=8000and returned no verdict.Changes
/lens recheck verify-budget F-… [reason]makes the recheck useverify_max_tokens_opt_in(24,000), the same budget/lens verify-budgetgives a round. The word counts as the opt-in only right afterrecheck; anywhere later it is part of the reason._recheck_callnow reports when the call stopped at its output limit, using the existing_out_of_output_budgetcheck.re-check: ran out of output budget;event.pydocstring and the.github/lens/config.tomlcomment are updated.Testing
test_lens.py:max_tokens=24000;🤖 Generated with Claude Code
https://claude.ai/code/session_01AbKqGbjx7uUk6aM6jzSxNF