78trust / 100
Context Governed Verification
by mahastrategies.com in Security & trust
x402 APIPassing, checked 4 h ago
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.
POST https://www.mahastrategies.com/api/v1/context/governed-verification
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 162 ms typical, 422 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.mahastrategies.com/api/v1/context/governed-verification" \
-H "content-type: application/json" \
-d '{"budgetMode":"guaranteed","clientRequestId":"req_governed_context_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","requiredEvidence":[{"evidenceId":"release-authority","sourceId":"release","text":"The release may proceed only after the security owner approves the evidence packet."},{"evidenceId":"rollback","sourceId":"release","text":"The rollback begins when the error rate exceeds two percent for five minutes."}],"scoring":"bm25","task":"Preserve the release authority and rollback condition.","tokenBudget":128}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fcontext%2Fgoverned-verification
const res = await pay("https://www.mahastrategies.com/api/v1/context/governed-verification", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"budgetMode":"guaranteed","clientRequestId":"req_governed_context_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","requiredEvidence":[{"evidenceId":"release-authority","sourceId":"release","text":"The release may proceed only after the security owner approves the evidence packet."},{"evidenceId":"rollback","sourceId":"release","text":"The rollback begins when the error rate exceeds two percent for five minutes."}],"scoring":"bm25","task":"Preserve the release authority and rollback condition.","tokenBudget":128}),
});
console.log(await res.json());Example input
{
"budgetMode": "guaranteed",
"clientRequestId": "req_governed_context_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",
"requiredEvidence": [
{
"evidenceId": "release-authority",
"sourceId": "release",
"text": "The release may proceed only after the security owner approves the evidence packet."
},
{
"evidenceId": "rollback",
"sourceId": "release",
"text": "The rollback begins when the error rate exceeds two percent for five minutes."
}
],
"scoring": "bm25",
"task": "Preserve the release authority and rollback condition.",
"tokenBudget": 128
}Example output
{
"clientRequestId": "req_governed_context_001",
"compiledContextStored": false,
"deliverable": {
"contextPack": {
"clientRequestId": "req_governed_context_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:01d75aea4fee93a423977a48f6c91da35afc8b4e67ece44c4985ff36f…",
"metrics": {
"compiledBytes": 426,
"compiledEstimatedTokens": 81,
"duplicatePassagesRemoved": 1,
"estimatedReductionPercent": 0,
"originalBytes": 358,
"originalEstimatedTokens": 57,
"sourceCount": 2,
"sourceCoveragePercent": 100,
"tokensSaved": 0
},
"outputHash": "sha256:3d3d621fc73f246f39986929224b8496fa9f31c71f65311cca4a9cac6…",
"packId": "ctxpack_9f5028b1c215e057fb5bcb43a25dc426",
"retentionBoundaries": {
"claimVerificationPerformed": false,
"completenessGuaranteed": false,
"evidenceRetention": "best_effort",
"hallucinationPreventionGuaranteed": false,
"selectionType": "extractive",
"tokenCountType": "model_neutral_estimate"
},
"sources": [
{
"includedEstimatedTokens": 37,
"includedPassageIds": [
"release:1",
"release:2",
"release:3"
],
"originalEstimatedTokens": 37,
"passageCount": 3,
"sourceHash": "sha256:e100472342b640276bf489453adba008e167f4039a5e8202528403f3a…",
"sourceId": "release",
"title": "Release rule"
}
],
"task": "Preserve the release authority and rollback condition.",
"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_9f5028b1c215e057fb5bcb43a25dc426",
"evidence": [
{
"evidenceHash": "sha256:eeea8806bfbe9a9f49cdfaeab2af34fdfcd68c08d04213a563978ace9…",
"evidenceId": "release-authority",
"sourceId": "release",
"status": "retained"
}
],
"integrity": {
"contextInputHash": "sha256:01d75aea4fee93a423977a48f6c91da35afc8b4e67ece44c4985ff36f…",
"contextOutputHash": "sha256:3d3d621fc73f246f39986929224b8496fa9f31c71f65311cca4a9cac6…",
"evaluationOutputHash": "sha256:f97e07e6177e30403a6c0e6b20cab3335173faf226c3792718c7be842…",
"requestHash": "sha256:9f5028b1c215e057fb5bcb43a25dc426f98c71ca8d21b9c8b6b09f0bb…"
},
"metrics": {
"compiledByteSecurity scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 422 ms | $0.5 |
| 7 h ago | Passed | 402 | 297 ms | $0.5 |
| 11 h ago | Passed | 402 | 119 ms | $0.5 |
| 14 h ago | Passed | 402 | 234 ms | $0.5 |
| 18 h ago | Passed | 402 | 746 ms | $0.5 |
| 22 h ago | Passed | 402 | 135 ms | $0.5 |
| 25 h ago | Passed | 402 | 120 ms | $0.5 |
| 29 h ago | Passed | 402 | 88 ms | $0.5 |
| 33 h ago | Passed | 402 | 162 ms | $0.5 |
| 36 h ago | Passed | 402 | 155 ms | $0.5 |
| 41 h ago | Passed | 402 | 184 ms | $0.5 |