Skip to content

fix(claude-lane-outcome): classify a review step with no execution file as its own failure class #657

Closed

Description

@kyle-sexton

claude-lane-outcome reports a review step that produced no execution file as failure-class=other, so a review that hit the step timeout reads as "an unclassified failure; read the job log".

Evidence

Proposed

  1. In classify.cjs, return a separate class (for example no-execution) for a non-success outcome that has no execution file. A step timeout reports outcome: failure, the same as an early crash, so the name should cover both.
  2. Add a matching case arm to the status step in claude-review.yml and claude-security-review.yml, for example "the review step produced no output before it ended (likely the step timeout); re-run the job". Keep exit 1, so a PR never looks reviewed when no review ran.
  3. Update the failure-class output descriptions, and add a test for the new class wherever classify.cjs is tested.
  4. Optional: lower the security-review step timeout from 14 to about 10 min. In claude-code-plugins, its 55 most recent successful runs took p95 221 s and max 294 s. The code-review step's 59 successful runs took p95 355 s and max 392 s, so its 11 min timeout stays as it is.

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 3, 2026
  2. kyle-sexton commented on Oct 20, 2026

    @kyle-sexton
    MemberAuthor

    Agent-ready brief (triaged 2026-10-20)

    • Decision: This issue is narrowed to two gaps left after #691:

      1. A review step that ends with no execution file, and did not time out or fail to install, gets its own failure class instead of other.
      2. The lanes' status steps get a case arm for install-failed.

      The security-review step timeout stays at 13 minutes; the body's item 4 is dropped. Paths in the body are out of date: claude-lane-outcome is now .github/actions/report-lane-outcome, and claude-review.yml / claude-security-review.yml are now pr-review.yml / pr-review-security.yml.

    • Current state (origin/main 834f4e1):

    • Scope:

      • In classify.cjs, return a new class for the no-execution-file case that is neither a timeout nor an install failure. Name it as the issue proposes, for example no-execution. Add it to the class list in classify.cjs and in report-lane-outcome/action.yml.
      • In both lanes' status steps, add a case arm for the new class and one for install-failed. Each states the cause in plain words and keeps exit 1.
      • Update both lanes' failure-class output descriptions and the README red-status list (README.md:1118-1130) to name both classes.
    • Out of scope:

      • Changing either step timeout.
      • credit-stop handling.
      • Detecting all-tools-failed-on-sandbox runs.
    • Acceptance criteria:

      • A non-success step with no execution file, no timeout and no install failure classifies as the new class, not other, and a test in classify.test.cjs asserts it.
      • The existing timeout and install-failed tests still pass.
      • Both lanes' status steps have a case arm for the new class and for install-failed, and neither arm is the * fallback.
      • Every status-step path for those classes still ends in exit 1.
      • Both lanes' failure-class output descriptions list every class the classifier can return.
      • The README red-status list names the new class and install-failed.
      • pr-review-security.yml still has timeout-minutes: 13 on the review step.
      • actionlint and node --test over the repo's test files pass.
    • Sequencing / dependencies: None blocking. #761 adds sandbox-unavailable to the same README list; whichever PR lands second keeps the other's rows. Related: #795.

    • Evidence:

      • fix(claude-lanes): classify timeouts and max turns, harden intake outcomes #691
      • fix(review): install bubblewrap before the review lanes run Claude Code #760 (set the security step timeout to 13 minutes)
      • const fallbackClass = timedOut ? "timeout" : "other";
        if (!executionFilePath || !fs.existsSync(executionFilePath)) {
        return {
        reviewDetail: "(no execution file was produced)",
        failureClass:
        installFailed && !timedOut ? "install-failed" : fallbackClass,
        };
      • case "$FAILURE_CLASS" in
        auth) why="the Claude credential was rejected (401/402/403); check the OAuth token and the plan's usage" ;;
        rate-limit) why="AI review skipped: usage limit reached; re-run after it resets" ;;
        overloaded) why="the Claude service was overloaded (5xx); re-run later" ;;
        max-turns) why="the review used every turn --max-turns allows before finishing; raise it in claude-args" ;;
        timeout) why="the review step reached its timeout-minutes and was stopped before it finished" ;;
        skipped-validation) why="claude-code-action skipped itself because the caller workflow differs from the default branch's copy; nothing was reviewed" ;;
        incomplete) why="no completed review was found on this head: the model returned no findings count or summary, its count was below its inline comments, or the review saw only part of the diff; read the verify step's log" ;;
        sandbox-unavailable) why="bubblewrap could not create a namespace on this runner, so Claude Code's sandbox could not start and no review ran; enable unprivileged user namespaces (read the probe step's log)" ;;
        no-outcome) why="the job ended ($JOB_STATUS) before the review reported an outcome; read the job log" ;;
        *) why="an unclassified failure; read the job log" ;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions