Skip to main content

Evidattice

Version 0.5.25 · Python 3.11+ · SQLite schema 6

Evidattice records what an MCP host actually exposes: submitted model input, model tool choices, host dispatch, MCP operations, and tool results submitted back to the model. It keeps these observations and their explicit relationships in a portable SQLite recording.

The recorder uses a bounded queue and one capture-time writer thread. Its core and inspection CLI use only the Python standard library. Optional adapters observe existing SDK calls; the host continues to own clients, routing, retries, caches and stream consumption.

An accepted capture receipt means the observation entered the queue. It does not promise a durable commit. Missing observations, unavailable attribution and output limits remain explicit. Equal text, tool names, timestamps and provider IDs never establish provenance by themselves.

Install and record

Try four synthetic controlled observations without credentials, an SDK or a live model. Once installed, the demo needs no source checkout and makes no network calls. It writes fresh recordings and prints complete commands to investigate them.

Version 0.5.25 renames MCP Flight Recorder to Evidattice. It preserves the recorder, inspection tools, examples and evidence policy. See source installation for development. Use a fresh environment:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install evidattice==0.5.25
python -m evidattice.demo

Use GIL-enabled CPython 3.11+. The installed command is evidattice; python -m evidattice uses the same CLI. With uv's isolated tools, the equivalent route is:

uvx --from evidattice==0.5.25 evidattice demo

Use the printed uvx commands for follow-ups from that route; it does not install a global command. For an unreleased wheel, use that same wheel as the package source in the launch and printed uvx commands. --output-dir PARENT selects an existing output parent; every invocation creates a fresh subdirectory, including repeated calls with the same parent.

Recording Default gate verdict Expected exit
faithful.sqlite PASS: supported evidence is consistent 0
mutated.sqlite FAIL: the submitted answer differs from its recorded source 2
incomplete.sqlite UNKNOWN: required evidence is unavailable 4
mixed.sqlite UNKNOWN: the default includes an unavailable local-to-MCP comparison 4

Demo generation itself exits 0 on success. Copy its printed gate commands to see the separate verdicts. FAIL and UNKNOWN are intentional here: run those commands individually, without set -e aborting the tour or || true hiding unexpected errors. Exits 1 and 3 are operational errors, not evidence verdicts.

The demo also prints the explicit --answers mcp command for mixed.sqlite: it passes with one validated local occurrence excluded from result-text comparison. That does not verify local forwarding. Default --answers all, raw comparisons and other integrity/coverage/health requirements stay intact. Narrow scope only when it matches the intended policy, never merely to obtain PASS.

Follow the agent investigation workflow to resolve one file/run, diagnose the mutation and cite actual event IDs. For a complete SDK-free application example, use the preserved host recording quickstart; for real applications, use host integration. These synthetic examples establish behavior, not application correctness or real-world adoption.

For native SDK calls, install the optional extras into the same environment:

.venv/bin/python -m pip install 'evidattice[openai-chat,mcp]==0.5.25'

The host continues to own SDK clients and their initialization/close. Keep legacy MCP 1.x in its separate environment. See Easy integration for the supported routes and Integrations for existing adapter contracts.

Migrate from MCP Flight Recorder

Version 0.5.25 changes the package, import namespace and command names. Update existing integrations as follows.

Previous identity Evidattice 0.5.25
PyPI package mcp-flightrecorder evidattice
Python package mcp_flightrecorder evidattice
from mcp_flightrecorder.easy import AgentRecorder from evidattice.easy import AgentRecorder
Commands fr and mcp-flightrecorder evidattice
python -m mcp_flightrecorder python -m evidattice
Logger namespace mcp_flightrecorder evidattice
Development environment variables MFR_* EVIDATTICE_*

The distribution provides only the evidattice command and import namespace. Update launch configurations, scripts and logging configuration. The repository is Steady-Hand-AI/evidattice.

Existing SQLite schema 6 recordings remain readable without migration. Capture APIs, subcommands, flags and evidence behavior are preserved. The serialized identifiers mfr.inspect/1, mfr.diagnose/1, mfr://schema/inspection and mfr.proxy remain unchanged for recording and protocol compatibility. The optional MCP inspector advertises evidattice-inspection.

Add recording to your host

Start an AgentRecorder in the worker, create one conversation handle, and wrap the native MCP session once. Inside your existing async turn loop, keep request construction, response parsing and tool selection in your host:

from evidattice.easy import AgentRecorder

rec = AgentRecorder("new-recording.sqlite", capture="metadata")
rec.start()
conversation = rec.conversation("chat-123")
tools = rec.mcp(native_session, kind="session")
try:
    with conversation.turn(user_input):
        with conversation.model_call(payload) as call:
            response = await existing_model_call(payload)
            call.done(response)
        name, arguments = parse_selected_tool(response)
        choice = call.choice(name, arguments)
        with choice.run() as attempt:
            result = await tools.call_tool(name, arguments)
        messages.append(attempt.answer(make_tool_message(result)))
finally:
    conversation.close()
    closed = await rec.aclose()

This is an attachment fragment: native_session, model calls, parsing, messages and result formatting belong to the application. The complete guide covers startup/close checks, native OpenAI, replay keys, selected retry attempts, parallel tools, prepared messages, local calls and consumed streams. It also explains limits, health and fresh-path recovery. path=None disables recording; construction alone starts no writer. Declare all_model_calls_recorded=True only when your host actually promises that coverage.

An answer binds the invocation your host selected, including unavailable capture. The library handles receipts, event IDs and insertion annotations. It never substitutes an earlier successful retry, guesses provenance from equal text, or changes native execution because capture is full. The model → tool → model walkthrough remains a complete lower-level SDK-backed example.

The installed evidattice command and python -m evidattice share the same readers. Existing commands retain JSON defaults; turns --text and explain --text add readable labels and IDs, and doctor --json exposes the separate diagnostic envelope. --last selects a recorded turn; files with multiple runs require --run. See the inspection contract for bounds, preparation explanations and exit codes.

The complete OpenAI and MCP host example uses AgentRecorder with native SDK clients, deterministic peers and independent evidence/application checks.

Record a stdio MCP server

For a host whose MCP server launch command you can edit, use the installed recording bridge:

evidattice proxy --record /absolute/path/to/new-recording.sqlite -- SERVER_COMMAND ARGUMENT...

One client connects to one child server. Native bytes keep their order; capture observes supported tools/list and tools/call exchanges without retrying native calls. Recording defaults to metadata; --capture content opts into retained bodies, and omitting --record forwards without a database. Keep stderr separate from protocol stdout and use a fresh recording path.

This records the MCP boundary only: no model choices, host turns or prepared-answer relationships are invented. Use evidattice check recording.sqlite --expect mcp and the proxy walkthrough for the deterministic source-shipped peer, public operation/payload queries and real MCP inspection. The existing host evidence gate is not a passing check for an MCP-only recording. The bridge requires POSIX pipes; capture loss is visible on stderr and does not repair or conceal native transport failure.

Inspect through MCP and verify evidence

Install evidattice[mcp]==0.5.25 to launch evidattice mcp /absolute/path/to/recording.sqlite from an MCP stdio client. The operator selects one stable portable recording at startup; tools cannot select other files or run SQL. Five metadata-only tools and one schema resource are available by default. --allow-content adds explicit, bounded payload retrieval. Metadata can still be sensitive; no-content output is not anonymized.

Use evidattice snapshot live.sqlite copy.sqlite or inspect.snapshot(...) separately when a portable copy is needed. The MCP server does not acquire live files, watch for writers or recover WAL filesets. The MCP client walkthrough creates a recording, launches a genuine subprocess client, follows ancestry and retrieves content only when enabled.

For CI, evidattice gate evaluates the complete selected run under explicit coverage and activity expectations. For example, after the SDK tool-roundtrip example:

evidattice gate run.sqlite --expect model,host,mcp --min-turns 1 \
    --min-model-requests 2 --min-model-responses 2 --min-decisions 1 \
    --min-tool-calls 1 --min-answer-occurrences 1

Exit 0 means the stated evidence requirements passed; failed requirements exit 2 and unverified evidence exits 4. The gate preserves raw text mismatches while recognizing fully validated preparation. It cannot certify answer quality or prove that no unobserved calls occurred. The SDK-free local host example uses metadata capture and has no MCP-result comparison, so it is not a passing gate example. It is distinct from the synthetic demo above and the MCP-backed attachment fragment. See the gate policy and limits.

Keep a regression check

evidattice.testing.assert_evidence checks captured evidence in an ordinary test. The matching source-shipped regression example demonstrates evidence checks alongside independent application assertions.

Add the evidence assertion after your test runs the current host code into a fresh recording and closes it.

from evidattice.testing import assert_evidence

result = assert_evidence("fresh-test-recording.sqlite")

PASS returns the gate result. Completed FAIL or UNKNOWN raises AssertionError. A read or configuration error raises EvidenceReadError with its original reason. Keep an independent application assertion: faithful capture can still record the wrong answer. Explicit allow_local_tools=True excludes validated local comparisons. Their forwarding remains unverified, and missing MCP evidence still prevents a pass.

The regression walkthrough runs the current host function with deterministic synthetic inputs, checks evidence and behavior independently, and catches intentional negative cases in an ordinary test suite. It includes the exact command for running the source example outside the checkout against an installed wheel.

Use the capture API

Check capture receipts and recorder.health() when recording completeness matters. close_result.portable reports whether the stopped recording was finalized and verified as a standalone file. A portable recording can still contain incomplete capture. Use capture="metadata" when bodies should be omitted; metadata, structural membership and retention facts remain available.

See Capture for the complete public contract and Architecture for admission, transaction, identity and shutdown rules.

Operational logging

The library uses Python's standard logging package under evidattice. Configure logging in your host application before creating a recorder:

import logging

logging.basicConfig(
    level=logging.WARNING,
    format="%(asctime)s %(levelname)s %(name)s %(message)s",
)
logging.getLogger("evidattice").setLevel(logging.INFO)

INFO reports startup, clean portable closure and verified snapshots. WARNING reports capture loss, incomplete closure, busy/timeout finalization and operational inspection failures. ERROR reports unexpected capture/writer failure, lost admitted prerequisites and failed snapshot cleanup. Repeated capture reasons are bounded; captured content, paths, SQL and raw exceptions are excluded.

Library logging installs only a NullHandler; it creates no log files and does not configure the root logger. Applications choose handlers. Separately, evidattice proxy deliberately emits bounded capture/cleanup diagnostics to stderr and inherits the child's native stderr. Protocol stdout remains reserved for the child. Preserve proxy diagnostics alongside receipts, health and inspection JSON: observer loss can occur before recorder admission. See logging behavior for component names, limits and handler ownership.

Develop and test

Local recipes accept a supported GIL-enabled CPython 3.11+. Record the actual Python, SQLite and dependency versions with each test run; the declared >=3.11 metadata floor does not establish that every interpreter has been tested.

Install this source checkout

To work from source, install the current checkout into a fresh environment and run the packaged demo outside the source directory:

evidattice_source=$(pwd -P)
evidattice_work=$(mktemp -d /tmp/evidattice-demo-XXXXXX)
python3 -m venv "$evidattice_work/env"
"$evidattice_work/env/bin/python" -m pip install "$evidattice_source"
cd "$evidattice_work"
. "$evidattice_work/env/bin/activate"
python -I -B -m evidattice.demo

A built wheel from the same source is another package-acquisition input. For isolated tools, use uvx --from /absolute/path/to/package.whl evidattice demo and retain that package source for the printed uvx follow-ups. Use the same package version for the initial launch and its follow-ups.

Tagged source and source distributions

Source-shipped examples are available in tag 0.5.25 and the matching source distribution. They are not installed by the wheel. From an empty directory, obtain the tagged source:

git clone --depth 1 --branch 0.5.25 https://github.com/Steady-Hand-AI/evidattice.git
cd evidattice
evidattice_source=$(pwd -P)

Alternatively, download evidattice-0.5.25.tar.gz from the PyPI release files, extract it, and set evidattice_source to the absolute path of its evidattice-0.5.25 directory. Continue with the same fresh source installation and run the source-shipped facade demo outside that directory:

evidattice_python=$(command -v "${EVIDATTICE_PYTHON:-python3}") || exit 1
evidattice_source_env=$(mktemp -d /tmp/evidattice-source-env-XXXXXX)
"$evidattice_python" -m venv "$evidattice_source_env"
"$evidattice_source_env/bin/python" -m pip install "$evidattice_source"
"$evidattice_source_env/bin/evidattice" --version
recording_dir=$(mktemp -d)
(
    cd "$recording_dir"
    "$evidattice_source_env/bin/python" -I -B "$evidattice_source/examples/agent_recorder.py" --output "$recording_dir/run.sqlite"
    "$evidattice_source_env/bin/evidattice" doctor "$recording_dir/run.sqlite"
)

Install source extras with "$evidattice_source_env/bin/python" -m pip install "$evidattice_source[openai-chat]", substituting mcp or anyllm-ollama as needed. Keep the legacy MCP adapter in its separate environment. The complete SDK walkthrough gives matching pinned-package/tagged-source commands for the model → MCP tool → model example.

Follow the complete Testing recipe to select one interpreter, export a committed source tree, build in a disposable copy and install the wheel into fresh environments. It provides explicit SDK-free and modern integration selections, including installed CLI, facade and example checks. pytest tests includes both selections. Optional native host profiles use their own separate environments and direct requirements; legacy MCP 1.x must not share the modern MCP 2.x environment. A missing optional SDK is not a failed core test or a passed compatibility test. Tests construct recordings in temporary directories and check the examples with ordinary pytest assertions and independent SQL. The source distribution includes the seven declarative JSON inputs needed by the controlled integration scenario.

The CI workflow is configured for Linux core jobs on CPython 3.11 and 3.14 and a separate CPython 3.14 integration job. It checks the exported source and built distributions against an explicit public inventory, rebuilds from the sdist, and exercises installed artifacts. The workflow uses read-only repository permissions; it does not publish packages. Check the actual Actions runs for observed results. Configuration alone does not establish a passing run.

The manual release workflow provides validation and staged publication through TestPyPI, PyPI and GitHub. It promotes one reviewed wheel/sdist pair, verifies downloaded bytes and installations between stages, and uses separate registry approval gates. The release notes describe the changes in 0.5.25.

Documentation and source

Resource Purpose
Agent investigation workflow Resolve a recording, preserve evidence policy and cite actual IDs
Easy integration Concepts, host attachment, replay/retries, diagnostics and operations
Architecture / HTML map Current modules, data flow and invariants
Detailed control flows Component ownership, admission, persistence and failure-path diagrams
Capture API Recorder construction, scopes, observations, lifecycle and shutdown
Inspection API and CLI Read-only queries, explanation, ancestry, integrity and snapshots
Integrations SDK facades, evidence receipts and host attachment recipes
Complete tool roundtrip Run local SDK peers and investigate prepared tool text
Stdio recording proxy Change one server launch, capture MCP-only evidence and inspect retained operations
Testing Reproducible local suites and temporary fixtures
Releasing Candidate validation, registry setup and staged publication
Release notes Changes in 0.5.25
Changelog Version history and unreleased changes
Repository Source code
Issues Bug reports and feature requests

Runtime code is under src/evidattice/; sql/schema.sql is the canonical schema. tests/ contains the normal suite and independent fixture assertions, compatibility_tests/ contains native host checks, and examples/ contains short usage examples; tests/producers/ holds the longer controlled test scenarios. Capture, slice and snapshot coverage exercises the installed library and CLI. Generated recordings, reports, dependency wheels, environment directories and historical handoffs are not part of the source package.

License and ownership

Copyright 2026 Volodymyr Barylyak.

Evidattice is licensed under the Apache License, Version 2.0 (Apache-2.0). See LICENSE for the complete terms and NOTICE for project attribution.

Metadata

Release files for evidattice 0.5.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evidattice 0.5.25
File Size Uploaded Provenance Actions
evidattice-0.5.25.tar.gz 857.4 kB With provenance Details for evidattice-0.5.25.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for evidattice 0.5.25
File Interpreter ABI Platform Actions
evidattice-0.5.25-py3-none-any.whl Python 3 none any Details for evidattice-0.5.25-py3-none-any.whl

Total release size: 1.0 MB

Release files / evidattice-0.5.25.tar.gz

Download URL evidattice-0.5.25.tar.gz
Size 857.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c0b35fb2243b6aac4495009a25f1a36a9718dcd42accd57a1e1925e8a44b914
BLAKE2b-256 checksum
How to use checksums
0ebd83f293e6d92faf0eb90105b9fc160a0b17d68545bbd0fc02a2da3a9a4d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / evidattice-0.5.25-py3-none-any.whl

Download URL evidattice-0.5.25-py3-none-any.whl
Size 147.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e0fd0ead0e964011cdc05cd91c50ba3ed220ab88583d6f23c4732d0a02d6ad1
BLAKE2b-256 checksum
How to use checksums
5b866b5690edeaf4cb46b4f0935663f6493042658d6ff2a662ec9dcbfdc1b201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for evidattice 0.5.25

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for evidattice-0.5.25.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.25 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page