Skip to content

chore(#1301): decide the root .claude-plugin/plugin.json and memory/ — second manifest kept in sync by hand since ./plugin ships - #1321

Merged
admarble merged 6 commits into
mainfrom
feature/1301-chore-plugin-decide-the-root-claude-plugin-plugin-
Oct 5, 2026
Merged

admarble merged 6 commits into
mainfrom
feature/1301-chore-plugin-decide-the-root-claude-plugin-plugin-

Conversation

@admarble

@admarble admarble commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • AC-1: The root manifest is retired. A clean-config claude plugin marketplace add ./ plus claude plugin install sequant@sequant (Claude Code 2.1.289) succeeds the same way with the root file present (origin/main) and absent (HEAD). Both install 2.19.0 into the cache and validate. The results of every consumer check are in the issue comment.

  • AC-2 / AC-5: These now read plugin/.claude-plugin/plugin.json:

    • /release (validate, Step 4.5 bump, Step 6 git add, summary line), synced to all 3 skill copies
    • scripts/release.sh (root sed block removed)
    • scripts/prepare-marketplace.ts
    • src/lib/plugin-version-sync.ts, whose separate second check of the plugin/ copy is gone
    • the ci.yml plugin job, including the negative test's .bak backup and restore
    • plugin-install-test.yml

    This fixes a real /release bug: Step 4.5 used to bump and stage only the root file, which nothing installs. The AC-2 grep now matches only:

    • history: ADRs, the graph docs, hook-corpus
    • the plugin-cache-relative path in pre-tool.sh and its staleness test
    • two prepare-marketplace log lines that name the built package's own layout
    • the new test files
  • AC-3: plugin-install-test.yml now triggers on templates/memory/** instead of memory/** (both push and pull_request). Root memory/ stays.

  • AC-4 (derived): a new gate test, __tests__/root-plugin-manifest-retired.test.ts. It calls checkVersionSync(REPO_ROOT) and scans the 5 tool files plus the 3 release skill copies for any root-manifest path, written as a string or built with join().

  • Docs: docs/internal/plugin-updates.md, docs/internal/release-checklist.md, a dated Update (#1301) note in ADR 0008, and a CHANGELOG entry under Fixed.

AC Source Status Evidence
AC-1 Original ✅ issue comment 5997465390; root file git rm'd
AC-2 Original ✅ grep above; release/SKILL.md:126,285-295,537,683 ×3 copies, ci.yml:217-326, plugin-install-test.yml:43-49,180
AC-3 Original ✅ plugin-install-test.yml:11,22
AC-4 Derived ✅ __tests__/root-plugin-manifest-retired.test.ts
AC-5 Derived ✅ /release Step 4.5 and Step 6 git add

Checks:

  • npm run build ✅, npm run lint ✅, lint:skill-sync ✅ (48 synced)
  • npm test: 372 files and 9017 tests passed, plus 1 expected fail and 3 skipped. That covers the changed source files: plugin-version-sync.test.ts was rewritten for the single path, and the release-validate test was retargeted.
  • bash -n and shellcheck on release.sh ✅
  • prepare-marketplace builds and its --validate-only passes with the root file deleted.
  • No CLI option interfaces changed.

Quality Plan Alignment:

  • Mirrors: synced with sync:skills.
  • CI negative test: it backs up and restores the plugin/ copy, and the restore still runs when the test fails.
  • sed -i '' in release.sh is unchanged.

Follow-up: plugin-version-sync.ts still has no production callers (Open Question 2). It was retargeted here, but whether to delete it or wire it in is still open — dropped: out of scope per spec, needs a filed issue.

Mutation-verified: AC-4 — restored a root .claude-plugin/plugin.json reader at the ci.yml negative-test cp line; __tests__/root-plugin-manifest-retired.test.ts > root plugin manifest retired (#1301) > no tooling reader targets the root manifest failed; restored.
Mutation-verified: AC-4 — restored the root .claude-plugin/plugin.json file; __tests__/root-plugin-manifest-retired.test.ts > root plugin manifest retired (#1301) > the root manifest is gone and version sync reads plugin/ failed; restored. A third probe, switching plugin-version-sync.ts back to a root join(), failed both tests.

Runner note: the PR body's marker was truncated mid-JSON when this body was assembled (#1311 class). The unclosed comment also hid Fixes #1301. The two markers above were rebuilt from the prose records, with the same mutations and the same test names.

Fixes #1301

QA verdict: AC_MET_BUT_NOT_A_PLUS — acceptance criteria met, but not A+. The run broke to this PR for review rather than entering the quality loop; see the QA review comment for improvement notes.


🤖 Generated by sequant run

…laude-plugin/plugin.json

Entire-Checkpoint: 34f773369400
…/ copy; memory filter tracks templates/memory

Entire-Checkpoint: 63d4c36c07c5
Entire-Checkpoint: 9cd81385c307
@admarble
admarble merged commit ebb5ca5 into main Oct 5, 2026
11 checks passed
@admarble
admarble deleted the feature/1301-chore-plugin-decide-the-root-claude-plugin-plugin- branch October 5, 2026 19:01
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.

chore(plugin): decide the root .claude-plugin/plugin.json and memory/ — second manifest kept in sync by hand since ./plugin ships

1 participant