Skip to content

feat(registry): add verification record, fix registry schema drift#10

Merged
dndungu merged 1 commit into
mainfrom
wave-1-task-T-TD0.1
Jul 3, 2026
Merged

feat(registry): add verification record, fix registry schema drift#10
dndungu merged 1 commit into
mainfrom
wave-1-task-T-TD0.1

Conversation

@dndungu

@dndungu dndungu commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

The on-disk registry.json uses {schema_version, apis}, but mint's RegistryIndex JSON tags read {version, entries}. As a result FetchIndex/LoadCachedIndex parsed the real catalog into an empty index, so mint registry list/search/install silently returned zero entries against the live registry.

Changes

  • Map the RegistryIndex JSON tags to the canonical on-disk keys (schema_versionVersion, apisEntries). The in-memory field names (Version/Entries) are unchanged — this is the low-risk adapter, not a struct-shape change.
  • Add an optional Verification block (tier, verified_at, verifier_version, failure_code, notes) to RegistryEntry per ADR-179/180.
  • Add a round-trip test against the real mcp-registry/registry.json (skips when the sibling checkout is absent; set MINT_REGISTRY_FILE to force), plus an always-on golden sample covering the verification record.

Verification

  • go test ./... green (full suite).
  • Live-verified with a built binary against the real 2,582-entry registry.json served locally: origin/main → No entries found; this branch → 2,582 entries, and registry search stripe returns results.

Paired with sirerun/mcp-registry (schema + backfill of all 2,582 entries to tier: t1).

The on-disk registry.json uses {schema_version, apis} but RegistryIndex's
JSON tags read {version, entries}, so FetchIndex/LoadCachedIndex parsed the
real catalog to an empty index -- mint registry list/search/install silently
returned zero entries. Map the tags to the canonical on-disk keys so mint
parses the real shape; the in-memory Version/Entries field names are unchanged.

Add an optional Verification block (tier, verified_at, verifier_version,
failure_code, notes) to RegistryEntry per ADR-179/180, and a round-trip test
against the real mcp-registry/registry.json (skips when the sibling checkout is
absent) plus an always-on golden sample covering the verification record.
@dndungu dndungu merged commit c5266f2 into main Jul 3, 2026
3 checks passed
@dndungu dndungu deleted the wave-1-task-T-TD0.1 branch July 3, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant