Repository navigation
feat(marketplace): de-submodule plugins — standalone marketplace + native harness loading - #382
Conversation
…sses load the standalone marketplace The plugins submodule is removed from charly (the marketplace de-submodule cutover): the corpus now lives in the standalone opencharly/marketplace repo, whose own deploy workflow pins charly and regenerates the corpus under a drift gate (the docs-repo pattern). - candy/plugin-marketplace: `generate`/`drift` gain a required `--out` (the marketplace checkout); corpus emissions are written there with the legacy `plugins/` prefix stripped; the charly-local harness surface (.claude/ hooks+settings, the R0 dispatcher) stays under --root. New emissions: .agents/plugins/marketplace.json (Codex/AGENTS catalog, generated instead of hand-authored in charly), kimi.plugin.json (the whole marketplace is one kimi plugin), package.json (the whole marketplace is one pi package). Per-family manifests drop the version field (commit-SHA versioning per the Claude Code marketplace docs); the repository metadata points at opencharly/marketplace; .claude/settings.json now registers the marketplace by its github source. - candy/plugin-docs: new `--plugins` flag (the marketplace checkout the skill corpus is read from; default <root>/plugins) — the docs deploy passes its marketplace submodule. - git rm plugins + .gitmodules; scripts/drift-baseline.sh deleted (its only consumer, the skills baseline gate, is gone — the gate is strict and lives in the marketplace's CI). - taskfiles/Skills.yml: sync/drift regenerate the charly surface + the marketplace checkout (MARKETPLACE_DIR); new `marketplace:pin` (MARKETPLACE_REF vs the marketplace repo's live main HEAD, mirrors docs:pin). - Harness rewires (no local-path plugin loading anywhere): .claude/settings.json registers the marketplace by github source; the .agents/ symlink farm + profile + hand-authored catalog are DELETED (pi loads the marketplace as a pi package, Claude Code via the marketplace, kimi as a plugin); .reasonix/kimi hook guards no longer probe a plugins/ dir; .pi/settings.json gains the marketplace git package; AGENTS.md/CLAUDE.md/README.md + the family candy descriptions + the internals skills teach the standalone marketplace. - check-marketplace R10 bed (candy/plugin-marketplace): clones the published marketplace at the immutable MARKETPLACE_REF and gates its shape (catalogs parse, no version fields, baked skill headers, setup executable, pinned-commit check). Tests: plugin-marketplace + plugin-docs suites updated for the split (a new TestGenerateSplitOut proves the corpus/out + surface/root split); full charly module go vet + go test green; RDD pre-flight (fresh clones) proved the corpus regenerates with exactly the intended deltas and the docs content is a no-op; fresh-clone R10 below.
…sses load the standalone marketplace The plugins submodule is removed from charly (the marketplace de-submodule cutover): the corpus now lives in the standalone opencharly/marketplace repo, whose own deploy workflow pins charly and regenerates the corpus under a drift gate (the docs-repo pattern). - candy/plugin-marketplace: `generate`/`drift` gain a required `--out` (the marketplace checkout); corpus emissions are written there with the legacy `plugins/` prefix stripped; the charly-local harness surface (.claude/ hooks+settings, the R0 dispatcher) stays under --root. New emissions: .agents/plugins/marketplace.json (Codex/AGENTS catalog, generated instead of hand-authored in charly), kimi.plugin.json (the whole marketplace is one kimi plugin), package.json (the whole marketplace is one pi package). Per-family manifests drop the version field (commit-SHA versioning per the Claude Code marketplace docs); the repository metadata points at opencharly/marketplace; .claude/settings.json now registers the marketplace by its github source. - candy/plugin-docs: new `--plugins` flag (the marketplace checkout the skill corpus is read from; default <root>/plugins) — the docs deploy passes its marketplace submodule. - git rm plugins + .gitmodules; scripts/drift-baseline.sh deleted (its only consumer, the skills baseline gate, is gone — the gate is strict and lives in the marketplace's CI). - taskfiles/Skills.yml: sync/drift regenerate the charly surface + the marketplace checkout (MARKETPLACE_DIR); new `marketplace:pin` (MARKETPLACE_REF vs the marketplace repo's live main HEAD, mirrors docs:pin). - Harness rewires (no local-path plugin loading anywhere): .claude/settings.json registers the marketplace by github source; the .agents/ symlink farm + profile + hand-authored catalog are DELETED (pi loads the marketplace as a pi package, Claude Code via the marketplace, kimi as a plugin); .reasonix/kimi hook guards no longer probe a plugins/ dir; .pi/settings.json gains the marketplace git package; AGENTS.md/CLAUDE.md/README.md + the family candy descriptions + the internals skills teach the standalone marketplace. - check-marketplace R10 bed (candy/plugin-marketplace): clones the published marketplace at the immutable MARKETPLACE_REF and gates its shape (catalogs parse, no version fields, baked skill headers, setup executable, pinned-commit check). Tests: plugin-marketplace + plugin-docs suites updated for the split (a new TestGenerateSplitOut proves the corpus/out + surface/root split); full charly module go vet + go test green; RDD pre-flight (fresh clones) proved the corpus regenerates with exactly the intended deltas and the docs content is a no-op; fresh-clone R10 below.
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator rework + harness rewiring (359 files, +720/−1371) Security screen: CANNOT BE EXECUTED — Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Comment intake: the single Blocks
Non-blocking note: Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…er check (validator findings)
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Comment intake:
Blocks
Non-blocking: Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Blocks
A3 note (folded into block 1): the claimed tier Comment intake:
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Security screen: no finding from the pasted material (no credentials, no egress, Blocks
Comment intake (all re-derived against the CURRENT body/diff)
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Blocks
Comment intake (re-derived against the CURRENT body/diff)
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Blocks
Comment intake (re-derived against the CURRENT body/diff)
Non-blocking note: the R9 compliance row cites the CalVer stamp as Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…gnature (validator B5)
Review — BLOCKHead SHA: Change class: cutover — submodule removal + generator Security screen: no finding from the available material — Blocks
Non-blocking notes: the R9 row cites the CalVer stamp as Comment intake (re-derived against the current body/meta/CI):
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress (the bed's Checklist: All applicable rules PASS or NA. Key re-derivations against the CURRENT state: the R10 fresh-clone proof rev-parses exactly the live head Note (pre-landing, non-blocking): Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
… (#727) * chore(agents): retire CLAUDE.md — AGENTS.md is the sole rulebook (#286) Retire the CLAUDE.md surface across the charly repo: AGENTS.md is now the single, harness-neutral rulebook. - git rm the repo-root CLAUDE.md symlink. - git mv charly/CLAUDE.md -> charly/AGENTS.md and repoint the nested signpost at the repo-root AGENTS.md. - Sweep every live CLAUDE.md reference to AGENTS.md: AGENTS.md (dispatcher rows + the documented-surfaces bullet), README.md, VISION.md (kept; reference rename only), PROGRAM/nfpm-packaging-north-star.md, PROGRAM/pi-integration.md, .pi/README.md, .claude/workflows/{audit-deploy-configs,triage-check-failure}.js, charly/.golangci.yml, charly/import_purity_test.go, charly/main.go, charly/no_kind_switch_in_kernel_test.go, charly/provider_bench_test.go. - Rewrite scripts/validate-agent-config.py to validate ONLY the single AGENTS.md rulebook: drop adapter_path/adapter and the adapter-vs-generic dispatcher comparison; make rulebook_contract_errors single-document; validate only AGENTS.md in the core Go gate. - Complete the validator's de-submodule adaptation: the plugins subtree was removed in #382, so drop the orphaned plugins gitlink/developer-profile checks and the plugins markdown/attribution scans that could no longer resolve. Narrow FORBIDDEN_GENERIC_RULEBOOK_MARKERS to harness-config identifiers (CODEX_HOME/.codex/Kimi Code/~/.kimi-code) so the sole rulebook may name its consumer harnesses in R0 prose, as it does. Refs #286 Assisted-by: opencode deepseek-v4.1-flash (documentation reviewed) * fix(agents): address #727 pr-validator BLOCK — honest class/tier + validator sweep Address the three blocks from the pr-validator verdict on head d2830c7: - A3/A2 change-class/tier: reclassify honestly. The diff is a documentation sweep + comment-only Go/JS/YAML edits + a substantive non-runtime rewrite of scripts/validate-agent-config.py, so the class is code+config+docs and the tier is `analysed on a live system` (the changed validator ran live with retained output and `go build` is clean; no fresh-rebuild runtime target exists). `documentation reviewed` is forbidden once code/config changed. - R5/R1 stale docstring: the parent commit deleted validate_developer_profiles and its call, so the module docstring no longer claims "the generated per-harness developer profiles". - R3/R4 + B14(d) marker narrowing: FORBIDDEN_GENERIC_RULEBOOK_MARKERS now holds only harness-specific CONFIG identifiers (CODEX_HOME, .codex, ~/.kimi-code). The harness *names* (Claude Code, Codex, Kimi Code) are not config leaks: AGENTS.md is the single harness-neutral rulebook and legitimately names its consumer harnesses in its R0 loading prose. `git grep -nE 'Codex|Claude Code|Kimi Code' -- AGENTS.md` proves the names present (lines 21-22); the config identifiers are absent. The class rule (names allowed, config identifiers forbidden) replaces the ad-hoc deletion. Refs #286 Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system) * fix(agents): scope the skill-ref regex to dispatcher, drop orphaned SKILL_REF Address the pr-validator BLOCK on head 100f8a5: with the adapter/generic dispatcher comparison gone, the module-level SKILL_REF regex was named as an orphaned dead symbol in a file this PR rewrites. Scope the regex to dispatcher() — its only production consumer — and delete the module-level constant plus its now-invalid self_test assertions. Drop the unused `json` import and update the meta-test comment (R5 sweep; no sibling orphans remain). `--self-test` and the full validator both pass. Refs #286 Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system) --------- Co-authored-by: atrawog <[email protected]>
Summary
The marketplace de-submodule cutover:
pluginsis removed as a charly submodule; the corpus now lives in the standalone opencharly/marketplace repo (renamed from plugins), which pins charly in its own.gitmodulesand regenerates the corpus under a drift gate in its owndeploy.yml— the docs-repo pattern. Every harness loads the corpus natively from the marketplace repo — zero local-path plugin loading remains in charly.Generator split (
candy/plugin-marketplace):generate/driftgain a required--out(the marketplace checkout). Corpus emissions (the legacyplugins/prefix stripped) go there; the charly-local harness surface (.claude/hooks+settings.jsonmerge, the R0 dispatcher inCLAUDE.md/AGENTS.md) stays under--root. New emissions:.agents/plugins/marketplace.json(Codex/AGENTS catalog — previously hand-authored in charly),kimi.plugin.json(the whole marketplace is one kimi plugin),package.json(the whole marketplace is one pi package). Per-family manifests drop theversionfield (commit-SHA versioning per the Claude Code marketplace docs); repository metadata points atopencharly/marketplace;.claude/settings.jsonregisters the marketplace by its github source instead of a local directory.--plugins <dir>(the marketplace checkout the skill corpus is read from; default<root>/plugins) — the docs deploy passes its marketplace submodule.git rm plugins+.gitmodules;scripts/drift-baseline.shdeleted (its only consumer is gone — the skills gate is strict; the corpus gate lives in the marketplace CI).taskfiles/Skills.yml:skills:sync/skills:driftregenerate the charly surface + the marketplace checkout (MARKETPLACE_DIR); newmarketplace:pin(MARKETPLACE_REF vs the marketplace repo's live main HEAD — mirrorsdocs:pin)..agents/(the ~140-skill symlink farm +.charly-profile.json+ the hand-authored catalog) deleted — pi consumes the marketplace as a pi package, Claude Code via the marketplace, kimi as a plugin;.reasonix+ kimi hook guards no longer probe aplugins/dir;.pi/settings.jsongains the marketplace git package; AGENTS.md/CLAUDE.md/README.md + the family candy descriptions + the internals skills teach the standalone marketplace.candy/plugin-marketplace): clones the published marketplace at the immutableMARKETPLACE_REFand gates its shape (catalogs parse,INSTALLED_BY_DEFAULT, no version fields, baked skill headers, executable setup, pinned-commit check).How tested
Go suites (pasted):
New
TestGenerateSplitOutproves the split: corpus under--outprefix-free, surface at root,driftclean on the pair, legacy<root>/pluginsabsent.RDD pre-flight (fresh clones: charly@92df8e63, plugins@f4f5980, docs@9a741f0):
R10 — fresh disposable clones of the FINAL COMMITTED HEAD (charly@248ae89d — the PR head, marketplace branch@06f9beb):
check-marketplace bed — implemented; first live run post-landing. The bed's shape gates (the Codex/kimi/pi catalogs, the no-version manifests, the root setup) assert the CUTOVER shape, which the committed
MARKETPLACE_REF(f4f5980 — the pre-cutover corpus) does not carry; the bed therefore has no green tree until the marketplace PR lands and a successor charly PR bumps the ref (themarketplace:pincontract — the docs-cutover DOCS_REF precedent). Nocharly check run check-marketplaceoutput is claimed at this head; the bed's gates are implemented, and the fresh-clone generate/drift proof above exercises the same emission paths.R5 sweep evidence (pasted):
Diff manifest (359 files, base 92df8e6 → head 248ae89)
Accounting (reconciles exactly to the live diff = 296 D + 62 M + 1 A):
.agents/symlink farm +.charly-profile.json+.agents/plugins/marketplace.jsonpluginssubmodule gitlink; 1 deleted:scripts/drift-baseline.shcharly.ymlsources — 22 identical boilerplate edits (the same 2-line shape, one sample pasted) + 8 content-bearing (jupyter/jupyter-mcp/marimo/plugin-harness-kind 4-line edits + charly-check/charly-build/charly-internals/plugin-marketplace — full diffs below)candy/plugin-marketplace/emit_catalogs.go(the kimi + pi emissions)Go diff stats (every generator file accounted):
Representative Go diffs (the split mechanics + the new emissions):
Config + prose diffs (full):
Candy diffs (full — the 8 content-bearing; the 22 boilerplate share the 2-line shape of the sample):
Family-candy boilerplate sample (22 files, identical 2-line shape):
Rulebook compliance
plugins/reference are removed in this commit (sweep pasted)mp-r10e) andcharly versionprinted it — binary equals sourceChange classification
go vet/go test(charly module + both plugin modules) + the R10 fresh-clone drift gate +task build:binary+marketplace:pincharly/pr-validator; tag-on-mergeAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)