ByteOr Enterprise Artifact Schemas v1
These artifact formats are versioned operator contracts produced by the current byteor and byteor-enterprise runtime surface.
Compatibility contract
- Every artifact below is versioned and should be treated as a machine-readable API.
- Breaking changes require a version bump and coordinated reader/writer updates.
- Additive fields are only acceptable when older readers can ignore them safely.
- Tests should keep round-trip coverage for every serialized format listed here.
Incident bundle directory format v1
Producer: byteor-runtime::incident_bundle()
Required files:
spec.kvspec_validation.jsonruntime.jsonpolicy_audit.jsonenvironment.json
Conditional files:
runtime_config.txtsingle_ring_snapshot.jsonlane_graph_state.json
spec_validation.json
ok: booldescription: stringwhen validation succeedserror: stringwhen validation fails
runtime.json
crate.name: stringcrate.version: string
environment.json
pid: u32cwd: string | nullargs: string[]env: [string, string][]sorted by keyproc_status: string | null
Replay audit JSON v1
Producer: byteor-replay
Root object:
audit_v: u32created_unix_ms: u128bundle_dir: stringspec_sha256: stringinput: ReplayAuditInputpolicy: ReplayAuditPolicyactions: ReplayAuditAction[]
ReplayAuditInput
journal_lane: stringjournal_path: stringlast_n: u64scanned_records: u64selected_bytes: u64sample_sha256: string[]
ReplayAuditPolicy
env: stringapproval_provided: boolmode: stringwithdry_runorexecute
ReplayAuditAction
action: stringrole: stringinput_lane: stringoutput_lane: stringstage: stringtarget: stringdecision: string
Policy audit record JSON v1
Producer: byteor-runtime::policy_audit_record_for_spec()
Root object:
ok: boolpolicy_version: 1mode: stringenforced: boolstage_failure_policy: "stop_pipeline"spec_path: stringlane_path: string | nullwait: string | nullruntime_crate.name: stringruntime_crate.version: stringspec: objectwhen parsing succeedserror: stringwhen parsing fails
Parsed spec summary
model: string- SingleRing records include
single_ring - LaneGraph records include
lane_graph
SingleRing summaries include shard, ordering, producer, scheduling, shard key, and stage counts.
LaneGraph summaries include on_full, plus lane, role, endpoint, lane-kind, and role-kind summaries.
DataGuard report KV v1
Producer: byteor-dataguard-core::DataGuardAudit::report_kv_v1()
Encoding rules:
- UTF-8 text
- one
key=valuepair per line - newline-delimited
- stable key prefixes such as
report.,schema.,policy.,counts., andcost.
Required keys include:
report.v=1report.kind=dataguardschema.registry_root=<path>expected.codec_id=<u16>- counter keys under
counts.*
Conditional keys include schema selection, redaction mode and rule summary, and cost attribution fields when enabled.
Compile report JSON v1
Producer type: byteor-pipeline-ir::CompileReportV1
Root object:
spec: PipelineSpecV1diagnostics: CompileDiagnosticV1[]
Compile diagnostics are currently centered on inserted bridges, routers, and merges.
Validation coverage
Round-trip or artifact-shape coverage should remain in place for:
- incident bundle file sets and JSON payloads
- replay audit JSON
- policy audit JSON
- DataGuard report KV rendering and parsing
- compile report JSON