Experimentation · Bandit Allocate
Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Docs: https://www.brainiac.software/api/experimentation/bandit-allocate
POST https://www.brainiac.software/api/v1/experimentation/bandit-allocate
0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"arms": [
{
"failures": 900,
"name": "A",
"successes": 100
},
{
"failures": 880,
"name": "B",
"successes": 120
},
{
"failures": 910,
"name": "C",
"successes": 90
}
],
"minShare": 0.05,
"policy": "thompson",
"prior": {
"alpha": 1,
"beta": 1
}
}{
"limitations": [
"Thompson weights are exact posterior probabilities of being best (quadrature), not random draws, so repeated calls return the same weights.",
"Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review."
],
"policy": "thompson",
"sources": [
{
"retrievedAt": "2026-11-14T00:00:00.000Z",
"source": "Russo et al. (2018) A Tutorial on Thompson Sampling",
"status": "ok",
"url": "https://arxiv.org/abs/1707.02038"
},
{
"retrievedAt": "2026-11-14T00:00:00.000Z",
"source": "Miller (2015) Formulas for Bayesian A/B Testing",
"status": "ok",
"url": "https://www.evanmiller.org/bayesian-ab-testing.html"
}
],
"weights": [
{
"name": "A",
"probBest": 0.07474923213,
"weight": 0.07176986341
},
{
"name": "B",
"probBest": 0.9146879375,
"weight": 0.8782301366
}
]
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://www.brainiac.software/api/v1/experimentation/bandit-allocate · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"policy": {
"type": "string",
"enum": [
"thompson",
"ucb1"
],
"description": "policy supplied by the caller for this operation.",
"example": "thompson"
},
"arms": {
"type": "array",
"items": {
"type": "object"
},
"description": "arms supplied by the caller for this operation.",
"example": [
{
"name": "A",
"successes": 100,
"failures": 900
},
{
"name": "B",
"successes": 120,
"failures": 880
},
{
"name": "C",
"successes": 90,
"failures": 910
}
]
},
"prior": {
"type": "object",
"description": "prior supplied by the caller for this operation.",
"example": {
"alpha": 1,
"beta": 1
}
},
"minShare": {
"type": "number",
"minimum": 0,
"maximum": 0.5,
"description": "min Share supplied by the caller for this operation.",
"example": 0.05
}
},
"required": [
"policy",
"arms"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"policy": {
"type": "string",
"description": "policy returned by this operation."
},
"weights": {
"type": "array",
"description": "weights returned by this operation.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"name": {
"type": "string",
"description": "name returned by this operation."
},
"probBest": {
"type": "number",
"description": "prob Best returned by this operation."
},
"weight": {
"type": "number",
"description": "weight returned by this operation."
}
}
}
},
"sources": {
"type": "array",
"description": "Provenance only — upstream name, url, and retrievedAt when available.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"source": {
"type": "string",
"description": "Named upstream source for this delayed reference series."
},
"url": {
"type": "string",
"description": "Requested public URL."
},
"retrievedAt": {
"type": "string",
"description": "ISO-8601 timestamp when upstream data was retrieved."
},
"status": {
"type": "string",
"description": "Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged."
}
}
}
},
"limitations": {
"type": "array",
"description": "Product caveats. Absence of a signal is not a safety approval."
}
}
}curl -i -X POST 'https://www.brainiac.software/api/v1/experimentation/bandit-allocate' \
-H 'content-type: application/json' -d '{"policy":"thompson","arms":[{"name":"A","successes":100,"failures":900},{"name":"B","successes":120,"failures":880},{"name":"C","successes":90,"failures":910}],"prior":{"alpha":1,"beta":1},"minShare":0.05}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs