Skip to content

v1.5.9

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 01:02
235bed8

Patch release. No rule, severity, flag, default, exit code or archive layout
changed, and no existing report field changed. The visible output change is
the new skipped report: a note-level line per skipped test, a text-summary
suffix, and two added JSON fields (summary.skipped and a top-level
skipped_tests array). By design it changes no finding and no --fail-on
outcome. The setup gate itself is
not changed in this release (C1 v2 is measured in PR #90, awaiting
approval); it is listed under Known limits.

Added

  • A test the rules do not read is reported, not dropped in silence. When
    check skips a Solana test — the frontend read it as setup for the tests
    after it, or it drives no harness — it now prints a note-level
    skipped line per test with the reason, the JSON summary gains a skipped
    count and a top-level skipped_tests array (file, suite, test,
    reason), and the text summary counts them (2 tests, 1 not read). Before,
    such a test was silently removed from the test count, so a run on a PoC that
    calls initialize and is misclassified as setup showed 0 findings with no
    hint that no rule looked at it. It changes no finding and no exit status:
    --fail-on ignores a skipped note. check_test now shares one gate with
    rg_rules::solana::gate, and that gate builds the Env with the declared
    actors, as check_test does (review item 5). Covered by
    a_setup_test_that_later_tests_build_on_is_their_setup,
    a_test_that_drives_no_harness_is_reported_with_its_reason and
    the_text_report_names_the_skipped_tests_and_the_summary_line in
    tests/typescript.rs. The 708-file solana-poc-v6 corpus finding count is
    unchanged (319 = 319, 759 skipped tests now reported).

  • realism-gate mutate --no-gate (hidden, development only): the recall
    generator's second pass edits the tests the rules do not read too, and labels
    each such mutant gated: true with the gate's reason. The first pass — over
    the tests the rules read — is unchanged, so the gated recall table cannot
    move. eval/recall/run.py --no-gate writes results-r4-ungated.*, which the
    committed --check --no-gate reproduces. The old ungated table (RG08
    TypeScript 22/22, Rust 8/8, vs 43/43 and 7/7 gated) came from the generator
    before the gate reached mutate (b61e18c): its file-wide RG08 predicate
    refused a setup test's mutant whenever a sibling PoC test kept an assertion,
    so turning the gate "off" dropped mutants instead of adding them. Explained
    and reproduced in eval/recall/AMENDMENT-R4-2026-12-02.md ("R5
    reproduction").

Changed

  • A file with broken line endings is reported, not read in silence. A
    source that uses CR CR LF (what a naive Windows text-mode rewrite of a
    CRLF file produces) or a lone CR with no LF is now reported as a
    warning naming the ending and the number of lines it reads as on LF, in
    the same list as an unparseable file. Before, such a file parsed as one long
    line and the tool said nothing, so "0 findings" looked clean. Standard LF
    and CRLF are unchanged and stay silent. It changes no finding and no exit
    status (the warning is a parse-level note, not a finding). Covered by
    a_cr_cr_lf_or_lone_cr_file_records_a_warning and
    the_warning_reaches_the_report_and_changes_no_finding in
    crates/rg-model/src/project.rs.
  • scripts/check-crate-versions.sh also catches a workspace-dependency
    bump.
    A crate that uses dep.workspace = true now fails the release check
    when dep's version in the root [workspace.dependencies] changed since the
    base tag and the crate was not bumped — the syn 3 case (found in R4) was
    caught before only because parse_rust.rs also changed. An internal crate's
    path dependency bump does not force its dependents to republish. Verified on a
    throwaway branch: a syn bump flags rg-frontend-rust and rg-program; an
    rg-ir (path) bump flags neither.
  • RELEASING.md step 9 now says to commit on a release branch, open the
    PR, and merge when green (main is protected; a direct push is refused),
    instead of "commit, push main".

Tests

  • The setup gate's mutants are all killed. cargo-mutants over
    crates/rg-rules/src/solana/mod.rs with the workspace test target reports
    0 missed, 0 timeout (12 caught, 8 unviable). Recorded with the four R4
    cargo-mutants CI run ids — all four were cancelled, so the CI had no
    mutation outcome to record — in eval/mutation/BASELINE.md ("cargo-mutants on
    the R4 pull requests"). src/mutate.rs's ~250 mutants are recorded, not
    individually justified, by the same rule as the rg-rules survivors.

Known limits

  • The TypeScript setup gate is unchanged and is the largest known recall
    limit.
    A TypeScript test whose body calls program.methods.initialize(..)
    and names no attacker is read as setup for the tests after it, so every rule
    skips it. On the recall corpus this silences real exploit tests. With the
    gate as shipped, RG09 TypeScript mutation recall on the ungated table is
    38/68 rather than the gated 41/41; the gated number is conditional on the
    tool reading the test. A measured fix (C1 v2: read the instructions a test
    sends, whole-word, and never treat an exploit-titled test as setup) is in PR
    #90 with the B3 evaluation; it is not merged. Skipped tests are now reported
    (see Added), so a user sees what was not read.
  • The skipped field and skipped_tests array are new output; a consumer that
    validated JSON against docs/output-schema.json strictly (additionalProperties: false at the summary level) must accept the new skipped property. It is
    additive within schema 1.

Install

cargo binstall realism-gate

or download an archive below and check it:

sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify <archive> --repo KhomDev/realism-gate

Three binaries are included: realism-gate (the checker), rgate
(the same program under a short name) and realism-gate-mcp (the MCP
server). cargo binstall installs all three. Linux builds are static
(musl).

Built with rustc 1.95.0 and repacked deterministically, so the
archives can be compared with a local rebuild. From a checkout of this
repository:

scripts/reproduce-release.sh v1.5.9 x86_64-unknown-linux-musl