Skip to content

Builder and Specs

This pillar covers building dashboards from data inside the app, with specs, loaders, a catalog of sources, a command layer and a builder pane. It also covers the later work on custom views and on promoting proven applet features into the core.

The roadmap graph shows how these features depend on features in other pillars. Ideas for this pillar that are not in the registry are on its candidates page.

Shipped

  • SPC-01 Spec Format. The spec format describes a dashboard as text, with sources, panels built from seven primitives, bindings and a layout, in a TOML form and a canonical JSON form.
  • SPC-02 Spec Validator. The spec validator checks a spec against the format and reports each error and warning with a stable code, a line and a column.
  • SPC-03 Loaders. Loaders turn dropped files into sources, reading CSV, Parquet, JSON, NumPy, safetensors, image and WAV files, refusing pickle, Arrow IPC and HDF5 files, and running a Python loader in its own process for other formats.
  • SPC-04 Catalog. The catalog lists every source a spec can use, from loader outputs, live views, feed channels and metrics, and describes and samples each one.
  • SPC-05 Command Layer. The command layer is a table of typed commands with undo, a journal, approvals and previews, served to programs through Caliper API.
  • SPC-06 Builder Sessions. A builder session binds the spec, loaders, catalog and commands for one workspace folder, which the app, caliper dev and caliper shot each hold.
  • SPC-07 Builder Pane. The builder pane lets a person build a spec by hand on the app's spec page, with source and primitive palettes, a canvas, properties and the spec text.
  • SPC-08 Spec Applets. A spec applet is a folder with a manifest and a spec and no library, which the loader lists, validates and the app draws as a page without running applet code.
  • SPC-09 Removing Panels. A panel is removed from a dashboard with the cross on its title strip, a menu entry or the delete key, as one undoable step.
  • SPC-11 Spec Version 1 with Scenes. Spec version 1 adds the scene panel, which draws the entities of a scene that Caliper builds from live tensors, with a camera and picking, and the top-level arrays and keys that an instrument needs.
  • SPC-12 Custom Controls. Spec version 1 declares nine control kinds, among them slider, range, toggle, button, picker, text, segmented groups and a transport, bound without native code to script parameters and actions, state variables, intervention points and values.
  • SPC-14 Custom WGSL Views. A spec carries WGSL programs over live tensors, with sandbox checks and limits on GPU time and memory.
  • SPC-28 Source Transforms. A tensor source of a spec carries slice, reduce and normalise steps, edited in the builder pane with the shape after each step.
  • SPC-29 Command Script. CALIPER_COMMAND_SCRIPT runs a file of commands, one JSON line each, through the command queue of the hidden app or of caliper shot, and writes each result to a file, for tests, demos and screenshots.
  • SPC-42 Scene Entities. A scene panel draws entities that a spec builds from its sources, with an entity table, draw kinds, pick fields and a data box, so that a live tensor becomes a visual with no scene call in the script.
  • SPC-43 Surface and Path Operators. The operators surface and path are steps of a source that turn a tensor into geometry, a height surface or a polyline, for the slots of an entity.
  • SPC-44 State Variables and References. State variables that controls and picks write, and binding references that panels read to filter, highlight, recolor or retarget, change what a panel shows at once, also while the run is paused.
  • SPC-45 Layout Shares. A split of the layout gives each child a share of the space, a leaf may state a minimum size in characters and lines, and a control is a leaf of the layout as a panel is.
  • SPC-46 Step History and Time Cursor. The app keeps the recent steps of a source with the step of each stamped snapshot, and one time cursor, moved by commands or a transport control, shows every panel at a kept step while the run goes on.
  • SPC-47 Bound Text. A bound text formats live values and state into a short text with named fields, number formats and units, for text panels, readouts and other labels.
  • SPC-48 Annotations and Label Placement. An annotation marks a value of a panel with a label, a threshold line, a band or a marker, and one placement function keeps the labels of annotations and scene items apart.
  • SPC-49 Saved Views. A scene panel keeps up to 16 named camera views, lists them in a menu of its header, and opens on the view that view_camera names, and the commands camera.save and camera.set write and move them.
  • SPC-50 Pieces. A piece is a folder of a manifest and WGSL files with a derive half and a draw half, identified by a SHA-256 hash that a program pins with its name and version, and read from the library, the workspace or the open spec.
  • SPC-51 Piece Commands. The commands piece.check, piece.list, piece.show, piece.save, piece.copy, piece.update and piece.remove, and program.read, let an agent write, check and version pieces and read published resources through MCP.
  • SPC-52 Provenance Review State. A program or piece instance from a foreign spec waits in the review state until the reviewed list contains its source hash.

Planned

  • SPC-10 Data View. The Data view is a node graph in build mode of sources, derived sources with their transforms and each panel's slots, where dragging binds a source to a slot as a command. Sprint 3.2.
  • SPC-13 Reshape Step. The reshape step adds a tensor transform for reshaping and stacking, to be built only if real use needs it, since a stream carries at most three dimensions per heatmap view. Sprint 5.
  • SPC-15 Custom WebAssembly Views. A spec carries a WebAssembly module with a fixed host interface that reads its bound sources, draws into a scene or a 2-D canvas and emits selections, without files or the network and under memory and time limits, in the app and in a browser. Sprint 7.
  • SPC-16 Capture Service. The capture service gives every applet screenshots, scripted runs and recordings through one host interface, starting from what caliper shot already does.
  • SPC-17 Layout Grid. The layout grid sizes panes as shares of the window with minimums tied to the text scale, as plain rectangles that tests check without a window.
  • SPC-18 Tours. A host tour service steps through the regions of an applet from a data file, outlining each region as it goes.
  • SPC-19 Python Sidecar. A sidecar service starts a Python process beside an applet, with a version handshake, a cache version that triggers a rebuild and a synthetic-data mode.
  • SPC-20 Viz Components. The caliper viz components add an annotation scene for geometry, colour by value with a key, and a catalog tree, promoted from applet code into the SDK.
  • SPC-22 Recording Bindings in Spec Panels. A spec panel binds to a recording as it binds to a live source, so that a spec applet replays what was recorded. Sprint 5.
  • SPC-23 Review of Custom Views. A custom view written by an agent waits for the person's review like any other spec change, with its source, its limits and a capture of what it draws. Sprint 7.
  • SPC-24 Custom View Starter Kit. A starter kit, a guide and examples in Rust, C and AssemblyScript help people and agents write custom views, with an agent guide for writing them through MCP. Sprint 7.
  • SPC-25 Agent-Written View Demo. A demo shows a custom view written entirely by an outside agent through MCP, built and reviewed in one session. Sprint 7.
  • SPC-30 Builder Pane on the Live Page. The builder pane is available on the live page, beside an attached session.
  • SPC-31 Arrow IPC Reader. A native reader decodes Arrow IPC and Feather files into a table, which the loaders refuse today.
  • SPC-32 HDF5 Reader. A native reader reads one dataset or every dataset of an HDF5 file when the build finds the HDF5 library, where today the loader points to the Python loader.
  • SPC-33 Image Stacks. A loader over a set of images stacks them into one tensor, where today each image becomes a tensor of its own.
  • SPC-34 Python Loader over Many Files. A Python loader reads a set of files with one run per file, where today it reads exactly one file.
  • SPC-53 Review Card for Foreign Pieces. A card shows the source, the limits and a capture of a piece from a foreign spec, and the person's approval writes the hash into the reviewed list, where today a person edits the spec file by hand.

Ideas

  • SPC-26 Script Runtime for Specs. A sandboxed script runtime could carry custom logic that the fixed spec primitives cannot express.
  • SPC-27 Panel Ejected to a Native Applet. A spec panel that needs more speed could be turned into a native applet built outside the app and loaded like any other.
  • SPC-35 Transforms on the GPU. The tensor transforms of loaders and specs could run on the GPU with the same results as the CPU reference.
  • SPC-36 Time Budget for Live Panels. The spec runtime could recompute a slow live panel only a few times a second, or on a worker thread, and draw its last result.
  • SPC-37 SQL Column Checks. The validator could check a spec's bindings to the columns that a SQL source's query returns.
  • SPC-38 Time Windows over Live Sources. A spec could limit a live source to a window of time.
  • SPC-39 Series Labels and Colours. A series panel could give each line its own label and colour, where today each line is labelled by its binding.
  • SPC-40 Rename Command. A command could rename a panel or a source and update every binding and layout that names it.
  • SPC-41 Undo Across Restarts. The undo history, and with it stacked previews, could be saved with the workspace so that it survives a restart.

Decisions

  • SPC-21 WebAssembly and Third-Party Applets. This decision sets how sprint 7's sandboxed custom views relate to the roadmap's Not now list, which names WebAssembly and third-party applets, and to Phase 2's split of applets into a native computation and a WebAssembly interface.