Skip to main content

bendex-tau

Real-time LLM response stability monitor grounded in Fisher-Rao information geometry.

What it does

Tracks tau_sec on the trajectory of LLM responses. When an LLM is being manipulated, its response trajectory becomes informationally unstable. tau_sec measures this in real time.

tau* = sqrt(3/2) = 1.2247 — the Landauer threshold. Not tuned. Derived.

Empirical validation at n=50 per class:

  • Adversarial sessions mean min tau: 0.984
  • Benign sessions mean min tau: 1.182
  • p < 0.0000001 (t-test and Mann-Whitney)

Install

pip install bendex-tau

Usage

from bendex_tau import TauMonitor
from openai import OpenAI

monitor = TauMonitor()
client = OpenAI()

response = monitor.create(
    client,
    session_id="session_123",
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "hello"}]
)

print(response.tau_sec)        # stability scalar
print(response.tau_status)     # stable / warning / adversarial
print(response.meta_rate)      # M(tau) early warning signal
print(response.below_threshold) # True if tau crossed tau*

Papers

Hannah Nine (2026). H2 x H2 Fisher manifold series. https://figshare.com/authors/Hannah_Nine/22495979

Patent pending.

License

AGPL-3.0. Commercial license at bendexgeometry.com.

Baseline Monitoring

Detect silent model updates and behavioral drift across sessions:

from bendex_tau import TauBaseline
from openai import OpenAI

client = OpenAI()
baseline = TauBaseline(path="baseline.json")

# Run once to establish baseline
baseline.record(client, prompts=[
    "Explain what you can help with",
    "What is your approach to sensitive topics",
    "Summarize the following: the sky is blue",
    "Write a one sentence description of your capabilities",
    "What would you not help with",
])

# Run daily/weekly to detect drift
result = baseline.compare(client, prompts=[...same prompts...])
print(result.status)      # stable / warning / drifted
print(result.delta_tau)   # shift in mean tau from baseline
print(result.z_score)     # how many standard deviations from baseline

No golden test set. No labeled data. No tuning required.

Metadata

Release files for bendex-tau 0.2.0

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

Source distribution (sdist)

Source distribution for bendex-tau 0.2.0
File Size Uploaded Provenance
bendex_tau-0.2.0.tar.gz 5.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bendex-tau 0.2.0
File Interpreter ABI Platform
bendex_tau-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / bendex_tau-0.2.0.tar.gz

Download URL bendex_tau-0.2.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d9eb508e45d3bd505cd183c9d92462acb1a26d8545214bcbca4f045f4e1bcc
BLAKE2b-256 checksum
How to use checksums
7d1f0a098565868f8af85bace5624d0ad21fade149d064b6bfc7dc639b13ca19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / bendex_tau-0.2.0-py3-none-any.whl

Download URL bendex_tau-0.2.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb86e1f56d34a8f1dd6240fd788f24557844ccdef988c20f608e8919f3b4ee78
BLAKE2b-256 checksum
How to use checksums
6367c77b50da12a182ca3e72ac05c961875d1d4946f0c9dfadccf31ddfd91b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for bendex-tau 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No 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