Metadata-Version: 2.5
Name: rabbit-brain
Version: 0.1.1
Summary: Release review for iterative perception models: rank the cases that regressed or never settled, keep checks for the next checkpoint.
Project-URL: Homepage, https://github.com/rabbit-brain/rb
Project-URL: Documentation, https://github.com/rabbit-brain/rb/blob/main/AGENTS.md
Project-URL: Source, https://github.com/rabbit-brain/rb
Project-URL: Changelog, https://github.com/rabbit-brain/rb/blob/main/CHANGELOG.md
Author: Jhet Chan
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: RAFT,agents,ci,depth,evaluation,model-release,optical-flow,perception,regression-testing,stereo
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Requires-Dist: pydantic<3,>=2.5
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: twine>=5; extra == 'dev'
Description-Content-Type: text/markdown

# Rabbit Brain

Release review for iterative perception models. Give it the per-case errors of your current and candidate checkpoints (and, if the model refines its answer iteratively, one number per refinement iteration) and it ranks the cases to look at: the ones that regressed on error, and the ones that pass on error but never settled. Then it keeps checks for the next checkpoint.

```sh
pip install rabbit-brain
rb example                    # see it on built-in example data
rb import results.json        # your evaluator's per-case results (format: rb schema example)
rb findings <run> --top 5     # the ranked queue and a verdict
rb check save <run> <case>    # keep a case for the next checkpoint
rb check run <run>            # exit 1 in CI when something regressed
```

Everything runs locally and nothing leaves your machine. Every run leaves a receipt (`report.md`, `record.json`) with the exact command, the input's hash and the definitions in force, so a colleague, or you after your coding agent ran it, can verify the numbers.

**What it does.** Compares two model versions case by case; flags regressions above a limit you choose; reads each model's own refinement trajectory (label-free) to flag answers that were still moving late or reversed direction; ranks what needs a decision first; explains each case in plain language; saves checks that follow case ids across checkpoints.

**What it needs.** One lower-is-better error per case for both models (any metric with a unit: endpoint error in px, depth error in cm, …), computed by your evaluator against the same ground truth and valid mask. Optionally the trajectory, recorded with the one-line hook (`from rabbit_brain import TrajectoryRecorder`).

**What it doesn't do.** Run inference (that arrives with the runner in 0.2), train anything, or certify a model. The stability limits are generic heuristics; a scorer fitted to your model is a separate, paid evaluation.

**For coding agents.** `rb docs` prints [AGENTS.md](AGENTS.md): the workflow, the file format, the JSON output (`--json` on every command), exit codes and every error code with its fix. Tell your agent: *"Review candidate checkpoint B against A on this case set with Rabbit Brain."*

The trajectory diagnostic comes from a paper that is not public yet; the reference goes here when it is.

Apache-2.0.
