Record field observations
Profile caller-selected JSON Pointer fields across up to 500 records: missing/null/type counts, typed distinct values, numeric bounds/median, UTF-16 string lengths and bounded duplicate-row evidence. Observations only; no inferred schema guarantee or population extrapolation.
data-assurance · Operation ID: record-profile
Choose this operation when
- profile missing null fields in JSON records
- inspect dataset types cardinality duplicates before validation
- measure field completeness and mixed types
Outside this profile
- Infer a guaranteed schema or population distribution
- Fuzzy entity matching or CSV file comparison
Exact release references
Static JSON contract · Markdown reference · Fixed example response
Complete input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"records": {
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"fields": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"maxLength": 512,
"description": "RFC 6901 JSON string pointer; empty string selects the row root. URI fragments and unsafe property names are rejected."
}
}
},
"required": [
"records",
"fields"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}
Complete output-envelope schema
{
"type": "object",
"required": [
"operation",
"version",
"result",
"provenance"
],
"properties": {
"operation": {
"const": "record-profile",
"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": "record-observations-v1"
},
"rowCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"presentCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"missingCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nullCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"distinctCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"typeCounts": {
"type": "object",
"properties": {
"null": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"boolean": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"number": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"string": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"array": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"object": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"null",
"boolean",
"number",
"string",
"array",
"object"
],
"additionalProperties": false
},
"numeric": {
"anyOf": [
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"median": {
"type": "number"
}
},
"required": [
"count",
"min",
"max",
"median"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"stringLengthsUtf16": {
"anyOf": [
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"min": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"count",
"min",
"max"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"duplicateGroups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"firstRowIndex": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"rowIndices": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"rowIndicesTruncated": {
"type": "boolean"
}
},
"required": [
"firstRowIndex",
"count",
"rowIndices",
"rowIndicesTruncated"
],
"additionalProperties": false
}
},
"duplicateGroupCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"duplicateGroupsTruncated": {
"type": "boolean"
}
},
"required": [
"path",
"presentCount",
"missingCount",
"nullCount",
"distinctCount",
"typeCounts",
"numeric",
"stringLengthsUtf16",
"duplicateGroups",
"duplicateGroupCount",
"duplicateGroupsTruncated"
],
"additionalProperties": false
}
},
"caveats": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"profile",
"rowCount",
"fields",
"caveats"
],
"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
}
Fixed example
One accepted fixed example, not a custom-input trial. No operation runs when this static page is requested.
Example input
{
"records": [
{
"id": "a",
"price": 12,
"status": "ready"
},
{
"id": "b",
"price": null,
"status": "ready"
},
{
"id": "c",
"status": "new"
}
],
"fields": [
"/price",
"/status"
]
}
Example response
{
"operation": "record-profile",
"version": "0.29.0",
"result": {
"profile": "record-observations-v1",
"rowCount": 3,
"fields": [
{
"path": "/price",
"presentCount": 2,
"missingCount": 1,
"nullCount": 1,
"distinctCount": 2,
"typeCounts": {
"null": 1,
"boolean": 0,
"number": 1,
"string": 0,
"array": 0,
"object": 0
},
"numeric": {
"count": 1,
"min": 12,
"max": 12,
"median": 12
},
"stringLengthsUtf16": null,
"duplicateGroups": [],
"duplicateGroupCount": 0,
"duplicateGroupsTruncated": false
},
{
"path": "/status",
"presentCount": 3,
"missingCount": 0,
"nullCount": 0,
"distinctCount": 2,
"typeCounts": {
"null": 0,
"boolean": 0,
"number": 0,
"string": 3,
"array": 0,
"object": 0
},
"numeric": null,
"stringLengthsUtf16": {
"count": 3,
"min": 3,
"max": 5
},
"duplicateGroups": [
{
"firstRowIndex": 0,
"count": 2,
"rowIndices": [
0,
1
],
"rowIndicesTruncated": false
}
],
"duplicateGroupCount": 1,
"duplicateGroupsTruncated": false
}
],
"caveats": [
"Observations describe only supplied rows, not a schema guarantee or population estimate.",
"Distinct values use typed structural JSON equality with object keys sorted; missing is separate from null. Numbers are already-parsed IEEE-754 values."
]
},
"provenance": {
"inputSha256": "7a3a2676a5c8b31f529bfb018adf6ce45a687787779349029dcae02ef5215fe9",
"outputSha256": "8135f48756dbce1bac61c230404690ca325e61c434d49d3b36c95903d7c4342d",
"deterministic": true,
"externalRequests": 0
}
}
Bounds and precision
JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.
{
"global": {
"requestBytes": 131072,
"responseBytes": 524288,
"jsonDepth": 32,
"jsonNodes": 20000,
"requestsPerMinute": 60,
"paidAttemptsPerMinute": 20,
"idempotencyHours": 24
},
"operation": {
"inputBytes": 100000,
"outputBytes": 400000,
"jsonNodes": 12000,
"depth": 20,
"evidence": 200,
"keyWorkBytes": 3000000,
"matchingSteps": 2000000,
"records": 500,
"fields": 32,
"duplicateGroupsPerField": 5
}
}
Complete schemas, descriptions and cross-field validation may impose additional limits.
Proposed price and protocol definitions
{
"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."
}
Protocol definitions: x402, mpp. MPP uses Tempo charge. Paid MCP execution is unsupported. All runtime readiness is not evaluated in this build.
API path templates, not endpoints on this documentation host
{
"x402": "/v1/x402/record-profile",
"mpp": "/v1/mpp/record-profile"
}
Required headers
{
"Content-Type": "application/json",
"Idempotency-Key": "random 16–128 character operation identifier"
}
Actual SDK challenge amount, asset, network, recipient and wallet costs must pass independent authorization. Preserve identical key, body, protocol and credential on retries; on PAYMENT_UNCERTAIN stop and reconcile.
Execution profile and provider conditions
{
"deterministic": true,
"externalRequests": 0,
"maxExternalRequests": 0,
"resultSnapshotPersisted": false,
"fixedExampleIsIllustrativeSnapshot": false,
"requiresPayment": true,
"supportsMcpExecution": false
}
Deterministic supplied-input operation with no external requests or stored request/result bodies. Payment infrastructure retains payment metadata and hashes.
Failure handling
- HTTP 400: Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch Correct the request before payment
- HTTP 402: Payment challenge or rejected payment Use official protocol SDK; inspect payment outcome before another payment
- HTTP 409: Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay
- HTTP 413: Input or generated output too large Reduce input; no payment attempted for validation failure
- HTTP 415: Unsupported media type or compression Send uncompressed application/json
- HTTP 422: Schema or service-specific semantic validation failure Correct input using returned error code; no payment attempted
- HTTP 429: Request/payment-attempt rate exceeded Wait for rate limit window; preserve existing payment identity
- HTTP 503: Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation
Declared requirements
Before any paid call, refresh the live operation contract and POST the complete bounded budgeted plan to the separate API's /preflight. Unknown requirements block selection; compatible preflight is not permission to spend.