Skip to content

fix(report-lane-outcome): classify no-execution and name install-failed in status - #813

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/lane-outcome-crash-and-install-classes
Oct 20, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/lane-outcome-crash-and-install-classes

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

🤖 Generated with Claude Code

…ed in status

A failed review step with no execution file that neither timed out nor
failed its Bun install now classifies as `no-execution` instead of
`other`. Both lanes' status steps gain `install-failed` and
`no-execution` arms (both still exit 1), and the failure-class output
descriptions and the README red-status list name both classes.

Closes #657

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 20, 2026 19:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T19:06:24.715610Z bb5adfd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 40s —— View job


Security review complete

  • Gather context (PR diff, changed files)
  • Review classify.cjs logic change
  • Review workflow status-step case arms (pr-review.yml, pr-review-security.yml)
  • Review action.yml / README doc changes
  • Check for instruction-surface deletions (AGENTS.md / rules files)
  • Post findings

No security issues found.

This PR only changes how an already-closed classification enum (timeout | install-failed | no-execution | other, etc.) is derived and labeled:

  • classify.cjs — the no-execution-file branch now returns timeout / install-failed / no-execution instead of falling back to other. All branches resolve to literal string constants driven by caller-supplied booleans (timedOut, installFailed), not by any attacker-influenced free text. The existing public-log hygiene invariant (model/SDK text never leaves this module; only the closed-set class token and a structured projection do) is unchanged.
  • pr-review.yml / pr-review-security.yml — the status steps gain two new case arms (install-failed), no-execution)) with static why= messages, following the same pattern as the existing arms. No change to how the failure-class value is read or quoted.
  • action.yml and README.md — description-only updates naming the new class.

No new trust boundaries, no injection surface (command/path/template), no credential or token handling touched, and no permissions:/trigger changes to the workflows. No instruction-surface deletions in this diff (AGENTS.md, rules files, etc. are untouched).

claude-lane-summary: lane=claude-security-review sha=bb5adfdac5374ecf5374352cbac84c7a54782f94 run=39480362944

@claude

claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 43s —— View job


Code review — PR #813

  • Gather context (diff, classify.cjs, both workflow status steps, lane.cjs caller, tests, REVIEW.md, rule files)
  • Check correctness of the classification refactor
  • Check workflow case-arm placement and wording
  • Check test coverage for the new class and precedence
  • Check PR-body contract and closing-issue criteria

Findings

None. This is a small, well-scoped classification refactor:

  • classify.cjs's new no-execution branch (.github/actions/report-lane-outcome/classify.cjs#L191-L200) is a straightforward rename of the old other fallback to no-execution, with timeout and install-failed still checked first in the same order as before — behavior-preserving except for the new label.
  • Both pr-review.yml and pr-review-security.yml status steps gained install-failed) and no-execution) arms before their *) catch-all, matching the PR description.
  • classify.test.cjs and outcome-step.test.cjs were updated consistently, and existing tests for timedOut+installFailed precedence (classify.test.cjs:315) still assert timeout wins, which the refactor preserves.
  • run-claude-cli/lane.cjs's SUMMARY_NOTES[failureClass] ?? SUMMARY_NOTES.other fallback (lane.cjs:715-716) confirms the PR description's claim that a CLI leg's no-execution note falls back to the other note — not a bug, just as described.

Not independently verified

No paved-path standards index was found in this repo, so no paved-path findings apply. The pr-body-contract.md rule has no paths: frontmatter and the PR body already satisfies it (Closes #657, ## Summary/## Fix/## Verification/## Related present).

claude-lane-summary: lane=claude-review sha=bb5adfdac5374ecf5374352cbac84c7a54782f94 run=39480362944

@github-actions

Copy link
Copy Markdown

claude-security-review has reviewed this pull request through bb5adfd; a later push is reviewed from there.

@github-actions

Copy link
Copy Markdown

claude-review has reviewed this pull request through bb5adfd; a later push is reviewed from there.

@kyle-sexton
kyle-sexton merged commit 74c7495 into main Oct 20, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the fix/lane-outcome-crash-and-install-classes branch October 20, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant