Skip to content
Toolkit

ADR-0056 — Block parity is a case or the render spec

  • Status: Accepted
  • Date: 2026-08-24
  • Deciders: Repository owner, track 003 phase 02 (c)
  • Follows: ADR-0055 (the render spec is a crosswalk, not a rival)

Context

check:block-registry has, since the shipped-but-dead audit, enforced one rule: every registered biolink block_type has a hand-written case in BiolinkBlockRenderer.tsx. That rule closed a real bug — seven types rendered blank because nothing in the build noticed a missing arm.

Phase 02 (b) shipped packages/block-model, which dispositions every arm spec | server-url | bespoke (ADR-0055). Phase 02 (d) migrates the spec/server-url arms: the kit renders them from the descriptor, so their case is deleted. Against the old gate the first such deletion goes red — a registered type with no case — even though the arm renders fine. The gate would punish exactly the migration the phase exists to do.

Decision

The parity a registered type must meet is a case OR the render spec, and the descriptor's disposition decides which. check:block-registry reads blocks.json and enforces two rules over the renderer:

  1. R1 — rendered by case or spec. A registered type passes if it has a case, or its disposition is spec/server-url (the kit renders it from the crosswalk). A type with neither is the original blank-render bug.
  2. R2 — bespoke keeps its case. A bespoke arm has no render-spec fallback (no kit counterpart, a security policy, or real client logic — ADR-0055), so it must keep its case. R1 alone would let a mis-marked arm drop its case silently; R2 reads the disposition from the other direction and forbids it.

The migration contract for phase (d) falls out of this: to migrate a declarative arm, delete its case; the gate stays green iff its descriptor is spec/server-url, and the scoreboard moves one arm from "by case" to "by render spec". No flag to flip, no second edit to forget. Descriptor coherence (registered ⇔ described, kit types, migration props) stays the separate check:block-model gate; this one is the renderer axis.

Consequences

  • Phase (d) migrations are revertible one-arm slices that keep both gates green; a half-done migration (case dropped, disposition still bespoke) fails R1/R2 loudly.
  • The scoreboard reads N by case, M by render spec from source, so it cannot drift from the renderer — like every parity line before it.
  • Marking an arm spec/server-url before the kit actually renders it would let its case be dropped wrongly; that risk lives in the disposition itself and is guarded by check:block-model's kit-type coherence, not here.

Source: docs/decisions/0056-block-parity-is-case-or-render-spec.md

Library