Skip to content

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.

Field Value
ID SPC-02
Status Shipped
Scope Core
Pillar Builder and Specs
Sprint None
Depends On Spec Format (SPC-01)
Unblocks Checks of an Agent's Own Spec Edits (AGT-24)
Spec Applets (SPC-08)
SQL Column Checks (SPC-37)
Docs Applet Commands, caliper check
Branches None
Design Spec format, Validation

Coverage Ledger

  • Branch sprint3-spec, 0 commits that main lacks (15 ahead of the merge base). Work on the order of diagnostics in the spec validator, which reached main through a pull request (patch ids and subjects match).
  • design/builder-overview.md, under What is built. Spec library parses, validates, writes and merge-patches specs.
  • design/builder-pane.md, under The spec text. The spec text strip shows the canonical TOML read-only with line numbers, and Edit turns it into an editor whose valid drafts apply at once with spec.set_text.
  • design/builder-pane.md, under The spec text. The text is the source of truth: the canvas, Properties and the strip read one OpenSpec of the session, and an invalid draft shows diagnostics at their lines and blocks other edits.
  • design/spec-format.md, under What is built and what is planned. The library caliper_builder_spec parses a spec, validates it, writes canonical TOML and JSON and applies a JSON merge patch to one panel or source.
  • design/spec-format.md, under Validation. Checking a spec has two stages, parsing (with line and column for TOML) and validation, which reports errors and warnings with stable codes and document paths.
  • design/spec-format.md, under Error codes. The table of more than thirty stable spec.* codes with severity and stage, including the warnings spec.not_portable, spec.unresolved_source, spec.unused_source and spec.unplaced_panel.
  • 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/spec-format.md, under The browser. The portability rule: a spec runs in the browser when every bound catalog source has a wire form, otherwise validation warns spec.not_portable.
  • design/spec-format.md, under Limits. Every size of a spec is bounded with its own error code: 512 KiB text, 64 sources, 64 panels, 16 transforms, 8 layout levels and so on.
  • design/spec-format.md, under The library. The library's four headers: spec.h value types, format.h parse and write, validate.h with SourceResolver and check_toml, and patch.h with RFC 7386 merge patches.
  • design/spec-format.md, under Tests. The builder_spec tests: fixtures, round trips, every error code, hostile input, merge patches and the JSON Schema checked with a test-only checker.
  • Applet Commands, caliper check. caliper check runs the pre-load checks on every applet of one folder and validates each spec applet in full.
  • 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.

Roadmap Graph Feature in Graph