Skip to content
Toolkit

ADR-0071 — Extensibility is registry data and a composition root; there is no plugin

  • Status: Accepted
  • Date: 2026-08-28
  • Deciders: Repository owner, track 003 phase 05
  • Follows: ADR-0014 (a module's status is read from the service graph), ADR-0030 (identity vocabularies are generated packages, runtime data is served, Go modules are compiled and composed), ADR-0067 and ADR-0068 (a block type ships its own render and collect descriptors)

Context

The PHP system this port replaced had a plugin framework: an operator dropped a directory in and the interpreter found it. Nothing of it survived (Audit 02), but the word did — an admin page called Plugins, a nav entry, a glossary row that says plainly that "the word promises more than it delivers" and defers the renaming to this track, "which decides whether anything ever is installable".

That question is now answered by four phases of work rather than by taste. Phase 00 made every product a registry entry; phase 02 made 79 of 85 block arms render from a served descriptor; phase 03 registered a new block type in one Go file and watched it reach the palette, the settings form, the canvas and a signed-out public page with no apps/web change; phase 04 made what a block collects, and how its notification is phrased, registry data too. Separately, ADR-0014 rebuilt the Plugins page so its status comes from the services the composition root actually constructed.

So the product has two real extension seams, and neither is a plugin. One adds a thing users can make; the other switches on a subsystem this deployment runs. The word "plugin" names neither and implies a third thing — an artifact someone installs — that ADR-0030's third rule has already refused.

Decision

Cardsite has no plugin loader and will not acquire one. Extensibility is two named seams, and the word "plugin" is retired from both.

  1. Extending the product is registry data. A block type or product is a server-side registry entry — identity, field spec, render spec (ADR-0067), collect spec (ADR-0068) — served to every client with the page. Adding one is a data edit in one file in one language; no frontend deploy, no second implementation, no compiled arm. The bar is phase 03's, demonstrated on a running stack, not asserted.
  2. Extending the deployment is composition. An optional subsystem is a statically compiled service behind a narrow interface, constructed or not by the composition root (apps/api/cmd/server/plugins.go) from configuration and probed live (ADR-0014, ADR-0030 rule 3). It is switched on by an operator's environment, never installed.
  3. Nothing third-party executes. No plugin/.so, no subprocess RPC, no server-supplied JavaScript evaluated in the browser, no marketplace. A descriptor naming a kit type no kind implements is declined rather than loaded (ADR-0067) — that is the shape of every extension point here: data is accepted, code is not. The Linkbio kit is a separate published system (ADR-0031), not an in-process extension.
  4. The surface is renamed to Modules; the wire name stays. The page and its nav entry say Modules, which is what the model, the composition root and the page's own prose have called them since ADR-0014. The endpoint GET /admin-api/v1/plugins and the Plugin types either side of it do not move: a breaking API change goes under /api/v2/, never in place. This split is deliberate and recorded here so it is a decision rather than something a later reader finds and "fixes".
  5. The page is rebuilt against this, not archived. It answers a question nothing else answers — which optional subsystems this deployment actually has, and which configuration each one read — and ADR-0014 already made that answer honest. Archiving it would delete the only operator-facing view of the composition root.

Consequences

  • Phase 05's deliverable exists: "no plugin loader" was the legitimate result the charter allowed for, and it is now written down with the two seams that replace it. A future request for "a plugin" resolves to seam 1, seam 2, or a change to Cardsite reviewed as one — there is no fourth answer.
  • One PR remains in the phase: the surface rename — page heading, nav label, the /admin/modules route with /admin/plugins kept as a redirect so bookmarks survive, the glossary row (which loses its deferral), and the name assertions in scripts/check-plugin-parity.mjs and tests/e2e-live/admin-plugins.spec.ts. Phase 05 closes when it lands.
  • The glossary keeps a Module row and, for one release, a Plugin row pointing at it, because the retired word is what an operator arriving from the PHP system will search for.
  • What a would-be extension author cannot do stays explicit: ship a Go handler, ship a bundle onto a public page, or run anything of their own in this process. Everything they can do — a new block type, with its fields, its rendering, what it collects and how it notifies — is data this repository reviews and deploys.
  • ADR-0030's rule 3 stops being an internal note about Go modules and becomes the product's stated position on extensibility, which is where the pressure to add a loader will eventually arrive.

Alternatives rejected

  • Keep the word and define it. Cheapest, and the glossary row already tried it: the entry has to spend four sentences explaining that nothing is installable. A word that needs a disclaimer at every use is the wrong word.
  • A Go plugin (.so) or subprocess-RPC loader. Rejected by ADR-0030 rule 3 and by the charter's out-of-scope list, for reasons unchanged: version lock-step, no sandbox, and an operator surface that promises third-party code this project has no way to review.
  • Server-supplied JavaScript for block rendering. The render spec was deliberately built as data with compiled kinds (ADR-0055, ADR-0067). A descriptor that could carry code would undo that in one field.
  • Archive the page. It is the only view of which subsystems are live; the audit finding it was built to fix (02-D1) was operators guessing at exactly that.

Source: docs/decisions/0071-extensibility-is-registry-data-and-a-composition-root.md

Library