Repository navigation
fix(claude-lanes): classify timeouts and max turns, harden intake outcomes - #691
Conversation
- report-lane-outcome takes the Claude step's start epoch and timeout-minutes; a failed step that ran its whole budget classifies as `timeout`. Subtype error_max_turns classifies as `max-turns`. The review lanes' status steps name both. - intake-triage: an is_error result is an infrastructure failure, not a needs-human escalation (max turns still escalates); the CLI install step gets a 3-minute timeout inside the 12-minute job. - pr-review-security exports review-failed and failure-class through workflow_call, as pr-review does. - Correct the validation-skip comment: the status steps go red on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…puts - The status-step corpus covers the timeout and max-turns classes. - Both lanes must export review-failed and failure-class through workflow_call, and time the review against the step's own timeout-minutes. - README lists the two new failure classes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Run the apply step's script: an is_error result applies nothing, and a run stopped at max turns still escalates. - README: both review lanes expose review-failed and failure-class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Only an API error (subtype success with is_error) is an infrastructure failure; any other error subtype escalates, since issue text can force one. - Job timeout 13 minutes, so install (3) and triage (8) leave room for the apply step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 7m 4s —— View job Code review in progress
|
|
Claude finished @kyle-sexton's task in 2m 48s —— View job Security review complete
No security issues found. Scope note: no What I checked, with the reasoning for why each is clean:
No CRITICAL/IMPORTANT/SUGGESTION findings to post inline. |
|
claude-security-review has reviewed this pull request through 526993e; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through 526993e; a later push is reviewed from there. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Claude finished @kyle-sexton's task in 29s —— View job Security review complete
No security issues found. Scope. Per the lane's incremental-review instructions, this pass covers only what changed since
Every other file in this PR was reviewed at Why this is a clean skip. The incremental diff ( This satisfies the skip gate (no security-relevant surface after reading the diff) — nothing further to report for this slice. |
|
Claude finished @kyle-sexton's task in 22s —— View job Code review complete
No findings. Scope note: this lane last reviewed
Every hunk is a pure whitespace/line-break reformat — no assertion, test All other files in this PR were already reviewed at |
…ed in status (#813) Closes #657 ## Summary When a review step fails without leaving an execution file, and it neither timed out nor failed its Bun install, the lane reported `other`, and the status step printed "an unclassified failure". That case now gets its own class, `no-execution`. Both lanes' status steps also gain an arm for `install-failed`, which the classifier could already return but the status steps did not handle by name. ## Fix - `.github/actions/report-lane-outcome/classify.cjs`: with no execution file, the class is `timeout`, then `install-failed`, otherwise `no-execution`. An execution file that exists but cannot be parsed still classifies as `other`, which is outside this issue's scope. The class list in the header comment now includes `no-execution`. - `.github/actions/report-lane-outcome/action.yml`: the `execution-file` input description and the `failure-class` output description now name `no-execution`. - `pr-review.yml` and `pr-review-security.yml`: - the status steps get `install-failed)` and `no-execution)` case arms, placed before `*)`. Both fall through to the existing `exit 1`. - the `failure-class` output descriptions now list `install-failed` and `no-execution`. - `README.md`: the red-status list names `install-failed` and `no-execution`. Only line 1125 changed (one line inserted). - Tests: - `classify.test.cjs`: the existing no-execution-file test now asserts `no-execution`, including with explicit `timedOut: false, installFailed: false`. - `outcome-step.test.cjs`: two assertions that expected `other` for the no-file path now expect `no-execution`. - The existing `timeout` and `install-failed` tests are unchanged and pass. - Effect on other callers: - `run-claude-cli/lane.cjs` also calls `classifyExecutionFile`. A CLI leg that leaves no file and did not time out now reports `no-execution`. Its summary note falls back to the `other` note. - `intake-triage.yml`'s status allowlist maps any unknown class to `other`, so intake output does not change. - No step timeout was changed: `pr-review-security.yml:613` is still `timeout-minutes: 13`. ## Verification - `node --test .github/scripts/*.test.cjs`: 471 tests, 471 pass, 0 fail. - `node --test .github/scripts/*.test.cjs .github/actions/*/*.test.cjs`: 559 tests, 559 pass, 0 fail. Before the edit, the same command gave 559/559. After the classifier change, 2 `outcome-step` tests failed because they still asserted `other`; they were updated as described above. - `node --test .github/actions/*/*.test.cjs`: 88 tests, 88 pass, 0 fail. - `actionlint .github/workflows/pr-review.yml .github/workflows/pr-review-security.yml`: clean. - `grep -n "timeout-minutes: 13" .github/workflows/pr-review-security.yml`: line 613. ## Related - #811 (issue #761) adds `sandbox-unavailable` to the same README red-status paragraph, on lines 1127-1128. This PR changes only line 1125 and leaves line 1126 untouched, so the two hunks should not overlap. Whichever PR merges second must keep both sets of rows. - #691 added the `install-failed` class. #760 set the security step timeout to 13 minutes. Also related: #795. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

No related issue: Phase 7 defects D02, D04, D05, D06, D07 and D08 from the 2026-10-03 ci-workflows defect review.
Summary
The Claude lanes (pr-review, pr-review-security, intake-triage) reported a step timeout and a max-turns stop as a generic failure class, treated an intake API error as an escalation, had an install step with no timeout, carried a comment that contradicted the skipped-validation behavior, and pr-review-security did not export its job outputs to callers.
Fix
started-atepoch before the Claude step. report-lane-outcome takesstep-started-atandstep-timeout-minutesand classifies a failed step that ran its whole budget astimeout. Empty inputs never classify, and a success is never relabeled. The status steps name the class.error_max_turnsmaps tomax-turns.subtype: successwithis_error) as an infrastructure failure. Every other error subtype still escalates with needs-human, because issue text can force one.timeout-minutes: 3, and the job goes from 12 to 13 minutes.review-failedandfailure-classthroughworkflow_call, as pr-review does. README failure-class list and output note updated.track_progress, triggers, secrets. D01 is wont-fix by decision (the lanes keep write access). D03 (a step timeout kills the action's cleanup) is blocked upstream: Feature request: wall-clock time limit so cleanup steps run before a step timeout anthropics/claude-code-action#1881.Verification
node --test .github/actions/report-lane-outcome/*.test.cjs .github/scripts/*.test.cjs: 242 pass. New cases cover timeout and max-turns classification, the status-step classes, the exported security outputs, and intake's API-error versus forced-error handling.actionlinton the three workflows: exit 0.zizmor --offline: unchanged (2 medium, pre-existing and documented).env:/with:; only fixed-token outputs exported; timeout class not spoofable; SECURITY MODEL invariants hold; no new zizmor findings. Both of its low findings are addressed here.Related
🤖 Generated with Claude Code