← Market

Experimentation · Flag Rule Evaluate

Evaluate ordered feature-flag rules (attribute operators, semver comparison, deterministic percentage rollout) for one user context and explain which rule matched. Docs: https://www.brainiac.software/api/experimentation/flag-rule-evaluate

POST https://www.brainiac.software/api/v1/experimentation/flag-rule-evaluate

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
{
  "context": {
    "appVersion": "5.2.0",
    "country": "GB",
    "email": "a@b.com",
    "userId": "user_42"
  },
  "flag": {
    "default": false,
    "key": "new_checkout",
    "rules": [
      {
        "conditions": [
          {
            "attribute": "email",
            "op": "ends_with",
            "value": "@acme.com"
          }
        ],
        "id": "staff",
        "serve": true
      },
      {
        "conditions": [
          {
            "attribute": "country",
            "op": "in",
            "value": [
              "GB"
            ]
          }
        ],
        "id": "uk_rollout",
        "rollout": 0.25,
        "serve": true
      }
    ],
    "salt": "new_checkout"
  }
}
{
  "limitations": [
    "Regex conditions run on the JavaScript engine with a guard (no backreferences, lookaround or nested quantifiers, 200 characters, input cut at 1,000",
    "Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review."
  ],
  "matchedRule": null,
  "reason": "default",
  "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"
    },
    {
      "retrievedAt": "2026-11-14T00:00:00.000Z",
      "source": "Semantic Versioning 2.0.0",
      "status": "ok",
      "url": "https://semver.org/"
    }
  ],
  "trace": [
    {
      "failedCondition": 0,
      "matched": false,
      "rule": "staff"
    },
    {
      "bucket": 3933,
      "inRollout": false,
      "matched": true,
      "rule": "uk_rollout"
    }
  ],
  "value": false
}

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/flag-rule-evaluate · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "flag": {
      "type": "object",
      "description": "flag supplied by the caller for this operation.",
      "example": {
        "key": "new_checkout",
        "salt": "new_checkout",
        "default": false,
        "rules": [
          {
            "id": "staff",
            "conditions": [
              {
                "attribute": "email",
                "op": "ends_with",
                "value": "@acme.com"
              }
            ],
            "serve": true
          },
          {
            "id": "uk_rollout",
            "conditions": [
              {
                "attribute": "country",
                "op": "in",
                "value": [
                  "GB"
                ]
              }
            ],
            "rollout": 0.25,
            "serve": true
          }
        ]
      }
    },
    "context": {
      "type": "object",
      "description": "context supplied by the caller for this operation.",
      "example": {
        "userId": "user_42",
        "email": "a@b.com",
        "country": "GB",
        "appVersion": "5.2.0"
      }
    }
  },
  "required": [
    "flag",
    "context"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://www.brainiac.software/api/v1/experimentation/flag-rule-evaluate' \
  -H 'content-type: application/json' -d '{"flag":{"key":"new_checkout","salt":"new_checkout","default":false,"rules":[{"id":"staff","conditions":[{"attribute":"email","op":"ends_with","value":"@acme.com"}],"serve":true},{"id":"uk_rollout","conditions":[{"attribute":"country","op":"in","value":["GB"]}],"rollout":0.25,"serve":true}]},"context":{"userId":"user_42","email":"a@b.com","country":"GB","appVersion":"5.2.0"}}'

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

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