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.
| Field | Value |
|---|---|
| ID | SPC-12 |
| Status | Shipped |
| Scope | Core |
| Pillar | Builder and Specs |
| Sprint | None |
| Depends On | Spec Version 1 with Scenes (SPC-11) |
| Unblocks | Custom WebAssembly Views (SPC-15)State Variables and References ( SPC-44)Layout Shares ( SPC-45) |
| Docs | Controls, Control Kinds |
| Branches | None |
| Design | None |
Coverage Ledger¶
- design/applet-builder.md, under Open decisions. The first primitives: which visuals and controls the spec supports first.
- design/gpu-programs.md, under Toggle Control. A toggle control binds intervene:<point> and ablates the point while it is on.
- design/instrument-interface.md, under Spec Additions. Spec version 1 gains state variables, entities, annotations, kept steps, three steps, new control kinds, layout shares and program parameters.
- design/instrument-interface.md, under Binding References. A binding reference reads a control, a selection or a state variable where the spec takes a literal value.
- design/instrument-interface.md, under Reference Forms. The three reference forms share one grammar with an optional field and default.
- design/instrument-interface.md, under Reference Places. References stand only at keys whose value changes data and never the shape of the spec.
- design/instrument-interface.md, under Re-Evaluation. A dependency index evaluates again only the readers of a changed input, at most once a frame.
- design/instrument-interface.md, under Reference Rules. The validator refuses bad references, wrong places, unknown targets, type mismatches and cycles with fixed codes.
- design/instrument-interface.md, under Shared State. Named state variables that controls and picks write and panels read, saved as declarations with session values.
- design/instrument-interface.md, under State Table. A state variable has an id, a type, a default, bounds and choices.
- design/instrument-interface.md, under State Writers. Controls bound to state:<id>, picks with the option select and the command state.set write state.
- design/instrument-interface.md, under State Readers. References to state filter, highlight, recolor and retarget panels.
- design/instrument-interface.md, under State Events. The event kind state reports each changed value with its writer.
- design/instrument-interface.md, under Controls. The control kinds range, picker and text are built, and segmented, readout and transport join them.
- design/instrument-interface.md, under Control Kinds. Each control kind has fixed targets, options and a value type.
- design/instrument-interface.md, under Segmented Groups. Single-select and multi-select button groups write a value or a state variable.
- design/instrument-interface.md, under Keyboard Shortcuts. A choice of a segmented group may have a key, scoped to the instrument and refused when the app reserves it.
- design/instrument-interface.md, under Control Values. The command control.set sets the value of a control bound to a value or a state variable.
- design/instrument-interface.md, under Transport Control. The control kind transport steps, plays, holds and goes live, with keys.
- design/instrument-interface.md, under Bound Text. Bound texts format live values and state into short texts.
- design/instrument-interface.md, under Format Language. A bound text has named fields and number formats, and no expressions.
- design/instrument-interface.md, under Text Places. Bound text stands in text panels, readout controls and annotations.
- design/instrument-interface.md, under Text Limits. A bound text has limits on its length, its fields and its update rate.
- design/instrument-interface.md, under Validator Codes. The validator gains fixed codes for references, history, operators, shortcuts, formats and parameters.
- design/instrument-interface.md, under Acceptance Test. A test through caliper-mcp builds the training debugger's instrument without the agent's own programs on a managed run.
- design/instruments.md, under Spec Version 1. Version 1 of the spec format adds scenes and controls to the spec.
- design/instruments.md, under Control Table. The table lists the control kinds and the targets that each control sets.
- design/instruments.md, under Control Layout. The layout rules place controls in a panel of a spec.
- design/instruments.md, under Validator Codes. The validator reports the new spec problems with fixed codes.
- design/instruments.md, under Control Commands. The commands control.create, control.patch and control.remove edit the controls of a spec.
- design/instruments.md, under Run Control in App. The app implements the run control that the run commands call.
- design/spec-format.md, under Recorded limits of version 0. A spec draws data and does not edit it: no controls, no linked selection between panels and no time windows over live sources.
- Controls, Control Kinds. The nine control kinds and their binds.
- Controls, Segmented Groups. A segmented group is a row of 2 to 16 buttons.