Skip to main content
A rater starts as RSL source. RSLC checks the source and compiles it into a bundle. Relativities verifies the bundle and rates with it in Rust, on your machine.

A bundle_id pins a result

Each bundle has a bundle_id, a hash of every file in the bundle. Rater.load copies the bundle into a private directory, hashes each file, and compares the hashes with the manifest before it rates. Pass a bundle_id as revision to rate with exactly that bundle again, offline from the local cache. Pin the book and analysis assumptions alongside the bundle. For a program constructed in Python, also retain the version of its prepare function. A packaged program’s identity covers those Python files; an engine-only bundle’s identity covers its rating implementation. A bundle in an older RSL version stops at load with a BundleError. The error asks for a release in the current version.

Bundles include the rating source

A bundle holds its RSL source, its tables as CSV files and a manifest of their hashes. A bundle that rslc export writes also holds the rating engine it embeds, runtime/rslc_wasm.wasm. Relativities checks each file as part of the bundle’s identity. RSL 0.4 raters run from source in rslc.PreparedRater. RSL 0.5 preview raters run from the compiler’s rating artifact after Relativities rechecks its authored source with the installed compiler. Use the matching RSLC release for preview bundles. Rate complete inputs with Rater.rate or Program.rate, and export a new bundle after editing the tables. Use Program.explain to see the RSL 0.5 calculations in evaluation order and program.rater.tables to read verified CSV table values. Evaluation of incomplete inputs requires a supported RSL 0.4 rater. A bundle can also hold a generated rater.py and SQLite table files. Relativities checks those files too and rates the RSL source and the table CSVs.A bundle may also carry a program layer: its prepare, its schema, an optional read and examples. It is the one Python a bundle brings. Program.load imports it after the whole bundle verifies, from the rater’s private copy, as a package of its own. A program’s bundle_id covers the engine and each program file, so it pins prepare and the rater together. Download a program shows the files of each layer, and Package a program shows the steps.

Verification has a defined scope

Hash verification establishes bundle identity and integrity. Compiler checks establish properties of the supplied algorithm, tables, and declarations. Source review and independent examples establish evidence that the implementation reproduces the intended filing. Validate a program distinguishes these checks and the evidence to retain for a competitive study.

Each premium is exact

The Rust runtime calculates in exact decimal arithmetic. A result row keeps each number as a Decimal. A value with an infinite decimal expansion, such as one third, travels as {"$rational": "1/3"}. explain shows these values exactly. The DataFrame that rate returns keeps each number exact, as a Decimal, and NaN marks a missing value. A value with an infinite decimal expansion has 28 significant digits there. results.rows from rater.rate keeps it as {"$rational": "p/q"}. Exact numbers explains where a rater rounds, and Checks and guarantees lists what the compiler proves.

Rating stays local

Relativities rates on your machine. Submissions, books and results stay there. An API key gives access to catalog downloads, and the catalog sees only which bundle you download.