Skip to content

Releases

v0.6.0 — the instruments release

Choose a tag to compare

@tpitre tpitre released this 18 Jul 16:13

The July field-test arc: the contract schema advanced v9 → v12, the plugin dump format v1.0 → v1.6, the eval suite 60 → 99, and three standing instruments joined the suite — the whole-kit census, the visual-parity pixel gate, and the enterprise code gauntlet. The dated narrative with receipts is MILESTONES.md.

Added

  • Schema v9–v12 — Part.shape (drawn vector geometry: the tooltip pointer), tokensByProp on every surface (per-enum-value token substitution recovered by value-level correlation, not name matching), part.repeat + arrayOf props (repeated-children collections: React maps the live array, static surfaces render the observed sample), and receipt-grade modes metadata (theme/mode-axis promotion). contract.schema.json regenerated at each step.
  • Dump v1.2–v1.6 — box shadows and per-corner radii; shape geometry; the _variables resolved-value channel (bound token names arrive WITH their values — the captured-token layer registers them as an import-scoped layer, repo tokens winning collisions by name); instanceKey/instanceSetKey, bounding boxes, boolean defaults, swapPreferredValues, and native SLOT nodes (composite child linking); collection modes with alias resolution (per-mode token values). Every channel the capture reads but cannot carry is a named degradation receipt — the zero-silent-losses rule, REST mapper included.
  • The whole-kit census (npm run extract:figma:gauntlet) — every component set in a live enterprise Figma kit (1,618 sets, 76 variant composites) replayed through the full import pipeline; per-set facts-carried, named-note, and degradation counts; class fixtures retained for regression replay. 63.2% composite-clean at first measure, 100.0% after the class-fix batches — the instrument stands so the number cannot silently regress.
  • The visual-parity instrument (npm run extract:figma:visual) — emitted previews perceptually diffed against Figma's own PNG renders: pixelmatch, a text-masked second score (cross-renderer font rasterization never flatters a result), real browser interaction states, disk-cached Figma PNGs, worst-first REPORT with per-row diagnosis and triptychs.
  • The enterprise code gauntlet (extract/pilots/ENTERPRISE-GAUNTLET.md) — Carbon, Fluent 2, Spectrum, and Polaris at pinned SHAs through the unmodified pipeline, plus the fix batch it demanded: sibling-type-file resolution, cast transparency, intersection-named-ref rules (Fluent 0→23 components, Polaris hollow 5→0), nameless-CEM-event named skips, one function-prop rule shared by propose and diagnose (26 false findings → 0), and wrap-plain-tokens (all four enterprise token shapes load via a mechanical $value wrap).
  • Send-to-Playground plugin bridge — a one-time 6-char pairing code relays the plugin's dump (the repo's dump script embedded verbatim, a build-time drift guard refusing stale copies — it has fired three times, correctly) through a one-time-read relay on the assist worker (15-min TTL, 4 MB cap, own kill switch); full token names AND values on any Figma plan.
  • Composite children render real — key-based session linking (resolveChildContract: key first, name fallback noted, name-contradicting-key refused), linked refs rendering child anatomy with applied + threaded {parentProp} props, unlinked stubs rendering observed geometry via minted imported.stub-* tokens; workspace imports join the propose scope.
  • Proposer trio — theme/mode-axis promotion (a structurally-corroborated Theme axis is a token mode, never a prop; near-misses stay props by name), repeated-children collections (≥3 homogeneous siblings → one item-template part + arrayOf), negative-spacing overlap (layout.overlap carries the drawn magnitude; a negative-px gap token can no longer mint).
  • Native controls — Checkbox/Switch 2.0.0 render a real input[type=checkbox]; standing NATIVE_ROLE_HOSTS semantic lint (role-on-non-native refuses by name; declared roleException is the governed escape).
  • Enforced a11y — a11y.minHitArea emits the non-visual ::before hit-target floor on both CSS surfaces (previously declarative-only); UA margins neutralized on component roots.
  • Fidelity matrix (extract/fidelity-matrix/) — four real components (Shoelace Tooltip and Button Group, Eventz Button, CBDS Button design + code) imported live, proposed, emitted, and scored against their own captures; committed fixtures replay every number offline. SCORECARD with 12 named gaps, causes, and an ordered punch list.
  • Dump v1.1 — solid paints capture {hex, alpha} and node visibility (hidden) in both the REST mapper and the plugin dump; alpha<1 paints mint as 8-digit hex (one string that is a legal DTCG color $value, a CSS color, and invertible to Figma RGBA); the paint-alpha-dropped degradation is retired.
  • Auto-proposed child contract stubs — a nested instance whose child contract is not in scope ships a STUB contract alongside the proposal (observed applied values only, provisionality named) so component refs emit instead of refusing.
  • Base-instance flattening + self-reference guard — variants that solely wrap an instance of a shared base component flatten (captured properties promote to real props, Figma spellings preserved); a set never emits a component ref to itself; component-ref cycles refuse by name at the generator instead of overflowing the stack.
  • Identifier sanitization at proposal — non-PascalCase set names and emoji-prefixed prop/slot names sanitize when the contract is proposed (original spellings stay the figma bindings, every sanitization noted); emit no longer refuses on spelling.
  • Visible propRefs on component-ref parts — icon-toggle booleans captured on nested instances become contract props with visibleWhen, defaults recovered from dump v1.1 hidden evidence.

Changed

  • Contract-global part-name dedup with named renames (first drawn part keeps the name; collisions take a parent-derived prefix, else an ordinal suffix) and a 24-char derived-name cap.
  • Playground surface batch: captions derived from the contracts (eval-refused hardcoded counts), receipts wall dedups repeats with exact counts preserved, deliberate refusals labeled, tab rail and landing strip wrap instead of clipping, plain-words JSON errors.
  • ds.token 1.1.0: the declared size scale is live (per-size tokensByProp against existing repo tokens; md byte-identical).

Fixed

  • Canvas engine crash (undefined.name) on contracts referencing a contract-less component — now a named refusal.
  • Styles scorer compares full RGBA instead of truncating to 6-digit hex.
  • Switch canvas thumb spec carries fill/box/radius; state previews use literal node opacity (a bound 0–1 variable rendered the disabled preview at 0.5%); empty slots render empty, absent-and-named, instead of placeholder text; focus no longer renders the pressed fill (real-Chromium keyboard-focus probe pins it).
  • Figma's manifest validator rejects IP-literal dev URLs — plugin manifest fixed so the plugin loads at all.

v0.5.0 — Ground truth on screen, chrome out of the way

Choose a tag to compare

@tpitre tpitre released this 09 Jul 13:38

Seeing is believing, refereed.

For any Figma-imported contract, the playground now shows three renders side by side: the code (HTML emitter), the compiled canvas (figma engine), and Figma's OWN render of the source node fetched live from the images API — agreement you can see, divergence that names itself. The workbench also decluttered: one toolbar, a Storybook-style Controls | Receipts dock, and info popovers for the fine print. Details: CHANGELOG.md; receipts: MILESTONES.md.

v0.4.0 — The loop closes on the canvas

Choose a tag to compare

@tpitre tpitre released this 09 Jul 12:56

The designer validation loop, closed and owner-confirmed live.

Import a component from Figma or GitHub, watch the contract render as code AND as a Figma-canvas-styled variant grid (Code | Canvas | Split), then paste the emitted Figma script back into the source file: it creates its provisional variables first, builds the contract version beside the original for A/B, and zooms you to the result. Code imports now mint the same provisional token layer as Figma imports — the CBDS Button imports fully styled at the deterministic rung. Details: CHANGELOG.md; receipts: MILESTONES.md.

v0.3.0 — The degraded import stands up straight

Choose a tag to compare

@tpitre tpitre released this 09 Jul 04:00

The import ladder gets honest at every rung — and AI joins it under governance.

Degraded Figma imports now render styled: resolved values mint provisional imported.* tokens as a live layer, listed in receipts, renameable by an Opus-powered assist Worker whose every suggestion is refereed by the same schema as everything else (CORS-locked, budget-capped, kill-switched). Code imports go directory-first with traced, receipted imports and AI fetch-planning as the named next rung. A desktop Figma MCP path recovers full variable names on any plan. Plus Prism everywhere, resizable panes, and a model picker for prompt-to-contract. Details: CHANGELOG.md; receipts: MILESTONES.md.

v0.2.0 — The playground speaks designer

Choose a tag to compare

@tpitre tpitre released this 08 Jul 23:32

The playground learns to speak designer — and refusals learn to point.

A refusal now names its line, paints it, and scrolls to it on click. The
Preview grows per-prop controls: pick any state and the same emitter that
ships the reference library renders it — with honest "no visible change —
by design" notes where the canvas can't show something. A JSON | Spec toggle
renders every contract as a read-only designer spec sheet. Imports collect
in a session workspace that remembers each component's receipts and its
design↔code direction. Every gallery example teaches with a fact-checked
caption, and a help drawer with a plain-language glossary covers every way
in. Full details: CHANGELOG.md.

v0.1.0 — The contract loop, proven and public

Choose a tag to compare

@tpitre tpitre released this 08 Jul 22:46

First public release of the Design System Contracts reference implementation.

51 component contracts and 282 DTCG tokens generate a typed React library and a
native design-tool library from the same JSON, continuously verified by a
three-way differ — 56 executable checks, golden-output manifests, and
zero-mismatch round-trip receipts in both directions. Field-tested against four
design systems this project doesn't own (Shoelace, Mantine, Eventz, CBDS),
including in-place amend inside a foreign enterprise kit with every node ID
preserved. Try it without cloning: https://ds-contracts-playground.pages.dev —
Figma URL import, GitHub code import, bring-your-own tokens, and governed
prompt-to-contract, all client-side. Full history: CHANGELOG.md; dated
receipts: MILESTONES.md.