Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Verdict Inspect

PyPI distribution: cognifity-verdict-inspect. Command: verdict-inspect.

One-shot drift analysis on a chat export. Drop in a conversations.json from ChatGPT, a Claude.ai export, a supported agent-session JSONL file, or an OpenAI-format messages dump, and get back a local drift / quality report.

Why this exists

Continuous LLM observability (the SDK + monitoring path) is the right answer for production agent traffic. But before a team commits to instrumenting their stack, they want to know: does Verdict actually find anything interesting in my data?

verdict-inspect runs against a file the user already has on their laptop. Structural and embedding analysis stay local; the optional judge has a separate privacy boundary described below.

Usage

# Auto-detect format
verdict-inspect analyze ~/Downloads/conversations.json

# Force a format
verdict-inspect analyze --format chatgpt ~/Downloads/conversations.json

# Specify report output
verdict-inspect analyze --report ./drift_report.md ~/Downloads/chatlog.jsonl

# JSON output for piping
verdict-inspect analyze --json ~/Downloads/conversations.json | jq .

Supported formats (v0)

  • ChatGPT data export — the conversations.json from Settings → Data Controls → Export
  • Claude.ai data export — the conversations.json from Settings → Account → Export
  • Generic OpenAI messages JSONL — one JSON object per line, each with messages: [{role, content}]
  • Agent-session JSONL — type-tagged local agent session logs
  • Auto-detect — looks at file structure and picks a parser

Planned (v1): Cursor .cursor/chats/, Gemini Takeout, LangChain message history files, Llama Index conversation logs.

What you get back

For a file with enough substantive assistant turns:

  1. Semantic drift — embedding-distribution shifts across temporal windows
  2. Judge sample — PASS/FAIL by dimension on stride-sampled turns (requires ANTHROPIC_API_KEY)
  3. Structural metrics — response length, hedge density, refusal rate, apology rate per window

Semantic drift runs key-free. By default it tries sentence-transformers/all-MiniLM-L6-v2, then falls back to the built-in HashingEmbedder if the dependency/model is unavailable. That fallback detects lexical embedding-distribution changes; it is not a semantic model, and the report labels it explicitly. Install the local semantic embedder with pip install "cognifity-verdict-eval[semantic]".

Turns with fewer than 10 assistant-response words are excluded from windowed analysis. At least 16 substantive turns are required for a two-window comparison; 24 create the default early/middle/late split. Each window's judge sample is capped at 25 turns. Treat small-window output as exploratory rather than calibrated production evidence.

Privacy

Structural metrics and embedding inference run on your machine. The first MiniLM run may download model weights, but it does not upload the analyzed conversation. If ANTHROPIC_API_KEY is set and the judge is enabled, verdict-inspect sends stride-sampled user and assistant text (up to 4,000 characters each) to the configured Anthropic model. Anthropic credentials and data-handling terms apply. Pass --no-judge or omit the key to keep conversation content local and receive structural plus embedding analysis only. The v0 inspect judge is Anthropic-only.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognifity_verdict_inspect-0.1.0a3.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognifity_verdict_inspect-0.1.0a3-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file cognifity_verdict_inspect-0.1.0a3.tar.gz.

File metadata

File hashes

Hashes for cognifity_verdict_inspect-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 96d677963d3c83001767f61aaaac5a1f3c4d9f0409b7b3f76b1764a08c164064
MD5 32c49c324871e85b9d9b0c9eb174fa73
BLAKE2b-256 ebe527c8f80f27bbee6bd235ae4e6052b4ace94efbd4349da9f24466359ecdad

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognifity_verdict_inspect-0.1.0a3.tar.gz:

Publisher: publish.yml on cognifityai/verdict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cognifity_verdict_inspect-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for cognifity_verdict_inspect-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d5592151229a509c9ac10e836dfeb9dde43bd8f403c88b1f4d4f9f37dfb53e
MD5 e51ee698f03e555d1299c3f1aa43c297
BLAKE2b-256 c9db661a3d32a0c2f2f99bc274a54df309ede42ae8188d1b93fb1f00b8cfd4ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognifity_verdict_inspect-0.1.0a3-py3-none-any.whl:

Publisher: publish.yml on cognifityai/verdict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page