Reproducible portable USTAR bundle composer
WHEN TO USE: Package 1–32 supplied named UTF-8 or binary artifacts into exact reproducible regular-file USTAR bytes, canonical Base64, SHA-256 and a sorted source-index/offset manifest. Restricted portable ASCII relative paths, fixed nonexecutable metadata, no compression, archive extraction, filesystem reads/writes or universal safe-extraction claim.
structured · Operation ID: ustar-bundle-compose
Choose this operation when
- Package supplied named artifacts as an exact reproducible tar archive
- Create a byte-addressed bundle with content hashes and source indexes
Outside this profile
- ZIP, gzip, compression, directories, links, devices, executable modes, permissions or ownership preservation
- Reading paths, extracting archives, PAX/GNU extensions or universal cross-platform extraction safety
- Sending, uploading, extracting archives, writing files, authenticating identities, or changing external state
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": {
"files": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"encoding": {
"type": "string",
"enum": [
"utf8",
"base64"
]
},
"data": {
"type": "string",
"maxLength": 80000
}
},
"required": [
"path",
"encoding",
"data"
],
"additionalProperties": false
}
}
},
"required": [
"files"
],
"additionalProperties": false
}
Complete output-envelope schema
{
"type": "object",
"required": [
"operation",
"version",
"result",
"provenance"
],
"properties": {
"operation": {
"const": "ustar-bundle-compose",
"type": "string"
},
"version": {
"const": "0.29.0",
"type": "string"
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"encoding": {
"type": "string",
"const": "base64"
},
"archive": {
"type": "string",
"maxLength": 124928
},
"byteLength": {
"type": "integer",
"minimum": 1536,
"maximum": 93696
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"manifest": {
"minItems": 1,
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"inputIndex": {
"type": "integer",
"minimum": 0,
"maximum": 31
},
"path": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 60000
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"headerOffset": {
"type": "integer",
"minimum": 0,
"maximum": 92160
},
"dataOffset": {
"type": "integer",
"minimum": 512,
"maximum": 92672
}
},
"required": [
"inputIndex",
"path",
"byteLength",
"sha256",
"headerOffset",
"dataOffset"
],
"additionalProperties": false
}
}
},
"required": [
"encoding",
"archive",
"byteLength",
"sha256",
"manifest"
],
"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
{
"files": [
{
"path": "a.txt",
"encoding": "utf8",
"data": "hi\n"
}
]
}
Example response
{
"operation": "ustar-bundle-compose",
"version": "0.29.0",
"result": {
"encoding": "base64",
"archive": "YS50eHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDA2NDQAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMDAzADAwMDAwMDAwMDAwADAwNjcxNwAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"byteLength": 2048,
"sha256": "8909eea3aedf7c1309a054eed68c58f7506ca7e9fcb198beb7e89b408912d827",
"manifest": [
{
"inputIndex": 0,
"path": "a.txt",
"byteLength": 3,
"sha256": "98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4",
"headerOffset": 0,
"dataOffset": 512
}
]
},
"provenance": {
"inputSha256": "466d72e01f0ff4307aa75b44e6b6878bb3d1a57ccf05469a06d81e78042cef93",
"outputSha256": "88111b382c61bb554da6987a518ee9bb429f99606ebcfa5e4c95f9f97953c921",
"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,
"profile": "portable-regular-ustar-v1",
"files": 32,
"pathBytes": 100,
"segmentBytes": 64,
"payloadBytes": 60000,
"archiveBytes": 93696,
"extraction": "never performed; consumers still require safe extraction"
}
}
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/ustar-bundle-compose",
"mpp": "/v1/mpp/ustar-bundle-compose"
}
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.