Skip to content
Toolkit

ADR-0063 — The object-keys binding the gap did not need

  • Status: Accepted
  • Date: 2026-08-27
  • Deciders: Repository owner, track 003 phase 02 (d)
  • Follows: ADR-0058 (a repeat counts where the block counts), ADR-0060 (a setting nothing has read takes the kit's shape), ADR-0062 (a fall-through is not a shared shape)

Context

socials has been carried since ADR-0058 as the one arm the repeat grammar deliberately did not cover. The session file put it plainly: "socials draws a row from every settings entry — an object's own keys, which ADR-0058 deliberately did not bend items[] to cover." Every subsequent slice read that sentence and moved on, and the crosswalk's props field held prose rather than bindings:

"items": "Object.entries(settings) minus color -> [{platform, href}]"

That prose describes the arm exactly:

Object.entries(s)
  .filter(([key, val]) => key !== 'color' && val)
  .map(([platform, url]) => <a href={url} title={platform}>{platform[0].toUpperCase()}</a>)

And the arm reads a shape nothing writes. The block's field spec is two fields — fColor("color", …) and fSocialsMap("socials", …) — and socials is a socials-map, which BlockSettingsForm renders in its array branch as a JSON textarea and blockDefaults seeds as []. Every writer in the repository puts the profiles under settings.socials. Nothing has ever written a flat settings.twitter.

So Object.entries(s) sees one key that is not color: socials itself, whose value is an array. Truthy, so it passes the filter. Every socials block ever placed — a free-plan, standard-category block — drew exactly one tile, titled "socials", lettered S, with href set to the stringified blob.

The premise of the gap was that this arm read an object's own keys. It read the wrong object's.

Decision

socials is an ordinary repeat, and the object-keys binding is not built.

Nothing has ever read settings.socials, so by ADR-0060 its shape is the kit's: social-icons takes items: [{ platform, href, label? }]. That is precisely what ADR-0058's grammar already reads, so the descriptor is four ordinary bindings — items[], items[].platform, items[].href, items[].label — and the render kind is one more repeat kind.

The gap closes by dissolving rather than by widening. items[] is not bent to enumerate an object's keys, and no descriptor in the crosswalk now needs it to be.

Consequences

check:block-registry: 12 → 11 by case, 73 → 74 by render spec. check:block-model is unmoved — the descriptor was already spec; what it carried was prose where bindings belong, which is exactly the condition "props are still prose" that renderFromSpec declines on.

Three things change for a visitor, and all three are the arm's defects rather than new design:

  • The profiles an author entered are drawn, one tile each, instead of one tile for the blob.
  • Each tile has an accessible name — the entry's label, else its platform. The arm put the platform in a title attribute, which is a tooltip and not a name, and left a bare capital letter as the link's only content. A row of single capitals is not navigable by anyone not looking at it.
  • An entry with no href, or with neither label nor platform, draws nothing. A tile linking nowhere is a control wired to nothing (ADR-0062), and a tile that cannot be announced is worse than absent.

The letter stays. Cardsite has no per-platform mark set, and introducing one is a design decision, not a render slice — the kit's mark()/applyBrand() and its brandStyle, size, variant and align props all have no Cardsite setting behind them. color does, and remains the kind's presentation.

This is the fourth arm in phase 02 (d) found drawing a shape its editor never wrote (instagram_feed, youtube_feed, social_proof, now socials), and the widest-reaching: the others are Ultimate- or Pro-plan blocks, this one ships on the free plan. The unreachable-settings sweep SESSION.md carries is the place that gets counted properly, once 02 (d) closes.

Source: docs/decisions/0063-the-object-keys-binding-the-gap-did-not-need.md

Library