{
  "id": "synthetic-records-compose",
  "name": "Versioned seeded synthetic record composer",
  "description": "Generate reproducible JSON records from explicit integer sequences, uniform integers, Bernoulli draws and integer-weighted categories using sha256-counter-fields-v1. No real-PII source, population realism, privacy certification or cryptographic-randomness claim.",
  "category": "structured",
  "priceUsd": "0.005",
  "pricingStatus": "proposed-unverified",
  "pricing": {
    "unit": "one successful operation call",
    "proposedNominalUsd": "0.005",
    "sixDecimalTokenBaseUnits": "5000",
    "subscription": false,
    "includesPayerWalletOrNetworkFees": false,
    "liveQuoteVerified": false,
    "condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
  },
  "intents": [
    "Generate repeatable parser fixtures with an exact seed and distribution recipe",
    "Compose explicit synthetic records without a reference dataset"
  ],
  "whenToUse": [
    "Small inert fixture tables from elementary explicit sampling rules"
  ],
  "whenNotToUse": [
    "Exact quotas, realistic identities, PII anonymization, correlated populations, Gaussian or floating-point distributions",
    "Cryptographic tokens, secrets or unpredictable random draws",
    "Execute target code, call APIs, fetch data, run external agents, mutate accounts or deploy"
  ],
  "capabilities": [
    "Frozen SHA-256 field-addressed rejection sampling with independent field addition",
    "Returns complete recipe and version alongside all generated rows",
    "Complete bounded result computed before challenge; atomic work/output failures"
  ],
  "limits": {
    "inputBytes": 100000,
    "outputBytes": 300000,
    "jsonNodes": 12000,
    "depth": 16,
    "rows": 1000,
    "fields": 20,
    "cells": 3000,
    "categories": 32,
    "distributionRange": 1000000,
    "hashAttempts": 3150,
    "attemptsPerDraw": 32,
    "scalarLabelCodePoints": 64
  },
  "related": [
    "csv-serialize",
    "json-batch-encode"
  ],
  "errorCodes": [
    "INPUT_LIMIT",
    "OUTPUT_LIMIT",
    "COMPLEXITY_LIMIT",
    "INVALID_JSON",
    "INVALID_NUMBER",
    "INVALID_UNICODE",
    "UNSAFE_KEY",
    "DUPLICATE_FIELD",
    "DUPLICATE_CATEGORY",
    "LABEL_LIMIT",
    "INTEGER_RANGE",
    "INVALID_DISTRIBUTION",
    "SAMPLING_LIMIT"
  ],
  "requirementsProfile": {
    "format": "declared-requirements-v1",
    "facts": {
      "execution.suppliedCode": false,
      "execution.remoteMutation": false,
      "execution.llmInference": false,
      "execution.paidMcp": false,
      "verification.semanticTruth": false,
      "verification.sourceAuthenticity": false,
      "verification.liveVulnerabilities": false,
      "numbers.arbitraryPrecisionJson": false,
      "numbers.model": "ieee754-binary64",
      "privacy.requestBodyPersisted": false,
      "execution.deterministic": true,
      "execution.networkAccess": false,
      "privacy.resultBodyPersisted": false,
      "payment.x402": true,
      "payment.mpp": true,
      "operation.id": "synthetic-records-compose",
      "operation.category": "structured",
      "limit.httpRequestBytes": 131072,
      "limit.requestBytes": 100000,
      "limit.responseBytes": 524288,
      "limit.resultBytes": 300000,
      "limit.jsonDepth": 16,
      "limit.jsonNodes": 12000,
      "testing.targetExecuted": false,
      "testing.behaviorVerified": false,
      "testing.bugFindingGuaranteed": false,
      "testing.externalHarnessAccess": false,
      "testing.generatedArtifactsAreInert": true,
      "synthetic.profile": "sha256-counter-fields-v1",
      "synthetic.maxRows": 1000,
      "synthetic.maxFields": 20,
      "synthetic.maxCells": 3000,
      "synthetic.maxHashAttempts": 3150,
      "synthetic.seededReproducibility": true,
      "synthetic.exactQuotas": false,
      "synthetic.populationRealism": false,
      "synthetic.correlationModel": false,
      "synthetic.differentialPrivacy": false,
      "synthetic.anonymization": false,
      "synthetic.cryptographicRandomnessGuaranteed": false,
      "synthetic.customerRecordsRead": false,
      "input.seed.maximum": 4294967295,
      "input.seed.minimum": 0,
      "input.count.maximum": 1000,
      "input.count.minimum": 0,
      "input.fields.maxItems": 20,
      "input.fields.minItems": 1
    },
    "unknownPolicy": "Undeclared requirements are unknown, never compatible. Matching declared facts does not establish semantic fit or input validity.",
    "preflight": "/preflight"
  },
  "documentation": "/reference/tools/synthetic-records-compose.md",
  "serviceContract": "/reference/services/synthetic-records-compose.json",
  "errors": [
    {
      "status": 400,
      "meaning": "Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch",
      "retry": "Correct the request before payment"
    },
    {
      "status": 402,
      "meaning": "Payment challenge or rejected payment",
      "retry": "Use official protocol SDK; inspect payment outcome before another payment"
    },
    {
      "status": 409,
      "meaning": "Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN",
      "retry": "Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay"
    },
    {
      "status": 413,
      "meaning": "Input or generated output too large",
      "retry": "Reduce input; no payment attempted for validation failure"
    },
    {
      "status": 415,
      "meaning": "Unsupported media type or compression",
      "retry": "Send uncompressed application/json"
    },
    {
      "status": 422,
      "meaning": "Schema or service-specific semantic validation failure",
      "retry": "Correct input using returned error code; no payment attempted"
    },
    {
      "status": 429,
      "meaning": "Request/payment-attempt rate exceeded",
      "retry": "Wait for rate limit window; preserve existing payment identity"
    },
    {
      "status": 503,
      "meaning": "Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement",
      "retry": "Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation"
    }
  ],
  "numericPrecision": "JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.",
  "paymentWorkflow": {
    "discoveryOnly": false,
    "supportedProtocols": [
      "x402",
      "mpp"
    ],
    "x402": {
      "credentialHeader": "PAYMENT-SIGNATURE",
      "challengeHeader": "PAYMENT-REQUIRED",
      "receiptHeader": "PAYMENT-RESPONSE",
      "version": 2,
      "scheme": "exact",
      "paymentIdentifier": "payment-identifier extension MUST equal the HTTP Idempotency-Key",
      "sdk": "@x402/core with @x402/evm"
    },
    "mpp": {
      "supported": true,
      "credentialHeader": "Authorization",
      "challengeHeader": "WWW-Authenticate",
      "receiptHeader": "Payment-Receipt",
      "method": "tempo",
      "intent": "charge",
      "sdk": "mppx",
      "tokenDecimals": 6
    },
    "steps": [
      "Check configured readiness and the exact service schema",
      "Generate a fresh random Idempotency-Key for this operation; never use a discovery probe fixture for purchases",
      "Send valid input without a credential to obtain the official protocol challenge",
      "Use the official SDK and authorized wallet to fulfill the challenge",
      "Retry only with identical key, body, protocol and credential",
      "On PAYMENT_UNCERTAIN stop and request operator reconciliation; never blindly pay again"
    ],
    "versionedRetries": "Request fingerprint includes service release version. Retries across a version upgrade can conflict; coordinate upgrades outside the 24-hour replay window and reconcile pending attempts.",
    "docs": "/llms.txt"
  },
  "method": "POST",
  "paths": {
    "x402": "/v1/x402/synthetic-records-compose",
    "mpp": "/v1/mpp/synthetic-records-compose"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "seed": {
        "type": "integer",
        "minimum": 0,
        "maximum": 4294967295
      },
      "count": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000
      },
      "fields": {
        "minItems": 1,
        "maxItems": 20,
        "type": "array",
        "items": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                },
                "kind": {
                  "type": "string",
                  "const": "sequence"
                },
                "start": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "step": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id",
                "kind",
                "start",
                "step"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                },
                "kind": {
                  "type": "string",
                  "const": "uniformInteger"
                },
                "minimum": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "maximum": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id",
                "kind",
                "minimum",
                "maximum"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                },
                "kind": {
                  "type": "string",
                  "const": "bernoulli"
                },
                "numerator": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000
                },
                "denominator": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000
                }
              },
              "required": [
                "id",
                "kind",
                "numerator",
                "denominator"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                },
                "kind": {
                  "type": "string",
                  "const": "categorical"
                },
                "values": {
                  "minItems": 1,
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 128
                      },
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "weights": {
                  "minItems": 1,
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                }
              },
              "required": [
                "id",
                "kind",
                "values",
                "weights"
              ],
              "additionalProperties": false
            }
          ]
        }
      }
    },
    "required": [
      "seed",
      "count",
      "fields"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "operation",
      "version",
      "result",
      "provenance"
    ],
    "properties": {
      "operation": {
        "const": "synthetic-records-compose",
        "type": "string"
      },
      "version": {
        "const": "0.29.0",
        "type": "string"
      },
      "result": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "profile": {
            "type": "string",
            "const": "sha256-counter-fields-v1"
          },
          "recipe": {
            "type": "object",
            "properties": {
              "seed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4294967295
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              },
              "fields": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "kind": {
                          "type": "string",
                          "const": "sequence"
                        },
                        "start": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "step": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "start",
                        "step"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "kind": {
                          "type": "string",
                          "const": "uniformInteger"
                        },
                        "minimum": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "maximum": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "minimum",
                        "maximum"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "kind": {
                          "type": "string",
                          "const": "bernoulli"
                        },
                        "numerator": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000
                        },
                        "denominator": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "numerator",
                        "denominator"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "kind": {
                          "type": "string",
                          "const": "categorical"
                        },
                        "values": {
                          "minItems": 1,
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 128
                              },
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "weights": {
                          "minItems": 1,
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1000000
                          }
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "values",
                        "weights"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "required": [
              "seed",
              "count",
              "fields"
            ],
            "additionalProperties": false
          },
          "generatedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "rows": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "hashAttempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3150
          },
          "distributionSemantics": {
            "type": "string",
            "const": "addressed-pseudorandom-draws-not-exact-quotas"
          },
          "cryptographicRandomnessClaimed": {
            "type": "boolean",
            "const": false
          },
          "privacyCertification": {
            "type": "boolean",
            "const": false
          },
          "targetExecuted": {
            "type": "boolean",
            "const": false
          },
          "behaviorVerified": {
            "type": "boolean",
            "const": false
          },
          "externalRequests": {
            "type": "number",
            "const": 0
          }
        },
        "required": [
          "profile",
          "recipe",
          "generatedCount",
          "rows",
          "hashAttempts",
          "distributionSemantics",
          "cryptographicRandomnessClaimed",
          "privacyCertification",
          "targetExecuted",
          "behaviorVerified",
          "externalRequests"
        ],
        "additionalProperties": false
      },
      "provenance": {
        "type": "object",
        "required": [
          "inputSha256",
          "outputSha256",
          "deterministic",
          "externalRequests"
        ],
        "properties": {
          "inputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "outputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "deterministic": {
            "const": true
          },
          "externalRequests": {
            "const": 0
          }
        }
      }
    },
    "additionalProperties": false
  },
  "exampleInput": {
    "seed": 7,
    "count": 5,
    "fields": [
      {
        "id": "rowId",
        "kind": "sequence",
        "start": 100,
        "step": 1
      },
      {
        "id": "tier",
        "kind": "categorical",
        "values": [
          "free",
          "pro"
        ],
        "weights": [
          3,
          1
        ]
      },
      {
        "id": "retries",
        "kind": "uniformInteger",
        "minimum": 0,
        "maximum": 2
      },
      {
        "id": "enabled",
        "kind": "bernoulli",
        "numerator": 1,
        "denominator": 2
      }
    ]
  },
  "exampleResponse": {
    "operation": "synthetic-records-compose",
    "version": "0.29.0",
    "result": {
      "profile": "sha256-counter-fields-v1",
      "recipe": {
        "seed": 7,
        "count": 5,
        "fields": [
          {
            "id": "rowId",
            "kind": "sequence",
            "start": 100,
            "step": 1
          },
          {
            "id": "tier",
            "kind": "categorical",
            "values": [
              "free",
              "pro"
            ],
            "weights": [
              3,
              1
            ]
          },
          {
            "id": "retries",
            "kind": "uniformInteger",
            "minimum": 0,
            "maximum": 2
          },
          {
            "id": "enabled",
            "kind": "bernoulli",
            "numerator": 1,
            "denominator": 2
          }
        ]
      },
      "generatedCount": 5,
      "rows": [
        {
          "rowId": 100,
          "tier": "free",
          "retries": 2,
          "enabled": true
        },
        {
          "rowId": 101,
          "tier": "pro",
          "retries": 2,
          "enabled": false
        },
        {
          "rowId": 102,
          "tier": "free",
          "retries": 1,
          "enabled": true
        },
        {
          "rowId": 103,
          "tier": "free",
          "retries": 1,
          "enabled": true
        },
        {
          "rowId": 104,
          "tier": "pro",
          "retries": 0,
          "enabled": true
        }
      ],
      "hashAttempts": 15,
      "distributionSemantics": "addressed-pseudorandom-draws-not-exact-quotas",
      "cryptographicRandomnessClaimed": false,
      "privacyCertification": false,
      "targetExecuted": false,
      "behaviorVerified": false,
      "externalRequests": 0
    },
    "provenance": {
      "inputSha256": "909c7edf379b64904f4ded14a7059683a2de705bf8b90eadc574113e1dccf8c9",
      "outputSha256": "c718fd50db16b53e1c7e64358975ce68a5efb0a3079ebccf04853683a3921f4b",
      "deterministic": true,
      "externalRequests": 0
    }
  },
  "requiredHeaders": {
    "Content-Type": "application/json",
    "Idempotency-Key": "random 16–128 character operation identifier"
  },
  "fixedExample": "/reference/examples/synthetic-records-compose.json",
  "execution": {
    "deterministic": true,
    "externalRequests": 0,
    "maxExternalRequests": 0,
    "resultSnapshotPersisted": false,
    "fixedExampleIsIllustrativeSnapshot": false,
    "requiresPayment": true,
    "supportsMcpExecution": false
  },
  "releaseSnapshot": {
    "format": "static-release-reference-v1",
    "sourceVersion": "0.29.0",
    "sourceRegistrySha256": "a2b5ec09bf6c38b9d2879d746a4fded374f5928b445377b0270ef6aa8e6cac65",
    "generatedAt": "2026-10-06T15:38:00Z",
    "releaseAcceptance": "not-verified-by-generator",
    "runtimeReadiness": "not-evaluated",
    "livePaymentsVerified": false,
    "indexingVerified": false,
    "apiOrigin": null,
    "notice": "Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment."
  }
}
