Skip to main content

Module runtime

Module runtime 

Source
Expand description

Bounded runtime evidence and gradient-audit protocol.

Transport/import layer for target-side probe emissions. Schema: candle-graph/runtime/1. No Candle dependency.

Structs§

ExpectedIdentity
Expected analysis/build identity supplied by an importer when correlating a trace.
GradientConflict
Conflict among gradient facts for one parameter identity.
GradientFact
Per-parameter gradient fact keyed by builder root + parameter key.
IdentityMismatch
Mismatch between trace metadata and an importer-supplied expected identity.
OperationObservation
One operation observation emitted by the probe.
ParamIdentity
Builder-root + parameter-key identity for gradient facts.
RunMetadata
Build / process metadata for a single probe run.
RuntimeAudit
Compact audit summary over a normalized trace.
RuntimeTrace
Full runtime trace document (candle-graph/runtime/1 or /2).
RuntimeTraceWriter
Streaming JSONL emitter for instrumented CPU or synthetic rollouts.
TensorConflict
Conflict among repeated tensor observations for one static id.
TensorObservation
One tensor snapshot emitted by the probe.
ValueObservation
Forward value-range observation for numeric-domain runtime audits.

Enums§

GradientState
Observed gradient presence / quality for one parameter.
IdentityField
Which optional identity field disagreed.
ObservationConfidence
Confidence for a refined runtime observation.
RuntimeEvent
JSONL / streaming event records that assemble into a RuntimeTrace.
TensorConflictKind
Which tensor attribute disagreed across observations sharing a static_id.

Constants§

SCHEMA
Schema identifier written into every document and expected on parse.
SCHEMA_V2

Functions§

parse
Auto-detect a single JSON object versus JSONL event records.
parse_json
Parse a single JSON document into a validated, normalized trace.
parse_jsonl
Parse JSONL event records into a validated, normalized trace.