Organism · beta · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: In the CTA
Rendered by stage-finder.tsOpen example: Stage finder · Do: In the CTA Use the full-page example to follow page links.
Do: Japanese
Rendered by stage-finder.tsOpen example: Stage finder · Do: Japanese Use the full-page example to follow page links.
Don't: Presented as a score
Rendered by stage-finder.tsOpen example: Stage finder · Don't: Presented as a score Use the full-page example to follow page links.
Don't: More questions
Rendered by stage-finder.tsOpen example: Stage finder · Don't: More questions Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| Stage finder is computed by Loom's code from Loom's working model of how design-system operations grow (stageFor), not drawn by hand. | A showcase is proof only if the product's own code produced what it shows. | Automated: scripts/site/interactives/check.ts (recomputes the showcase data and fails on drift) |
| Each static instance supplies a distinct stable instanceKey; native radio groups and local IDs/references remain independent of language. Repeating identical inputs produces identical output. | Multiple examples or consumers may share a document without clearing another instance's answers or breaking its heading labels. | Automated: tests/site/native-runtime-repairs.spec.ts |
| Exactly two questions. | It stays a quick orientation; the health check is the long form. | Review: Owner |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
instanceKey | string | No | "singleton" | Stable caller-owned key: starts with a letter, then letters/digits/underscore/hyphen, at most 64 characters. Repeated static instances in one document require distinct keys; language is separate. |
lang | en | ja | No | "en" | Interface language. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | stage-finder |
| Layer | Organisms |
| Category | showcase |
| Owner | Site system lead |
| Status | beta |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/organisms/stage-finder.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Stage finder: computed by Loom's code from Loom's working model of how design-system operations grow (stageFor). |
Use when
- The closing call to action. Why: A two-question answer gives the reader a reason to book the conversation.
Do not use when
- As a scored assessment. Why: That is the health check; this is a quick orientation.
Anatomy
| Part | What it is |
|---|---|
| root | div.ix-sf |
| form | Two radio questions |
| cards | The stage card: needs and what breaks next |
| caption | A working model; headcounts are indicative |
Made of: showcase-frame, form-field, arrow-link, caption.
Used in: cta-section.
Variants
| Variant | When | Why |
|---|---|---|
| full | On its demo page and its section. | The whole experience where the claim is made. |
States
| State | Rendered or not applicable |
|---|---|
| default | Questions with no answer: no card shown |
| hover | Choice outline darkens. |
| focus-visible | The --focus ring on each radio. |
| active | Not applicable: Radios have no pressed state. |
| disabled | Not applicable: Never disabled. |
| loading | Authored stage descriptions remain readable while the optional question/result enhancement loads. |
| empty | Before an answer, a hint asks for both questions. |
| error | Every authored answer combination has a stage; caught enhancement failure retains readable stage descriptions and does not claim ready. |
| current | The selected answers are checked radios. |
| visited | Not applicable: Not a link. |
| expanded | The stage card appears below the questions. |
Tokens
| Part | Token |
|---|---|
| card.rule | --rule --ix-ok (or --ix-wait below stage 1) |
| --stage-finder-ix-ok-teal-ink | var(--teal-ink) |
| --stage-finder-ix-wait-saffron-ink | var(--saffron-ink) |
| --stage-finder-ix-broken-madder-ink | var(--madder-ink) |
| --stage-finder-ix-action-indigo-ink | var(--indigo-ink) |
| --stage-finder-ix-ink-ink | var(--ink) |
| --stage-finder-ix-ink-2-ink-2 | var(--ink-2) |
| --stage-finder-ix-line-line | var(--line) |
| --stage-finder-ix-surface-surface | var(--surface) |
| --stage-finder-padding-space-6 | var(--space-6) |
| --stage-finder-padding-space-8 | var(--space-8) |
| --stage-finder-margin-space-8 | var(--space-8) |
| --stage-finder-font-type-h3 | var(--type-h3) |
| --stage-finder-margin-space-3 | var(--space-3) |
| --stage-finder-letter-spacing-ls-h3 | var(--ls-h3) |
| --stage-finder-font-size-fs-small | var(--fs-small) |
| --stage-finder-margin-space-6 | var(--space-6) |
| --stage-finder-margin-bottom-space-4 | var(--space-4) |
| --stage-finder-gap-space-4 | var(--space-4) |
| --stage-finder-outline-focus | var(--focus) |
| --stage-finder-gap-space-5 | var(--space-5) |
| --stage-finder-border-top-rule | var(--rule) |
| --stage-finder-padding-space-5 | var(--space-5) |
| --stage-finder-font-type-strong | var(--type-strong) |
| --stage-finder-margin-space-4 | var(--space-4) |
| --stage-finder-gap-space-1 | var(--space-1) |
| --stage-finder-gap-space-3 | var(--space-3) |
| --stage-finder-gap-space-6 | var(--space-6) |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px and controls fill the row on phones. |
| wrapping | Text wraps; code panes scroll inside their own focusable region. |
| textExpansion | Japanese strings come from the i18n tables and wrap; engine output stays English. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | Inside the Showcase frame's padding, controls and caption at its foot. |
| external | Full width of its section. |
| rhythm | One showcase per section, after the section's claim (D-SITE-008). |
Motion
| Aspect | Value |
|---|---|
| None | The answer appears when both questions are answered; nothing animates. |
Runtime and reuse
stylesheet: /css/site.css. Built Site tokens, core and registered element CSS; preserve modes, focus and responsive rules.
stylesheet: /css/demos.css. Existing legacy demo styles where the rendered specimen uses them.
font: /fonts/. Self-hosted files referenced by Site @font-face, with licences; Japanese locale overrides remain applicable.
Static fallback: Original build-time specimen remains readable before loading and after chunk/initialization failure; enhancement controls retain authored hidden state.
Configured initializer: apps/showcase/site/interactives/stage-finder.ts#init. The host owns transactional static-markup restoration and runtime state.
Consumer module (imports relative to the configured source root): import { createRuntimeHost } from "./src/workflows/runtime-host"; import { SITE_RUNTIMES } from "./apps/showcase/site/runtime-registry"; const definition = SITE_RUNTIMES.find(entry => entry.binding.id === "stage-finder"); if (!definition || definition.binding.lifecycle.kind !== "managed") throw new Error("Managed runtime binding unavailable"); const host = createRuntimeHost([definition]); export function mountRuntime(container: ParentNode) { return host.mountAll(container); }After inserting the rendered markup, call mountRuntime(container) for the container holding [data-demo="stage-finder"]. Retain the returned disposal function and call it before removing, replacing or remounting, including every Storybook args render. The configured host restores captured static markup/attributes on disposal or caught load/initialization failure; retry starts a fresh managed remount.
Accessibility passport
| Aspect | Value |
|---|---|
| role | region with a heading, or a figure |
| name | Its heading or caption |
| keyboard | Tab to the controls; Space plays or pauses; arrows move the steps; End shows the last step. |
| focus | Controls in reading order; focus never moves on its own. |
| screenReader | Manual frame selection and pause announce their settled content. Explicit Play announces the final settled summary once; autoplay and system interruption/disposal stay silent. Legacy initializers outside the shared player remain explicitly unassessed. |
| contrast | Ink on surface 14:1; state dyes only as marks with words. |
| target | Controls are 44 px. |
Content
| Slot | Length | Voice |
|---|---|---|
| caption | 1 sentence | A working model; headcounts are indicative |
Good: “Our working model of how design-system operations grow. Headcounts are indicative.”
Bad: “Find your maturity score”
Japanese: i18n.ts ix.sf.*.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
63 uses across the built pages (measured by npm run site:system).
Tests
| Aspect | Value |
|---|---|
| unit | tests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns |
| visual | Not yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts |
| a11y | tests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark |
| parity | scripts/site/system/check.ts: Library examples are rendered by the same render function the site imports |
Figma
not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.