Skip to content

The Drift Log · Software inventory you can trust

From Static Registry to Executable Inventory: Ensuring Real Component Availability

16 November 2026 · 4 min read · 940 words · inference

A crystal artifact under orange probe beams inside a test rig

Turn static registry rows into executable tests so you know exactly which components truly work.

The hidden cost of a static component registry

A component registry that only stores names, versions and a short description is a claim, not an inventory. The failure mode is metadata‑only reporting. Teams trust the count printed on a dashboard. The count includes stub entries, dead code and duplicated packages. The registry never proves that a row can be imported, executed or that its contract is satisfied. When a release fails because a supposedly present library never linked, the root cause is the missing execution proof. The symptom is a sudden spike in runtime errors after a minor version bump. The underlying problem is that the registry never exercised the component.

Why metadata cannot guarantee functionality

Metadata says nothing about compile‑time compatibility, runtime behaviour, or side‑effects. A stub entry may list a component that merely re‑exports a type without any implementation. A dead entry may point to a file that was removed but whose manifest entry remained. A version bump can introduce a breaking API change that the registry does not detect because it never runs the code. The result is a false sense of completeness. A code audit that only scans the manifest will miss these defects. The audit will report “100 components present” while the actual usable set is far smaller.

Turning rows into an executable inventory

The correct posture is to treat each registry row as a test case. An executable inventory runs the component, checks its contract and records a verdict. The SHPBL certification harness defines four outcomes:

  • CERTIFIED – the artifact runs and passes all declared checks.
  • PROVISIONAL – the artifact runs, but correctness is not yet asserted.
  • INCONCLUSIVE – the harness could not exercise the input contract; this is a harness limitation, not a defect.
  • FAILED – the artifact crashed or violated its contract.

When every entry is exercised, the inventory becomes a live map of what actually works. The map can be refreshed on each CI run, keeping the count aligned with reality.

Worked example

Consider a small utility parseDate published in a monorepo. Its manifest entry looks like:

{
  "name": "parse-date",
  "version": "1.2.0",
  "main": "src/index.ts"
}

A static audit would count it as present. To make it executable, we add a test file test/parse-date.test.ts:

import { parseDate } from '../src';
const result = parseDate('2023-01-01');
if (result.getFullYear() !== 2023) {
  throw new Error('Incorrect year');
}

The harness runs the test in a sandbox, captures the exit code and logs the verdict. If the implementation is a stub that returns null, the harness records FAILED. The inventory now reflects the true state of parseDate.

Building the executable inventory into your pipeline

  1. Collect entries – enumerate the component registry using the same toolchain you use for releases. The SHPBL HTTP API (/api-access) or the typed TypeScript client (/sdk) can list every row.
  1. Generate test scaffolds – for each entry, create a minimal test that imports the component’s public entry point and invokes a representative function. If the component exports no function, a simple import‑only test suffices; the harness will still verify that the module loads without error.
  1. Run the harness – invoke the certification harness (/harness) as part of the CI job. The harness isolates each test, records the verdict and writes a summary file.
  1. Fail fast – configure the CI pipeline to treat FAILED as a hard error, PROVISIONAL as a warning, and INCONCLUSIVE as informational. This keeps the inventory honest without blocking progress on components that are still under development.
  1. Publish results – store the verdict JSON alongside the release artifacts. The published checksums (/root-of-trust) guarantee that the same inventory can be reproduced later.

By automating these steps, the component registry evolves from a passive list to an executable inventory that can be audited daily.

Conducting a code audit with an executable inventory

A code audit now consists of three phases:

  • Discovery – pull the current registry snapshot. The snapshot is model‑independent; no AI model influences the list.
  • Execution – run the harness across the snapshot. The harness does not generate code; it only computes verdicts from existing artefacts.
  • Interpretation – analyse the verdict distribution. A high proportion of FAILED entries signals stale or stub code. A surge in INCONCLUSIVE may indicate that the harness lacks a contract for a new component type; the remedy is to extend the harness, not to ignore the entries.

The audit report should list each component with its verdict, the reason for failure (exception stack trace, missing export, etc.) and a remediation suggestion. This concrete data replaces vague “count‑based health” metrics with actionable items.

SHPBL’s answer to the executable inventory problem

SHPBL provides a model‑independent library that harvests reusable capability from existing repositories. The same method powers four access doors: an MCP chatbot, a plain HTTP API, a typed TypeScript client (@shpbl/sdk) and an offline file‑based edition. All doors share a single certification harness that grades each artifact as CERTIFIED, PROVISIONAL, INCONCLUSIVE or FAILED. A free repository evaluation (/evaluation) lets you see the current state of your component registry without commitment. When you need the full gauntlet, the Practitioner tier ($39 / month) unlocks continuous execution, and the Complete Master Library ($499) gives outright ownership of the certified catalog.

What to do on Monday

Open your CI configuration. Add a step that calls the SHPBL HTTP API (/api-access) to list every component. For each entry, generate a tiny test that imports the component and, if possible, calls a representative function. Wire the test suite into the certification harness (/harness). Run the pipeline and review the verdict JSON. Flag every FAILED entry as a candidate for removal or fixing, and schedule a follow‑up for INCONCLUSIVE items. By the end of the week you will have turned a vague component count into a trustworthy executable inventory.

Keep reading

Next in the log

The Strategic Master Library · written and reviewed under the house's own epistemic rules: nothing claimed that we cannot show.