Compile 1-8 documents into a token-budgeted context pack, then measure exact retention of
Compile 1-8 documents into a token-budgeted context pack, then measure exact retention of 1-32 caller-labelled evidence spans. Returns the pack, source-linked passages, input and output hashes, original and compiled token estimates, tokensSaved, source coverage, and requiredEvidenceRetentionPercent. Retention is exact span matching only: not accuracy, answer quality, verification, or hallucination prevention. Extractive and budget-bound. Request content is not stored.
10000 (raw units)
price
4
calls / 30d
2
unique payers
2026-09-05
updated
Provider
www.mahastrategies.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"budgetMode": "guaranteed",
"clientRequestId": "req_rag_release_eval_001",
"documents": [
{
"id": "release-notes",
"text": "Release may proceed after the security owner attaches credential-rotation evidence. The production canary passed in every region.\n\nRoutine notes cover staffing, dashboards, meeting cadence, maintenance calendars, regional handoffs, historical capacity, and documentation formatting.",
"title": "Release notes"
},
{
"id": "rollback-runbook",
"text": "Rollback if API errors exceed 2 percent for five minutes or payment failures breach the alert threshold. Restore the last-known-good deployment before reopening traffic.\n\nRoutine notes cover staffing, dashboards, meeting cadence, maintenance calendars, regional handoffs, historical capacity, and documentation formatting.",
"title": "Rollback runbook"
}
],
"provenance": "compact",
"requiredEvidence": [
{
"evidenceId": "release-gate",
"sourceId": "release-notes",
"text": "Release may proceed after the security owner attaches credential-rotation evidence."
},
{
"evidenceId": "rollback-trigger",
"sourceId": "rollback-runbook",
"text": "Rollback if API errors exceed 2 percent for five minutes"
},
{
"evidenceId": "handoff-note",
"sourceId": "release-notes",
"text": "regional handoffs, historical capacity, and documentation formatting"
}
],
"scoring": "bm25",
"task": "Find the release condition and rollback trigger while removing duplicate operational background.",
"tokenBudget": 128
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"clientRequestId": "req_rag_release_eval_001",
"compiledContextStored": false,
"contextPack": {
"clientRequestId": "req_rag_release_eval_001",
"context": "# Context Pack\n\nTask: Find the release condition and rollback tr…",
"includedPassages": [
{
"passageHash": "sha256:4d5e66efdcf5f8dba63a89b40af6ce17f3f42948c48b731732e47f5dc…",
"passageId": "release-notes:1",
"sourceId": "release-notes",
"text": "Release may proceed after the security owner attaches credential…"
}
],
"inputHash": "sha256:288dd5cacd92158f9460346ba6e931f6d0d52f2598bd55e748fc30a18…",
"metrics": {
"compiledBytes": 461,
"compiledEstimatedTokens": 83,
"duplicatePassagesRemoved": 1,
"estimatedReductionPercent": 14.4,
"originalBytes": 606,
"originalEstimatedTokens": 97,
"sourceCount": 2,
"sourceCoveragePercent": 100,
"tokensSaved": 14
},
"outputHash": "sha256:80a337617475688482476a469f9fa7b489ef3e1ad15b4a9756fdc1aa7…",
"packId": "ctxpack_d0dc187dd43a403d8aef472de5689408",
"retentionBoundaries": {
"claimVerificationPerformed": false,
"completenessGuaranteed": false,
"evidenceRetention": "best_effort",
"hallucinationPreventionGuaranteed": false,
"selectionType": "extractive",
"tokenCountType": "model_neutral_estimate"
},
"sources": [
{
"includedEstimatedTokens": 21,
"includedPassageIds": [
"release-notes:1"
],
"originalEstimatedTokens": 44,
"passageCount": 2,
"sourceHash": "sha256:288ded29ae161d3d11effd7161edf7c51ef1320e7ba0a8d2feaaed7ab…",
"sourceId": "release-notes",
"title": "Release notes"
}
],
"task": "Find the release condition and rollback trigger while removing d…",
"tokenBudget": 128,
"version": "0.1.0",
"warningCodes": [
"model_neutral_token_estimates",
"extractive_selection_not_verification"
],
"warnings": [
"Token counts are model-neutral estimates, not provider tokenizer…"
]
},
"evaluationId": "ctxeval_4f1c8a2b6d5e47c0913a7e2f8b46d5c1",
"evidence": [
{
"evidenceHash": "sha256:b14f15dd80d2aca98929dc3569304daf362ff8dd80549e17c4a85a55b…",
"evidenceId": "release-gate",
"sourceId": "release-notes",
"status": "retained"
}
],
"inputHash": "sha256:98eae8dca77e0c300502f19226528ef22ee2cb8f05687c3513920f91f…",
"metrics": {
"compiledBytes": 461,
"compiledEstimatedTokens": 83,
"duplicatePassagesRemoved": 1,
"estimatedReductionPercent": 14.4,
"originalBytes": 606,
"originalEstimatedTokens": 97,
"requiredEvidenceCount": 3,
"requiredEvidenceRetentionPercent": 66.7,
"retainedEvidenceCount": 2,
"sourceCount": 2,
"sourceCoveragePercent": 100,
"tokensSaved": 14
},
"offerId": "deep-context-evaluation",
"outputHash": "sha256:133714e20e990c929f2fbe4693b719cfe19254a92afd0c46ed376cae4…",
"requiredEvidenceTextStored": false,
"retentionBoundaries": {
"answerQualityAssessed": false,
"claimVerificationPerformed": false,
"completenessGuaranteed": false,
"evidenceRetention": "best_effort",
"evidenceRetentionMeasurement": "exact_span_match",
"factualAccuracyAssessed": false,
"hallucinationPreventionGuaranteed": false,
"selectionType": "extractive",
"tokenCountType": "model_neutral_estimate"
},
"sourceTextStored": false,
"version": "0.1.0",
"warningCodes": [
"model_neutral_token_estimates",
"extractive_selection_not_verification",
"exact_span_retention_not_accuracy"
],
"warnings": [
"Token counts are model-neutral estimates, not provider tokenizer…"
]
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"budgetMode": {
"enum": [
"guaranteed",
"estimated"
],
"type": "string"
},
"clientRequestId": {
"maxLength": 120,
"minLength": 8,
"type": "string"
},
"documents": {
"maxItems": 8,
"minItems": 1,
"type": "array"
},
"provenance": {
"enum": [
"full",
"compact",
"none"
],
"type": "string"
},
"requiredEvidence": {
"maxItems": 32,
"minItems": 1,
"type": "array"
},
"scoring": {
"enum": [
"bm25",
"keyword"
],
"type": "string"
},
"task": {
"maxLength": 1200,
"minLength": 8,
"type": "string"
},
"tokenBudget": {
"maximum": 16000,
"minimum": 64,
"type": "integer"
}
},
"required": [
"clientRequestId",
"task",
"tokenBudget",
"documents",
"requiredEvidence"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"clientRequestId": {
"maxLength": 120,
"minLength": 8,
"type": "string"
},
"compiledContextStored": {
"const": false,
"type": "boolean"
},
"contextPack": {
"type": "object"
},
"evaluationId": {
"type": "string"
},
"evidence": {
"maxItems": 32,
"minItems": 1,
"type": "array"
},
"inputHash": {
"type": "string"
},
"metrics": {
"type": "object"
},
"offerId": {
"const": "deep-context-evaluation",
"type": "string"
},
"outputHash": {
"type": "string"
},
"requiredEvidenceTextStored": {
"const": false,
"type": "boolean"
},
"retentionBoundaries": {
"type": "object"
},
"sourceTextStored": {
"const": false,
"type": "boolean"
},
"version": {
"const": "0.1.0",
"type": "string"
},
"warningCodes": {
"type": "array"
},
"warnings": {
"type": "array"
}
},
"required": [
"version",
"offerId",
"evaluationId",
"clientRequestId",
"contextPack",
"evidence",
"metrics",
"inputHash",
"outputHash",
"warnings",
"warningCodes",
"retentionBoundaries",
"sourceTextStored",
"compiledContextStored",
"requiredEvidenceTextStored"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"declaration-integrity": {
"canonicalResource": "https://www.mahastrategies.com/api/v1/compress/evaluate",
"declarationDigest": "sha256:79cc9f6fb37a3e04c40af0137cceaba63a71acfada1a8e096bfbc09e4adf4cad",
"metadataVersion": "2026-08-10"
},
"maha-offer": {
"amount": "10000",
"asset": "USDC",
"assetDecimals": 6,
"canonicalResource": "https://www.mahastrategies.com/api/v1/compress/evaluate",
"declarationInline": "compact",
"declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/deep-context-evaluation",
"fullSourceTextStored": false,
"maxRequestBytes": 1050000,
"method": "POST",
"network": "eip155:8453",
"offerId": "deep-context-evaluation",
"payableInProduction": true,
"status": "available",
"verbatimExcerptsRetained": false
}
}Use it
curl
curl "https://www.mahastrategies.com/api/v1/compress/evaluate" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://www.mahastrategies.com/api/v1/compress/evaluate");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://www.mahastrategies.com/api/v1/compress/evaluate")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1414.json, and this resource appears in /discovery/resources and /discovery/search.