ADR-0062 — A fall-through is not a shared shape
- Status: Accepted
- Date: 2026-08-27
- Deciders: Repository owner, track 003 phase 02 (d)
- Follows: ADR-0055 (the render spec is a crosswalk, not a rival), ADR-0060 (a setting nothing has read takes the kit's shape), ADR-0061 (a block that is one of something the kit lists is a list of one)
Context
donation had no arm of its own. Its case fell through, C-style, to
paypal's:
case 'donation':
case 'paypal':
return <a href={block.location_url} …>{s.name || 'PayPal'}</a>
The phase 01 census read that as one arm and two tenants, and the crosswalk
inherited the reading. It is not one shape. paypal's field spec is two
fields — a PayPal.me URL and a button label — and the arm draws both.
donation's field spec contains neither: no location_url, no name.
So every donation block ever placed drew a button labelled "PayPal", naming a
processor its author never chose, pointing at an empty URL.
What donation does collect is a title, a description, an image, a currency,
a suggested and a minimum amount, a custom-amount toggle, a donor-message
toggle, payment processor ids, three fields of thank-you copy, an email
notification flag and a webhook URL.
The kit's donation-widget is the right crosswalk for most of that —
presets, a custom amount, a goal bar, a CTA — but it requires an href,
a checkout URL the amount is appended to. Cardsite has no such URL to give
it. The only checkout in apps/api is the plan checkout (POST /api/v1/checkout), which sells Cardsite subscriptions to signed-in users; no
route anywhere takes a donation from a visitor. payment_processors_ids is
picked in the editor and read by nothing.
Decision
Two rules, one slice.
1. A fall-through is not a shared shape. Where one case reaches a
visitor only by falling into another block's arm, the two are separated
before either migrates, and each is then decided on what its own field spec
collects. paypal becomes the plain card-link its two fields describe.
donation gets its own kind.
2. donation draws the invitation and no call to action. Title,
description, image — what the author typed — inside the block's own panel.
No amount picker, no donate button, no link. Cardsite cannot take the money,
and a control wired to nothing is worse than no control: it promises the
visitor an action the page cannot complete, and it hides the gap from
everyone looking at the page instead of the schema.
Consequences
check:block-registry: 14 → 12 by case, 71 → 73 by render spec.
check:block-model is unmoved — both descriptors were already spec, and
what they lacked was a kind and, in donation's case, an honest one.
Everything donation collects beyond the invitation reaches no surface: the
amounts, both toggles, the processors, the thank-you copy, the email flag and
the webhook. That is the same shape of finding as appointment_calendar —
an Ultimate-plan block that cannot book — and it goes to SESSION.md as a
product call, not into this slice. Building the donation checkout means a
visitor-facing payment route, a processor selection honoured at run time, and
the thank-you and webhook paths behind it; none of that is a render decision.
donation-widget has no image prop and Cardsite's block collects one, so
that joins the upstream feed as row 9.
The href binding is deleted rather than left unread. A descriptor prop that
resolves to nothing on every block is the same lie in a different file, and
check:block-model would have counted the block as fully described.
Source: docs/decisions/0062-a-fall-through-is-not-a-shared-shape.md