{"uid":"cap_3VWSb7hclFcRoKW9DJOmU","slug":"mahastrategies-governed-context-verification-pack-29c31403","name":"Mahastrategies Governed Context Verification Pack","description":"Prepare an inspectable context-selection evidence pack from caller-supplied documents and labelled spans. Combines budget comparisons, retention checks and policy-bound receipts. Verification concerns the declared workflow, not factual truth, answer quality or legal compliance.","url":"https://www.mahastrategies.com/api/v1/context/governed-verification","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["clientRequestId","task","tokenBudget","documents","requiredEvidence"],"properties":{"task":{"type":"string","maxLength":1200,"minLength":8},"scoring":{"enum":["bm25","keyword"],"type":"string"},"documents":{"type":"array","maxItems":8,"minItems":1},"budgetMode":{"enum":["guaranteed","estimated"],"type":"string"},"provenance":{"enum":["full","compact","none"],"type":"string"},"tokenBudget":{"type":"integer","maximum":16000,"minimum":64},"clientRequestId":{"type":"string","maxLength":120,"minLength":8},"requiredEvidence":{"type":"array","maxItems":32,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","clientRequestId","deliverable","limitations","sourceTextStored","compiledContextStored","requiredEvidenceTextStored","receiptDigest"],"properties":{"offerId":{"type":"string","const":"governed-context-verification-pack"},"version":{"type":"string","const":"0.1"},"deliverable":{"type":"object"},"limitations":{"type":"array"},"receiptDigest":{"type":"string"},"clientRequestId":{"type":"string"},"sourceTextStored":{"type":"boolean","const":false},"compiledContextStored":{"type":"boolean","const":false},"requiredEvidenceTextStored":{"type":"boolean","const":false}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ty-tlPldSEMS132uLw-9D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds an inspectable evidence pack from caller-supplied documents and labelled spans, combining token-budget comparisons, retention checks, and policy-bound receipts to verify declared context-selection workflows.","exampleAgentPrompt":"Run a governed verification pack on these 3 documents for the task 'summarize key risk factors', with a token budget of 4000, required evidence labels ['risk_factor','mitigation','timeline'], scoring by bm25, provenance set to full, and request ID 'audit-run-20240601-001'.","exampleUseCases":[{"title":"RAG pipeline compliance audit","prompt":"I need to verify that my retrieval pipeline correctly selected spans covering 'methodology', 'results', and 'conclusion' from these 5 research papers for the task 'generate literature review', using a token budget of 8000 and keyword scoring — give me a full provenance receipt with digest, request ID 'lit-review-check-001'."},{"title":"Agent context budget validation","prompt":"Before my agent runs, verify that the context it compiled from these 2 policy documents covers all required evidence types — 'liability_clause', 'termination_condition', 'jurisdiction' — within a 2000 token guaranteed budget, using bm25 scoring and compact provenance, request ID 'policy-ctx-verify-002'."},{"title":"Multi-document evidence pack for regulated workflow","prompt":"Build an inspectable evidence pack for the task 'extract compliance obligations' from these 6 regulatory documents, token budget 12000, required evidence labels ['obligation','deadline','penalty','responsible_party'], scoring bm25, full provenance, estimated budget mode, request ID 'reg-compliance-pack-003'."}],"resultDescription":"Returns a versioned deliverable object containing the compiled evidence pack, a receipt digest (cryptographic hash of the verification run), a list of limitations encountered, boolean flags indicating whether source text and compiled context were stored, the offer ID, and the client request ID — enabling full auditability of the context-selection workflow without retaining source text.","failureModes":["Missing required fields (clientRequestId, task, tokenBudget, documents, requiredEvidence) returns a 400 validation error","Token budget outside 64–16000 range causes rejection","More than 8 documents or more than 32 required evidence labels exceeds schema limits and is rejected","Invalid scoring enum value (not 'bm25' or 'keyword') causes a validation failure","If required evidence labels are not found in the supplied documents, the deliverable may report unmet evidence with limitations listed","Payment failure via x402 protocol returns a payment-required error before processing"],"whenToPreferThis":"Choose this endpoint when you need an auditable, policy-governed verification trail for a context-selection or RAG pipeline run — specifically when you must prove that required evidence spans were present, token budgets were respected, and the workflow followed declared rules. Prefer it over generic document search or retrieval endpoints when compliance, auditability, and receipt-backed verification are requirements rather than nice-to-haves.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:04.872Z","isFirstParty":false}