Skip to content

About

Swarm development lane for ripr: static RIPR evidence for CI, editors, and agents.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9,850 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ripr logo

ripr

Write tests that notice changed behavior.
Static analysis of what your tests check in a diff

GitHub release crates.io downloads docs.rs MSRV License: MIT OR Apache-2.0

CI Codecov ripr open gaps ripr+ test-efficiency gaps

Your tests pass. Would they notice if the change you just made were wrong?

ripr reads your diff and the related tests and names a changed behavior no test appears to check, plus the missing case or assertion. Where a repair route exists, it also names the test to add. It does not run your tests or any mutants. Use the finding in review, or hand the gap to a coding agent. Why ripr covers how this differs from coverage, mutation testing and formal verification.

A test can run the changed code without checking the behavior that changed:

- if amount > discount_threshold {
+ if amount >= discount_threshold {

Tests below and above the threshold can pass in both versions. The case that separates them is amount == discount_threshold, with an assertion on the result. ripr calls that missing case or assertion a discriminator.

Selected lines from the development boundary example's checked output:

  Changed behavior: amount >= discount_threshold
  Missing check: amount == discount_threshold
  Related test (1 of 2 matched rows): tests/pricing.rs:4 below_threshold_has_no_discount (no test input reaches `amount == discount_threshold`)
  Next step: Add boundary tests for below, equal, and above the changed threshold with exact assertions

ripr finds this statically, from source. It does not run your tests or mutants, and it does not prove that a test would fail.

The first useful run

Try it in a Rust repository on a branch with committed changes. This installs the checksummed prebuilt 0.10.0 CLI (no Rust toolchain needed; Linux x86-64 shown) and runs ripr on your change:

v=0.10.0; t=x86_64-unknown-linux-gnu; f=ripr-server-v$v-$t.tar.gz
b=https://github.com/EffortlessMetrics/ripr/releases/download/v$v
curl -fsSLO "$b/$f" && curl -fsSLO "$b/$f.sha256" && \
  echo "$(cat $f.sha256)  $f" | { sha256sum -c - || shasum -a 256 -c -; } \
  && mkdir ripr-bin && tar xzf $f -C ripr-bin \
  && export PATH="$PWD/ripr-bin:$PATH" \
  && ./ripr-bin/ripr check

On macOS set t=aarch64-apple-darwin (Apple silicon) or t=x86_64-apple-darwin (Intel). Other platforms, a permanent PATH, the macOS Gatekeeper note for browser downloads, and cargo install ripr (Rust 1.95 or newer) are in Installation.

What to read in the output: the changed behavior, the related tests, and the recommended next test. No configuration file is required. ripr check is advisory: it exits 0 whether or not it finds a gap, and exit 2 means the analysis could not complete. On the base branch itself there are no changed files, and ripr says so. A result with no findings or limited evidence is not a clean bill of health. If a check cannot complete, run ripr doctor (standalone; it exits 3 when a check fails).

No change of your own to try it on? The starter examples are three small projects (Rust, Python and TypeScript) with a known gap and the one added assertion that closes it.

The example output above and --worktree come from the 0.11 development build, which is not yet the published release. In it, ripr check uses uncommitted tracked edits when present, otherwise committed history against the default base. On a clean checkout of the base branch, edit a tracked source file, then run ripr check to inspect that change. Stage a new file with git add -N PATH to include it. No commit or configuration file is needed for this edit-and-check loop. Install it with:

cargo install --locked --git https://github.com/EffortlessMetrics/ripr-swarm ripr

The CLI quickstart covers choosing a base and diagnosing setup; Installation has the published-versus-development split and build times.

What you get

Task Use ripr to Start here
Review a change Inspect possible assertion gaps and the evidence behind them. CLI quickstart
Analyze a Python change (preview) Auto-enable the preview from project markers, inspect the advisory boundary gap, and follow the printed pytest/unittest route. Python first hour
Write a focused test Prepare a supported repair, edit the test yourself or with an agent, and compare the static evidence afterward. Repair a gap
Work in Muse Install the native plugin, approve its MCP server, and use guided setup and test repair with an MCP-capable development build. Muse plugin guide
Work in VS Code Inspect saved-workspace diagnostics, open a related test, and copy a test brief. Editor quickstart
Review in GitHub Run ripr init --ci github to generate an advisory PR workflow with a summary and downloadable evidence. CI quickstart

ripr check inspects a change. ripr pilot is optional broader repository exploration. ripr repair records a supported before/edit/after attempt, continued with ripr continue and inspected with ripr status (ripr agent repair and ripr agent status are the advanced spellings of the same transaction); you or your agent write the test. ripr first-pr composes existing PR evidence rather than running analysis. See the command guide for the complete paths, including the read-only MCP analysis session.

Using a coding agent? ripr init --agents claude|codex|cursor|all adds a short find-gap, write-test, verify loop with an explicit done and stop rule to your agent's instruction file (see the agent quickstart). Or run ripr check, then run the follow-up commands it prints exactly as printed; their IDs belong to that run. When an eligible repair exists, ripr check prints the ripr repair command. Add --format json for machine-readable results. Repair-attempt file rules, card handoff and exit codes are in the agent repair details, exit codes and the LLM operator guide.

Where it fits

Coverage tells you what executed. ripr asks whether related tests appear to exercise and check the behavior that changed. Runtime mutation testing checks what happens when a concrete mutant runs.

ripr provides draft-time guidance before the mutation run: a changed boundary without an equality test, a specific error checked only with is_err(), or a changed return value checked only with a smoke assertion. The useful result is a focused testing question, not a replacement coverage percentage.

Under the hood, ripr follows the path from a changed behavior through test inputs and observable effects to an assertion. When that path becomes opaque, it reports the limitation. See the static exposure model and terminology for the precise model and classifications.

Status

ripr is alpha software. The following describes this development checkout, not a promise that every surface is available from the published package.

Language Current scope
Rust Static analysis and bounded test-only repair are usable alpha. Repairs require a valid route; ordinary real-repository route yield and success remain unestablished.
Python Analysis is preview. Selected pytest/unittest repair routes are usable alpha; a finding without a complete route has no repair card. The Python first hour quickstart covers the marker-based auto-enable, the check/pilot flow, and the preview caveat. ripr repair and ripr agent stub are Rust-only; follow check -> agent repair --gap-id -> edit test -> commit -> continue.
TypeScript / JavaScript preview analysis, auto-enabled for detected TypeScript projects when no ripr.toml exists (opt out with enabled = ["rust"]). When a finding has a complete repair packet, check names the test file, the missing case, and the test command to run; see the TypeScript first hour. ripr repair and ripr agent stub are Rust-only.
Perl preview / advisory development only. It needs a lang-perl build and the unpublished perl-ripr-facts exporter (build it from crates/perl-ripr-facts in EffortlessMetrics/perl-lsp with cargo build --release -p perl-ripr-facts, put it on PATH, and set [languages] enabled = ["perl"] plus [perl] producer = "perl-ripr-facts"); no released build/exporter combination is usable yet.
Julia Spec-only preview contract (RIPR-SPEC-0405); no adapter yet. Next implementation checkpoint: adr/julia-parser-substrate.

With no ripr.toml, ripr analyzes Rust and also enables Python preview when it detects Python project markers or Python source under src/ or tests/; TypeScript preview is likewise enabled when it detects a root tsconfig.json, jsconfig.json, deno.json or deno.jsonc, or TypeScript source under src/ or tests/; otherwise TypeScript/JavaScript is enabled through [languages] enabled in ripr.toml, and a ripr.toml that sets enabled = ["rust"] keeps Python off (and TypeScript off too) (see Configuration).

Findings are static and advisory. An empty result does not establish test adequacy, and a before/after receipt is not runtime mutation confirmation. Generated CI is non-blocking by default. The editor analyzes saved files only; unsaved buffer content is never analyzed.

Support tiers describe the supported workflows and limits; the capability matrix and metrics retain the detailed evidence.

Docs

Quickstart · Upgrading from 0.10 · Configuration · Editor extension · Agent guide · Output formats · Integrations and Git hooks · Proof and limits · All documentation

For the full test-and-evidence walkthrough, see Targeted tests, First PR workflow, and repair recovery. Report problems in GitHub issues, with the command, version, expected result, and a small example where possible.

Contributing

Development happens in EffortlessMetrics/ripr-swarm; releases and package publishing come from EffortlessMetrics/ripr. Start with Contributing; AGENTS.md is the operating contract for agents developing ripr itself. To use ripr from your own coding agent, see the agent quickstart.

Contributor references

Architecture · Specs · ADRs · Roadmap · Implementation plan · Campaign history · Codex goals · Scoped PRs · PR automation · Documentation system · Swarm development

License

MIT OR Apache-2.0, at your option.

About

Swarm development lane for ripr: static RIPR evidence for CI, editors, and agents.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages