Repository navigation
fix(verdict): show kernel failure details (#1535) - #1536
Merged
Lorenzobattistela merged 2 commits intoOct 13, 2026
Merged
Conversation
Lorenzobattistela
force-pushed
the
fix-1535-verdict-diagnostics
branch
from
October 13, 2026 14:16
2b3398c to
e82d6c0
Compare
Lorenzobattistela
approved these changes
Oct 13, 2026
Merged
viridale
added a commit
to viridale/bend-cli
that referenced
this pull request
Oct 20, 2026
Records lessons from commits since 9f7b840 that AGENTS.md lacked: planting bugs against a new law; the kernel's missing eta and tab_cons; ctorarms.py and charsplit.py for heads a wildcard arm refined; chk-expected.tsv rows and CI cases for files reaching run.bend; #ifdef CID guards in .c effects; consing then reversing over List.append; Bool.or and Bool.and as eager; FID names from the harness path and _C closures; peerbench.sh; test_tools.py; where the minimum Bend is pinned; e2e's build/ inputs. Updates what changed: PROOF.bend takes ~40 s and --verdict ~3 min; native IO.exit on 2.0.37 exits with its code, not 141, after a print to a closed pipe (checked today), so run.bend keeps Sys.exit until bendlang/bend#1519 ships; kernel.sh retires with bendlang/bend#1536; 1.0 waits on bendlang/bend#1466, as the README now says.
viridale
added a commit
to viridale/bend-cli
that referenced
this pull request
Oct 21, 2026
Since bendlang/bend#1536, in Bend 2.0.38, a failing --verdict prints the kernel's "In <def>:" line and its reason ("out of fuel", or the expected and observed terms) above the mismatch notice, which is what tools/kernel.sh ran the cached kernel by hand to show. AGENTS.md now says where to read them. Checked on Bend 2.0.38 with stub kernels reporting out of fuel and a type mismatch: --verdict prints each one's def and reason and exits 1. python3 tests/test_tools.py: 17 tests OK. Co-Authored-By: Claude <[email protected]>
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.
Closes #1535.
When the kernel rejects a book,
--verdictprinted onlySOME PROOFS FAILand the mismatch notice, so you couldn't see which def failed or why. Now it prints the kernel's why between the two lines. The notice stays on every failure, out of fuel included.Before:
After (out of fuel):
After (a def out of the kernel's scope; these are the same lines
-oprints):A type rejection shows the kernel's
In <def>:andexpected:/observed:lines the same way. If the kernel fails without giving a why, the line says how it exited (kernel exited 1 after ALL PROOFS CHECK).Nothing else changes. Exit codes, stdout, the unsafe/foreign list, passing output and infrastructure errors are the same as on main. Everything still goes to stderr.
gates/safe.tsandgates/safe_node.tsare untouched.Changes:
safe.ts:kernel_checkandsafe_checkreturn null on a pass, else the why.main.ts:cli_verdictprints the why above the notice.gates/ping.ts: one test. A stub kernel reports out of fuel, and the test checks for exit 1, empty stdout, and the why above the notice.Checks (on main 213cd5e; test and safe gates on the minis, the rest on macOS arm64):
Not run: Linux, Windows, the safe gate's hub corpus.