Skip to content

Result envelope 1

A runner writes this document atomically to the --out path when a job succeeds. The payload is the module’s own result; the rest is the envelope the core reads.

Schema ID https://codonic.dev/oarbank/schemas/result-envelope-1.schema.json
Dialect https://json-schema.org/draft/2020-12/schema
Raw file result-envelope-1.schema.json

Top level

FieldTypeDescriptionConstraints
artifactsarray of Artifact
effectiveobject[stable] The subset of spec parameters/modes actually honoured; the core compares it with what was requested.
envelopeconst 1default 1
module_version requiredstringpattern "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$"
payload requiredobject[stable] Module-owned result payload (<= max_inline_kb; larger data goes in artifacts).
protocolintegerdefault 1
provenanceProvenance
schema requiredstring[stable] <module>/result@N of the payload.pattern "^[a-z0-9][a-z0-9.-]*/(spec|result)@[1-9][0-9]*$"

Unknown fields are allowed and kept.

Artifact

FieldTypeDescriptionConstraints
files requiredarray of ArtifactFilemin items 1
name requiredstring[stable] Output name; a downstream stage receives it as inputs.<name>.pattern "^[a-z][a-z0-9_]*$"
max length 64

Unknown fields are allowed and kept.

ArtifactFile

FieldTypeDescriptionConstraints
digeststring | nullpattern "^[0-9a-f]{64}$"
default null
localstring | null[stable] Runner-written only: workdir-relative source (a PortablePath, /-separated). The agent uploads it and replaces it with digest/size.default null
path requiredstring[stable] PortablePath inside the artifact (what the consumer sees under its mount). Artifacts carry no file modes.
sizeinteger | nulldefault null

Unknown fields are allowed and kept.

Provenance

FieldTypeDescriptionConstraints
argvmap of string → array of string[stable] Tool invocations that produced the result.
hoststring | nulldefault null
tool_versionsmap of string → string

Unknown fields are allowed and kept.