Skip to content

feat(registry): #68 stage 2 — local registry store + mu-setup skill - #76

Merged
huiyu merged 1 commit into
mainfrom
feat/68-stage2-local-registry-mu-setup
Aug 24, 2026
Merged

feat(registry): #68 stage 2 — local registry store + mu-setup skill#76
huiyu merged 1 commit into
mainfrom
feat/68-stage2-local-registry-mu-setup

Conversation

@huiyu

@huiyu huiyu commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Part of #68 — implementation stage 2

Makes the case registry usable on the repository-backed local path — fully functional with no SaaS account and no database runtime (UC-C2).

  • project-registry/store.mjs — Git-reviewable local backend: readKind (absent = empty, not error), atomic writeKind, idempotent initRegistry (existing kind files kept, never overwritten — UC-C5), non-mutating registryStatus. serializeRegistryFile now validates each asset + its kind, so the store never persists garbage.
  • CLI gains init / status / read-kind / write-kind.
  • plugin/skills/mu-setup (new on-demand skill) — the discover → propose → approve → init/migrate workflow, reusing project-context for identity/capability/authorization and the project-registry CLI for the proposal + store. Idempotent, present-before-write, stores no credentials (UC-C3/C5/C6/C7). Registered per the maintenance contract: build ui map, both runtimes vendored, platform-compat roster, README(+CN), bootstrap routing + on-demand list, CONTEXT.md example.

Verification

  • npm run test:project-registry — 8 contract + 5 store tests (init idempotency, no-overwrite rerun, empty/valid, status, invalid-asset rejection)
  • test:skills / test:platforms / test:generated (13 skills) / test:release — pass

Next: stage 3 (one reference provider adapter with fake-provider tests), stage 4 (skill wiring + UC-ID traceability).

Relates to #68

Part of #68 (implementation stage 2). Makes the case registry usable on the
repository-backed local path, with no SaaS account and no database runtime.

- project-registry/store.mjs: Git-reviewable local backend — registryPath,
  readKind (absent = empty, not error), atomic writeKind, idempotent
  initRegistry (existing kind files kept, not overwritten — UC-C5), and a
  non-mutating registryStatus. serializeRegistryFile now validates every asset
  and its kind before writing, so the store never persists garbage.
- CLI gains init / status / read-kind / write-kind (repo-resolved paths).
- plugin/skills/mu-setup: the discover -> propose -> approve -> init/migrate
  workflow, reusing project-context for identity/capability/authorization and
  the project-registry CLI for proposal + store. Idempotent, present-before-
  write, stores no credentials (UC-C3/C5/C6/C7).
- Registered mu-setup as an on-demand skill: build ui map, both runtimes
  vendored, platform-compat roster, README(+CN) inventory, bootstrap routing and
  on-demand list, CONTEXT.md example.
- 5 store tests (init idempotency, no-overwrite rerun, empty/valid, status,
  invalid-asset rejection). test:project-registry now covers the directory.

Regenerated adapters (13 skills). Deferred to stage 3: a reference provider
adapter with fake-provider tests.

Relates to #68

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KwyFyRC6pepaK6DuMK7YeT
@huiyu
huiyu merged commit 14f73cc into main Aug 24, 2026
1 check passed
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