Repository navigation
ci(claude): move Claude workflows to Opus 5.5; stop audits losing their findings - #4191
Conversation
…sing their work The nightly audits have filed no issues because most nights one lens fails and synthesis, correctly, refuses to file off a partial sweep. Two causes: - A lens hits its 45-turn ceiling before writing its findings file. The prompt asked it to stop "at ~5 turns remaining", which it cannot count; the `features` lens spent $3.85 one night and handed over nothing. Nightly lenses now write the file first and update it after each confirmed finding, with a `complete` flag; synthesis files what they found and warns by name about any sweep that did not finish. The security audit keeps all-or-nothing: a partial file there would upload a SARIF that clears alerts the lens never re-checked. - The shared Claude subscription runs out of its weekly quota (Sep 15-16, 22-23), failing every lens in 1 turn with only `is_error:true` in the log, which synthesis then blamed on an install flake. Both audits now name the cause — quota, credential or turn ceiling — via util/classify_claude_probe.py. Turn ceilings rise to at least 100 (audit lenses and the walkthrough executor to 150); the auth canary stays at its deliberate 1. Every Claude Code job moves to claude-opus-5-5 at its default effort. Opus 5.5 needs Claude Code 2.1.280+, and both pinned claude-code-action SHAs bundled older CLIs (2.1.277, 2.1.261), so the action moves to 9171db3 (2.1.282) and claude-run.yml's CLI pin to 2.1.282 in the same change. The eval scenario driver stays on claude-sonnet-4-6: the committed baselines were recorded with it, and changing it would compare a different agent against them on every PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Request changesGood diagnosis and the right fix shape: lenses that write findings as they go, an explicit "did this sweep finish?" flag, and a step that names why a run stopped. The incremental-write design is the correct answer to "the The new "say why Claude stopped" step is the problem. It reuses the auth-canary's classifier, which was built to read a one-line probe reply, and hands it the lens's entire transcript instead. The classifier looks for words like unauthorized, rate limit, billing and for bare Two more worth fixing before merge:
One judgment call worth stating out loud, not a blocker: the stated root cause includes exhausting the shared weekly subscription limit, and this PR responds by raising turn ceilings more than threefold across five nightly lenses and moving the per-push re-review from Sonnet to Opus. That is the highest-frequency Claude job in the repo. If the quota is the binding constraint, this may make the symptom more common before the incremental writes make it survivable. Real-world evidenceN/A — CI/workflow-only change, no runnable GAIA surface; no evidence bundle was produced for this PR, so the verdict rests on static review plus local reproduction of the classifier and shell behaviour (both shown in the technical details below). The evidence that actually matters here is the PR's own last two test-plan items — the canary dispatch at 🔍 Technical details🟡 Important1.
Reproduced locally against a synthetic-but-realistic security-lens transcript: The transcript contained nothing but ordinary audit prose ( Suggested fix: classify only the terminal Apply the same change in both workflows. 2. The completeness check aborts the gate on an unparseable findings file ( The step runs under
3. Every updated action pin carries a stale version comment (11 sites)
One example; apply the same to 🟢 Minor4. 5. Two more places still name Opus 5 as the audit model — 6. The security audit's stop message asserts an outcome it cannot know ( Strengths
|
main renamed test_eval_agent_gemma_consolidation.yml to eval_flagship.yml (amd#4096); this branch's task-judge bump follows it under the new name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dings file Review follow-ups on amd#4191. - The stop-reason step fed a lens's whole transcript to classify_claude_probe, which matches words like "unauthorized" and bare 401/403. A security lens writes about exactly those, so a mid-run failure would have been reported as a dead credential and sent someone to rotate secrets. Only the terminal result entry is classified now. - A findings file truncated mid-write (job timeout, cancelled runner) crashed the completeness check and aborted synthesis, losing every other lens's work. Both layers now treat it as one unfinished lens: the check reports it by name, and prepare_synthesis quarantines it as a reject. A run where every file is unreadable still aborts rather than reading as a clean audit. This reverses the earlier "an unreadable file aborts the run" test deliberately — dropping it is no longer silent, and incremental writes widen the window. - Pin comments now name the real tag, v1.0.234, instead of v1.0.230 / v1.0.216. - Removed stale wording: the re-review is no longer a Sonnet pass, the audit model is Opus 5.5 in the workflow, the weekly-audit skill and both plan docs, and the security stop message no longer claims an outcome it cannot know. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both review fixes shipped as inline Python inside a `run:` block, which no
test could reach, so nothing stopped either regression from coming back.
Extract the snippet each step actually runs and execute it:
- A transcript full of ordinary auth prose ("returns 403 ... 401 for an
expired one ... unauthorized") plus a generic crash must not be diagnosed
as a dead credential, while a real 401 in the terminal result still must be.
The second test is what stops the first being satisfied by classifying
nothing at all.
- A findings file truncated mid-write must be named as an unfinished lens and
leave the gate at exit 0, not abort it and unfile every other lens's work.
All five fail against the pre-fix workflows.
|
Both blockers were already fixed in The classifier fix is real: fed a transcript containing ordinary audit prose about 403s and expired tokens, the old path reported Both fixes shipped as inline Python inside a 🔍 Technical detailsReproduction (pre-fix, whole transcript via Transcript: one assistant block reading Post-fix, same transcript, result-only extraction + Regression check through the new path: a Tests added (
Both snippets are pulled out of the parsed YAML rather than duplicated, so a rewrite of either step fails the extraction assertion instead of silently testing a stale copy. Results Pre-fix (workflows reverted to Merged current |
The nightly code and security audits have filed nothing for weeks, and this is why. Most nights one lens fails, and synthesis — correctly — refuses to file off a partial sweep. Either a lens ran out of turns before writing anything (the
featureslens spent $3.85 one night and handed over nothing), or the shared Claude subscription hit its weekly limit and every lens failed in its first turn, logged only asis_error:trueand then blamed on an install flake. This PR makes nightly lenses keep what they found, makes every early stop name its real cause, raises turn ceilings to 100+, and moves every Claude Code job to Opus 5.5.completeflag. A lens cut off by its ceiling still gets its confirmed findings filed, and synthesis warns by name about the sweep it didn't finish. The security audit stays all-or-nothing on purpose: a partial file there would upload a SARIF that clears alerts the lens never re-checked.claude-code-actionSHAs bundled older CLIs (2.1.277 and 2.1.261), so a model-id swap alone would have broken these jobs. The action moves to9171db3(2.1.282) — the only non-version-bump commit in between is that repo's own CI — andclaude-run.yml's CLI pin moves to 2.1.282.medium), one level below Opus 5'shigh. We'll raise it in a follow-up if the test runs show the reviews missing things.claude-sonnet-4-6. The committed baselines were recorded with it, so switching it would compare a different agent against them on every PR. Moving it means regenerating the baselines too.Test plan
test_claude_audit_workflow_contract.py) fail againstmainand pass here: nightly lenses write early and mark completion, a partial sweep is reported, the security audit does not write incrementally, and both audits explain an early stop.gh workflow run claude-auth-canary.yml -f model=claude-opus-5-5passes on this branch.claude-nightly-audit.ymlandclaude-security-audit.ymlruns on this branch complete, and every lens reports in.🤖 Generated with Claude Code