Portable results
Save a retained run without keeping access to its dispatcher:
dbl export RUN_ID > result.jsonexport always writes JSON. It does not wait for the workload or output to
finish: pending, truncated and legacy output remain visible in the saved record.
Use dbl logs --follow RUN_ID first when complete output is required. A successful
export means the record was saved, not that the workload succeeded.
The Go client offers the same record online and offline:
result, err := c.Export(ctx, runID)// Save result with encoding/json, then read it later without credentials:result, err = client.ReadResult(file)GET /debuglet/{id}/result is available from HTTP API 1.8. Access follows the
same ownership rules as logs. The standalone file identifies itself with
"format":"debuglet-result" and "version":"1.1"; this file version is
independent of the HTTP API version. The reader accepts versions 1.0, 1.1 and 1.2 and
rejects other versions, malformed records and inconsistent run, node or attempt
identities. Version 1.1 adds provenance.vantage_point and nothing else; a 1.0
file that carries one is rejected, so a 1.0 file keeps its original meaning. The
retained v1.0.json and v1.1.json fixtures are the compatibility baseline.
Readers from before 1.1 reject 1.1 exports as an unsupported version.
An explicitly linked retry is exported as version 1.2 with
provenance.retry.parent_run_id and request_id. Both identify the deliberate
retry request; the parent differs from the new run. Ordinary runs continue to
export as 1.1. A 1.2 record requires valid lineage, while 1.0/1.1 records cannot
claim it. Older readers reject 1.2 rather than discarding the relationship.
What the record means
Section titled “What the record means”run_id,executor_idandattemptidentify the run and its original control session. An attempt has the original dispatcher incarnation and session UUID; it is not a retry counter. Legacy runs may lack that binding.provenanceis an immutable admission snapshot: the exact WASM SHA-256, argument array, admitted policy, executor-reported software version, dispatcher build information and enrolled credential fingerprint when available. It is written with admission in the same database transaction. Current node metadata never replaces these facts. Runs admitted before this record existed haveprovenance: null.provenance.vantage_point(format 1.1) records where the run was to execute, as the dispatcher knew it at admission: the executor’s last validated capability report (protocols, enforcement mode, its schema version and its tagging mode, which isnullwhen the report had none), the dispatcher’s receipt time of that report asobserved_at, andstale: truewhen the report had outlived its 90 s lifetime; the source IP of the control connection; and the executor’s configuredpublic_host. It isnullfor runs admitted before 1.1. The object has its ownschema_version(1); later facts such as ASN, geolocation or reachability are added as new fields. The tagging mode is the executor’s reported node capability at admission, the mode the run was set up to get, not a measurement of the run’s packets (a run whose kernel tagger failed to load ran with the pure-Go tagger); a file without it reads as unknown, and readers keep tagging values they do not know. Itstag_specnames the packet-tag specification of the run’s tags (debuglet-tag-v1); a file written before it omits the field, which reads as unknown (the unversioned pre-v1 tag).- Within schema 1,
vantage_pointalso recordsscion_isd_as, the executor’s last reported SCION ISD-AS withobserved_atandstalelike capabilities, anddisplay, the operator’sdisplay_name,city,countryandnetworkfor that executor. 1.1 files written before these fields omit them; readers treat an omitted field asnull, and readers without them ignore it, so every 1.1 file stays valid. - Also within schema 1, the executor’s host probes:
capabilities.value.icmp({state, reason}of its raw ICMPv4 socket probe) andcapabilities.value.enforcement_reason(why thefallbackcounter is used);clock, the kernel clockstate,estimated_error_ns,max_error_ns,error_bound_ns,readinessandreason; andplatform, the host’sos,arch,kernel_release,cpus,memory_bytesandbuild_version.clockandplatformcarrysource,observed_atandstalelikescion_isd_as. Platform detail is operator-only elsewhere and appears here because a result is readable only by its owner and operators. Earlier files omit these fields, which reads asnull(or an empty reason). - Also within schema 1,
addressing: the probe addresses of the listing at admission,is_public, the dispatcher-observedaddress_v4andaddress_v6(recorded for a private executor too), their prefixes and ASNs, andaddress_observationswith how and when each was seen. Files written before it omit the field, which reads asnull. - Each vantage-point value names its
source:operator,executor-reportedordispatcher-observed(database:<name>@<version>is reserved for later lookups). Capabilities,scion_isd_as,clock,platformandpublic_hostareexecutor-reported;displayvalues areoperator.source_ipisdispatcher-observedwhen taken from the connection, andexecutor-reportedwhen the dispatcher fell back to the address in the executor’s hello. No label means verified: an executor claim remains a claim. A value that was not recorded isnulltogether with its source; it is never guessed or filled from current node metadata. admitted_policyis the accepted request.host_policy: "unknown"explicitly says actual host enforcement was not measured. An enrolled identity does not establish that a measurement is true.outcomepreserves the stored workload state and bounded error classification.exit_codeis always null in portable formats 1.0–1.2, which do not record it. An exited workload must not be interpreted as exit code zero.timing.scheduled_startandreserved_untilare the reserved window, not measured execution times. Actual start, finish and clock uncertainty are always null in portable formats 1.0–1.2; the reader rejects a file that sets them. The kernel error estimate invantage_point.clockis the executor’s report at admission, not a bound on any run timestamp, so it does not fillclock_uncertainty_ns.observed_atis the dispatcher time of the export snapshot; nanosecond timestamp representation is not a clock accuracy claim.output.entriescontains every retained entry, in ID order, with exact bytes encoded as base64.output.statusdistinguishesunknown,pending,completeandtruncated, independently of the workload state. Onlycompleteestablishes complete output. A truncated record retains the prefix and its fixed loss reason. Unknown future states remain incomplete.verificationdistinguishes unknown, unenrolled and enrolled-at-admission attribution. Packet evidence and measurement truth remainunverified.
Run state, provenance and output are read in one database snapshot. Two exports may differ while a run is still receiving output. The export is not signed, and the offline reader checks structure and consistency rather than authenticity. Treat a file received from another party as that party’s account of a run.
Bounds and retention
Section titled “Bounds and retention”Exports are limited to 32 MiB of encoded JSON and 65,536 retained entries. The
normal 8 MiB output allowance fits, including base64 encoding. Larger configured
allowances may exceed the export bound. The API returns 413 payload_too_large
instead of silently dropping entries; use paginated logs for an oversized run.
The offline reader applies the same 32 MiB bound. Ordinary SDK response limits
remain unchanged.
An export contains retained data, not a backup of deleted history. Unknown historical facts are never reconstructed from current executor settings. Keep saved files according to your own retention requirements. Export does not delete the server’s record, and cancellation does not erase it. See data retention and deletion for the current cleanup behavior and policy limits.