A tool has to be registered in three places
A directory on disk is not a tool the site can serve. Three separate registrations have to agree before a tool works.
The metadata and component live together in components/tools/<id>: meta.json plus a .tsx file. The id in meta.json must match the directory name.
The tool must appear in lib/tools/registry.ts, in the TOOLS array. An import alone is not enough. If the entry is missing, the tool does not show up in listings or search.
The tool must also be mapped in app/tools/[id]/page.tsx, in COMPONENTS. Without that entry the detail page returns 404.
Each registration is one line, and the failure of each is quiet. We shipped a tool whose import was added to registry.ts but whose array entry never landed: the edit used a string anchor that no longer matched, so the replacement did nothing. It compiled. It read correctly at a glance. It 404ed in production.
The first version of the check only validated meta.json, which is why it passed. Valid metadata says nothing about whether the runtime can find the tool.
scripts/validate-registry.mjs now parses the directory tree, registry.ts and page.tsx, and compares the three sets. It reports an import that never reaches the array, a directory with no array entry, a directory with no component mapping, and an array identifier that was never imported.
It also enforces the metadata contract: type is compute, file-workflow or game; category is one of the fixed keys; featureFlag is unique across the registry; a file-workflow declares accept, a non-empty capabilities list and a studioKind.
The check is npm run registry in CI, and part of npm run verify. The field list is not the point. The point is that "it compiles" and "it can be reached" are different claims, and the type checker only tests the first.