81trust / 100
Context Evidence Matrix
by Maha Evidence Retention Matrix in Onchain & crypto
x402 APIPassing, checked 2 h ago
Evaluate exact retention of 1-32 caller-labelled evidence spans at exactly five ascending token budgets. Returns five source-linked Context Packs, per-run retention metrics, an evidence frontier, stable hashes, and a deterministic receipt digest. Price basis: five $0.01 evaluations. Retention is not truth, accuracy, answer quality, legal compliance, or hallucination prevention. Bodies are not stored.
POST https://www.mahastrategies.com/api/v1/context/evidence-matrix
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 182 ms typical, 182 ms slowest 5%
- Last check
- 2 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/evidence-matrix" \
-H "content-type: application/json" \
-d '{"budgetMode":"guaranteed","clientRequestId":"req_evidence_matrix_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.","tokenBudgets":[64,96,128,192,256]}'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%2Fevidence-matrix
const res = await pay("https://www.mahastrategies.com/api/v1/context/evidence-matrix", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"budgetMode":"guaranteed","clientRequestId":"req_evidence_matrix_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.","tokenBudgets":[64,96,128,192,256]}),
});
console.log(await res.json());Example input
{
"budgetMode": "guaranteed",
"clientRequestId": "req_evidence_matrix_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.",
"tokenBudgets": [
64,
96,
128,
192,
256
]
}Example output
{
"boundaries": [
"Measures exact supplied-span retention across five token budgets…"
],
"clientRequestId": "req_evidence_matrix_001",
"compiledContextStored": false,
"economicBasis": {
"componentOfferId": "deep-context-evaluation",
"componentPriceBaseUnits": "10000",
"componentRuns": 5,
"priceBaseUnits": "50000"
},
"evidenceFrontier": [
{
"evidenceHash": "sha256:eeea8806bfbe9a9f49cdfaeab2af34fdfcd68c08d04213a563978ace9…",
"evidenceId": "release-authority",
"firstRetainedBudget": 96,
"retainedAtBudgets": [
96
],
"retainedInEveryRun": false,
"sourceId": "release"
}
],
"inputDigest": "sha256:fdf942e9317a863e7c262057c06104f081b93f1ef89f01e38fb053937…",
"offerId": "evidence-retention-matrix",
"receiptDigest": "sha256:bd5a031876e6db36e851160e500c6a74700e3eadb43d19bee862bb5e2…",
"requiredEvidenceTextStored": false,
"runs": [
{
"contextPack": {
"clientRequestId": "req_evidence_matrix_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_b822073326cad546b5099f199cda197a",
"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"
],Security 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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 182 ms | $0.05 |
| 8 h ago | Passed | 402 | 210 ms | $0.05 |