← Market

Experimentation · Bucket Assign

Stateless SHA-256 bucketing of unit ids into an experiment with traffic gating, ordered group shares and an optional layer, documented so any SDK can reproduce it. Docs: https://www.brainiac.software/api/experimentation/bucket-assign

POST https://www.brainiac.software/api/v1/experimentation/bucket-assign

0.01 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

Base · 0.01 USDC · payTo 0x6428665E83F503904571104311bB78CBb29b975c · via cdp · settles direct
{
  "experiment": {
    "groups": [
      {
        "name": "control",
        "share": 0.5
      },
      {
        "name": "treatment",
        "share": 0.5
      }
    ],
    "salt": "exp_checkout_v2",
    "trafficShare": 1
  },
  "layer": null,
  "unitIds": [
    "user_42",
    "user_43"
  ]
}
{
  "algorithm": "sha256(salt + '.' + unitId), first 8 bytes big-endian uint64 mod 10000",
  "assignments": [
    {
      "bucket": 7765,
      "group": "treatment",
      "groupBucket": 8754,
      "inExperiment": true,
      "unitId": "user_42"
    },
    {
      "bucket": 1211,
      "group": "treatment",
      "groupBucket": 9800,
      "inExperiment": true,
      "unitId": "user_43"
    }
  ],
  "limitations": [
    "Group assignment hashes salt + '.group.' + unitId so changing trafficShare does not reshuffle groups. Changing a salt reshuffles every unit. Group shares are",
    "Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review."
  ],
  "sources": [
    {
      "retrievedAt": "2026-11-14T00:00:00.000Z",
      "source": "NIST FIPS 180-4 Secure Hash Standard (SHA-256)",
      "status": "ok",
      "url": "https://csrc.nist.gov/pubs/fips/180-4/upd1/final"
    }
  ]
}

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 badge

Trust scorepending / 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/bucket-assign · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "unitIds": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "description": "unit Ids supplied by the caller for this operation.",
      "example": [
        "user_42",
        "user_43"
      ]
    },
    "experiment": {
      "type": "object",
      "description": "experiment supplied by the caller for this operation.",
      "example": {
        "salt": "exp_checkout_v2",
        "trafficShare": 1,
        "groups": [
          {
            "name": "control",
            "share": 0.5
          },
          {
            "name": "treatment",
            "share": 0.5
          }
        ]
      }
    },
    "layer": {
      "type": [
        "object",
        "null"
      ],
      "description": "layer supplied by the caller for this operation.",
      "example": null
    }
  },
  "required": [
    "unitIds",
    "experiment"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://www.brainiac.software/api/v1/experimentation/bucket-assign' \
  -H 'content-type: application/json' -d '{"unitIds":["user_42","user_43"],"experiment":{"salt":"exp_checkout_v2","trafficShare":1,"groups":[{"name":"control","share":0.5},{"name":"treatment","share":0.5}]},"layer":null}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)