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.
| Field | Value |
|---|---|
| ID | SPC-08 |
| Status | Shipped |
| Scope | Core |
| Pillar | Builder and Specs |
| Sprint | None |
| Depends On | Applet Manifests (COR-05)Spec Validator ( SPC-02) |
| Unblocks | Spec Page (EMB-06)Builder Pane ( SPC-07)Panel Ejected to a Native Applet ( SPC-27)Time Budget for Live Panels ( SPC-36) |
| Docs | Manifest, Spec Applets |
| Branches | None |
| Design | Spec format, The manifest of a spec applet |
Coverage Ledger¶
- Branch
sprint3-int-runtime, 0 commits that main lacks (123 ahead of the merge base). Work on the spec runtime and spec applets, which reached main through a pull request (patch ids and subjects match). - design/applet-builder.md, under Applet builder. Earlier proposal: an agent builds applets as data, a declarative panel spec drawn by one host runtime, edited through a command layer; compiled applets remain for panels that outgrow the spec.
- design/applet-builder.md, under Proposed design. The command layer, the spec, the spec runtime, the saved applet as manifest plus spec, and the browser.
- design/applet-builder.md, under What would need to change. 7. A second applet kind in the loader: a manifest that points to a spec.
- design/builder-overview.md, under What is built. The loader knows the spec applet kind.
- design/builder-overview.md, under What is built. The spec runtime first slice: seven primitives, layout rectangles with text-scale minimums, a colour key, an offscreen canvas and caliper-spec-shot.
- design/builder-overview.md, under The integration order after sprint 2. Item 5: the spec runtime, the spec applet kind, the app's spec page and the first slice of the browser viewer; left in the browser: 3-D walls' grid and ticks, tooltips and live panels over the stream.
- design/builder-pane.md, under A new dashboard. The landing's Projects pane lists the workspace's dashboards with name, id and status, in one selection order with Instruments.
- design/builder-session.md, under What is built and what is planned. The spec page that draws the open spec with the spec runtime, panel.render through the offscreen renderer and the app's API server serving the command endpoints.
- design/builder-session.md, under Applets. applet.save writes the spec and manifest atomically, applet.open and spec.open check paths, and applet.list lists spec applets.
- design/builder-session.md, under Resolving a panel's data. Session::resolve() follows from-chains, maps tensors, applies transforms with size bounds, reads tables through a bounded query and reads served roots through data sources.
- design/builder-session.md, under The spec page. The spec page draws the open spec after any successful applet.open, lists the workspace's spec applets under Projects, and gives each key one meaning (command input, inline prompt, Escape).
- design/catalog.md, under The cost of a live panel, measured. The benchmark caliper_catalog_providers_bench measures the cost of a live attention-entropy panel from 0.8 MB to 144 MB; figures were taken on a busy machine and are an upper bound.
- design/command-layer.md, under What is built and what is planned. Planned: handlers bound by the builder session, the app binding app.info, app.applets, app.launch, capture.frame and panel.render, the live catalog providers and setting the command gateway on the API server.
- design/command-layer.md, under applet, capture and history. applet.save, applet.open, applet.list, capture.frame, history.undo, history.redo and history.list.
- design/roadmap.md, under Phase 3: agent-built panels. The parts: command layer, loaders, catalog, spec format with seven primitives, spec applet kind, caliper-mcp, side chat, widget agent.
- design/spec-format.md, under What is built and what is planned. The first slice of the spec runtime that draws a spec's panels natively, with the development harness caliper-spec-shot and the renderer behind panel.render.
- design/spec-format.md, under What is built and what is planned. The loader knows the spec applet's manifest, lists spec applets from the search folders and the workspace, and validates their spec with the builder.
- design/spec-format.md, under What is built and what is planned. Planned: the page of the app that shows a spec applet, which calls the runtime.
- design/spec-format.md, under What is built and what is planned. Planned: the data of live:, feed: and metric: sources in the spec runtime.
- design/spec-format.md, under The spec runtime. The spec runtime library caliper_spec_runtime lays out panels as whole-pixel rectangles, resolves data only when it changes and prepares bounded arrays to draw.
- design/spec-format.md, under The spec runtime. Drawing of each primitive in the app's look, with titles, one colour key across panels and named states such as Source offline and No data.
- design/spec-format.md, under The spec runtime. Seams for the pages (draw into any area, set_preview, set_overlay) that the builder pane and the widget agent use.
- design/spec-format.md, under The spec runtime. SpecOffscreen and OffscreenPanelRenderer draw a panel off screen into a PNG, which is what panel.render returns.
- design/spec-format.md, under The spec runtime. The development tool caliper-spec-shot draws a saved spec applet or a spec file to a PNG; it is not installed.
- design/spec-format.md, under The spec runtime. Tests caliper_spec_runtime and caliper_spec_runtime_gpu.
- design/spec-format.md, under The spec runtime. Recorded limits: resolving on the frame thread holds a frame for a slow query, a time-typed series x column is not read, and only one offscreen canvas may exist without an ImGui context.
- design/spec-format.md, under The manifest of a spec applet. A saved spec applet is a folder with <id>.caliper.toml (kind = "spec", spec = file name) and <id>.spec.toml and no library; library-only manifest keys are refused.
- design/spec-format.md, under The manifest of a spec applet. applet.save maps the workspace id to a manifest id local.<id> with _ replaced by -, writes name and summary from the spec and version 0.1.0.
- design/spec-format.md, under The spec applet in the loader. The manifest parser reads kind without the builder, and the loader lists spec applets in the search folders, one folder down and in the workspace's applets/ folder.
- design/spec-format.md, under The spec applet in the loader. check_spec parses and validates a spec when the applet is checked or launched; caliper list and caliper check print the kind and the validator's diagnostics, caliper install refuses a spec applet and GET /v0/applets has a kind field.
- design/spec-format.md, under Defects in the contracts. Four fixes to the sprint 3 contracts: no x table in bind, ratio only with two children, applet.save maps _ to -, and abi_epoch not required for a spec applet.
- design/streaming-and-embedding.md, under Spec applets. Spec applets run in the browser unchanged and satisfy the split by construction.
- Workspace, Spec Page. Launching a spec applet or opening a spec through a command shows the spec page.
- Manifest, Spec Applets. A spec applet is a folder with a manifest of kind spec and a spec, found in the search folders one folder down.
- Manifest, Spec Applet IDs. Spec applet ids are written as local.<id>.
- Manifest, Spec Applet Search Order. Where spec applets are found.
- Refusal Messages, Spec Applets. Refusals for spec applets.
- Trust Model, Spec Applets. Spec applets are data and run no code.
- Pull request #17. Pull request 17 (merged) delivers sprint 3: the builder libraries, spec format, loaders, catalog, command layer and session, caliper-mcp, the side chat, the widget agent, command endpoints of Caliper API, the spec runtime and applets, the builder pane, drag and drop, approval cards and the first slice of the browser spec page.
- Orchestrators' notes,
sprint3-integration/PR.md. In the app: command endpoints of Caliper API, spec runtime and spec applet kind, catalog providers, builder pane, drag and drop, approval cards and stacked previews; in the browser GET /v0/spec, panel.data and a viewer token.