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.
| Field | Value |
|---|---|
| ID | SPC-04 |
| Status | Shipped |
| Scope | Core |
| Pillar | Builder and Specs |
| Sprint | None |
| Depends On | Metrics Stores Grouped by Run (RUN-01)Loaders ( SPC-03)Network Streaming ( STR-05) |
| Unblocks | Builder Sessions (SPC-06)Time Windows over Live Sources ( SPC-38)Recordings on MCAP ( STR-12) |
| Docs | Builder Pane, Sources |
| Branches | None |
| Design | Catalog |
Coverage Ledger¶
- Branch
sprint3-int-kind, 0 commits that main lacks (107 ahead of the merge base). Work on the loader kinds in the spec format, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-int-providers, 0 commits that main lacks (93 ahead of the merge base). Work on catalog providers for live views, feed channels and metrics, which reached main through a pull request (patch ids and subjects match). - design/applet-builder.md, under What stands in the way. Applets are compiled C++ and never unload; in-process code is trusted code; no command layer, catalog, capture; layout only by role.
- design/applet-builder.md, under What would need to change. 2. A catalog service.
- design/applet-builder.md, under A first slice. Command layer and catalog, a spec runtime with four primitives (series, heatmap, scatter, table), bindings to data.v1 and live views, the capture service, all over MCP.
- design/builder-overview.md, under The parts. Parts diagram and table: spec format, loaders, catalog, command layer, session, caliper-mcp, side chat, widget agent, caliper-agent.
- design/builder-overview.md, under What is built. The session reads sources through registered data sources and catalog providers; the app does not call the providers yet.
- design/builder-overview.md, under The integration order after sprint 2. Item 4: the catalog providers for live views, feed channels and metrics; a heatmap carries at most three dimensions and a spec has no reshape; reshape moved to sprint 5.
- design/builder-pane.md, under What is built and what is left. Sources lists the catalog one kind at a time and groups metrics by run.
- design/builder-pane.md, under Sources. The source palette lists the spec's own sources first and then the catalog's by kind (Tables, Tensors, Live, Feeds, Metrics), each with its shape, a filter line, and columns for tabular rows.
- design/builder-pane.md, under Sources. Metrics are grouped by run, newest first, with the newest five shown until Show all, and the filter searches every run.
- design/builder-pane.md, under Sources. The pane reads the catalog one kind at a time with the largest limit and pages a cut metric list by the next character of its name.
- design/builder-session.md, under What is built and what is planned. The seam for sources the app serves: CatalogDataSource, DataSources, the generation of a panel with its probe, and the cache of transformed tensors.
- design/builder-session.md, under What is built and what is planned. The catalog providers and data sources for live views, feed channels and metrics.
- design/builder-session.md, under What is built and what is planned. Planned: the live, feed and metric catalog providers.
- design/builder-session.md, under Refresh. A generation per served source, a cheap panel_generation() probe and a cache of transformed tensors keyed by generation make a live panel cost a microsecond when nothing changed.
- design/builder-session.md, under The catalog provider. LoaderCatalogProvider turns each loaded source into a catalog entry with bounded strings.
- design/builder-session.md, under Limits. The session reads live views, feed channels and metrics only through data sources the app registers.
- design/catalog.md, under What is built and what is planned. The library caliper_builder_catalog: CatalogEntry with a strict JSON form, the CatalogProvider interface, Catalog that merges providers, an in-memory provider for tests and sample_tensor().
- design/catalog.md, under What is built and what is planned. LoaderCatalogProvider and the handlers of catalog.list, catalog.describe and catalog.sample in the session library.
- design/catalog.md, under What is built and what is planned. The host providers LiveCatalog, FeedCatalog and MetricsCatalog with register_catalog_providers(), each also the data source of its kind for the session's resolve.
- design/catalog.md, under What is built and what is planned. Tests of the providers against a real metrics store, a real feed store, a stand-in live core and an offscreen embed core.
- design/catalog.md, under What is built and what is planned. Planned: the app calls register_catalog_providers() when it opens its session and the live catalog's update() once per frame.
- design/catalog.md, under The entry. A catalog entry always has fourteen keys (id, kind, name, title, origin, columns, rows, dtype, shape, rate_hz, bytes, wire, warnings, updated_at) with null where not applicable, and a strict parser that reports catalog.invalid_entry.
- design/catalog.md, under Ids. A source id is <kind>:<name> split at the first colon, with parse_catalog_id() and catalog.invalid_id.
- design/catalog.md, under Kinds. The five kinds table, tensor, live, feed and metric, with their shapes and what columns, dtype, rate_hz and bytes mean for each.
- design/catalog.md, under Origins. Where each source comes from: a loader output, a database table no loader made, a live view, a caliper.feed.v1 channel or a caliper.metrics.v1 run and tag, with a closed set of origin keys and naming rules; a live view's tensor is its newest snapshot's payload.
- design/catalog.md, under The commands. catalog.list, catalog.describe and catalog.sample, with their arguments, results and one sample shape for every kind.
- design/catalog.md, under Sampling rules and limits. Sample bounds: the first limit rows of a table, newest of a feed, last points of a metric, string cells cut at 1024 bytes, tensor statistics exact to 2^26 elements then strided, and a slice of at most 64 per axis and 4096 values.
- design/catalog.md, under Providers, merging and refreshing. How providers are merged, refreshed and costed.
- design/catalog.md, under The provider interface. Providers implement list, describe, sample and revision, with a name, a priority and at most 32 per catalog.
- design/catalog.md, under Merging. Catalog merges providers by priority, reports duplicate ids, drops invalid entries with warnings and tolerates a failing provider.
- design/catalog.md, under Refreshing. The catalog keeps no cache; each provider keeps its own state current, and the revision lets a pane list again only when the catalog changes.
- design/catalog.md, under What each call costs. A table of what list, describe and sample cost for the live, feed and metric providers and on which thread they may run; a live view is copied on the frame thread only while someone reads it.
- 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/catalog.md, under Decisions. Recorded catalog decisions: every key present, a closed origin set, metric names by run id, strided statistics, priority duplicates, no cache and tiled heatmaps given as cells.
- design/command-layer.md, under catalog. catalog.list, catalog.describe and catalog.sample.
- design/loaders.md, under Statistics for catalog.sample. tensor_stats and tensor_sample give the count, non-finite count, min, max, mean and standard deviation and a bounded slice that catalog.sample returns.
- design/loaders.md, under caliper.sources. The caliper.sources table holds each output's kind, columns, dtype, shape, storage columns and wire flag, and runs are atomic.
- design/loaders.md, under What is built and what is planned. Planned: the CatalogProvider adapter for loader outputs.
- 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/roadmap.md, under MCP. Use: answering questions about data through caliper.data.v1.
- 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 source resolver. Validation takes an optional SourceResolver that maps a catalog id to its kind, columns, dtype, shape and wire flag, so columns, ranks and portability are checked without the spec module depending on the catalog.
design/sprint-4.mdon the branchsprint4, under Dependencies on sprints 2 and 3. Sprint 2 is merged first (backend, protocol, web/wasm, widget, hub, controls, step checkpoint) and confirms kind 6, 0x0070, 0x0072 and scenes before increment 1; sprint 3 is needed by increment 8 only, for the workspace, the catalog provider interface and the catalog kind recording.- Builder Pane, Sources. The Sources palette lists the spec sources and the catalog grouped as Tables, Tensors, Live, Feeds and Metrics, with refused files.
- 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. Libraries under src/builder: the spec format, validator and schema, loaders, the catalog, the command layer and the session.