Skip to content

v1.5.8

Choose a tag to compare

@github-actions github-actions released this 02 Dec 22:24
· 14 commits to main since this release
e0efa0f

Fixed

  • The policy-file containment check resolves symlinks, junctions and ..,
    and probes the file system for case sensitivity.
    --declaration and
    --config must live outside the tree under review. The check compared
    absolute spellings, so a symlink or Windows junction from outside the
    checkout into it, or a .. segment, could name a policy file inside the
    repository and have it applied; on macOS, where APFS is case-insensitive by
    default, a differently-cased path was treated as outside too. Both paths are
    now canonicalized (symlinks and junctions resolved, ./.. removed) before
    the comparison, and case is ignored exactly when the file system holding the
    checkout is probed to be case-insensitive. Covered by the filesystem tests
    in policy_path_tests (src/cli.rs): a symlink file and directory from
    outside into the repo, a Windows junction, .. in both directions, a
    sibling with the same prefix, and a casing variant checked against the
    probe. SECURITY.md now states the threat model of the check.

  • RG02 is silent on a file the tool, not the author, made a test. The same
    rule RG08 has had since 1.5.7: a top-level script or an unasked fragment has no
    it()/#[test]; the frontend supplies the boundary, and RG02 no longer
    judges the "test" it drew. No finding changes on the 708 .rs/.ts files of
    the solana-poc-v6 corpus (319 findings before and after). Covered by
    tests/typescript.rs.

  • rg-frontend-rust is republished as 1.5.1. The syn 3 match-guard change
    was in the 1.5.7 tag but the crate stayed at 1.5.0, so crates.io served the
    old source under that number. scripts/check-crate-versions.sh now fails the
    release verify job when a crate's source changed under an unchanged version.

Added

  • realism-gate mutate (hidden, development only): generates structural
    mutants of a PoC test (drop an assertion, make it same-valued, drop a
    baseline, unpin a fork) for the recall harness in eval/recall. It does not
    change check output. The harness was corrected after review
    (eval/recall/AMENDMENT-R4-2026-12-02.md, eval/recall/R4-FINDINGS.md):
    negated assertions and matcher chains are no longer rewritten, tests the
    rules do not read are refused and counted, and every miss is read before a
    number is reported. Also eval/blindspot, 34 hand-built blind-spot cases.
  • rg-model 1.5.8 and rg-rules 1.5.8 republish with a test and the RG02 change
    respectively; rg-model has no behaviour change.

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.8 x86_64-unknown-linux-musl