ADR-0035: The authoring item that was a deletion — a queue ordered by blast radius put a zero at the front
- Status: Accepted
- Date: 2026-08-21
- Deciders: Renaissance workstream 002, phase 01 tail (
Form/FormField, the first authoring item after the conversion list emptied); applies ADR-0019, ADR-0021, ADR-0023, ADR-0026, ADR-0027
Context
Phase 02 ended with Card: twenty components converted, check:studio-parity
reporting 0 awaiting conversion and 12 awaiting authoring. The queue that
remains is the other direction — components the app has and Studio lacks,
which the workstream builds in studio/ and then converts onto. Form and
FormField were at the front of it, and the ledger says why:
"reason": "002 phase 01 authoring queue, ordered by blast radius"
They are at the front because their blast radius is the smallest. The census this item began with found out how small.
The census: zero
apps/web/src/components/ui/Form.tsx is 43 lines exporting two components.
Across the whole repository — apps/web, studio, the demos, the E2E specs —
there are no uses of either. Not a JSX element, not an import, not a type
reference, not a namespace import that could reach them, not a string in a
Playwright selector:
| Probe | Result |
|---|---|
<Form / <FormField in any .tsx/.jsx | 0 |
import { … Form … } from the components/ui barrel | 0 (all 21 barrel consumers read individually) |
import * as reaching components/ui | 0 |
FormProps / FormFieldProps referenced anywhere | 0 outside the file and its barrel line |
Form / FormField / .req in the 28 Playwright specs under apps/web/tests/ | 0 |
the string 'Form' anywhere (a registry could name a component) | 0 |
Git history closes it. <FormField appears in no commit in this
repository's history (git log -G, which matches the text anywhere in a
diff), and neither does any <Form JSX tag: -G'<Form' matches six commits
and all six are TypeScript type arguments — useState<FormState>,
useState<FormData> — not elements. ui/Form.tsx has not been edited since
the commit that created it (0d9130a, "Extract cardsite-081226.zip to the
repository root", 2026-08-12); its blob is byte-identical at every commit
that contains it. The file did not fall out of use. It arrived dead, and nine
days of a design-system workstream scheduled it for authoring without anyone
asking whether it had a caller.
The near-miss is worth recording: BlockSettingsForm (a default export in
components/blocks/, rendering a lowercase <form>) shares a prefix with both
names and is unrelated to either. A census that greps Form rather than
<Form finds it and concludes the opposite.
FormField was already Field's job, done worse
ADR-0027's test for whether two components are one is whether either could stand in for the other at the other's call sites. There are no call sites here, so the test is run on the contracts:
app FormField | Studio Field | |
|---|---|---|
| Label element | <span class="field-label"> | <label htmlFor={id}> |
Control gets an id | no | yes, generated or htmlFor |
| Label associated with control | never | htmlFor → id |
| Message wired to control | no | aria-describedby → #{id}-help |
| Invalid state announced | no | aria-invalid |
| Error announced | role="alert" | role="alert" + drawn warning glyph |
| Required marker | <span class="req"> · required</span> | none |
Six of the seven rows go one way. FormField did not render a <label> at
all, and handed its children no id, so a FormField label named nothing and
its hint reached no control — it was a component that could only ever produce
an unlabelled field, which is the defect every conversion in this workstream
has found and fixed. 46 files already import Field from @studio/react.
The app did not migrate off FormField; it was built past.
The seventh row is the one thing FormField had that Field does not, and it
is examined below rather than ported.
Form's job is real, and Studio cannot hold it yet
Form was <form className={stack ${className}}> — a form that stacks its
fields. That job exists in the app 50 times, as hand-rolled lowercase
<form> elements: 15 pass exactly className="stack", 2 pass a stack-*
step, and the rest pass a row utility or nothing at all. So the tempting move
is to author Form into Studio now and pick those 50 up later.
It does not survive the layer check (Method step 4). Studio's counterpart to
.stack is .lk-stack, and .lk-stack is defined in 30-primitives.css,
which the component layer's two-file allowlist — 50-components.css and
55-components-extended.css — never reads. It is absent from
studio.components.css, which is the sheet apps/web/src/index.css imports.
A Studio Form rendering <form class="lk-stack"> would render unstyled in
this app: no display: flex, no flex-direction: column, no gap. Fifteen
forms would lose their field spacing on the commit that "modernised" them.
That is ADR-0023's trap exactly — a class the markup names and the layer does
not say — and it is its third instance, after .lk-seg (ADR-0027) and
.lk-btn--danger (ADR-0033). The first two were found by enumeration before
they shipped. This one would have been found the same way, one step later and
with a component already written.
Decision
Form and FormField are retired, not authored. ui/Form.tsx is
archived to .archives/removal-safe/, its barrel line is replaced by the conversion
note every retired component in components/ui/index.ts carries, and both
ledger dispositions are deleted — with no source knowing the names, the gate's
S2 rule requires their removal.
The rule this settles, because seven planned authoring rows remain:
An authoring row is a claim that the app has a component Studio lacks. Run the call-site census before the component is designed, not after. A row with zero call sites is not a small authoring job — it is a deletion, and authoring it would add an export to the design system that no consumer asked for.
This is ADR-0019 read from its own premise. That ADR governs what an authored
component owes the one it replaces; where there is nothing to replace, its
whole apparatus — superset behaviour, raised accessibility contract, the
differences written down — has no subject. Building anyway produces precisely
the artefact this repository has three of on record in AUDITS-081226.md: a
shipped subsystem with no caller.
Two things are recorded rather than built, per the routine's no-adjacent- cleanup rule:
- Studio has no required-marker idiom. Not a prop, not a rule, not a line
in DESIGN.md's field anatomy (
label[for]→ control → helper/error). The app has 52requiredattributes on controls inpages/, and the only thing that ever drew a marker for them was this component, which none of them used.requiredis therefore dropped rather than ported — ADR-0026's precedent, a narrowing with a reason beats a superset with a surprise — and the gap is an open item onField, not a marker invented here for a component being deleted. - Promoting
.stackis phase-03 work. The 50 hand-rolled<form>s and the 167.stacksites are the CSS-only-pattern promotion phase 03 already exists for, and they need.lk-stackto reach the component layer first. Recorded on the session file's open-items ledger.
Consequences
- The scoreboard moves without a component being written: 12 app-side and
12 awaiting authoring → 10 and 10; 0 awaiting conversion is unchanged.
Three of the ten carry a
not-plannedReact disposition already —SelectandSwitch(which convert ontoNativeSelect/SelectBoxandToggle) andDisplayRulesEditor(product domain, stays app-side) — so seven rows are actually planned, and the gate's "10 awaiting authoring" overstates the work by three. The gate counts names, which is all it can read from source; it has never claimed otherwise (ADR-0018). .field-label .reqis deleted (ADR-0021).ui/Form.tsxwas its only emitter in the app, and the last one anywhere was the Input card on002-renaissance/preview/current-design.html, retired on this commit — the Badge and Card precedent. The sweep found the marker had two spellings and no agreement: the component drew· required, the preview page drew*..field(7 emitters),.field-label(1 —Select.tsx, now the sole one, whose conversion retires it, as ADR-0032 predicted),.hint(1,Select.tsx;.is-errorhas 14 more emitters, all.alert is-error) and.stack(167classNamepositions in 73 files) all stay.- The remaining seven planned rows were re-censused immediately, and the
new rule caught two more on its first application.
PermissionGridhas zero JSX uses anywhere.DiffViewerhas zero production uses: its only<DiffViewerin the tree is a Storybook story (ui/OverlaysAndData.stories.tsx:214), and a story is not a consumer — theButtonandCardregister rows already set stories aside when counting ("287 of them across 71 files once the four in its own stories are set aside"). Both are recorded as open items and neither is swept in here: a second component's disposition is not this item's to decide. That leaves five components genuinely to author —TimezonePicker(1 production use),MultiSelect(2),CodeEditor(4),DateTimePicker(5),ColorPicker(22). The row this ADR is about was not an isolated stale entry; it was the first of three. - There is no new test, deliberately. Every conversion in this workstream
carries a behavioural test because behaviour moved from one component to
another. Nothing moves here: no consumer changes, no rendered markup
changes, and the only runtime effect is a barrel that exports two fewer
names. The assertions available — that the barrel no longer exports
Form, that.reqhas no rule — restate the diff rather than constrain it, which is the vacuityCard.test.tsxandTextarea.test.tsxboth had to be rewritten to avoid. The verification is the census above,web:buildcompiling against the shortened barrel, andcheck:studio-parity. - The i18n ratchet falls by one, and it is the first movement here that is
neither a relocation nor an extraction.
Form.tsxcarried exactly one counted position — the JsxText· required; its{label},{hint}and{error}were JsxExpressions and were never counted. Every conversion before this moved English out of the counted tree and intostudio/packages/react/**, where the counter cannot follow it (open item 8). This string went nowhere: no user ever read it, because no call site ever mounted the component. 1983 → 1982, confirmed by isolation, with the arithmetic inscripts/i18n-baseline.json. - The queue's ordering principle is intact and was the thing that worked. "Ordered by blast radius" put the smallest item first, and the smallest item turned out to be empty. Ordering by cost surfaced a dead component faster than reading the code would have — the row was right, and what it was right about was not what it claimed.
Verification
npm run verify exits 0 — Studio build and lint, nine parity gates, 421 unit
tests across 27 files, and the web build compiling against a components/ui
barrel two exports shorter. apps/api is untouched, so its Go gate does not
apply.
The census was run four ways and agreed each time: a subagent's exhaustive
sweep, an independent repeat with different patterns, git log -G over all
history, and an adversarial review whose brief was to falsify the
zero-consumer finding. It could not — it probed dynamic import(),
React.lazy, require, namespace imports, string-keyed registries, .mdx,
and all 28 Playwright specs, and found nothing.
A census is a measurement, and this one needed three corrections before it could be trusted — which is the reason to record them rather than the diff they produced:
- A
<Name[[:space:]/>]matcher cannot see a JSX tag that ends its line, and it reported seven of the twelve app-side components as dead.<Name\bfixed it. - The E2E probe named
apps/web/e2e, which does not exist — the specs are underapps/web/tests/. A probe over a missing path returns zero for free, which is the same vacuityCard.test.tsxandTextarea.test.tsxwere rewritten to remove. Re-run against the real path, the answer held. <Formwithout a trailing space matchesuseState<FormState>, so the history claim had to be stated precisely or not at all.
Each was caught by re-deriving a number rather than by re-reading a sentence,
and the third and fourth findings of the review — that the remaining queue is
seven planned rows and not eight, and that DiffViewer is story-only — were
found the same way.
Source: docs/decisions/0035-the-authoring-item-that-was-a-deletion.md