Heuristic Context Saturation Profiler for LLMs — EGO V12.2 Framework
Project description
EGO Metrology
Heuristic Context Saturation Profiler for LLMs
Know when your context is working against you — before you generate a single token.
What this is
EGO Metrology is an open-source heuristic profiler. It estimates context saturation and structural load for LLM prompts, based on the EGO V12.2 theoretical framework (Holographic Quantum Error Correction / Tensor Networks).
What OSS does
- Measures context pressure η — how full your window really is
- Estimates spectatorization ratio α_S — passive overhead vs active computation
- Flags geometric saturation r(η) — the point where adding tokens stops helping
- Provides an uncalibrated logical decay estimate τ
What OSS does not do
- Does not measure model internals (logits, attention, entropy)
- Does not predict hallucination probability
- Does not provide calibrated τ values — empirical sectoral anchors are Enterprise only
Install
pip install ego-metrology
Quickstart
from ego_metrology import EgoProfiler
profiler = EgoProfiler("deepseek-14b")
result = profiler.profile(prompt_tokens=12_000)
print(result.summary())
The Three Metrics
1. Spectatorization Ratio — α_S
Heuristic estimate of passive context overhead.
α_S → 1 means your prompt is bearing heavy structural weight.
2. Geometric Saturation — r(η) Position on the continuum between linear attention (r=1.2071) and holographic saturation (r=π/2 ≈ 1.5708). Past the bound, adding tokens yields diminishing returns.
3. Logical Decay Estimate — τ (uncalibrated in OSS) A structural estimate of output coherence lifespan. Requires empirically validated sectoral anchors to be meaningful. Calibrated values are available in EGO Enterprise.
CLI
ego-profile deepseek-14b 12000
ego-profile --list
Theoretical Background
Based on the EGO V12.2 framework, applying principles from:
- Holographic Quantum Error Correction (HQEC)
- Holographic Tensor Networks (Evenbly)
- Dissipative thermodynamics for logical coherence decay
EGO Enterprise
The open-core library provides the heuristic measurement framework. EGO Enterprise adds empirical calibration and production tooling:
- Validated sectoral anchors for GPT-4, Claude, Gemini, Mistral
- Full bulk/boundary recoverability testing
- Visual dashboard + historical tracking
- CI/CD integration
License
MIT — © 2026 Julien Tournier / Uyuni
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ego_metrology-0.2.0.tar.gz.
File metadata
- Download URL: ego_metrology-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f0265517c2b665dec1ac3a28b648a0311168bc37c13edcb1bafc0a5a5ec9d3
|
|
| MD5 |
a3263a802c407a031ec51e026ab3ba91
|
|
| BLAKE2b-256 |
20196c07513927f1facd30c82341cc656fb9daa2a2ca16092e2dea565d6a6bdb
|
File details
Details for the file ego_metrology-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ego_metrology-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37b00de1ea42ea4a13073b62ce9da4ca788ef652a01ac9d15d990658b7f79855
|
|
| MD5 |
cb4726a4bea38cf2afdbe10a9c8caa0c
|
|
| BLAKE2b-256 |
700a68e23390cc7caa9800a4c357162770cda1d1693658e183d46d29a2eac1d7
|