CuNi use case · Proven

FFI boundaries: Python, Rust, C — one behavior, or refuse

The modern stack is a sandwich: Python orchestration, Rust hot paths, C legacy. Every call across the boundary re-implements semantics. CuNi proves the behavior agrees before anything ships.

Open Studio Back to CuNi

Why exactness is demanded here

Integer widths, string encodings, error conventions, and float rounding differ across languages. A pricing kernel in Rust rounds half-to-even; a Python fallback rounds half-away. They agree on 99.99% of inputs. The 0.01% is where the money is — literally, in fee and settlement code — and nobody finds it until reconciliation fails at month end.

What CuNi proves today: proven

The py, rs, and c seats are native — real toolchains, real execution, byte-identical stdout proven by cuni check before anything ships. Integer arithmetic, strings, canonical JSON, SHA-256, dec fixed-point, and time epochs are all proven across these seats today.

What it does not claim

CuNi proves program behavior, not ABI layout — struct packing, calling conventions, and linker behavior across the boundary are out of scope. Floats are refused, not faked: cross-language float exactness cannot be guaranteed, so CuNi says no rather than lie.

What is next

Pin the Python seat to the frozen 3.15 ABI explicitly and publish the proof as a dated artifact. Longer term: a cuni ffi surface that generates binding shims from the proven source, so the boundary itself is emitted, not hand-written.

More CuNi use cases

CuNi overview Rider seats