01 · Install
Configure an evaluation-only, fail-closed interceptor path alongside the existing WSO2 baseline and Prompt Compressor path.
Independent WSO2 compatibilityIndependent compatibility evidence
Evaluate Maha Context Compiler as a fail-closed request interceptor in an existing WSO2 AI Gateway deployment—without replacing WSO2 as the enterprise gateway and control plane.
The pilot measures provider input tokens, required-fact retention, citation traceability, latency, failure behavior, and model cost against a customer-shaped workload. It returns a private evidence package and a recommendation to proceed, revise, or stop.
01 · Install
Configure an evaluation-only, fail-closed interceptor path alongside the existing WSO2 baseline and Prompt Compressor path.
02 · Compare
Run one agreed workload through all three paths with a frozen configuration, explicit cost ceiling, and no automatic retries.
03 · Decide
Deliver aggregate results, sanitized traces, failure-path evidence, limitations, and a production-readiness recommendation.
Preliminary observed result
In a 60-call comparison over 20 frozen, synthetic 20K–100K-token workloads, run once on 2026-08-17, the Maha path reduced provider input tokens by 98.84% and observed model cost by 98.20% relative to baseline. All 60 calls completed without retries or failures.
| Path | Provider input tokens | Observed model cost | Median latency | Required facts retained |
|---|---|---|---|---|
| WSO2 baseline | 1,621,553 | $1.632963 | 2,867 ms | 60 / 60 |
| WSO2 Prompt Compressor | 1,489,323 | $1.505248 | 6,958 ms | 0 / 60* |
| WSO2 + Maha | 18,849 | $0.029379 | 1,701 ms | 60 / 60 |
*The Prompt Compressor result is specific to WSO2 AI Gateway 1.1.0, Prompt Compressor 0.9.0, and a 0.55 retained ratio. It should not be generalized before WSO2 or a customer confirms that configuration reflects the intended production setup. Provider pricing assumptions and the full frozen configuration are recorded in the reproduction manifest.
Which retention score this is. “Required facts retained” above is the path-blinded semantic rubric applied to the returned answers. A second, stricter scorer measures exact evidence-span containment on the same answers and reports 15 / 60 for the baseline, 0 / 60 for the Prompt Compressor, and 24 / 60 for Maha, because it scores a correct paraphrase as a miss. Both scores are published per workload in the evidence artifact. Latency is one observation per call on a single run, not a percentile over repeated runs.
Reproduce before trusting
The public package pins the gateway and policy versions, retained ratio, model, corpus digest, failure behavior, and zero-retry rule. Its default one-command run is a dry run and makes no provider calls.
Four documents, each served from this site and each stating its own scope. Read them before the call rather than after it.
Every call in the frozen three-path evaluation as its own row, with the aggregates re-derived from those rows.
The deliverable a customer receives, produced from a synthetic corpus. Not a customer result.
What the compiler and its WSO2 interceptor do with context data, with each statement traced to committed source.
An embedding-retrieval baseline on the frozen MCRB-1 cohort, published beside the v1 results it is compared with.
The retention benchmark publishes its v1 results alongside the dense baseline, so the comparison can be read in full rather than in the direction that flatters us.
npm run reproduce:wso2-evaluationThe table above is not typed into this page. It is read from a committed artifact that carries every one of the 60 calls as its own row, and whose totals are re-derived from those rows each time it is loaded — a hand-edited total fails validation instead of rendering. Verify the artifact you are reading is the one described here:
shasum -a 256 content/integrations/wso2-live-evaluation-evidence.json
npm run validate:wso2-live-evidenceThe run’s primary evidence — the durable checkpoint and the path-blinded adjudication — is retained outside this repository because both carry the model’s answer text for every call. They are identified above by digest so a reviewer under NDA can be handed the exact bytes this artifact was derived from and re-derive it with npm run generate:wso2-live-evidence. The sanitized single-workload trace remains published separately: it is one representative call, not evidence for the aggregate.
Declared boundaries
Start with evidence
Send the approximate input size, request volume, current WSO2 AI Gateway version, and the facts or citations that must survive. Maha will reply with a bounded scope—or say plainly if the workflow is not a fit.