PAI Open Foundation

Context Economy

Send the smallest sufficient context while preserving authority, provenance, privacy, acceptance, and rollback boundaries.

Five deterministic primitives

Context capsules

Protected fields and output reserve stay explicit. Missing required evidence returns CONTEXT_MISS.

Compact status

Small read models retain parity for shared fields and point to the full source.

Tool-result envelopes

Sanitized evidence is retained by digest while model-visible excerpts stay bounded.

Capability projections

Caller-owned allowlists create stable tool sets and cache identities.

Repository-map selection

Deterministic ranking either returns a bounded match or an explicit miss.

The source campaign measured a workload-specific p95 reduction from 17,700 to 3,825 visible tokens (78.39%), with zero percentage-point acceptance regression and no false-success increase. This is not a universal savings guarantee.

View exact source commit ยท View GitHub release