77trust / 100

Decision Receipt

by invinoveritas in Security & trust

x402 APIPassing, checked 1 h ago

invinoveritas /decision-receipt — a signed receipt for a bounded-choice decision (OpenAI Decisions API, Jev, any classifier): hashes of

POST https://api.babyblueviper.com/decision-receipt

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
445 ms typical, 628 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.babyblueviper.com/decision-receipt" \
  -H "content-type: application/json" \
  -d '{"choice":"hold","context":"Invoice 4471, payee address changed by email yesterday.","irreversible_options":["release"],"options":["release","hold"],"question":"Release the payment to the vendor now?","score":0.8}'
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%2Fapi.babyblueviper.com%2Fdecision-receipt
const res = await pay("https://api.babyblueviper.com/decision-receipt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"choice":"hold","context":"Invoice 4471, payee address changed by email yesterday.","irreversible_options":["release"],"options":["release","hold"],"question":"Release the payment to the vendor now?","score":0.8}),
});
console.log(await res.json());

Example input

{
  "choice": "hold",
  "context": "Invoice 4471, payee address changed by email yesterday.",
  "irreversible_options": [
    "release"
  ],
  "options": [
    "release",
    "hold"
  ],
  "question": "Release the payment to the vendor now?",
  "score": 0.8
}

Example output

{
  "executable": true,
  "gate": {
    "status": "not_gated"
  },
  "receipt": {
    "choice_commitment": "…",
    "schema": "invinoveritas.decision_receipt.v1"
  },
  "reveal": {
    "salt": "…"
  },
  "status": "success"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402533 ms$0.083
5 h agoPassed402942 ms$0.083
9 h agoPassed402445 ms$0.083
12 h agoPassed402180 ms$0.083
16 h agoPassed402178 ms$0.083
19 h agoPassed402628 ms$0.083
25 h agoPassed402180 ms$0.083