One governed plane for reducing unnecessary data, transfer, and AI compute without silently changing the result.
Universal Reduction Plane (URP) intercepts a data or AI work unit, assigns a preservation contract, plans eligible reductions, verifies the candidate output, records a manifest, and appends auditable ledger events.
WorkUnit + Contract + Policy -> Plan -> Execute -> Verify -> Manifest + Ledger
Read the technical paper | Download the PDF | Review the arXiv bundle | Open the documentation | Run the live proof | Model your impact
Infrastructure teams pay repeatedly for duplicate bytes, avoidable transfer, identical model requests, repeated prompt context, inefficient data layouts, and redundant training inputs. Existing optimizers address individual layers but rarely share contracts, policy, verification, lineage, or audit evidence.
URP makes the reduction decision itself portable and reviewable.
- Compatibility first: S3-style objects, POSIX files, OpenAI-compatible AI, REST, protobuf, Python, TypeScript, Go, and Rust.
- Exact by default: unknown input receives an
exact_bytescontract. - Verifier backed: reduced or cached output is accepted only after a real verifier succeeds.
- Tenant isolated: cross-tenant cache and dedupe are disabled by default.
- Policy gated: semantic, approximate, lossy, and deletion paths are off until explicitly allowed.
- Auditable: manifests, hash-chained ledger events, traces, metrics, and redacted exports explain every decision.
- Local first: the full deterministic suite runs without cloud credentials or a paid model provider.
Requires Python 3.10 or newer.
git clone https://github.com/thewisecrab/urp.git
cd urp
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e ".[dev]"
.venv/bin/urp --state-dir .urp-demo execute \
--kind byte_object \
--input "hello hello hello"
.venv/bin/python examples/live/run_live_examples.py --reset
.venv/bin/urp --state-dir .urp-bench benchmark run --suite local-all-v1The live proof exercises exact object restore and range reads, legal-hold denial, an OpenAI-compatible exact cache hit, a lakehouse adapter, savings metrics, redacted manifest exploration, and ledger-chain verification.
| Evidence class | Result | Interpretation |
|---|---|---|
| Measured local fixture | 11,556 bytes restored exactly | Exact rehydration passed. |
| Measured local fixture | 249 bytes stored | 97.85% reduction on a deliberately repetitive CSV, not a universal ratio. |
| Measured mock AI path | 1 of 2 identical calls avoided | Exact cache returned the verified first response. |
| Measured policy path | Legal-hold deletion denied | The guardrail executed. |
| Measured audit path | Ledger chain valid | Event-chain verification passed. |
| Automated verification | 87 Python tests plus TypeScript, Go, Rust, schema, package, publication, and deployment gates | The local product contract is continuously checked. |
The checked-in base impact scenario models 100 TiB of storage, 200 TiB of monthly transfer, and 10 million AI requests per month. Under its explicit assumptions it calculates 1.5 million avoided model calls, 2.895 billion avoided tokens, $7,798.56 gross monthly direct savings, and $5,298.56 after a supplied URP operating cost. That is a scenario, not a forecast.
.venv/bin/urp report impact \
--scenario examples/impact/illustrative-portfolio.jsonSee the technical paper for formulas, low/base/high sensitivity, external context, and limitations.
flowchart LR
A[Application] --> B[Gateway or adapter]
B --> C[WorkUnit]
C --> D[Contract and policy]
D --> E[Planner]
E --> F[Reducer or exact cache]
F --> G{Verifier}
G -->|Accept| H[Manifest]
G -->|Reject| I[Safe fallback]
H --> J[Ledger and metrics]
I --> J
H --> K[Existing backend]
The same lifecycle applies to byte objects, files, table snapshots, stream segments, prompts, embeddings, agent steps, training datasets, and checkpoints.
| Surface | Implemented local behavior | Production extension |
|---|---|---|
| Core | WorkUnits, contracts, plans, verifiers, manifests, ledger, policies | Distributed stores and organization policy bundles |
| Objects | Exact chunking, compression, rehydration, range reads, multipart, legal hold | AWS S3 and provider object adapters |
| AI | Chat, completion, embeddings, exact cache, context compiler, router, fallback | OpenAI-compatible provider endpoint |
| Data | POSIX, SQL, lakehouse, stream, OTLP, vector, training contracts | Credentialed system adapters |
| Operations | Metrics, traces, reports, logs, approvals, backup/restore, readiness | Managed observability and secret stores |
| Deployment | Local, Docker Compose, Kubernetes, Helm, on-prem, edge | Cloud landing-zone integration |
| SDKs | Python CLI/runtime, TypeScript, Go, Rust crates | Published registries after release promotion |
| Behavior | Default |
|---|---|
| Unknown data | Preserve exact bytes |
| Cross-tenant cache or dedupe | Denied |
| Semantic cache | Disabled unless policy and verifier allow it |
| Approximate or lossy transform | Disabled unless bounded, approved, and verified |
| Deletion | Denied; legal hold always blocks |
| Cache store | Requires server-executed verification |
| Plugin | Requires digest, capabilities, and conformance |
| Failed optimization | Baseline fallback, never rejected output |
| API authentication | Required for /v1/* and /metrics |
Generate a local-only credential and start the control plane:
export URP_LOCAL_API_KEY="$(openssl rand -hex 32)"
.venv/bin/urp --state-dir .urp service run \
--name control-plane \
--listen 127.0.0.1:8080In another shell:
curl http://127.0.0.1:8080/readyz
curl -H "Authorization: Bearer $URP_LOCAL_API_KEY" \
http://127.0.0.1:8080/v1/manifestsAvailable service families are control-plane, gateway-ai, gateway-s3,
worker, and scheduler. See the OpenAPI contract and
deployment quickstart.
cp .env.example .env
# Replace every CHANGE_ME value in .env.
docker compose -f deployments/docker-compose/docker-compose.yaml up --buildhelm upgrade --install urp deployments/helm/urp \
--namespace urp-system \
--create-namespace \
--set image.repository=ghcr.io/thewisecrab/urp \
--set image.tag=0.1.0 \
--set secrets.create=true \
--set-string secrets.apiKey="$(openssl rand -hex 32)" \
--set-string secrets.postgresDsn="postgresql://..."Start in observe mode. Review deployment boundaries
before using shadow or enforce.
TypeScript:
import { URPClient, WorkUnitBuilder } from "@thewisecrab/urp";
const client = new URPClient("http://127.0.0.1:8080", {
apiKey: process.env.URP_API_KEY!,
});
const workUnit = new WorkUnitBuilder(
"byte_object",
"acme",
"s3://logs/2026/07/11.jsonl",
)
.payload("repeated data")
.build();
const plan = await client.plan(workUnit);Go:
client := urp.NewAuthenticatedClient(
"http://127.0.0.1:8080",
os.Getenv("URP_API_KEY"),
"acme",
)
workUnit, err := urp.ByteObjectWorkUnit(
"acme",
"s3://logs/object",
"repeated data",
).Build()
if err != nil {
return err
}
plan, err := client.Plan(ctx, workUnit)make check
# Or run individual gates.
python3 -m pytest -q
python3 -m ruff check python tests
npm test --prefix typescript
(cd go && go test -race ./...)
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
urp admin readiness
urp platform validate --target all
urp release verify --manifest PACKAGE_SHA256.json --root .Cloud credentials are not required for these checks. Live readiness is explicit:
urp platform validate --target all --require-livepython/urp/ Core runtime, CLI, services, policy, stores, adapters
crates/ Rust core, chunker, and S3 gateway crates
go/ Go SDK
typescript/ TypeScript SDK
services/ Runnable service boundaries and operations notes
specs/ JSON Schema, OpenAPI, and protobuf contracts
plugins/ Example classifiers, transforms, verifiers, adapters
tests/ Unit, integration, conformance, load, benchmarks
deployments/ Docker, Compose, Kubernetes, Helm, Terraform, edge
examples/ Live proof, policies, impact scenarios, deployment use
docs/ Architecture, security, API, deployment, technical paper
paper/arxiv/ Canonical arXiv metadata and submission checks
archive/source_packages/ Original source packages preserved for provenance
- Start here
- Product and use cases
- Architecture
- WorkUnit and manifest model
- Algorithms
- Adapter catalog
- Policy, security, and compliance
- APIs and protocols
- Operations and benchmarks
- Deployment quickstart
- Platform readiness
- Technical paper
- arXiv submission bundle
- FAQ
URP is a pre-1.0 open-source reference implementation. The exact local paths, interfaces, tests, and deployment packages are usable today. Production scale, high availability, cloud landing zones, and workload-specific quality evaluation remain adopter responsibilities and active engineering areas. See the roadmap and paper limitations.
Read CONTRIBUTING.md, GOVERNANCE.md, and the Code of Conduct. Report vulnerabilities through GitHub private vulnerability reporting as described in SECURITY.md, not in a public issue.
Use CITATION.cff or cite the technical paper and the exact release tag. The article is licensed under CC BY 4.0; URP software is licensed under Apache-2.0.