75trust / 100

Provenance Reproducibility Manifest

by Reproducibility manifest builder in Security & trust

x402 APIPassing, checked 9 h ago

Prepare a reproducible research handoff from supplied public or synthetic artifact contents, dependencies, algorithm version, seed and Supplied-record analysis, not independent certification. Full contract at the free describe URL.

POST https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
185 ms typical, 185 ms slowest 5%
Last check
9 h ago
Next check
any minute now

How to call it

POST https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest

Each call costs $0.010019 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest
content-type: application/json

{
  "algorithmVersion": "selector-v1",
  "artifacts": [
    {
      "artifactId": "corpus",
      "content": "Evidence.",
      "dependsOn": [],
      "expectedHash": "sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db6981aa9472",
      "kind": "corpus"
    },
    {
      "artifactId": "result",
      "content": "Selected evidence.",
      "dependsOn": [
        "corpus"
      ],
      "expectedHash": "sha256:d387aebf29fa5ae59204617d0f2a2478c359e83078fe4ac7ecf5e1df8a6aa668",
      "kind": "result"
    }
  ],
  "dataClass": "synthetic",
  "parameters": [
    {
      "name": "budget",
      "value": "2048"
    }
  ],
  "runId": "run-1",
  "seed": 7
}

Parameters

ParameterTypeRequiredDescription
algorithmVersionstringYes
artifactsarrayYes
dataClassstringYes One of: public, synthetic.
parametersarrayYes
runIdstringYes
seedintegerYes

Example response

The provider's example. We can't check it without paying.

Example response, 57 lines
{
  "data": {
    "chargedAmount": "10019",
    "inputHash": "sha256:13844a262043b8dcbac27718f2abe65ae25303c8336bfba841e328092…",
    "limitations": [
      "Public or synthetic inputs only. Caller labels are declarations,…"
    ],
    "productId": "reproducibility-manifest-builder",
    "result": {
      "allHashesMatch": true,
      "dataClass": "synthetic",
      "executionReplayed": false,
      "inputSha256": "sha256:13844a262043b8dcbac27718f2abe65ae25303c8336bfba841e328092…",
      "limits": [
        "Public/synthetic is a caller declaration, not content inspection…"
      ],
      "manifest": {
        "algorithmVersion": "selector-v1",
        "artifacts": [
          {
            "artifactId": "corpus",
            "contentSha256": "sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db698…",
            "dependsOn": [],
            "expectedHash": "sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db698…",
            "hashMatches": true,
            "kind": "corpus",
            "utf8Bytes": 9
          }
        ],
        "parameters": [
          {
            "name": "budget",
            "value": "2048"
          }
        ],
        "runId": "run-1",
        "seed": 7,
        "version": 1
      },
      "manifestSha256": "sha256:86b12c36499614d7feaab6fc234eae17f95f45074ee89d7a3c08840b3…",
      "resultSha256": "sha256:0da8400abfad75fbba0cdc873d8a7761f845d34a9a46089389d0c1053…",
      "signed": false,
      "sourcesVerified": false,
      "topologicalArtifactIds": [
        "corpus",
        "result"
      ]
    },
    "resultHash": "sha256:beb2720ccb1863871eaa44481e42dc9e0cd84a20d9cbb644d9cf7b6a7…",
    "sourceContractAmount": "64000",
    "version": "maha-legacy-adapter/1"
  },
  "proof": {
    "settlement_id": "0x00000000000000000000000000000000000000000000000000000000000000…"
  },
  "success": true
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.010019.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest' \
  -H 'content-type: application/json' \
  --data-raw '{"algorithmVersion":"selector-v1","artifacts":[{"artifactId":"corpus","content":"Evidence.","dependsOn":[],"expectedHash":"sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db6981aa9472","kind":"corpus"},{"artifactId":"result","content":"Selected evidence.","dependsOn":["corpus"],"expectedHash":"sha256:d387aebf29fa5ae59204617d0f2a2478c359e83078fe4ac7ecf5e1df8a6aa668","kind":"result"}],"dataClass":"synthetic","parameters":[{"name":"budget","value":"2048"}],"runId":"run-1","seed":7}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest' \
  -H 'content-type: application/json' \
  --data-raw '{"algorithmVersion":"selector-v1","artifacts":[{"artifactId":"corpus","content":"Evidence.","dependsOn":[],"expectedHash":"sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db6981aa9472","kind":"corpus"},{"artifactId":"result","content":"Selected evidence.","dependsOn":["corpus"],"expectedHash":"sha256:d387aebf29fa5ae59204617d0f2a2478c359e83078fe4ac7ecf5e1df8a6aa668","kind":"result"}],"dataClass":"synthetic","parameters":[{"name":"budget","value":"2048"}],"runId":"run-1","seed":7}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.010019 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.010019" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.010019 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fverify%2Fprovenance%2Freproducibility-manifest&method=POST
const res = await pay("https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "algorithmVersion": "selector-v1",
    "artifacts": [
      {
        "artifactId": "corpus",
        "content": "Evidence.",
        "dependsOn": [],
        "expectedHash": "sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db6981aa9472",
        "kind": "corpus"
      },
      {
        "artifactId": "result",
        "content": "Selected evidence.",
        "dependsOn": [
          "corpus"
        ],
        "expectedHash": "sha256:d387aebf29fa5ae59204617d0f2a2478c359e83078fe4ac7ecf5e1df8a6aa668",
        "kind": "result"
      }
    ],
    "dataClass": "synthetic",
    "parameters": [
      {
        "name": "budget",
        "value": "2048"
      }
    ],
    "runId": "run-1",
    "seed": 7
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.010019 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.010019"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://www.mahastrategies.com/api/v1/verify/provenance/reproducibility-manifest",
        json={
            "algorithmVersion": "selector-v1",
            "artifacts": [
                {
                    "artifactId": "corpus",
                    "content": "Evidence.",
                    "dependsOn": [],
                    "expectedHash": "sha256:7f2b508f84d9002cf68a41c8d03f4c0dc9cd7cd54e60fc3030b9db6981aa9472",
                    "kind": "corpus",
                },
                {
                    "artifactId": "result",
                    "content": "Selected evidence.",
                    "dependsOn": [
                        "corpus",
                    ],
                    "expectedHash": "sha256:d387aebf29fa5ae59204617d0f2a2478c359e83078fe4ac7ecf5e1df8a6aa668",
                    "kind": "result",
                },
            ],
            "dataClass": "synthetic",
            "parameters": [
                {
                    "name": "budget",
                    "value": "2048",
                },
            ],
            "runId": "run-1",
            "seed": 7,
        },
    )
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
9 h agoPassed402185 ms$0.01