Repository navigation
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
checkskips a Solana test — the frontend read it as setup for the tests
after it, or it drives no harness — it now prints anote-level
skippedline per test with the reason, the JSON summary gains askipped
count and a top-levelskipped_testsarray (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
callsinitializeand is misclassified as setup showed0 findingswith no
hint that no rule looked at it. It changes no finding and no exit status:
--fail-onignores a skipped note.check_testnow shares one gate with
rg_rules::solana::gate, and that gate builds theEnvwith the declared
actors, ascheck_testdoes (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_reasonand
the_text_report_names_the_skipped_tests_and_the_summary_linein
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 mutantgated: truewith 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-gatewritesresults-r4-ungated.*, which the
committed--check --no-gatereproduces. 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 reachedmutate(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 ineval/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 usesCR CR LF(what a naive Windows text-mode rewrite of a
CRLF file produces) or a loneCRwith noLFis now reported as a
warningnaming the ending and the number of lines it reads as onLF, 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. StandardLF
andCRLFare 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_warningand
the_warning_reaches_the_report_and_changes_no_findingin
crates/rg-model/src/project.rs. scripts/check-crate-versions.shalso catches a workspace-dependency
bump. A crate that usesdep.workspace = truenow fails the release check
whendep's version in the root[workspace.dependencies]changed since the
base tag and the crate was not bumped — thesyn3 case (found in R4) was
caught before only becauseparse_rust.rsalso changed. An internal crate's
path dependency bump does not force its dependents to republish. Verified on a
throwaway branch: asynbump flagsrg-frontend-rustandrg-program; an
rg-ir(path) bump flags neither.RELEASING.mdstep 9 now says to commit on a release branch, open the
PR, and merge when green (mainis protected; a direct push is refused),
instead of "commit, pushmain".
Tests
- The setup gate's mutants are all killed.
cargo-mutantsover
crates/rg-rules/src/solana/mod.rswith the workspace test target reports
0 missed, 0 timeout (12 caught, 8 unviable). Recorded with the four R4
cargo-mutantsCI run ids — all four were cancelled, so the CI had no
mutation outcome to record — ineval/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 therg-rulessurvivors.
Known limits
- The TypeScript setup gate is unchanged and is the largest known recall
limit. A TypeScript test whose body callsprogram.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
skippedfield andskipped_testsarray are new output; a consumer that
validated JSON againstdocs/output-schema.jsonstrictly (additionalProperties: falseat the summary level) must accept the newskippedproperty. 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