The NeuronScope Observability Pipeline processes live telemetry emitted during model forward passes, agent tool executions, and vector database lookups. It isolates collection logic from user code, guaranteeing zero-copy streaming and deterministic recording.
Pipeline Architecture
Fingerprints inputs (model, prompt, dataset, env) and freezes observation plan.
The 5 Execution Stages
- 1. Resolve & Plan: Canonicalize inputs (
fp:model,fp:prompt,fp:dataset,fp:env) and freeze observation selectors. - 2. Non-Invasive Instrumentation: Attach framework-specific hooks and event bus listeners without altering autograd graphs.
- 3. Asynchronous Ring Streaming: Copy intermediate tensors and tool call spans into lock-free ring buffers.
- 4. Collation & Indexing: Align telemetry streams by execution step, computing metadata manifests.
- 5. Atomic Sealing: Compute final container BLAKE3 digest and finalize the
.nszfile.
Ring Buffer & Backpressure
To prevent GPU VRAM starvation or out-of-memory crashes, the pipeline streams telemetry into a bounded lock-free ring buffer (buffer_mb=256 by default). If disk I/O slows, backpressure pauses dataset iteration rather than dropping frames, guaranteeing complete telemetry integrity.