Skip to main content

Crate incin_viz

Crate incin_viz 

Source
Expand description

incin-viz - out-of-process terminal UI for observing live Incin training runs. Tails an out-of-process telemetry transport (see incin-telemetry) and renders it through a plugin-extensible panel system (see incin-viz-plugin-api).

Modules§

app
Application state and event-loop integration for the visualizer. incin-viz’s application state and tokio::select!-driven async event loop, multiplexing three streams: terminal input (crossterm::event::EventStream), transport-tail polling, and a fixed render tick.
dispatch
Dispatches telemetry data and user actions to visualizer panels. Host-owned panic-containment layer: every Panel trait-method call from app.rs’s event loop is routed through one of these wrapper functions, never called on the panel directly. This is the only boundary between untrusted-quality (not untrusted-intent) plugin code and host process stability – see PLUGIN-03 / T-08-01 in 08-04-PLAN.md’s threat model.
err
Errors reported while loading or rendering visualizer data. Centralized error type for incin-viz, mirroring incin-telemetry’s err.rs convention.
panels
Built-in panels for graph, loss, norm, scalar, and system views. Built-in panels proving the plugin pipeline end-to-end (Plan 08-05): a real loss Chart panel and a deliberate panic-test panel. Both implement incin_viz_plugin_api::panel::Panel with zero access to any incin-viz-internal-only API (PLUGIN-01/PLUGIN-02’s “no privileged API” property).
transport_reader
Reads schema-versioned telemetry events from a run transport. Read-side counterpart to incin-telemetry’s Transport trait: a poll-based tailer for the JSONL transport file a training process writes to.