{
  "x402Version": 2,
  "id": 1425,
  "slug": "1425",
  "resource": "https://www.mahastrategies.com/api/v1/context/budget-ladder",
  "description": "Choose a context budget before an agent run. Compare five extractive compilation budgets with token estimates and source coverage. Price basis: five compiler runs, the comparison table and the receipt digest. Uses caller-supplied documents; no answer generation, factual verification or guaranteed token-billing savings.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "12000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "budgetMode": "guaranteed",
            "clientRequestId": "req_budget_ladder_001",
            "documents": [
              {
                "id": "release",
                "text": "The release may proceed only after the security owner approves the evidence packet.\n\nThe rollback begins when the error rate exceeds two percent for five minutes.\n\nRoutine status notes describe staffing and meeting schedules.",
                "title": "Release rule"
              },
              {
                "id": "operations",
                "text": "The operator must preserve the request digest and approval identity.\n\nRoutine status notes describe staffing and meeting schedules.",
                "title": "Operations note"
              }
            ],
            "provenance": "compact",
            "scoring": "bm25",
            "task": "Preserve the release authority and rollback condition.",
            "tokenBudgets": [
              64,
              96,
              128,
              192,
              256
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "boundaries": [
              "Five deterministic compilations of the same supplied documents; …"
            ],
            "clientRequestId": "req_budget_ladder_001",
            "comparison": [
              {
                "compiledEstimatedTokens": 29,
                "includedPassageIds": [
                  "operations:1"
                ],
                "outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
                "sourceCoveragePercent": 50,
                "tokenBudget": 64,
                "tokensSaved": 28
              }
            ],
            "compiledContextStored": false,
            "economicBasis": {
              "componentOfferId": "context-compression",
              "componentPriceBaseUnits": "1000",
              "componentRuns": 5,
              "priceBaseUnits": "5000"
            },
            "inputDigest": "sha256:971bb547c8bbfb88e93cc4cd3644b476a589a60341671fe06aeee0242…",
            "offerId": "context-budget-ladder",
            "receiptDigest": "sha256:69cde9faca3b195bc8a1c465ce0b5309aec342e1e276bbba8b8965da4…",
            "runs": [
              {
                "contextPack": {
                  "clientRequestId": "req_budget_ladder_001",
                  "context": "# Context Pack\n\nTask: Preserve the release authority and rollbac…",
                  "includedPassages": [
                    {
                      "passageHash": "sha256:60013bc3e8109806d697d7859823725653961b89f1460e2bcc9a91bc4…",
                      "passageId": "operations:1",
                      "sourceId": "operations",
                      "text": "The operator must preserve the request digest and approval ident…"
                    }
                  ],
                  "inputHash": "sha256:fcf75e8713e8e458f42d7b46c9831d1407544e49df606708ba5ec2a58…",
                  "metrics": {
                    "compiledBytes": 163,
                    "compiledEstimatedTokens": 29,
                    "duplicatePassagesRemoved": 1,
                    "estimatedReductionPercent": 49.1,
                    "originalBytes": 358,
                    "originalEstimatedTokens": 57,
                    "sourceCount": 2,
                    "sourceCoveragePercent": 50,
                    "tokensSaved": 28
                  },
                  "outputHash": "sha256:dc2e058d484882af8b60dd1150a0d7de0d77fb2d6e919d913c35ea2e8…",
                  "packId": "ctxpack_85a631811b7f99e1e091b9f365aa6735",
                  "retentionBoundaries": {
                    "claimVerificationPerformed": false,
                    "completenessGuaranteed": false,
                    "evidenceRetention": "best_effort",
                    "hallucinationPreventionGuaranteed": false,
                    "selectionType": "extractive",
                    "tokenCountType": "model_neutral_estimate"
                  },
                  "sources": [
                    {
                      "includedEstimatedTokens": 0,
                      "includedPassageIds": [],
                      "originalEstimatedTokens": 37,
                      "passageCount": 3,
                      "sourceHash": "sha256:e100472342b640276bf489453adba008e167f4039a5e8202528403f3a…",
                      "sourceId": "release",
                      "title": "Release rule"
                    }
                  ],
                  "task": "Preserve the release authority and rollback condition.",
                  "tokenBudget": 64,
                  "version": "0.1.0",
                  "warningCodes": [
                    "model_neutral_token_estimates",
                    "extractive_selection_not_verification"
                  ],
                  "warnings": [
                    "Token counts are model-neutral estimates, not provider tokenizer…"
                  ]
                },
                "tokenBudget": 64
              }
            ],
            "sourceTextStored": false,
            "version": "0.1"
          },
          "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"
                  },
                  "scoring": {
                    "enum": [
                      "bm25",
                      "keyword"
                    ],
                    "type": "string"
                  },
                  "task": {
                    "maxLength": 1200,
                    "minLength": 8,
                    "type": "string"
                  },
                  "tokenBudgets": {
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "clientRequestId",
                  "task",
                  "tokenBudgets",
                  "documents"
                ],
                "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": {
                  "boundaries": {
                    "type": "array"
                  },
                  "clientRequestId": {
                    "type": "string"
                  },
                  "comparison": {
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  },
                  "compiledContextStored": {
                    "const": false,
                    "type": "boolean"
                  },
                  "economicBasis": {
                    "type": "object"
                  },
                  "inputDigest": {
                    "type": "string"
                  },
                  "offerId": {
                    "const": "context-budget-ladder",
                    "type": "string"
                  },
                  "receiptDigest": {
                    "type": "string"
                  },
                  "runs": {
                    "maxItems": 5,
                    "minItems": 1,
                    "type": "array"
                  },
                  "sourceTextStored": {
                    "const": false,
                    "type": "boolean"
                  },
                  "version": {
                    "const": "0.1",
                    "type": "string"
                  }
                },
                "required": [
                  "version",
                  "offerId",
                  "clientRequestId",
                  "inputDigest",
                  "economicBasis",
                  "runs",
                  "comparison",
                  "boundaries",
                  "sourceTextStored",
                  "compiledContextStored",
                  "receiptDigest"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "declaration-integrity": {
      "canonicalResource": "https://www.mahastrategies.com/api/v1/context/budget-ladder",
      "declarationDigest": "sha256:3e193ea9512a73d4a383c37d0e4bdb4f19209c21ab1f808b856ded8550fea151",
      "metadataVersion": "2026-08-10"
    },
    "maha-offer": {
      "amount": "12000",
      "asset": "USDC",
      "assetDecimals": 6,
      "canonicalResource": "https://www.mahastrategies.com/api/v1/context/budget-ladder",
      "declarationInline": "compact",
      "declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/context-budget-ladder",
      "fullSourceTextStored": false,
      "maxRequestBytes": 450000,
      "method": "POST",
      "network": "eip155:8453",
      "offerId": "context-budget-ladder",
      "payableInProduction": true,
      "status": "available",
      "verbatimExcerptsRetained": false
    }
  },
  "tags": [
    "bazaar",
    "declaration-integrity",
    "maha-offer"
  ],
  "sourceHost": "www.mahastrategies.com",
  "lastUpdated": "2026-09-13T06:53:36.039Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-13T06:53:34.497Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.mahastrategies.com",
    "manifest_name": "www.mahastrategies.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}