Skip to main content

plugin-ui-preview 0.2.0 to 0.2.1 migration note

From-predecessor note for the 0.2.1 PATCH (issue #449, the preview fixture captures slice; ADR 0449). The change is additive at the fixture document root only. The fixture schema gains an OPTIONAL captures member. No existing member is removed, retyped or tightened. The class is PATCH under GOVERNANCE’s change-class table. This is the shape of the 0.1.0 to 0.1.1 precedent.

What changed

  • fixture.schema.json gains an optional root captures array. Each element is a capture block. The block is keyed by a DATASET binding id and carries the composed-ready lane model: samples, an optional sample_rate_hz, an optional trigger_s, optional cursors, per-channel lanes state strings over the LaneState alphabet (0, 1, x, z), and optional decoder_events as (start_s, end_s, payload) triples.
  • preview-document.schema.json keeps its 0.2.0 shape. It is carried in the 0.2.1 directory under the copy-never-move rule. Only its $id and title version stamps move. The served wire document stays declared-structure-only. Wire-side captures stay deferred under D7.
  • contract_version sweeps to the 0.2.1 const.

Refusals the loader applies

  • A capture that omits a required member refuses at load. The refusal names the member. An omitted member never becomes a captured-empty lane.
  • A capture whose binding_id is not a dataset target refuses.
  • A capture with trigger_s or cursors but no sample_rate_hz refuses.
  • A capture whose per-channel states length differs from samples refuses.

The re-stamp consequence (binding)

The fixture schema pins contract_version to a const. The SDK judges a fixture against the ACTIVE schema only. On adoption of fixture contract 0.2.1, re-stamp every author fixture to "contract_version": "0.2.1":

  • the two SDK scaffold fixtures (normal.json and warning.json in the scaffold expected tree);
  • the two LogicPort author fixtures, logicport-normal and logicport-warning.

regen-fixtures refuses author content. Re-stamp the LogicPort author fixtures BY HAND. Do not skip the re-stamp. A stale 0.2.0 fixture refuses loudly at load under the active 0.2.1 schema.

The range consequence

The served range stays >=0.1.1,<0.3.0. 0.2.1 sits inside the existing window. The window widens without a slide. 0.1.1 and 0.2.0 stay served, because multi-serving is this wire’s established shape. No previously-valid document becomes invalid under its own frozen schema.