Repository navigation
Sample CI: read the verdicts when rook run exits 2 - #90
Merged
Merged
Conversation
rook run exits 2 when the run finished and a scenario failed. The industry samples CI runner refused any non-zero exit before reading the report, so it reported "Rook exited with status 2" instead of the failed scenario. Read the verdicts for 0 and 2, keep refusing 1, 3 and 4, and never pass a run that exited 2. The 8 demo copies are regenerated with demos:build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KxTgyHx8kTjGzMoENMoEaj
Collaborator
Continuous Review — Round 1 — ✅ PASSHead: Per-reviewer summary
Findings
|
gauravBansal06
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
rook runexits 2 when the run finished and at least one scenario failed (README, "Exit"). The industry samples' CI runner,samples/industry-agents/scripts/rook-ci.mjs, refused every non-zero exit before it read the report. A finished run with a failed scenario was reported asRook exited with status 2, not as the scenario and criterion that failed.Change
assessNativeRuntreats 0 and 2 as a finished run and reads the report and the verdicts. 1, 3, 4 and any other code still fail withRook exited with status N.demos/*/scripts/rook-ci.mjsare regenerated withnpm run demos:build, and only those files changed. On current main the build also rewritesdocs/demo-walkthrough.mdanddocs/insurance-validation.mdin each demo. That drift is unrelated, so it is left out of this PR.Checks
samples/industry-agents:npm test(55 pass),npm run check,npm run rook:coverage,npm run samples:check,npm run test:standalone(9 pass), all exit 0.scripts/test-*.sh: 7 of 7 pass.industry-rook-ciworkflow (manual dispatch) was not run.🤖 Generated with Claude Code
https://claude.ai/code/session_01KxTgyHx8kTjGzMoENMoEaj