71trust / 100

Decide Shock

by Business Frameworks in Markets & finance

x402 APIPassing, checked 8 min ago

Business Frameworks · business-frameworks/market/decide/[email protected], applied — POST the shock type, the node's marginal buyer tiers, the propensity read, the driver share, lead time and horizon, and an analog if one exists; get the verdict steps and the lag that reach the seat, with the transfer test applied. Deterministic (the node's rule, no model): figures, verdict, action and check with the 298-token node text — schema free at GET /apply/market/decide/shock.

POST
https://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock
Price
$0.05
per call in USDC
Uptime
100%
last 30 days
Response time
855 ms
1.6 s slowest 5%
Last check
Passed
8 min ago, next in 25 min

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

POST https://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock

Each call costs $0.05 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://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock
content-type: application/json

{
  "driver_share": 0.8,
  "horizon_months": 36,
  "lead_time_months": 24,
  "propensity_read": "rent",
  "shock_type": "A",
  "tier_mix_marginal": {
    "t1": 0.6,
    "t2": 0.2,
    "t3": 0.15,
    "t4": 0.05
  }
}

Parameters

ParameterTypeRequiredDescription
analogobjectNoOptional: a historical shock to carry, if its buyer tiers match today's.
dispersion_flagbooleanNotrue if the node's entities are expected to fare very differently in the shock although the market-level magnitude is one number. Optional; default false.
driver_sharenumberYesShare of the node's demand that comes from the chain's demand driver.
horizon_monthsintegerYesThe planning horizon in months.
lead_time_monthsintegerYesThe node's lead time to add capacity, in months.
propensity_readstringYesAs on market/decide/pricing-power. One of: rent, ceded, mixed.
shock_typestringYesA: end demand collapses. B: suppliers overbuild in a capacity race. C: credit to tier 3 and 4 buyers tightens. D: policy — export or materials controls, interconnection rules, priority orders. One of: A, B, C, D.
tier_mix_marginalobjectYesShares of the node's marginal demand by buyer tier, summing to about 1. Tier 1 cash-funded investment grade; 2 rate-base regulated; 3 contracted leverage; 4 merchant and speculative.

Example response

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

{
  "applied": {
    "action": [
      "<what to do first>"
    ],
    "basis": [
      "<where the node ends and the arithmetic begins>"
    ],
    "check": "<when to re-run>",
    "figures": "<the computed figures>",
    "verdict": "<the decision, worked for these inputs>"
  },
  "cite_as": "McHenry, J. (2026). Business Frameworks, version 1.2, business-frameworks/market/decide/[email protected].",
  "handle": "business-frameworks/market/decide/[email protected]",
  "node": {
    "cites": [],
    "text": "<the node text>"
  }
}

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.05.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock' \
  -H 'content-type: application/json' \
  --data-raw '{"driver_share":0.8,"horizon_months":36,"lead_time_months":24,"propensity_read":"rent","shock_type":"A","tier_mix_marginal":{"t1":0.6,"t2":0.2,"t3":0.15,"t4":0.05}}'

# 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://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock' \
  -H 'content-type: application/json' \
  --data-raw '{"driver_share":0.8,"horizon_months":36,"lead_time_months":24,"propensity_read":"rent","shock_type":"A","tier_mix_marginal":{"t1":0.6,"t2":0.2,"t3":0.15,"t4":0.05}}' \
  | 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.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
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.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbusiness-frameworks.matryoshka-paradigms.workers.dev%2Fapply%2Fmarket%2Fdecide%2Fshock&method=POST
const res = await pay("https://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "driver_share": 0.8,
    "horizon_months": 36,
    "lead_time_months": 24,
    "propensity_read": "rent",
    "shock_type": "A",
    "tier_mix_marginal": {
      "t1": 0.6,
      "t2": 0.2,
      "t3": 0.15,
      "t4": 0.05
    }
  }),
});
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.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://business-frameworks.matryoshka-paradigms.workers.dev/apply/market/decide/shock",
        json={
            "driver_share": 0.8,
            "horizon_months": 36,
            "lead_time_months": 24,
            "propensity_read": "rent",
            "shock_type": "A",
            "tier_mix_marginal": {
                "t1": 0.6,
                "t2": 0.2,
                "t3": 0.15,
                "t4": 0.05,
            },
        },
    )
    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
8 min agoPassed402945 ms$0.05
4 h agoPassed4021.6 s$0.05
9 h agoPassed4021.1 s$0.05
13 h agoPassed4021.1 s$0.05
17 h agoPassed402925 ms$0.05
Show 10 older checks
21 h agoPassed4021.0 s$0.05
26 h agoPassed4021.5 s$0.05
30 h agoPassed402895 ms$0.05
34 h agoPassed402257 ms$0.05
38 h agoPassed402648 ms$0.05
42 h agoPassed402180 ms$0.05
45 h agoPassed402655 ms$0.05
2 days agoPassed402134 ms$0.05
2 days agoPassed402146 ms$0.05
2 days agoPassed4021.4 s$0.05