Open source / public alpha / v0.2.2

Runtime checks for Codex.

RuntimeTruth is a CLI that compares Codex runtime state with a reviewed baseline. It records model settings, instruction fingerprints and permissions, with optional MCP discovery, then reports any drift.

Python 3.12+ · MIT · Published on PyPI

Codex adapter Local CLI PASS / DRIFT / ERROR

Model, instructions, permissions and tools.

An agent's setup can change while the application code stays the same. RuntimeTruth records that state so you can compare it between runs.

01

Model and permissions

The effective model, provider, approval and sandbox settings returned by Codex.

02

Instruction files

Source paths and fingerprints of instruction files. The snapshot does not store their plaintext.

03

MCP tools

With MCP discovery enabled, server status and fingerprints of the tool catalogue visible to the inspected thread.

Configuration, resolved settings and observations.

D

Declared

Values specified in configuration and deployment inputs.

R

Resolved

Settings returned by the runtime after it applies its configuration rules.

L

Live

State observed directly in the environment at collection time.

The Codex adapter uses the app-server interface and can create an ephemeral thread to resolve effective settings. It does not start a model turn. Optional MCP discovery may contact configured servers and refresh authentication; it does not invoke tools.

Use the result locally or in CI.

Select fields on the command line or save those selectors in a TOML policy. Human-readable and JSON output use the same comparison rules.

Exit codes PASS 0 · DRIFT 2 · ERROR 1
  • PASS: selected evidence matches the baseline
  • DRIFT: the comparison found a difference
  • ERROR: the check could not be completed

Verify the baseline's signature.

A baseline can be signed with Sigstore Cosign. Verification checks the signed statement, canonical SHA-256 digest, certificate identity and OIDC issuer before loading the comparison policy or checking the current runtime. You choose which signer and issuer to trust.

Signing is optional. Ordinary inspect, diff and verify commands do not require Sigstore.

What a PASS result means

PASS means the selected evidence matches the selected baseline under RuntimeTruth's comparison rules. It does not prove that an agent is secure, compliant or will behave as intended.

The Codex probe resolves a new thread; it does not inspect an arbitrary running session. MCP fingerprints can show that a tool catalogue changed, but do not assess server behaviour or protocol compliance.

Free, local-first open source. No account, RuntimeTruth telemetry, hosted service or SLA.

Install RuntimeTruth

In a Python virtual environment, run python -m pip install runtimetruth.

The README includes commands for capturing a baseline, checking for drift and selecting fields to verify.

Further reading: project background and an engineering note on configuration and runtime state.