Repository navigation
Description
Tier: judgment Found: 2026-10-01, checking the plugin ahead of directory resubmission (the Console form we submitted through on 2026-08-30 is retired).
Problem. The plugin is the whole dev repo: .claude-plugin/marketplace.json has "source": "./".
- Every install and update fetches about 700 MB that nothing uses. Claude Code runs the dependency install "only when the plugin's root directory contains both a
package.jsonand a supported lockfile", asnpm ci --ignore-scriptswith dev deps included, and "you can't turn the automatic install off. No setting or environment variable disables it" (loading docs).- Measured 2026-10-01: a fresh 2.18.0 install wrote a 703 MB
node_modules. A long-time user's cache held 638 MB (2.17.0) plus 688 MB (2.18.0). That install completed; the packages missing against the lockfile are optional ones. - Nothing reads it. The hooks are shell, the MCP server arrives through
npx sequant@<version>(fix(mcp): plugin MCP server dies with CONNECTION_CLOSED when the open project has an older sequant in node_modules — npx ignores the pin and runs the local copy #1084), and nothing inskills/,hooks/or.mcp.jsonreferencesnode_modules,dist/,scripts/,bin/orpackage.json.
- Measured 2026-10-01: a fresh 2.18.0 install wrote a 703 MB
- Directory review would hold it (pre-submission checklist):
- 1,079 files, against a limit of 512.
- 6 non-image files over 256 KiB.
- "Dependencies install from a lockfile".
- 4 tracked symlinks.
- Shipped content has drifted from its sources.
- Root
hooks/is a hand-maintained copy thatscripts/sync-hooks.shdoesn't cover. It already lackstemplates/hooks/post-tool.sh's relay-check and coverage blocks. - Root
memory/constitution.md, which/sequant:setupcopies into user projects (skills/setup/SKILL.md:332), is this repo's own constitution, not the template. It differs fromtemplates/memory/constitution.mdby a sequant-specific row (feat(spec): Design Review stops on recurrence and lists producers; spec can halt before exec when the AC's lever is wrong #1250).
- Root
Upstream offers no escape hatch (verified in the marketplace reference and the loading docs):
- There is no exclude or ignore field.
git-subdiris for "some other repository"; a same-repo subfolder uses a relative path.sparsePathsonly trims the user's marketplace clone.- Moving
package.jsonwould break the CLI.
So the layout is the lever.
Design history. source: "./" dates from the first plugin commit (ba84547, #185). #476 confirmed it on layout grounds only. #988 picked "(a) keep ./" over "(b) point source at the prepared dist directory" because (a) was smaller. Install size was never weighed.
Decision
"source": "./plugin": a committed folder holding .claude-plugin/plugin.json, skills/, hooks/ (with hooks.json), .mcp.json, memory/constitution.md, README.md and LICENSE, and no package.json.
- Identity is unchanged. The install id is
<entry name>@<marketplace name>, sosequant@sequantsurvives the move. - Not symlinks. The loader rejects a "symlink that leads outside the plugin", so the folder holds real files.
- Generated, not hand-copied.
plugin/hooks/comes fromtemplates/hooks/,plugin/memory/fromtemplates/memory/, andplugin/skills/fromtemplates/skills/(rootskills/is identical today). - Root copies. The root
memory/constitution.mdstays as this repo's own constitution. The root.mcp.jsonstays, because it is also this repo's project MCP config. Rootskills/andhooks/are retired once nothing reads them. scripts/prepare-marketplace.tsis not a usable base. Its dist output has nohooks.json(no hooks would register), nomemory/, and a flat.mcp.jsonshape. Retire it, or rebuild it to emitplugin/.
AC
- AC-1:
marketplace.jsonlists"source": "./plugin", and installing from the marketplace creates nonode_modulesin the plugin cache. Evidence: a gate test inplugin-install-test.ymlthat installs into an isolatedCLAUDE_CONFIG_DIR+CLAUDE_CODE_PLUGIN_CACHE_DIRand asserts<cache>/sequant/sequant/*/node_modulesis absent, mutation-verified by addingpackage.json+package-lock.jsontoplugin/ - AC-2:
plugin/has ≤ 512 files, no non-image file over 256 KiB, and no symlinks,.DS_StoreorThumbs.db. Evidence: a gate test inplugin-install-test.ymlthat counts and statsplugin/, mutation-verified by adding a 300 KiB text file - AC-3:
plugin/hooks/*.sh,plugin/skills/**andplugin/memory/constitution.mdare byte-identical to theirtemplates/sources, and the sync script regenerates them. Evidence: a gate test in the hook-sync / skill-sync suite, mutation-verified by editing one line ofplugin/hooks/post-tool.sh - AC-9: Owner decision 2026-10-01: before
plugin/memory/constitution.mdis generated,templates/memory/constitution.mdgains the producer-parity row that only the root copy has today ("One producer per artifact; a second producer needs a parity test on every field and a recorded reason", feat(spec): Design Review stops on recurrence and lists producers; spec can halt before exec when the AC's lever is wrong #1250), and the DoD/drift checks pass with it. Evidence:diff <(grep -n 'One producer per artifact' memory/constitution.md | cut -d: -f2-) <(grep -n 'One producer per artifact' templates/memory/constitution.md | cut -d: -f2-)is empty, plusnpx vitest run scripts/check-constitution-dod.test.ts - AC-4:
plugin/README.md(≥ 40 words outside code blocks) andplugin/LICENSEexist. The README discloses everything the plugin runs, sends or fetches:npx sequant@<version>from npm, thegit/ghcalls in hooks and skills, the opt-inCLAUDE_HOOKS_WEBHOOK_URLcurl, and the files it writes. Evidence:test -f plugin/LICENSE, plus QA checks the disclosure list againstplugin/hooks/*.shandplugin/.mcp.json - AC-5: Existing users upgrade in place. Going from 2.18.0 to the release carrying this change with
claude plugin update sequant@sequantkeeps the id, and skills, hooks and the MCP server load. Evidence: a CI step that installs 2.18.0 from its tag, updates, and runsclaude plugin details sequant - AC-6: Release and pin tooling follows the new folder:
release.sh,src/lib/plugin-version-sync.ts,scripts/plugin-mcp-pin.test.ts(it hard-codes root.mcp.jsonat:69),scripts/generate-mcp-launch-inline.mjs,check-skill-sync.ts,lint-skill-calls.ts, the.gitignore:38-40bare.mcp.jsonpattern (it would swallowplugin/.mcp.json), andpackage.jsonfiles. Evidence:npm testandnpm run lint:skill-sync && npm run lint:skill-callspass, and a dry run of the release version stamp updatesplugin/.claude-plugin/plugin.jsonandplugin/.mcp.json - AC-7:
claude plugin validate --strictpasses onplugin/and on the marketplace. Evidence:claude plugin validate --strict ./plugin && claude plugin validate --strict .in CI - AC-8: (human-required) The developer portal's Validate at claude.ai/directory/manage, run on
sequant-io/sequantfolderplugin, reports no Blocking findings. The PR lists each remaining Policy hold with a one-line reason. Expected holds: "Scripts the validator couldn't follow" for the hook scripts (the subfolder rule), "MCP server command wasn't read" (thenode -elauncher), and "Runs a pinned npx package". Evidence: the portal findings pasted in the PR body by the owner (needs a claude.ai login) - AC-10: Owner decision 2026-10-01, reversing fix(mcp): plugin MCP server dies with CONNECTION_CLOSED when the open project has an older sequant in node_modules — npx ignores the pin and runs the local copy #1084 AC-2 for the plugin copy only:
plugin/.mcp.jsonrunsnode ${CLAUDE_PLUGIN_ROOT}/mcp-launch.mjs sequant@<version>, withplugin/mcp-launch.mjsbyte-identical toscripts/mcp-launch.mjs(synced bynpm run mcp-launch:inline). Root.mcp.jsonandtemplates/mcp.jsonstay inline. Reason: the developer portal blocks v2.18.0 with "MCP server config couldn't be fully checked" (the inline command has over 1,024 parts), and the inline form existed only because root.mcp.jsondoubled as this repo's project config. Evidence:npx vitest run scripts/plugin-mcp-pin.test.ts(the "fix(plugin): ship a slim ./plugin folder — the repo-root plugin pulls ~700 MB of dev dependencies into every install and fails directory review limits #1265: shipped plugin .mcp.json runs the launcher file" block), mutation-verified by restoring the inline args inplugin/.mcp.json
Non-Goals
- Removing the
npxMCP launcher or bundling the server (fix(mcp): plugin MCP server dies with CONNECTION_CLOSED when the open project has an older sequant in node_modules — npx ignores the pin and runs the local copy #1084's design stands; the holds are reviewer-read, not rejections). - Rewriting hook scripts solely to avoid the subfolder hold. Decide that after AC-8 shows the actual findings.
~/.claude/plugins/marketplaces/sequant/stays a full clone of the repo (about 20 MB). That's upstream behaviour for a same-repo marketplace.- The resubmission itself (owner checklist below).
Owner checklist (after merge + release)
- Withdraw the 2026-08-30 submission at platform.claude.com/plugins/submissions (no Withdraw button → email [email protected]). Until then the portal can refuse the repo with "Already submitted by another organization".
- Resubmit at claude.ai/directory/manage → Submit new → Plugin bundle → repo
sequant-io/sequant, folderplugin.
Graph metadata
- Blocked by: fix(docs): the documented plugin install command has never worked — 'sequant@sequant-io/sequant' names a marketplace that doesn't exist #1263 (AC-1 reuses its README-install CI step), fix(hooks): post-tool hook downloads and runs the latest prettier via npx in every project that doesn't have it #1264 (its hook fix must be in
templates/hooks/beforeplugin/hooks/is generated from it)
May touch
- new
plugin/tree;.claude-plugin/marketplace.json; rootskills/,hooks/(retired) scripts/sync-hooks.sh,scripts/check-skill-sync.ts,scripts/lint-skill-calls.ts,scripts/prepare-marketplace.ts,scripts/release.sh,scripts/plugin-mcp-pin.test.ts,scripts/generate-mcp-launch-inline.mjs,src/lib/plugin-version-sync.ts.github/workflows/plugin-install-test.yml,.gitignore,package.jsonskills/setup/SKILL.mdandskills/exec/SKILL.md${CLAUDE_PLUGIN_ROOT}paths, if the layout underplugin/changes them
Activity
admarble commentedon Oct 1, 2026
Run context (2026-10-01). Read before exec.
npm testin exec. Run only the test files your change touches, plus every test file that names a path you move:git grep -l <path> -- '*.test.ts'. CI runs the full suite on the PR.plugin/hooks/fromtemplates/hooks/after fix(hooks): post-tool hook downloads and runs the latest prettier via npx in every project that doesn't have it #1264 lands, or the regenerated hook still carriesnpx prettier../plugindecision against the hook scripts' use of${CLAUDE_PLUGIN_ROOT}and other variables (the subfolder "Scripts the validator couldn't follow" hold). That hold is expected and accepted. It's not a reason to pick the separate-repo option.admarble commentedon Oct 1, 2026
Complexity: Standard (8 ACs, 8 directories). AC quality check: all 8 pass lint. Scope verdict: SCOPE_SPLIT_RECOMMENDED, overridden to stay one issue — all 8 AC gate one atomic decision (commit a
plugin/folder as the marketplacesource), and splitting would strand AC-7's validator gate from AC-3/AC-6's prerequisite tooling.Blocked by #1263 and #1264 (both OPEN) — do not start exec until they merge.
Plan: (1) scaffold
plugin/+ extendsync-hooks.sh/check-skill-sync.tsto generate it fromtemplates/; (2) flipmarketplace.json'ssourceto./pluginand fix the one genuinely hardcoded path inplugin-mcp-pin.test.ts(#1084block, not the#988block — that one already resolves dynamically) plusrelease.sh's version-stamp coverage; (3) wire theplugin-install-test.ymlgates for AC-1/2/5/7, and defer deleting roothooks//skills/to a follow-up PR so the revert path stays one line.Design note: this is a third leg of the existing
templates/→ mirror pattern (already repatched in #645, #738) — in-class, not a fresh recurrence. One live gap found en route:memory/constitution.mdvstemplates/memory/constitution.mdalready disagree by the #1250 producer-parity row; recommend backporting it before it ships asplugin/memory/constitution.md(see Open Questions in the full plan).ADR required:
docs/adr/0006-slim-plugin-folder.md, recording the three options in the issue's own Decision section.Recommended:
exec → qa, quality loop enabled, notestgen(every AC already names its exact gate-test target).admarble commentedon Oct 1, 2026
QA Review for Issue #1265
Reviewed
feature/1265-…atb1504df4(8 commits, 0 behindorigin/main, no PR opened yet, so CI has not run).AC Coverage
marketplace.jsonsource is./plugin;plugin/has nopackage.json. The gate step inplugin-install-test.ymlis there but CI hasn't run (no PR). NoSEQUANT_MUTATIONmarker yet..DS_Store/Thumbs.db. The gate step is wired. No mutation marker yet.plugin/hooks/*.shis byte-gated byhook-sync.test.ts. Mutation-checked: appending a line toplugin/hooks/post-tool.shfailed exactly that case.plugin/skills/**is gated bylint:skill-sync.plugin/memory/constitution.mdhas no gate and no generator. Appending a line to it lefthook-sync.test.ts,check-constitution-dod.test.tsandlint:skill-syncall green, and neithersync-hooks.shnorcheck-skill-sync.ts --fixregenerates it. It is byte-identical today, but only by hand.diffcommand is empty andcheck-constitution-dod.test.tspasses.plugin/LICENSEexists and the README has ≥ 40 words. The disclosure list is incomplete or wrong againstplugin/hooks/*.sh: (1) it omits thatpost-tool.shruns the project's localnode_modules/.bin/prettieron edited files, on by default (around :227); (2) it omits the opt-inCLAUDE_HOOKS_SMART_TESTS=true→npm test(:324/:371); (3) it says logs go to~/.sequant/logs/, but under the pluginpost-tool.sh:68-69writes to$CLAUDE_PLUGIN_DATA/logsfirst, with$TMPDIRas the fallback (lock files go there too); (4) it callsmemory/constitution.md"this repository's own project constitution", but it is thetemplates/copy.upgrade-testjob can't pass as written. It doesgit worktree add "$CLONE_DIR" v2.18.0, thenrm -rf "$CLONE_DIR", thengit worktree add "$CLONE_DIR" HEAD. Git refuses the second add:fatal: '<dir>' is a missing but already registered worktree(exit 128, reproduced locally). Usegit worktree remove --force/git worktree prune, or a fresh path. Two smaller points: the skill-load check only warns when it fails, and nothing checks that the MCP server loads, though the AC requires it.release.sh(plugin.json stamp),plugin-mcp-pin.test.ts(resolves the path fromsource),check-skill-sync.ts,lint-skill-calls.ts, and the.gitignoreanchor/.mcp.json. Not touched:src/lib/plugin-version-sync.tsstill checks only root.claude-plugin/plugin.json.scripts/generate-mcp-launch-inline.mjs --writestill rewrites only root.mcp.json, so after a launcher changenpm run prepare:marketplaceleavesplugin/.mcp.json's inline source stale, and the #1084 pin test fails at release time.package.jsonfilesis unchanged. Both AC-named lints pass. The fullnpm testwas not run here; CI owns it.claude plugin validate --strict ./pluginandclaude plugin validate --strict .both print "Validation passed". The CI step is wired.Verification run
npm run lint:skill-sync: 47 synced, 0 diverged.npm run lint:skill-calls: no violations.npx vitest run hook-sync.test.ts plugin-mcp-pin.test.ts check-constitution-dod.test.ts: 32/32 pass.npm run build: pass.bash scripts/sync-hooks.sh: already in sync.cmp:plugin/.mcp.json= root.mcp.json;plugin/hooks/hooks.json=hooks/hooks.json;plugin/.claude-plugin/plugin.json= root.anyadded, 0 deleted tests. Sub-agent quality checks were not spawned; the inline checks were scoped to the hand-written diff, sinceplugin/is generated copies (about 20.7k of 23.7k added lines).Mutation Verification
AC-1, AC-2 and AC-3 are gate-test ACs. Missing: there is no PR body, so there are no
SEQUANT_MUTATIONmarkers. AC-3's hook case was mutation-checked here (above). AC-1 and AC-2 run only in CI.Risk Assessment
templates/but leavesplugin/stale, so the shipped plugin drifts silently. This is the exact class fix(plugin): ship a slim ./plugin folder — the repo-root plugin pulls ~700 MB of dev dependencies into every install and fails directory review limits #1265 exists to close.plugin/memory/byte-identity, the upgrade path (the job fails at setup), and the MCP load after the upgrade.plugin-version-sync.tsandgenerate-mcp-launch-inline.mjsare both on the AC-6 list and unchanged.prepare-marketplace.tscorrectly stamps thesource-resolved.mcp.json.Trust-Boundary Check
Status: Clean. The diff implements only the product requirements; no agent-directed instruction from issue or comment text was acted on.
Behavior-Rule Survival / Declared-Evidence
Declared evidence: Incomplete. AC-1, AC-5 and the CI half of AC-7 are unexecuted until a PR triggers CI.
npm testwas not run here.CHANGELOG
The
[Unreleased]→ Fixed entry is present with(#1265). ADR-0006 was added and indexed.Adversarial Re-Read
Gaps found (all listed above): the AC-5 worktree re-add bug, which I reproduced; the ungated
plugin/memory; three AC-6 files untouched; the AC-4 disclosure omissions. HEAD is awip checkpointcommit with no content. Non-goals did not creep in; rootskills/andhooks/are deferred to a follow-up, as the CHANGELOG says.Verdict: AC_NOT_MET
Next Steps
upgrade-test's secondgit worktree add: prune or remove first, or use a new path. Make the skill and MCP load checks fail instead of only warning.templates/memory/constitution.md→plugin/memory/constitution.mdto a sync script, and add a byte-identity test for it. Mutation-verify the test.generate-mcp-launch-inline.mjs --writeatplugin/.mcp.jsontoo (or resolve it fromsource). Extendplugin-version-sync.tsto coverplugin/.claude-plugin/plugin.json. Decide onpackage.jsonfiles.plugin/README.mddisclosure: local prettier, opt-innpm test,$CLAUDE_PLUGIN_DATA/$TMPDIRlog paths, and which constitution it ships.SEQUANT_MUTATIONmarkers for AC-1, AC-2 and AC-3, then let CI run.admarble commentedon Oct 1, 2026
QA Verdict: AC_NOT_MET
AC coverage: 3/5 met
fix(#1265): check-skill-sync.ts's N/N denominator follows MIRROR_DIRS…
fix(#1265): plugin/memory/constitution.md gets a sync target and a ga…
admarble commentedon Oct 1, 2026
QA Verdict: AC_NOT_MET
AC coverage: 6/7 met
Gaps:
Suggestions:
.mcp.json"is retired in a follow-up PR". The issue says root.mcp.jsonstays, because it is also this repo's project MCP config.plugin/hooks/hooks.jsonis copied from roothooks/hooks.json, but no test checks that copy..mcp.jsonis no longer stamped at release (onlyplugin/.mcp.jsonis), so its pin will fall behind the package version.fix(#1265): upgrade-job auth dependency, README accuracy, and release…
admarble commentedon Oct 1, 2026
QA Verdict: AC_NOT_MET
AC coverage: 7/8 met
Gaps:
fix(#1265): upgrade test follows the real GitHub clone path and a ver…
fix(#1265): upgrade test reads install paths from installed_plugins.j…
fix(#1265): plugin/.mcp.json runs the launcher file the plugin ships,…
fix(#1265): ship a slim plugin/ folder instead of the whole dev repo (#…
chore(#1265): stamp plugin/ manifest and MCP pin to 2.19.0 after merg…
fix(#1265): plugin MCP launcher starts through a symlinked path; upgr…
chore: release v2.19.0