RunEconomy
RunEconomy finds inference waste in multi-step agent workflows and verifies whether proposed changes improve successful-task performance. Its controlled before-and-after experiment workflow is called NegativeSplit.
So far, we've validated on pinned, narrow workloads. Treat the bundled demo as evidence for its recorded workload and environment, not as a general benchmark.
The project focuses on critical-path workflow experiments rather than trying to replace prompt-cache collectors or general observability systems. It can consume normalized evidence from those layers and test whether an application or serving intervention improves successful-workflow performance.
The current implementation analyzes exact prompt token sequences, models vLLM's full-block prefix-cache eligibility, attributes divergence to semantic prompt segments, and separates potential reuse from observed cached tokens. It also captures server-rendered prompts and runs controlled paired A/B replays against a trusted vLLM benchmark server.
Installation
Install RunEconomy from PyPI:
pip install runeconomy
RunEconomy requires Python 3.11 or newer. Trace analysis and the bundled demo run locally without a GPU or network connection.
Run the CPU-only demo
The bundled demo uses sanitized aggregate evidence from the measured repository-agent experiment. It makes no network or GPU calls.
runeconomy demo
This writes runeconomy-demo.html, a self-contained NegativeSplit report with the diagnosis, baseline/candidate comparison, confidence interval, quality gates, provenance, and claim boundary. Generated output and raw trials are not embedded.
Run the current proof from a checkout
The commands below use repository fixtures and tests; they are not included in an installed wheel.
uv run runeconomy analyze examples/traces/repository-unused-tools.json
uv run pytest -q
Validate the example experiment manifest locally (no GPU call is made):
uv run runeconomy negative-split validate \
examples/experiments/timestamp-placement.json
See the trace format. The experiment format documents the vLLM flags, reproducibility controls, and result semantics.
Experiment manifests can execute local Python or commands when those evaluator
kinds are enabled. Review a manifest like a script; the CLI requires an
explicit --allow-exec-evaluators flag before using them.
Exact-token captures can be converted into a normalized trace without manually writing the trace schema:
uv run runeconomy import-vllm-jsonl captures.jsonl \
--output trace.json \
--trace-id coding-agent-001 \
--workload coding-agent \
--model Qwen/Qwen2.5-1.5B-Instruct
uv run runeconomy analyze trace.json
Modal validation
The private Modal deployment is defined in
deploy/modal_vllm.py. It pins the model and serving
stack, preloads model weights on CPU, verifies required vLLM capabilities
before GPU allocation, uses one A10 replica, and persists Hugging Face, vLLM,
and FlashInfer caches in separate v2 volumes.
Modal commands require a repository checkout with the locked development
dependencies installed by uv sync --locked.
Credentials belong only in the ignored .env.local file. A validation window
must end by explicitly stopping the app:
uv run modal app stop -y runeconomy-vllm
uv run modal container list --json
Metadata
Release files for runeconomy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| runeconomy-0.1.0.tar.gz | 64.8 kB | With provenance | Details for runeconomy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runeconomy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for runeconomy-0.1.0-py3-none-any.whl |
Total release size: 113.2 kB
Release files / runeconomy-0.1.0.tar.gz
| Download URL | runeconomy-0.1.0.tar.gz |
|---|---|
| Size | 64.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
660fb49606bd38d1e6849b100d74cd95510895a8fc6d512609fc878489c02a81
|
|
BLAKE2b-256 checksum How to use checksums |
47286c77df4c8de190813fb201ed734197043a5dc634311ff7d50b9b81f24a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logRelease files / runeconomy-0.1.0-py3-none-any.whl
| Download URL | runeconomy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 48.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a4f179a7412f2daa7e686225a6123d0fae23ed4e2d2171f672055a10bbb8de4
|
|
BLAKE2b-256 checksum How to use checksums |
9b514bc75b344b3235c0e17ba0e4cc0d33aa88c6c47634f72322bb239a1b44cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logSecurity for runeconomy 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for runeconomy-0.1.0.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 Nov 12, 2026.
Transparency logA 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.