Skip to content

[PLUG-REG-003] fix(registry): bind cached metadata to repository identity #50

Closed

Description

@Xuepoo

Priority: P2 | Area: plugins | Labels: fix, P2, area:plugins | Milestone: v0.1.0 | RFC: not identified | Task: unassigned (review-only; CarryCtx not used)

PLUG-REG-003 at 95bb0bf: scripts/registry-lib.ts:1402-1409 retains metadata by ID alone; scripts/sync-metadata.ts:281-283,294-335 preserves it on refresh failures. An entry migrated to another repository can keep the old repository's version/license/description indefinitely, implying incorrect provenance. This is source-confirmed, not a network reproduction.

Acceptance: key cached data to normalized source identity, invalidating it on migration or explicitly separating stale provenance; keep equivalent URL spellings stable. Extend tests/registry.test.ts:1006-1030 with pure generation/failed-refresh cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:pluginsfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions