Skip to content

feat(marketplace): de-submodule plugins — standalone marketplace + native harness loading - #382

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/marketplace-cutover
Aug 23, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/marketplace-cutover

Conversation

@atrawog

@atrawog atrawog commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The marketplace de-submodule cutover: plugins is removed as a charly submodule; the corpus now lives in the standalone opencharly/marketplace repo (renamed from plugins), which pins charly in its own .gitmodules and regenerates the corpus under a drift gate in its own deploy.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/drift gain a required --out (the marketplace checkout). Corpus emissions (the legacy plugins/ prefix stripped) go there; the charly-local harness surface (.claude/hooks + settings.json merge, the R0 dispatcher in CLAUDE.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 the version field (commit-SHA versioning per the Claude Code marketplace docs); repository metadata points at opencharly/marketplace; .claude/settings.json registers the marketplace by its github source instead of a local directory.

  • plugin-docs gains --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.sh deleted (its only consumer is gone — the skills gate is strict; the corpus gate lives in the marketplace CI).
  • taskfiles/Skills.yml: skills:sync/skills: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: .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 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 bed (candy/plugin-marketplace): clones the published marketplace at the immutable MARKETPLACE_REF and gates its shape (catalogs parse, INSTALLED_BY_DEFAULT, no version fields, baked skill headers, executable setup, pinned-commit check).

How tested

Go suites (pasted):

$ GOWORK=off go vet ./... && GOWORK=off go test ./...   # candy/plugin-marketplace
ok  	github.com/opencharly/charly/candy/plugin-marketplace
$ GOWORK=off go test ./...                               # candy/plugin-docs
ok  	github.com/opencharly/charly/candy/plugin-docs
$ cd charly && go vet ./... && go test ./...             # the full charly module
(clean)

New TestGenerateSplitOut proves the split: corpus under --out prefix-free, surface at root, drift clean on the pair, legacy <root>/plugins absent.

RDD pre-flight (fresh clones: charly@92df8e63, plugins@f4f5980, docs@9a741f0):

$ /tmp/mp-rdd/bin/charly marketplace generate --root /tmp/mp-rdd/charly --out /tmp/mp-rdd/plugins
marketplace generate: wrote 406 artifact(s) across 26 family(ies)
$ git -C /tmp/mp-rdd/plugins status --porcelain | wc -l
56
$ git -C /tmp/mp-rdd/plugins diff --name-only | grep -c '\.md$'   # markdown corpus drift
0
$ git -C /tmp/mp-rdd/plugins status --porcelain | awk '{print $1}' | sort | uniq -c
      3 ??
     53 M
(53 manifests: version removals + repository URL; 3 new: the Codex/kimi/pi catalogs)
$ /tmp/mp-rdd/bin/charly docs generate --root /tmp/mp-rdd/charly --plugins /tmp/mp-rdd/plugins --out /tmp/mp-rdd/docs/src/content/docs
charly docs: 330 recipe pages, 93 plugin pages (154 provider words), 56 cli pages, 346 candy pages, 82 box pages (912 generated pages cleared before regeneration)
$ git -C /tmp/mp-rdd/docs status --porcelain -- src/content/docs | wc -l
0   # docs content a no-op at the pre-edit sources

R10 — fresh disposable clones of the FINAL COMMITTED HEAD (charly@248ae89d — the PR head, marketplace branch@06f9beb):

$ git clone -b feat/marketplace-cutover <worktree> /tmp/mp-r10e/charly && git clone -b feat/marketplace-standalone /tmp/mp-marketplace /tmp/mp-r10e/marketplace
$ git -C /tmp/mp-r10e/charly rev-parse HEAD
248ae89dad3287bf7f67e77e588cb9b9b7f4a9e3          # the PR HEAD (gofmt + bed-literal + reasonix + doc-exit-code fixes)
$ git -C /tmp/mp-r10e/marketplace rev-parse HEAD
06f9beb027219f5732d74be6f418cbd1c11b64ae
$ cd /tmp/mp-r10e/charly/charly && go build -buildvcs=false -ldflags "-X main.BuildCalVer=mp-r10e" -o ../../bin/charly .
$ cd /tmp/mp-r10e/charly && /tmp/mp-r10e/bin/charly marketplace generate --root /tmp/mp-r10e/charly --out /tmp/mp-r10e/marketplace
marketplace generate: wrote 406 artifact(s) across 26 family(ies)
$ git -C /tmp/mp-r10e/marketplace status --porcelain | wc -l
0                                   # the committed corpus is a no-op regeneration at the HEAD
$ /tmp/mp-r10e/bin/charly marketplace drift --root /tmp/mp-r10e/charly --out /tmp/mp-r10e/marketplace
marketplace drift: clean (406 artifact(s) on disk match their sources; regeneration is a no-op)
$ git -C /tmp/mp-r10e/charly status --porcelain -- .claude CLAUDE.md AGENTS.md | wc -l
0                                   # the charly surface is a no-op regeneration at the HEAD
$ /tmp/mp-r10e/bin/charly version
mp-r10e                              # the CalVer-stamped binary, built from the fresh clone
$ task skills:pin
marketplace: MARKETPLACE_REF (f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e) matches the marketplace repo's current main head; both occurrences present.

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 (the marketplace:pin contract — the docs-cutover DOCS_REF precedent). No charly check run check-marketplace output 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):

$ grep -rln "plugins/" . --include="*.md" --include="*.yml" --include="*.json" --include="*.toml" --include="*.sh" --include="*.go" --include="*.ts" | grep -v '^\./\.git/\|^\./box/\|^\./\.claude/worktrees\|^\./CHANGELOG/\|candy/plugin-deploy-pod\|candy/plugin-docs/\|candy/plugin-marketplace/\|candy/charly-immich\|candy/charly-mcp\|candy/generate-packages\|candy/immich\|\.github/workflows/release-binary\|PROGRAM/nfpm-packaging\|scripts/verify-changelog\|charly/plugin_\|charly/provider_\|charly/main.go\|tools/gomod'
(no output — every remaining `plugins` mention is the charly plugin-BINARY mechanism, not the submodule)
$ grep -rn "charly-profile" . --include="*.toml" --include="*.json" --include="*.sh" --include="*.md" | grep -v "^\./\.git/\|CHANGELOG/"
(no output — the deleted .agents profile has no remaining probes; reasonix.toml rules removed in commit 09095073)

Diff manifest (359 files, base 92df8e6 → head 248ae89)

Accounting (reconciles exactly to the live diff = 296 D + 62 M + 1 A):

  • 294 deleted: the .agents/ symlink farm + .charly-profile.json + .agents/plugins/marketplace.json
  • 1 deleted: the plugins submodule gitlink; 1 deleted: scripts/drift-baseline.sh
  • 30 modified: the candy charly.yml sources — 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)
  • 17 modified: Go + scripts (the generator rework + plugin-docs + harness-kind + gomod test + verify-changelog script — stats + the representative full diffs below)
  • 15 modified: the harness configs + prose (full diffs below)
  • 1 added: candy/plugin-marketplace/emit_catalogs.go (the kimi + pi emissions)

Go diff stats (every generator file accounted):

 candy/plugin-docs/command.go                  |  17 ++-
 candy/plugin-docs/gen_skills.go               |  26 ++--
 candy/plugin-docs/generate.go                 |   6 +-
 candy/plugin-docs/generate_test.go            |   4 +-
 candy/plugin-harness-kind/charly.yml          |   2 +-
 candy/plugin-harness-kind/plugin.go           |   2 +-
 candy/plugin-marketplace/charly.yml           | 166 +++++++++++++++++++++++---
 candy/plugin-marketplace/command.go           |  40 +++++--
 candy/plugin-marketplace/emit.go              |  23 +++-
 candy/plugin-marketplace/emit_catalogs.go     |  82 +++++++++++++
 candy/plugin-marketplace/emit_hooks.go        |  10 +-
 candy/plugin-marketplace/emit_marketplace.go  |  55 ++++++++-
 candy/plugin-marketplace/emit_plugins_json.go |  25 ++--
 candy/plugin-marketplace/emit_setup.go        |  22 ++--
 candy/plugin-marketplace/generate.go          |  43 ++++---
 candy/plugin-marketplace/generate_test.go     |  61 ++++++++--
 candy/plugin-marketplace/plugin.go            |   8 +-
 candy/plugin-marketplace/prune.go             |  65 +++++-----
 scripts/verify-changelog-h1.sh                |   4 +-
 tools/gomod-canonical/gomod_canonical_test.go |   2 +-
 20 files changed, 512 insertions(+), 151 deletions(-)

Representative Go diffs (the split mechanics + the new emissions):

diff --git a/candy/plugin-docs/command.go b/candy/plugin-docs/command.go
index 17834899..284eeb85 100644
--- a/candy/plugin-docs/command.go
+++ b/candy/plugin-docs/command.go
@@ -20,7 +20,12 @@ type docsCLI struct {
 // lingering as an orphan page.
 type generateCmd struct {
 	Out  string `name:"out" required:"" help:"Docs content root to write into (e.g. docs/src/content/docs)"`
-	Root string `name:"root" help:"Repo root holding charly.yml, candy/, box/ and plugins/ (default: cwd)"`
+	Root string `name:"root" help:"Repo root holding charly.yml, candy/, box/ (default: cwd)"`
+	// Plugins is the marketplace checkout the plugin corpus is read from. Since the marketplace
+	// de-submodule cutover the plugins tree is no longer INSIDE the charly checkout — it lives in
+	// the standalone opencharly/marketplace repo — so the docs workflow passes its marketplace
+	// submodule here. Default: <root>/plugins (the pre-cutover location).
+	Plugins string `name:"plugins" help:"Marketplace checkout holding the plugin corpus (default: <root>/plugins)"`
 }
 
 // dispatchDocsCLI is the single entry point both placements use (CliMain out-of-process,
@@ -65,5 +70,13 @@ func (c *generateCmd) Run() error {
 	if err != nil {
 		return fmt.Errorf("resolve --out: %w", err)
 	}
-	return generate(root, out)
+	pluginsDir := c.Plugins
+	if pluginsDir == "" {
+		pluginsDir = filepath.Join(root, "plugins")
+	}
+	pluginsDir, err = filepath.Abs(pluginsDir)
+	if err != nil {
+		return fmt.Errorf("resolve --plugins: %w", err)
+	}
+	return generate(root, out, pluginsDir)
 }
diff --git a/candy/plugin-docs/gen_skills.go b/candy/plugin-docs/gen_skills.go
index 447d5230..ba718c59 100644
--- a/candy/plugin-docs/gen_skills.go
+++ b/candy/plugin-docs/gen_skills.go
@@ -57,9 +57,9 @@ var categoryTitle = map[string]string{
 	"images":      "Images — the deployable catalog",
 }
 
-// readMarketplace loads the plugin taxonomy.
-func readMarketplace(root string) (*marketplace, error) {
-	path := filepath.Join(root, "plugins", ".claude-plugin", "marketplace.json")
+// readMarketplace loads the plugin taxonomy from the marketplace checkout.
+func readMarketplace(pluginsDir string) (*marketplace, error) {
+	path := filepath.Join(pluginsDir, ".claude-plugin", "marketplace.json")
 	raw, err := os.ReadFile(path)
 	if err != nil {
 		return nil, fmt.Errorf("read marketplace.json: %w", err)
@@ -72,17 +72,19 @@ func readMarketplace(root string) (*marketplace, error) {
 	return &m, nil
 }
 
-// collectSkills reads every skill of every plugin named by the manifest. The plugins tree is a
-// submodule, but this reads it off the FILESYSTEM — so the generated site matches whatever the
-// plugins WORKING TREE is checked out at, which is not necessarily the gitlink the superproject
-// pins. On a clean checkout the two agree and the distinction is invisible; in a worktree whose
-// plugins checkout has moved they do not, and regeneration then projects the checkout. Check
-// plugins out at the commit you intend to publish before regenerating, or the docs repo's drift
-// gate goes red for a reason that is not obvious from the diff.
-func collectSkills(root string, m *marketplace) ([]skill, error) {
+// collectSkills reads every skill of every plugin named by the manifest. The corpus is read
+// off the FILESYSTEM at the marketplace checkout (a submodule of the docs repo since the
+// marketplace de-submodule cutover — the docs deploy passes its marketplace checkout via
+// --plugins) — so the generated site matches whatever that checkout is at, which is not
+// necessarily the gitlink the docs repo pins. On a clean checkout the two agree and git rev
+// is invisible; in a worktree whose marketplace checkout has moved they do not, and
+// regeneration then projects the checkout. Check the marketplace out at the commit you intend
+// to publish before regenerating, or the drift gate goes red for a reason that is not obvious
+// from the diff.
+func collectSkills(pluginsDir string, m *marketplace) ([]skill, error) {
 	var out []skill
 	for _, p := range m.Plugins {
-		skillsDir := filepath.Join(root, "plugins", p.Dir(), "skills")
+		skillsDir := filepath.Join(pluginsDir, p.Dir(), "skills")
 		ents, err := os.ReadDir(skillsDir)
 		if err != nil {
 			if os.IsNotExist(err) {
diff --git a/candy/plugin-docs/generate.go b/candy/plugin-docs/generate.go
index 008ddee6..554dc3c0 100644
--- a/candy/plugin-docs/generate.go
+++ b/candy/plugin-docs/generate.go
@@ -18,7 +18,7 @@ import (
 // A copy drifts; a projection cannot. The home page moved into this list precisely because it was
 // the counter-example — two thirds of it was README prose maintained twice, across a submodule
 // boundary, under a footnote claiming nothing on the site was a hand-maintained copy.
-func generate(root, out string) error {
+func generate(root, out, pluginsDir string) error {
 	if _, err := os.Stat(filepath.Join(root, unifiedFileName)); err != nil {
 		return fmt.Errorf("--root %s does not look like an charly project (no %s): %w", root, unifiedFileName, err)
 	}
@@ -64,11 +64,11 @@ func generate(root, out string) error {
 		pluginNames[p.Name] = true
 	}
 
-	market, err := readMarketplace(root)
+	market, err := readMarketplace(pluginsDir)
 	if err != nil {
 		return err
 	}
-	skills, err := collectSkills(root, market)
+	skills, err := collectSkills(pluginsDir, market)
 	if err != nil {
 		return err
 	}
diff --git a/candy/plugin-docs/generate_test.go b/candy/plugin-docs/generate_test.go
index 772ac192..9c7e1b74 100644
--- a/candy/plugin-docs/generate_test.go
+++ b/candy/plugin-docs/generate_test.go
@@ -39,7 +39,7 @@ func generateSite(t *testing.T, sidebarEntries ...string) (out string, err error
 	}
 	seedHandAuthoredPages(t, root, out)
 
-	return out, generate(root, out)
+	return out, generate(root, out, filepath.Join(root, "plugins"))
 }
 
 // superprojectRoot resolves the repository root this package lives two levels below. generate()
@@ -182,7 +182,7 @@ func TestGeneratePreservesHeaderlessFilesUnderGeneratedTrees(t *testing.T) {
 		t.Fatalf("write keep-me.md: %v", err)
 	}
 
-	if err := generate(root, out); err != nil {
+	if err := generate(root, out, filepath.Join(root, "plugins")); err != nil {
 		t.Fatalf("generate: %v", err)
 	}
 	if _, err := os.Stat(kept); err != nil {
diff --git a/candy/plugin-harness-kind/plugin.go b/candy/plugin-harness-kind/plugin.go
index db82c410..750cee23 100644
--- a/candy/plugin-harness-kind/plugin.go
+++ b/candy/plugin-harness-kind/plugin.go
@@ -1,5 +1,5 @@
 // Package harnesskind is the importable form of the charly HARNESS-SURFACE kinds: `skill`,
-// `hook`, and `marketplace` — first-class entities carrying the plugins/ skill corpus, the
+// `hook`, and `marketplace` — first-class entities carrying the marketplace skill corpus, the
 // .claude/hooks/* gate scripts, and the marketplace/harness config into candy config (the
 // plugins→candies migration). A KIND provider dispatches via the pb Invoke(OpLoad) envelope:
 // decode the authored `skill:`/`hook:`/`marketplace:` entity from op.Params into the core
diff --git a/candy/plugin-marketplace/command.go b/candy/plugin-marketplace/command.go
index efd4b854..562b1071 100644
--- a/candy/plugin-marketplace/command.go
+++ b/candy/plugin-marketplace/command.go
@@ -15,18 +15,24 @@ type marketplaceCLI struct {
 	Drift    driftCmd    `cmd:"" help:"Fail-closed no-op check: regenerate in memory and compare with the artifacts on disk (git is never consulted)"`
 }
 
-// generateCmd renders every generated artifact (plugins/ corpus, .claude/ hooks + settings,
-// the dispatcher section, the setup launcher). It rewrites the generated trees wholesale after
-// pruning by the DO-NOT-EDIT header, so a deleted source entity disappears instead of lingering.
+// generateCmd renders every generated artifact: the marketplace corpus into --out (the
+// standalone opencharly/marketplace repo root — skills, agents, the per-family manifests, the
+// Claude/Codex/kimi/pi catalogs, profiles.json, the setup launcher) and the charly-local harness
+// surface into --root (.claude/ hooks + settings, the dispatcher section). It rewrites the
+// generated trees wholesale after pruning by the DO-NOT-EDIT header, so a deleted source entity
+// disappears instead of lingering.
 type generateCmd struct {
-	Root string `name:"root" help:"Repo root holding charly.yml, candy/, box/, plugins/ and .claude/ (default: cwd)"`
+	Root string `name:"root" help:"Repo root holding charly.yml, candy/, box/, .claude/ (default: cwd)"`
+	Out  string `name:"out" required:"" help:"Marketplace corpus root to write into (the opencharly/marketplace checkout)"`
 }
 
 // driftCmd is a fail-closed no-op check: the same pipeline in memory, compared byte-for-byte with
-// the on-disk generated artifacts. Exit 1 with a diff summary on any drift. It runs in no CI
-// workflow — it is red only for whoever runs it, via `task skills:drift` or by hand.
+// the on-disk generated artifacts (the corpus under --out, the harness surface under --root).
+// Any difference is a hard failure (exit 1) with a diff summary. It runs in no CI workflow — it
+// is red only for whoever runs it, via `task skills:drift` or by hand.
 type driftCmd struct {
 	Root string `name:"root" help:"Repo root (default: cwd)"`
+	Out  string `name:"out" required:"" help:"Marketplace corpus root to compare against (the opencharly/marketplace checkout)"`
 }
 
 // dispatchMarketplaceCLI is the single entry point both placements use (CliMain out-of-process,
@@ -70,12 +76,26 @@ func resolveRoot(flag string) (string, error) {
 	return root, nil
 }
 
+// resolveOut resolves --out. The marketplace corpus is standalone since the de-submodule
+// cutover (the opencharly/marketplace repo), so the corpus destination is always explicit.
+func resolveOut(flag string) (string, error) {
+	out, err := filepath.Abs(flag)
+	if err != nil {
+		return "", fmt.Errorf("resolve --out: %w", err)
+	}
+	return out, nil
+}
+
 func (c *generateCmd) Run() error {
 	root, err := resolveRoot(c.Root)
 	if err != nil {
 		return err
 	}
-	return generate(root)
+	out, err := resolveOut(c.Out)
+	if err != nil {
+		return err
+	}
+	return generate(root, out)
 }
 
 func (c *driftCmd) Run() error {
@@ -83,5 +103,9 @@ func (c *driftCmd) Run() error {
 	if err != nil {
 		return err
 	}
-	return drift(root)
+	out, err := resolveOut(c.Out)
+	if err != nil {
+		return err
+	}
+	return drift(root, out)
 }
diff --git a/candy/plugin-marketplace/emit.go b/candy/plugin-marketplace/emit.go
index 5d8d3368..a0020553 100644
--- a/candy/plugin-marketplace/emit.go
+++ b/candy/plugin-marketplace/emit.go
@@ -4,6 +4,7 @@ import (
 	"bytes"
 	"os"
 	"path/filepath"
+	"strings"
 )
 
 // emit.go — the generated-artifact contract: a DO-NOT-EDIT header + the emit map (path → bytes,
@@ -19,13 +20,27 @@ const generatedHeader = "<!-- GENERATED by `charly marketplace generate` — DO
 // frontmatter (frontmatter must be byte-zero for the Skill-tool/validate_skills parser).
 const generatedHeaderBlock = generatedHeader + "\n\n"
 
-// emissions is the full generated artifact set, keyed by repo-root-relative path.
+// emissions is the full generated artifact set, keyed by a canonical path: corpus artifacts
+// carry the legacy "plugins/" prefix (stripped when written under --out), harness-surface
+// artifacts (.claude/, CLAUDE.md, AGENTS.md) carry none (always written under --root).
 type emissions map[string][]byte
 
-// writeAll writes every emitted artifact, creating parent directories.
-func (em emissions) writeAll(root string) error {
+// corpusPrefix marks the corpus half of the emission set. The prefix is historical — the corpus
+// used to live at <root>/plugins; it now lives at the marketplace repo root, so writeAll strips it.
+const corpusPrefix = "plugins/"
+
+// writeAll writes every emitted artifact, creating parent directories. Corpus artifacts (the
+// plugins/ tree) are written under out (the marketplace corpus root) with the prefix stripped;
+// the harness-surface artifacts (.claude/, CLAUDE.md, AGENTS.md) go under root (the charly
+// checkout). The corpus destination is always explicit (--out is required since the
+// de-submodule cutover — the marketplace is a standalone repo).
+func (em emissions) writeAll(root, out string) error {
 	for rel, b := range em {
-		path := filepath.Join(root, filepath.FromSlash(rel))
+		base, target := root, rel
+		if strings.HasPrefix(rel, corpusPrefix) {
+			base, target = out, strings.TrimPrefix(rel, corpusPrefix)
+		}
+		path := filepath.Join(base, filepath.FromSlash(target))
 		if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
 			return err
 		}
diff --git a/candy/plugin-marketplace/emit_catalogs.go b/candy/plugin-marketplace/emit_catalogs.go
new file mode 100644
index 00000000..0048302e
--- /dev/null
+++ b/candy/plugin-marketplace/emit_catalogs.go
@@ -0,0 +1,82 @@
+package marketplace
+
+// emit_catalogs.go — the additional per-harness catalogs the marketplace root ships:
+//
+//   - kimi.plugin.json — the Kimi Code plugin manifest. Kimi's plugin model is one-repo-per-plugin
+//     (its marketplace entries take a local path, zip URL, or GitHub URL as the whole plugin
+//     source), so the entire marketplace is ONE kimi plugin: every family's skills/ + agents/
+//     dirs are listed as ./-paths inside the installed clone.
+//   - package.json — the pi package manifest (the pi.dev package gallery is npm-based; a git
+//     source is installed per-project from .pi/settings.json's packages array and reconciled to a
+//     pinned ref). The `pi` key declares the skills resource; the `./*/skills` glob covers every
+//     family at the marketplace root. The `pi-package` keyword is the gallery discoverability tag.
+//
+// Both are corpus-root manifests — they live at the marketplace repo root, never in charly.
+
+// kimiPluginJSON is the kimi.plugin.json shape (kimi docs: "Plugin Manifest").
+type kimiPluginJSON struct {
+	Name        string        `json:"name"`
+	Description string        `json:"description"`
+	Skills      []string      `json:"skills,omitempty"`
+	Agents      []string      `json:"agents,omitempty"`
+	Interface   kimiInterface `json:"interface"`
+}
+
+type kimiInterface struct {
+	DisplayName      string `json:"displayName"`
+	ShortDescription string `json:"shortDescription"`
+}
+
+// piPackageJSON is the pi package manifest (pi docs: packages.md "Creating a Pi Package").
+type piPackageJSON struct {
+	Name        string     `json:"name"`
+	Description string     `json:"description"`
+	Keywords    []string   `json:"keywords"`
+	Pi          piManifest `json:"pi"`
+}
+
+type piManifest struct {
+	Skills []string `json:"skills"`
+}
+
+func emitCatalogs(em emissions, ks *kindSet, families []family) {
+	em["plugins/kimi.plugin.json"] = mustJSON(buildKimiManifest(ks, families))
+	em["plugins/package.json"] = mustJSON(buildPiPackage(ks))
+}
+
+func buildKimiManifest(ks *kindSet, families []family) kimiPluginJSON {
+	m := kimiPluginJSON{
+		Name:        "charly",
+		Description: ks.Marketplace.Description,
+		Interface: kimiInterface{
+			DisplayName:      "OpenCharly",
+			ShortDescription: ks.Marketplace.Description,
+		},
+	}
+	for _, f := range families {
+		var hasSkills, hasAgents bool
+		for _, s := range f.Skills {
+			if s.Type == "agent" {
+				hasAgents = true
+			} else {
+				hasSkills = true
+			}
+		}
+		if hasSkills {
+			m.Skills = append(m.Skills, "./"+f.Name+"/skills")
+		}
+		if hasAgents {
+			m.Agents = append(m.Agents, "./"+f.Name+"/agents")
+		}
+	}
+	return m
+}
+
+func buildPiPackage(ks *kindSet) piPackageJSON {
+	return piPackageJSON{
+		Name:        "opencharly-marketplace",
+		Description: ks.Marketplace.Description,
+		Keywords:    []string{"pi-package"},
+		Pi:          piManifest{Skills: []string{"./*/skills"}},
+	}
+}
diff --git a/candy/plugin-marketplace/emit_hooks.go b/candy/plugin-marketplace/emit_hooks.go
index 5f254032..52a06046 100644
--- a/candy/plugin-marketplace/emit_hooks.go
+++ b/candy/plugin-marketplace/emit_hooks.go
@@ -80,17 +80,15 @@ func mergeSettings(root string, ks *kindSet) ([]byte, error) {
 		delete(existing, "enabledPlugins")
 	}
 
-	// 2. extraKnownMarketplaces: drop the <name> entry, regenerate from settings.source_path.
+	// 2. extraKnownMarketplaces: drop the <name> entry, regenerate with the remote GitHub
+	//    source — the marketplace is the standalone opencharly/marketplace repo (the
+	//    de-submodule cutover); Claude Code clones it and resolves the relative plugin sources.
 	if m, ok := existing["extraKnownMarketplaces"].(map[string]any); ok {
 		delete(m, name)
 		existing["extraKnownMarketplaces"] = m
 	} else if existing["extraKnownMarketplaces"] != nil {
 		delete(existing, "extraKnownMarketplaces")
 	}
-	sourcePath := ks.Marketplace.Settings.SourcePath
-	if sourcePath == "" {
-		sourcePath = "./plugins"
-	}
 	ekm := map[string]any{}
 	if v, ok := existing["extraKnownMarketplaces"].(map[string]any); ok {
 		for k, val := range v {
@@ -98,7 +96,7 @@ func mergeSettings(root string, ks *kindSet) ([]byte, error) {
 		}
 	}
 	ekm[name] = map[string]any{
-		"source": map[string]any{"source": "directory", "path": sourcePath},
+		"source": map[string]any{"source": "github", "repo": marketplaceRepository},
 	}
 	existing["extraKnownMarketplaces"] = ekm
 
diff --git a/candy/plugin-marketplace/emit_marketplace.go b/candy/plugin-marketplace/emit_marketplace.go
index 928eb797..cc24a3f8 100644
--- a/candy/plugin-marketplace/emit_marketplace.go
+++ b/candy/plugin-marketplace/emit_marketplace.go
@@ -4,10 +4,11 @@ import (
 	"sort"
 )
 
-// emit_marketplace.go — the marketplace ROOT manifests: plugins/.claude-plugin/marketplace.json
-// (the `charly-plugins` catalog the harness's extraKnownMarketplaces + the docs generator read)
-// and plugins/profiles.json (the developer/user/container_families membership the setup installer
-// used). Both derive entirely from the marketplace entity — the single source.
+// emit_marketplace.go — the marketplace ROOT manifests: .claude-plugin/marketplace.json
+// (the `charly-plugins` catalog the harness's extraKnownMarketplaces + the docs generator read),
+// .agents/plugins/marketplace.json (the Codex CLI / AGENTS-framework catalog), and
+// profiles.json (the developer/user/container_families membership the setup installer used).
+// All derive entirely from the marketplace entity — the single source.
 
 type marketplaceManifest struct {
 	Name  string `json:"name"`
@@ -35,6 +36,36 @@ type marketplacePluginEntry struct {
 	Category   string   `json:"category"`
 }
 
+// agentsMarketplaceManifest is the Codex CLI / AGENTS-framework catalog shape: the same plugin
+// list with explicit local sources (resolved against the marketplace repo root) and an
+// installation policy.
+type agentsMarketplaceManifest struct {
+	Name      string              `json:"name"`
+	Interface agentsInterface     `json:"interface"`
+	Plugins   []agentsPluginEntry `json:"plugins"`
+}
+
+type agentsInterface struct {
+	DisplayName string `json:"displayName"`
+}
+
+type agentsPluginEntry struct {
+	Name     string       `json:"name"`
+	Source   agentsSource `json:"source"`
+	Policy   agentsPolicy `json:"policy"`
+	Category string       `json:"category"`
+}
+
+type agentsSource struct {
+	Source string `json:"source"`
+	Path   string `json:"path"`
+}
+
+type agentsPolicy struct {
+	Installation   string `json:"installation"`
+	Authentication string `json:"authentication"`
+}
+
 type profilesManifest struct {
 	Developer         []string `json:"developer"`
 	User              []string `json:"user"`
@@ -43,9 +74,25 @@ type profilesManifest struct {
 
 func emitMarketplace(em emissions, ks *kindSet, families []family) {
 	em["plugins/.claude-plugin/marketplace.json"] = mustJSON(buildMarketplace(ks, families))
+	em["plugins/.agents/plugins/marketplace.json"] = mustJSON(buildAgentsMarketplace(ks, families))
 	em["plugins/profiles.json"] = mustJSON(buildProfiles(families))
 }
 
+func buildAgentsMarketplace(ks *kindSet, families []family) agentsMarketplaceManifest {
+	var m agentsMarketplaceManifest
+	m.Name = ks.Marketplace.Name
+	m.Interface.DisplayName = "OpenCharly"
+	for _, f := range families {
+		m.Plugins = append(m.Plugins, agentsPluginEntry{
+			Name:     "charly-" + f.Name,
+			Source:   agentsSource{Source: "local", Path: "./" + f.Name},
+			Policy:   agentsPolicy{Installation: "INSTALLED_BY_DEFAULT", Authentication: "ON_INSTALL"},
+			Category: firstNonEmpty(f.Meta.Category, "images"),
+		})
+	}
+	return m
+}
+
 func buildMarketplace(ks *kindSet, families []family) marketplaceManifest {
 	var m marketplaceManifest
 	m.Name = ks.Marketplace.Name
diff --git a/candy/plugin-marketplace/emit_plugins_json.go b/candy/plugin-marketplace/emit_plugins_json.go
index 8c79e3aa..7d81c609 100644
--- a/candy/plugin-marketplace/emit_plugins_json.go
+++ b/candy/plugin-marketplace/emit_plugins_json.go
@@ -13,16 +13,21 @@ import (
 // surface (a description/keyword edit regenerates the manifests).
 
 const (
-	pluginAuthor     = "opencharly"
-	pluginRepository = "https://github.com/opencharly/charly-plugins"
-	pluginLicense    = "MIT"
+	pluginAuthor          = "opencharly"
+	pluginRepository      = "https://github.com/opencharly/marketplace"
+	marketplaceRepository = "opencharly/marketplace"
+	pluginLicense         = "MIT"
 )
 
 // claudePluginJSON is the .claude-plugin/plugin.json shape.
+// claudePluginJSON is the .claude-plugin/plugin.json shape. There is deliberately NO version
+// field: per the Claude Code marketplace docs, an omitted version resolves to the plugin
+// source's commit SHA, so users receive updates whenever the marketplace commit changes — the
+// continuous-corpus model this org runs on. A pinned version would freeze every installed
+// plugin at an explicit bump.
 type claudePluginJSON struct {
 	Name        string `json:"name"`
 	Description string `json:"description"`
-	Version     string `json:"version"`
 	Author      struct {
 		Name string `json:"name"`
 	} `json:"author"`
@@ -34,9 +39,10 @@ type claudePluginJSON struct {
 }
 
 // codexPluginJSON is the .codex-plugin/plugin.json shape (the expanded Codex schema).
+// codexPluginJSON is the .codex-plugin/plugin.json shape (the expanded Codex schema). Version is
+// omitted for the same commit-SHA-versioning reason as the Claude manifest.
 type codexPluginJSON struct {
 	Name        string `json:"name"`
-	Version     string `json:"version"`
 	Description string `json:"description"`
 	Author      struct {
 		Name string `json:"name"`
@@ -65,18 +71,10 @@ func emitPluginsJSON(em emissions, families []family) {
 	}
 }
 
-func familyVersion(f family) string {
-	if f.Meta.Version != "" {
-		return f.Meta.Version
-	}
-	return "1.0.0"
-}
-
 func emitClaudePluginJSON(em emissions, f family) {
 	doc := claudePluginJSON{
 		Name:        "charly-" + f.Name,
 		Description: f.Meta.Description,
-		Version:     familyVersion(f),
 		Author: struct {
 			Name string `json:"name"`
 		}{Name: pluginAuthor},
@@ -95,7 +93,6 @@ func emitCodexPluginJSON(em emissions, f family) {
 	display := "OpenCharly " + strings.ToUpper(f.Name[:1]) + f.Name[1:]
 	doc := codexPluginJSON{
 		Name:        "charly-" + f.Name,
-		Version:     familyVersion(f),
 		Description: f.Meta.Description,
 		Author: struct {
 			Name string `json:"name"`
diff --git a/candy/plugin-marketplace/emit_setup.go b/candy/plugin-marketplace/emit_setup.go
index db8dc080..95466a7b 100644
--- a/candy/plugin-marketplace/emit_setup.go
+++ b/candy/plugin-marketplace/emit_setup.go
@@ -1,25 +1,23 @@
 package marketplace
 
-// emit_setup.go — the plugins/setup launcher. The README documents `./setup <harness> <profile>`;
-// the harness surface is now fully generated from candy config by `charly marketplace generate`,
-// so the launcher is a thin forwarder preserving that CLI contract (the profile/family args no
-// longer gate anything — every profile gets the same generated surface). `--check` maps to the
-// drift gate.
+// emit_setup.go — the ./setup launcher at the marketplace root. The marketplace is the
+// standalone opencharly/marketplace repo: it pins charly in its own .gitmodules, so the
+// launcher regenerates FROM the pinned checkout (`./charly`) INTO this repo (`.`) — the same
+// shape the deploy workflow runs. `--check` maps to the drift gate.
 
 const setupLauncher = "#!/usr/bin/env bash\n" +
 	"# GENERATED by charly marketplace generate — DO NOT EDIT.\n" +
-	"# Forwarding launcher preserving the README's ./setup <harness> <profile> [family] contract.\n" +
-	"# The whole harness surface (skills, plugin.json, marketplace.json, profiles.json, .claude/ hooks\n" +
-	"# + settings, the R0 dispatcher) is generated from candy config by 'charly marketplace generate';\n" +
-	"# the profile/family selection no longer gates anything. --check runs the drift gate.\n" +
+	"# Regenerate this marketplace from the charly checkout its .gitmodules pins:\n" +
+	"#   ./setup            regenerate (charly marketplace generate --root ./charly --out .)\n" +
+	"#   ./setup --check   fail-closed drift gate (regeneration must be a no-op)\n" +
 	"set -euo pipefail\n" +
-	"cd \"$(dirname \"$0\")/..\"\n" +
+	"cd \"$(dirname \"$0\")\"\n" +
 	"for arg in \"$@\"; do\n" +
 	"    if [ \"$arg\" = \"--check\" ] || [ \"$arg\" = \"--dry-run\" ]; then\n" +
-	"        exec charly marketplace drift\n" +
+	"        exec charly marketplace drift --root ./charly --out .\n" +
 	"    fi\n" +
 	"done\n" +
-	"exec charly marketplace generate\n"
+	"exec charly marketplace generate --root ./charly --out .\n"
 
 func emitSetup(em emissions) {
 	em["plugins/setup"] = []byte(setupLauncher)
diff --git a/candy/plugin-marketplace/generate.go b/candy/plugin-marketplace/generate.go
index 745580a4..be7cca4f 100644
--- a/candy/plugin-marketplace/generate.go
+++ b/candy/plugin-marketplace/generate.go
@@ -8,16 +8,16 @@ import (
 	"strings"
 )
 
-// generate.go — the orchestrator. Both `charly marketplace generate` and `drift` build the SAME
-// emissions map (readKinds → buildModel → buildEmissions); generate prunes + writes it, drift
+// generate renders every generated artifact into the two trees: the marketplace corpus under out,
+// the charly-local harness surface under root. Both generate and drift run the SAME emissions
+// pipeline (readKinds → buildModel → buildEmissions); generate prunes + writes it, drift
 // compares it byte-for-byte with the artifacts ON DISK and fails closed on any difference.
 //
 // Both sides of that comparison are the working tree: readKinds walks the on-disk sources and
 // readOnDisk is an os.ReadFile. Git is never consulted — drift proves "regeneration is a no-op",
 // never "the tree is committed", and it answers the same on a directory that is not a repository
 // at all. `task skills:drift` is what adds the `git status --porcelain` half.
-
-func generate(root string) error {
+func generate(root, out string) error {
 	ks, err := readKinds(root)
 	if err != nil {
 		return err
@@ -30,19 +30,19 @@ func generate(root string) error {
 	if err != nil {
 		return err
 	}
-	if err := pruneGenerated(root, families, ks); err != nil {
+	if err := pruneGenerated(root, out, families, ks); err != nil {
 		return fmt.Errorf("prune generated: %w", err)
 	}
-	if err := em.writeAll(root); err != nil {
+	if err := em.writeAll(root, out); err != nil {
 		return fmt.Errorf("write generated: %w", err)
 	}
 	applyHookModes(root, ks)
 	// The setup launcher is a documented ./setup <harness> <profile> entry point (the README's
 	// contract) — it must be executable (the emissions map carries bytes only).
-	if err := os.Chmod(filepath.Join(root, "plugins", "setup"), 0o755); err != nil && !os.IsNotExist(err) {
-		return fmt.Errorf("chmod plugins/setup: %w", err)
+	if err := os.Chmod(filepath.Join(out, "setup"), 0o755); err != nil && !os.IsNotExist(err) {
+		return fmt.Errorf("chmod setup: %w", err)
 	}
-	report(root, em, families)
+	report(out, em, families)
 	return nil
 }
 
@@ -53,6 +53,7 @@ func buildEmissions(root string, ks *kindSet, families []family) (emissions, err
 	emitSkills(em, families)
 	emitPluginsJSON(em, families)
 	emitMarketplace(em, ks, families)
+	emitCatalogs(em, ks, families)
 	if err := emitHooks(em, ks, root); err != nil {
 		return nil, err
 	}
@@ -63,10 +64,11 @@ func buildEmissions(root string, ks *kindSet, families []family) (emissions, err
 	return em, nil
 }
 
-// drift runs the same pipeline in memory and compares with the on-disk generated artifacts.
-// Any difference is a hard failure (exit 1) with a diff summary. It never writes, and it runs in
-// no CI workflow — it is red only for whoever runs it, via `task skills:drift` or by hand.
-func drift(root string) error {
+// drift runs the same pipeline in memory and compares with the on-disk generated artifacts (the
+// corpus under out, the harness surface under root). Any difference is a hard failure (exit 1)
+// with a diff summary. It never writes, and it runs in no CI workflow — it is red only for
+// whoever runs it, via `task skills:drift` or by hand.
+func drift(root, out string) error {
 	ks, err := readKinds(root)
 	if err != nil {
 		return err
@@ -82,7 +84,11 @@ func drift(root string) error {
 	var diffs []string
 	for rel := range em {
 		want := em[rel]
-		got, err := readOnDisk(root, rel)
+		base, target := root, rel
+		if strings.HasPrefix(rel, corpusPrefix) {
+			base, target = out, strings.TrimPrefix(rel, corpusPrefix)
+		}
+		got, err := readOnDisk(base, target)
 		if err != nil {
 			return err
 		}
@@ -92,7 +98,7 @@ func drift(root string) error {
 	}
 	// Files that are currently generated (header/known-path) but absent from the emissions map
 	// are stale orphans — report them too (a removed source entity must disappear).
-	scanned, err := scanGenerated(root, families, ks)
+	scanned, err := scanGenerated(root, out, families, ks)
 	if err != nil {
 		return err
 	}
@@ -110,8 +116,9 @@ func drift(root string) error {
 		len(diffs), strings.Join(diffs, "\n  "))
 }
 
-// report prints a short summary of what was emitted.
-func report(root string, em emissions, families []family) {
+// report prints a short summary of what was emitted. Corpus paths are shown as the marketplace
+// root sees them (the plugins/ prefix stripped).
+func report(out string, em emissions, families []family) {
 	fmt.Printf("marketplace generate: wrote %d artifact(s) across %d family(ies)\n", len(em), len(families))
 	var paths []string
 	for rel := range em {
@@ -120,7 +127,7 @@ func report(root string, em emissions, families []family) {
 	sort.Strings(paths)
 	for _, rel := range paths {
 		if !strings.HasPrefix(rel, ".claude") && !strings.HasPrefix(rel, "CLAUDE.md") && !strings.HasPrefix(rel, "AGENTS.md") {
-			fmt.Printf("  %s\n", filepath.ToSlash(rel))
+			fmt.Printf("  %s\n", filepath.ToSlash(strings.TrimPrefix(rel, corpusPrefix)))
 		}
 	}
 }
diff --git a/candy/plugin-marketplace/generate_test.go b/candy/plugin-marketplace/generate_test.go
index 2629334c..ee947495 100644
--- a/candy/plugin-marketplace/generate_test.go
+++ b/candy/plugin-marketplace/generate_test.go
@@ -28,8 +28,6 @@ const fixtureMarketplace = `marketplace:
                 category: commands
                 description: Runtime verbs.
                 profiles: [user]
-        settings:
-            source_path: ./plugins
 `
 
 const fixturePostgres = `postgresql:
@@ -154,7 +152,7 @@ func writeFixture(t *testing.T) string {
 
 func TestGenerateThenDriftIsClean(t *testing.T) {
 	dir := writeFixture(t)
-	if err := generate(dir); err != nil {
+	if err := generate(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("generate: %v", err)
 	}
 	assertFile(t, dir, "plugins/infrastructure/skills/postgresql/SKILL.md",
@@ -165,10 +163,19 @@ func TestGenerateThenDriftIsClean(t *testing.T) {
 	assertFile(t, dir, "plugins/infrastructure/.claude-plugin/plugin.json", "charly-infrastructure")
 	assertFile(t, dir, "plugins/.claude-plugin/marketplace.json", "charly-plugins", "charly-core")
 	assertFile(t, dir, "plugins/profiles.json", "charly-infrastructure")
+	assertFile(t, dir, "plugins/.agents/plugins/marketplace.json", "charly-plugins", "./core", "INSTALLED_BY_DEFAULT")
+	assertFile(t, dir, "plugins/kimi.plugin.json", `"name": "charly"`, "./core/skills", "./infrastructure/skills")
+	assertFile(t, dir, "plugins/package.json", "opencharly-marketplace", "pi-package", "./*/skills")
+	// per-plugin manifests carry NO version field (commit-SHA versioning — Claude Code docs).
+	for _, rel := range []string{"plugins/core/.claude-plugin/plugin.json", "plugins/infrastructure/.claude-plugin/plugin.json"} {
+		if strings.Contains(readFile(t, dir, rel), `"version"`) {
+			t.Fatalf("%s must not carry a version field (commit-SHA versioning):\n%s", rel, readFile(t, dir, rel))
+		}
+	}
 	assertFile(t, dir, ".claude/hooks/pre-commit-gate.sh", "pre-commit discipline")
 	assertFile(t, dir, ".claude/hooks/gitcmd.py", "AUX file")
 	assertFile(t, dir, ".claude/settings.json", "permissions", "claude-md-management@claude-plugins-official",
-		"charly-core@charly-plugins", "charly-infrastructure@charly-plugins", "pre-commit-gate.sh")
+		"charly-core@charly-plugins", "charly-infrastructure@charly-plugins", "pre-commit-gate.sh", "opencharly/marketplace")
 	assertFile(t, dir, "CLAUDE.md", "BEGIN GENERATED SKILL DISPATCHER", "postgres / postgresql / pg",
 		"/charly-infrastructure:postgresql")
 	// settings preserves the hand-owned keys (permissions + the official plugin) while
@@ -179,7 +186,7 @@ func TestGenerateThenDriftIsClean(t *testing.T) {
 	}
 
 	// drift on the fresh output is a no-op (fail-closed gate).
-	if err := drift(dir); err != nil {
+	if err := drift(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("drift after generate must be clean: %v", err)
 	}
 }
@@ -194,11 +201,11 @@ func TestDriftCleanMessageNamesWhatItCompared(t *testing.T) {
 	if _, err := os.Stat(filepath.Join(dir, ".git")); !os.IsNotExist(err) {
 		t.Fatalf("fixture must NOT be a git repository — that is what makes this test discriminating: %v", err)
 	}
-	if err := generate(dir); err != nil {
+	if err := generate(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("generate: %v", err)
 	}
 	var driftErr error
-	out := captureStdout(t, func() { driftErr = drift(dir) })
+	out := captureStdout(t, func() { driftErr = drift(dir, filepath.Join(dir, "plugins")) })
 	if driftErr != nil {
 		t.Fatalf("drift after generate must be clean: %v", driftErr)
 	}
@@ -242,7 +249,7 @@ func captureStdout(t *testing.T, fn func()) string {
 
 func TestDriftFailsClosedOnMutation(t *testing.T) {
 	dir := writeFixture(t)
-	if err := generate(dir); err != nil {
+	if err := generate(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("generate: %v", err)
 	}
 	// Mutate a generated artifact — drift must FAIL.
@@ -254,7 +261,7 @@ func TestDriftFailsClosedOnMutation(t *testing.T) {
 	if err := os.WriteFile(path, append([]byte("MUTATED\n"), cur...), 0o644); err != nil {
 		t.Fatal(err)
 	}
-	err = drift(dir)
+	err = drift(dir, filepath.Join(dir, "plugins"))
 	if err == nil {
 		t.Fatal("drift must fail after a mutation to a generated artifact")
 	}
@@ -265,7 +272,7 @@ func TestDriftFailsClosedOnMutation(t *testing.T) {
 
 func TestGeneratePrunesRemovedSkill(t *testing.T) {
 	dir := writeFixture(t)
-	if err := generate(dir); err != nil {
+	if err := generate(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("generate: %v", err)
 	}
 	// Remove the postgresql skill from the fixture — the SKILL.md must disappear.
@@ -273,7 +280,7 @@ func TestGeneratePrunesRemovedSkill(t *testing.T) {
 	if err := os.WriteFile(path, []byte(strings.ReplaceAll(fixturePostgres, fixtureSkillBlock, "")), 0o644); err != nil {
 		t.Fatal(err)
 	}
-	if err := generate(dir); err != nil {
+	if err := generate(dir, filepath.Join(dir, "plugins")); err != nil {
 		t.Fatalf("regenerate after skill removal: %v", err)
 	}
 	if _, err := os.Stat(filepath.Join(dir, "plugins", "charly-infrastructure", "skills", "postgresql", "SKILL.md")); !os.IsNotExist(err) {
@@ -323,3 +330,35 @@ postgresql-skill:
         triggers:
             - "postgres / postgresql / pg"
 `
+
+// TestGenerateSplitOut proves the cutover shape: the corpus lands under --out with the legacy
+// "plugins/" prefix stripped, while the harness surface (.claude/, dispatcher) stays at root —
+// the standalone-marketplace invocation (`charly marketplace generate --root <charly> --out
+// <marketplace>`).
+func TestGenerateSplitOut(t *testing.T) {
+	dir := writeFixture(t)
+	out := filepath.Join(dir, "marketplace")
+	if err := generate(dir, out); err != nil {
+		t.Fatalf("generate: %v", err)
+	}
+	// Corpus under out, prefix-free.
+	assertFile(t, out, "core/skills/charly-status/SKILL.md", "name: charly-status")
+	assertFile(t, out, "infrastructure/.claude-plugin/plugin.json", "charly-infrastructure")
+	assertFile(t, out, ".claude-plugin/marketplace.json", "charly-plugins")
+	assertFile(t, out, ".agents/plugins/marketplace.json", "./core")
+	assertFile(t, out, "kimi.plugin.json", `"name": "charly"`)
+	assertFile(t, out, "package.json", "opencharly-marketplace")
+	assertFile(t, out, "profiles.json", "charly-infrastructure")
+	assertFile(t, out, "setup", "charly marketplace")
+	// Harness surface stays at root; the legacy corpus dir at <root>/plugins must NOT exist.
+	assertFile(t, dir, ".claude/hooks/pre-commit-gate.sh", "pre-commit discipline")
+	assertFile(t, dir, ".claude/settings.json", "charly-core@charly-plugins")
+	assertFile(t, dir, "CLAUDE.md", "BEGIN GENERATED SKILL DISPATCHER")
+	if _, err := os.Stat(filepath.Join(dir, "plugins")); !os.IsNotExist(err) {
+		t.Fatalf("legacy <root>/plugins must not exist when --out is given (err=%v)", err)
+	}
+	// drift against the split trees is a no-op.
+	if err := drift(dir, out); err != nil {
+		t.Fatalf("drift after split generate must be clean: %v", err)
+	}
+}
diff --git a/candy/plugin-marketplace/plugin.go b/candy/plugin-marketplace/plugin.go
index 8217f87e..18fb7fb3 100644
--- a/candy/plugin-marketplace/plugin.go
+++ b/candy/plugin-marketplace/plugin.go
@@ -1,9 +1,9 @@
 // Package marketplace is the charly plugin housing the `charly marketplace …` CLI — the
 // generator that regenerates the ENTIRE `charly-plugins` marketplace + harness surface from
-// candy config (the plugins→candies migration's deliverable). It reads every candy's `skill:` /
-// `hook:` / `marketplace:` kind entities, aggregates them by marketplace family, and emits the
-// plugins/ corpus + .claude/ hooks + settings + the R0 dispatcher. `charly marketplace drift` is
-// the fail-closed no-op gate.
+// candy config. It reads every candy's `skill:` / `hook:` / `marketplace:` kind entities,
+// aggregates them by marketplace family, and emits the corpus into --out (the standalone
+// opencharly/marketplace repo root) + the .claude/ hooks + settings + the R0 dispatcher into
+// --root (the charly checkout). `charly marketplace drift` is the fail-closed no-op gate.
 //
 // command:marketplace — `charly marketplace generate|drift`. This plugin is deliberately NOT
 // listed in charly/charly.yml's compiled_plugins: it is a DEV-TIME generator, run on a
diff --git a/candy/plugin-marketplace/prune.go b/candy/plugin-marketplace/prune.go
index 685559be..c8b40f3e 100644
--- a/candy/plugin-marketplace/prune.go
+++ b/candy/plugin-marketplace/prune.go
@@ -5,51 +5,55 @@ import (
 	"io/fs"
 	"os"
 	"path/filepath"
+	"strings"
 )
 
-// prune.go — the generated-artifact boundary. `scanGenerated` returns every repo-relative path
-// that is CURRENTLY generated on disk: header-carrying markdown under the owned trees
-// (plugins/<family>/skills + agents), the known JSON paths (per-family plugin.json/.mcp.json +
-// the marketplace root manifests + the setup launcher), and .claude/hooks (fully generated —
-// every gate script + aux file is a hook entity). The boundary is content (the header) for
-// markdown and known-path + existence for JSON/hooks — never location inference. Hand-authored
-// files (plugins/README.md, plugins/CHANGELOG/, plugins/LICENSE, plugins/scripts/squash_body.py,
-// plugins/kimi-user-config.toml) carry no header and sit outside the known paths, so they are
-// preserved. `generate` deletes the scanned set before writing; `drift` flags a scanned path
-// absent from the emissions map as stale.
+// prune.go — the generated-artifact boundary. `scanGenerated` returns every canonical path that
+// is CURRENTLY generated on disk: header-carrying markdown under the owned corpus trees
+// (<out>/<family>/skills + agents), the known JSON paths (per-family plugin.json/.mcp.json +
+// the marketplace root manifests + the setup launcher), and .claude/hooks under root (fully
+// generated — every gate script + aux file is a hook entity). The boundary is content (the
+// header) for markdown and known-path + existence for JSON/hooks — never location inference.
+// Hand-authored files (README.md, CHANGELOG/, LICENSE, scripts/, kimi-user-config.toml) carry no
+// header and sit outside the known paths, so they are preserved. `generate` deletes the scanned
+// set before writing; `drift` flags a scanned path absent from the emissions map as stale.
 
-func pruneGenerated(root string, families []family, ks *kindSet) error {
-	paths, err := scanGenerated(root, families, ks)
+func pruneGenerated(root, out string, families []family, ks *kindSet) error {
+	paths, err := scanGenerated(root, out, families, ks)
 	if err != nil {
 		return err
 	}
 	for _, rel := range paths {
-		if err := os.Remove(filepath.Join(root, filepath.FromSlash(rel))); err != nil && !os.IsNotExist(err) {
+		base, target := root, rel
+		if strings.HasPrefix(rel, corpusPrefix) {
+			base, target = out, strings.TrimPrefix(rel, corpusPrefix)
+		}
+		if err := os.Remove(filepath.Join(base, filepath.FromSlash(target))); err != nil && !os.IsNotExist(err) {
 			return err
 		}
 	}
 	// Sweep empty dirs left under the owned trees.
 	for _, f := range families {
 		for _, sub := range []string{"skills", "agents"} {
-			_ = removeEmptyDirs(filepath.Join(root, "plugins", f.Name, sub))
+			_ = removeEmptyDirs(filepath.Join(out, f.Name, sub))
 		}
 	}
 	return nil
 }
 
-// scanGenerated lists the repo-relative paths of every currently-generated artifact that EXISTS.
-func scanGenerated(root string, families []family, ks *kindSet) ([]string, error) {
+// scanGenerated lists the canonical paths of every currently-generated artifact that EXISTS,
+// under both trees: the corpus under outDir and the harness surface under root.
+func scanGenerated(root, outDir string, families []family, ks *kindSet) ([]string, error) {
 	var out []string
-	add := func(rel string) {
-		if _, err := os.Stat(filepath.Join(root, filepath.FromSlash(rel))); err == nil {
+	addCorpus := func(rel string) {
+		if _, err := os.Stat(filepath.Join(outDir, filepath.FromSlash(strings.TrimPrefix(rel, corpusPrefix)))); err == nil {
 			out = append(out, rel)
 		}
 	}
-	// 1. header-scanned markdown trees: plugins/<family>/skills + agents.
-	pluginsDir := filepath.Join(root, "plugins")
+	// 1. header-scanned markdown trees: <out>/<family>/skills + agents.
 	for _, f := range families {
 		for _, sub := range []string{"skills", "agents"} {
-			dir := filepath.Join(pluginsDir, f.Name, sub)
+			dir := filepath.Join(outDir, f.Name, sub)
 			if _, err := os.Stat(dir); err != nil {
 				continue
 			}
@@ -65,7 +69,7 @@ func scanGenerated(root string, families []family, ks *kindSet) ([]string, error
 					return err
 				}
 				if hasGeneratedHeader(b) {
-					out = append(out, fileKey(root, path))
+					out = append(out, corpusPrefix+fileKey(outDir, path))
 				}
 				return nil
 			})
@@ -76,14 +80,17 @@ func scanGenerated(root string, families []family, ks *kindSet) ([]string, error
 	}
 	// 2. known JSON paths per family + the marketplace root + the setup launcher.
 	for _, f := range families {
-		add("plugins/" + f.Name + "/.claude-plugin/plugin.json")
-		add("plugins/" + f.Name + "/.codex-plugin/plugin.json")
-		add("plugins/" + f.Name + "/.mcp.json")
+		addCorpus("plugins/" + f.Name + "/.claude-plugin/plugin.json")
+		addCorpus("plugins/" + f.Name + "/.codex-plugin/plugin.json")
+		addCorpus("plugins/" + f.Name + "/.mcp.json")
 	}
-	add("plugins/.claude-plugin/marketplace.json")
-	add("plugins/profiles.json")
-	add("plugins/setup")
-	// 3. .claude/hooks — entirely generated (every gate + aux file is a hook entity).
+	addCorpus("plugins/.claude-plugin/marketplace.json")
+	addCorpus("plugins/.agents/plugins/marketplace.json")
+	addCorpus("plugins/kimi.plugin.json")
+	addCorpus("plugins/package.json")
+	addCorpus("plugins/profiles.json")
+	addCorpus("plugins/setup")
+	// 3. .claude/hooks under root — entirely generated (every gate + aux file is a hook entity).
 	hooksDir := filepath.Join(root, ".claude", "hooks")
 	if ents, err := os.ReadDir(hooksDir); err == nil {
 		for _, de := range ents {
diff --git a/scripts/verify-changelog-h1.sh b/scripts/verify-changelog-h1.sh
index d2a8c926..3b87a66f 100755
--- a/scripts/verify-changelog-h1.sh
+++ b/scripts/verify-changelog-h1.sh
@@ -5,7 +5,7 @@
 #
 # WHY A SCRIPT. This is not a style nit, it is a RECURRING mechanical failure with a known
 # population: opencharly/charly#332 records nine instances (charly 1, sdk 6, spec 2), and a tenth
-# landed on plugins/main while that issue was open.
+# landed on the marketplace repo's main while that issue was open.
 #
 # The mechanism is always the same, and it is not carelessness. A merge-time stamp does
 # `git mv CHANGELOG/<placeholder>.md CHANGELOG/$VER.md`, which STAGES a rename, then edits the H1
@@ -55,7 +55,7 @@ while IFS= read -r f; do
   # the filename's. That is #332 exactly — an author-time stamp surviving a merge-time rename.
   #
   # Everything else is deliberately NOT a finding. A first draft of this script flagged any H1
-  # that did not match `# <CalVer> — <title>`, which reported 35 hits on plugins/main where ONE
+  # that did not match `# <CalVer> — <title>`, which reported 35 hits on the marketplace repo's main where ONE
   # was real: 34 entries predate the convention, some carrying a bare `# <CalVer>` and some a
   # descriptive title. A check that cries wolf 34 times gets disabled by whoever inherits it —
   # the same reasoning that put --no-merges in verify-claimed-changes.sh.
diff --git a/tools/gomod-canonical/gomod_canonical_test.go b/tools/gomod-canonical/gomod_canonical_test.go
index 054926ba..6abea953 100644
--- a/tools/gomod-canonical/gomod_canonical_test.go
+++ b/tools/gomod-canonical/gomod_canonical_test.go
@@ -27,7 +27,7 @@ import (
 // Relocated (#55 decoupling cone, Batch D) from charly/plugin_gomod_canonical_test.go:
 // this is pure plugin-go.mod-file HYGIENE (string assertions on go.mod TEXT — it makes
 // no Go import of any sdk package, and imports nothing itself), so it lives in its own
-// standalone module rather than in charly/ or the plugins/ submodule (which carries no
+// standalone module rather than in charly/ or the marketplace repo (which carries no
 // Go code at all — skills/docs/config only). The glob is adjusted for the new
 // location: tools/gomod-canonical/ is two levels below the repo root
 // (tools/gomod-canonical -> tools -> root), where charly/ was only one level below

Config + prose diffs (full):

diff --git a/.claude/settings.json b/.claude/settings.json
index 36182e87..b56abf91 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -35,8 +35,8 @@
   "extraKnownMarketplaces": {
     "charly-plugins": {
       "source": {
-        "path": "./plugins",
-        "source": "directory"
+        "repo": "opencharly/marketplace",
+        "source": "github"
       }
     }
   },
diff --git a/.gitmodules b/.gitmodules
index b67c51e0..d15342b7 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
-[submodule "plugins"]
-	path = plugins
-	url = https://github.com/opencharly/plugins.git
 [submodule "box/arch"]
 	path = box/arch
 	url = https://github.com/opencharly/distro-arch.git
diff --git a/.opencode/agent/pr-validator.md b/.opencode/agent/pr-validator.md
index 2b60e47b..d8235605 100644
--- a/.opencode/agent/pr-validator.md
+++ b/.opencode/agent/pr-validator.md
@@ -5,7 +5,7 @@ mode: subagent
 
 Act only as the fresh, independent OpenCharly PR validator described by the
 project's AGENTS.md and protected-main validator specification
-(`plugins/internals/agents/pr-validator.md`). Inherit the parent session's
+(the opencharly/marketplace repo's `internals/agents/pr-validator.md`). Inherit the parent session's
 live sandbox and approval model; do not override it or create a validator
 sandbox, linked worktree, clone, alternate Git directory, cache, home, or
 /tmp workspace. Begin in the clean author worktree at the exact PR head.
diff --git a/.pi/README.md b/.pi/README.md
index ce57bdd4..5db91d99 100644
--- a/.pi/README.md
+++ b/.pi/README.md
@@ -1,10 +1,12 @@
 # Pi project config (`.pi/`)
 
 Project-local configuration for [pi](https://pi.dev) agent sessions in this
-repository. Pi auto-loads `AGENTS.md`/`CLAUDE.md` as context and auto-discovers
-the skills under `.agents/skills/` (symlinks into `plugins/`), so no config is
-needed for those. This directory exists to give pi the one thing it lacks
-compared to the other harnesses: a **hooks system**.
+repository. Pi auto-loads `AGENTS.md`/`CLAUDE.md` as context, and loads the
+OpenCharly skill corpus as a pi PACKAGE — `git:github.com/opencharly/marketplace`
+in `settings.json` below, installed automatically at startup after the project
+is trusted (the marketplace repo's root `package.json` declares the `pi` resource
+with a `./*/skills` glob). This directory also gives pi the one thing the other
+harnesses get from their own plugin systems: a **hooks system**.
 
 ## What's here
 
diff --git a/.pi/settings.json b/.pi/settings.json
index 390c7cb9..f6a4422d 100644
--- a/.pi/settings.json
+++ b/.pi/settings.json
@@ -3,6 +3,7 @@
     "./extensions/charly-gates.ts"
   ],
   "packages": [
+    "git:github.com/opencharly/marketplace",
     "npm:[email protected]",
     "npm:[email protected]",
     "npm:@narumitw/[email protected]",
diff --git a/.reasonix/settings.json b/.reasonix/settings.json
index 0131d1bb..4b4ea50d 100644
--- a/.reasonix/settings.json
+++ b/.reasonix/settings.json
@@ -3,12 +3,12 @@
     "PreToolUse": [
       {
         "matcher": "Bash",
-        "command": "bash -c '[ -f \"$PWD/plugins/.claude-plugin/marketplace.json\" ] && [ -f \"$PWD/.claude/hooks/pre-commit-gate.sh\" ] && exec bash \"$PWD/.claude/hooks/pre-commit-gate.sh\" || exit 0'",
+        "command": "bash -c '[ -f \"$PWD/.claude/hooks/pre-commit-gate.sh\" ] && exec bash \"$PWD/.claude/hooks/pre-commit-gate.sh\" || exit 0'",
         "timeout": 30000
       },
       {
         "matcher": "Bash",
-        "command": "bash -c '[ -f \"$PWD/plugins/.claude-plugin/marketplace.json\" ] && [ -f \"$PWD/.claude/hooks/pre-push-gate.sh\" ] && exec bash \"$PWD/.claude/hooks/pre-push-gate.sh\" || exit 0'",
+        "command": "bash -c '[ -f \"$PWD/.claude/hooks/pre-push-gate.sh\" ] && exec bash \"$PWD/.claude/hooks/pre-push-gate.sh\" || exit 0'",
         "timeout": 30000
       }
     ]
diff --git a/AGENTS.md b/AGENTS.md
index 39f80231..48b75e92 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -9,14 +9,19 @@ History belongs only in `CHANGELOG/`.
 
 Before reading source, running repository commands, delegating, planning, or
 editing, load every skill selected by the dispatcher below. Use a registered
-project skill when available; otherwise read the corresponding
-`plugins/<plugin>/skills/<name>/SKILL.md` completely. Load all matches before
-acting. Missing registration is a project-profile defect, not permission to
-skip the skill.
+project skill when available — the harness loads it from the opencharly/marketplace
+repo (Claude Code's `charly-plugins` marketplace, pi's `git:` package, Kimi's
+plugin, Codex's catalog); otherwise read the corresponding
+`<family>/skills/<skill>/SKILL.md` in the opencharly/marketplace repo (the
+standalone marketplace since the de-submodule cutover — every checkout's harness
+loads it natively; `opencharly.github.io/marketplace` hosts the catalogs).
+Load all matches before acting. Missing registration is a project-profile
+defect, not permission to skip the skill.
 
 Work from the superproject root. Run submodule Git through literal
 `git -C <absolute-path>` commands; never root a worker in a submodule. Use this
-dispatcher and `plugins/README.md` to discover every applicable skill. A tool
+dispatcher and the marketplace repo's README (the skill index) to discover every
+applicable skill. A tool
 action before R0 admission is a violation: stop, run the root-cause-analyzer
 process, and re-derive conclusions after loading the required skills.
 
@@ -107,8 +112,9 @@ match, load ALL their skills before doing anything.
 | the agentteams box / the AgentTeams multi-agent stack (Manager–Workers, Rooms, the controller + matrix + element + higress + minio candies) on the pod or vm substrate / the `check-agentteams-pod` and `check-agentteams-vm` beds | `/charly-agentteams:agentteams` |
 <!-- END GENERATED SKILL DISPATCHER -->
 
-Full index: `plugins/README.md`. Anything not listed requires reading the index
-first, loading the matching skill second, and touching code third.
+Full index: the opencharly/marketplace repo's README. Anything not listed
+requires reading the index first, loading the matching skill second, and touching
+code third.
 
 ## Candyboxing
 
@@ -406,9 +412,10 @@ second copy of them.
 - `PROGRAM/`: binding program north-star documents (one file per program, named in every spawn brief).
 - `AGENTS.md`: complete current harness-neutral mandates and dispatcher.
 - `CLAUDE.md`: complete harness adapter with equivalent overall policy.
-- `plugins/<plugin>/skills/<name>/SKILL.md`: detailed procedures and technical
-  ownership.
-- `plugins/README.md`: complete skill index.
+- the opencharly/marketplace repo's `<family>/skills/<skill>/SKILL.md`: detailed
+  procedures and technical ownership (the harness loads it; read it directly from
+  the marketplace repo).
+- the opencharly/marketplace repo's README: complete skill index.
 - `README.md` and current subsystem docs: present behavior and user guidance.
 - [opencharly.ai](https://opencharly.ai) (the standalone [opencharly/docs](https://github.com/opencharly/docs) repo): the public site — a small
   hand-authored narrative plus a reference/recipe catalog GENERATED from the sources above by
diff --git a/CLAUDE.md b/CLAUDE.md
index 2cadd381..965d445b 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -94,7 +94,7 @@ Consult this table before the first tool call of every task; when several rows m
 | the agentteams box / the AgentTeams multi-agent stack (Manager–Workers, Rooms, the controller + matrix + element + higress + minio candies) on the pod or vm substrate / the `check-agentteams-pod` and `check-agentteams-vm` beds | `/charly-agentteams:agentteams` |
 <!-- END GENERATED SKILL DISPATCHER -->
 
-Full index: `plugins/README.md`. Anything not listed: read the index first, load the matching skill second, touch code third.
+Full index: the opencharly/marketplace repo's README. Anything not listed: read the index first, load the matching skill second, touch code third.
 
 ## The pillars
 
@@ -206,7 +206,7 @@ The named skills own the full technical rules; this index never expands into a s
 
 - **Rules & mandates** → this file + `AGENTS.md` (equivalent policy).
 - **Features & command reference** → `README.md`.
-- **Usage & architecture** → skills (`plugins/README.md` is the index) — the single source of truth for *how*.
+- **Usage & architecture** → skills (the opencharly/marketplace repo's README is the index) — the single source of truth for *how*.
 - **Thesis & direction** → `VISION.md`.
 - **Program north-star documents** → `PROGRAM/` (one file per program, named in every spawn brief).
 - **Public site** → [opencharly.ai](https://opencharly.ai), built from the standalone [opencharly/docs](https://github.com/opencharly/docs) repo: a small hand-authored narrative plus a reference/recipe catalog GENERATED from the sources above by `charly docs generate` against the charly commit the docs repo's `.gitmodules` pins. Never hand-edit a generated page; fix the source — regeneration is a docs PR that bumps the charly pin, and the docs repo's deploy workflow (the sole generator/builder/publisher) enforces it.
diff --git a/GRIEVANCES.md b/GRIEVANCES.md
index c4d4becb..62cabe99 100644
--- a/GRIEVANCES.md
+++ b/GRIEVANCES.md
@@ -291,5 +291,5 @@ the description is complete because it is composed of units that each carry thei
 proof that travels with the thing it describes.
 
 For the positive statement of where that leads, see [the vision](VISION.md). For how any of it
-works, see the [skills index](plugins/README.md) or the site at
+works, see the [skills index](https://github.com/opencharly/marketplace) or the site at
 [opencharly.ai](https://opencharly.ai).
diff --git a/PROGRAM/factory-north-star.md b/PROGRAM/factory-north-star.md
index c7129e0c..fe17ad06 100644
--- a/PROGRAM/factory-north-star.md
+++ b/PROGRAM/factory-north-star.md
@@ -5,7 +5,7 @@ spawn brief. "The Agent-in-the-Loop Factory" is the *product's* name (see `READM
 this program builds the multi-agent subsystem that runs on it, and the two are
 deliberately distinct scopes. The charly repo's `CLAUDE.md` + `AGENTS.md` are the
 rulebook; this file restates no rule. Detailed HOW lives in skills
-(`plugins/README.md` is the index). This document holds the concrete end-state,
+(the opencharly/marketplace repo's README is the index). This document holds the concrete end-state,
 vocabulary, the containment model, the trust boundaries, ordered decision heuristics,
 the cutover sequence, observed anti-patterns, and measured state. On a
 task-vs-north-star conflict a teammate stops and asks, never resolves locally.
@@ -269,7 +269,7 @@ MinIO, which every flavor exposes identically — the venue is below them.
   `factory-spike-native` (`pod:` + nesting) / `factory-spike-kustomize` /
   `factory-spike-helm` (`vm:` + k3s), all `disposable: true`; beds `check-helm-vm`
   (+ its `check-helm-vm-ctx` kubernetes profile), `check-factory-spike-<flavor>`.
-- `plugins/` — the Factory owning skill + a bed-executor agent entry (verbatim-proof
+- the marketplace repo's corpus — the Factory owning skill + a bed-executor agent entry (verbatim-proof
   pattern), `model: inherit` like the rest of the roster.
 - Docs — recipe cards in the candy sources; `charly docs generate` runs in the opencharly/docs
   repo's deploy workflow against its pinned charly checkout; never hand-edit a generated page;
@@ -299,7 +299,7 @@ front-loads the named HOWs.
    and the `/charly-kubernetes:helm` recipe card that units 2 and 3 shipped capability
    without. The dispatcher is a CURATED fast path, not an index — 60 of 307 skill
    entities carry `triggers:`, and anything absent falls back to the documented
-   `plugins/README.md` route — so a missing row does not make a capability
+   the marketplace README route — so a missing row does not make a capability
    unreachable, it makes it easy to miss at the first tool call. For surfaces as
    central as the helm words and the whole agentteams family that is a real routing
    gap. The row and its skill land together, never split: a row naming a skill that
@@ -335,7 +335,7 @@ front-loads the named HOWs.
 | Factory / incident spike / improvement spike / forge-spike / spike flavor / regression-bed growth | `/charly-agentteams:factory` | unit 9 |
 
 Skills are GENERATED from a candy's `skill:` entity by `charly marketplace generate` —
-never hand-written into `plugins/`. Per-directory CLAUDE.md files under the new candies
+never hand-written into the marketplace corpus. Per-directory CLAUDE.md files under the new candies
 are thin signposts naming these skills; they restate no rule.
 (`/charly-agentteams:agentteams` exists today as the recipe card of the
 `charly-agentteams` plugin and only lacked a dispatcher row;
@@ -411,7 +411,7 @@ proposal until unit 9 lands it.)
 - [x] Unit 4: dispatcher rows resolve; `/charly-kubernetes:helm` published; this
       document audited claim-by-claim against the tree (documentation-only class —
       the gate is the non-runtime standards, not a bed). The rows are live in
-      `CLAUDE.md` and `AGENTS.md` and `plugins/kubernetes/skills/helm/` exists; the
+      `CLAUDE.md` and `AGENTS.md` and the marketplace's `kubernetes/skills/helm/` exists; the
       box went unchecked at the time and was corrected during unit 5
 - [x] Unit 5: `charly box load` delivers an image into a nested uid-1000 store, bed
       green — `check-boxload-pod` PASS (13 steps), with `boxload-deliver` and
diff --git a/PROGRAM/pi-integration.md b/PROGRAM/pi-integration.md
index 94778de6..e95ed4db 100644
--- a/PROGRAM/pi-integration.md
+++ b/PROGRAM/pi-integration.md
@@ -203,7 +203,7 @@ pi.registerTool({
 
     // If no match, try the full index
     if (matched.size === 0) {
-      // Fall back to plugins/README.md for full index
+      // Fall back to the marketplace README for full index
     }
 
     // Read each matching SKILL.md
@@ -337,8 +337,8 @@ truth approach — the JSON is generated from the same source as the Markdown.
     {
       "trigger_patterns": ["charly box build", "Containerfile", "build"],
       "skills": [
-        {"name": "build", "path": "plugins/charly-build/skills/build/SKILL.md"},
-        {"name": "generate", "path": "plugins/charly-build/skills/generate/SKILL.md"}
+        {"name": "build", "path": "build/skills/build/SKILL.md"},
+        {"name": "generate", "path": "build/skills/generate/SKILL.md"}
       ]
     },
     ...
@@ -515,7 +515,7 @@ pi.registerTool({
 | 1 | `.pi/extensions/charly-gates.ts` | Add `before_agent_start` handler that injects condensed R0–R10 + PR body rules |
 | 2 | `.pi/extensions/charly-gates.ts` | Add `charly_load_skills` custom tool with `promptGuidelines` |
 | 3 | `.pi/prompts/*.md` | Create 6 prompt templates |
-| 4 | `plugins/.../generate/` | Extend marketplace generate to emit `skill_triggers.json` |
+| 4 | the marketplace's `build` family | Extend marketplace generate to emit `skill_triggers.json` |
 | 4 | `.agents/skill_triggers.json` | Generated file (consumed by Layer 2) |
 | 5 | `AGENTS.md` | Add pi-specific sub-agent instructions |
 | 5 | `.pi/subagents/` | Agent definitions for charly roles |
@@ -531,6 +531,6 @@ pi.registerTool({
 3. **Layer 6** (pre-push PR body validation) — extend existing gate script.
 4. **Layer 7** (worktree tool) — extension change, no charly repo code.
 5. **Layer 4** (machine-readable dispatcher) — requires changes to the `charly
-   marketplace generate` pipeline (Go code in `plugins/`). This is the only
+   marketplace generate` pipeline (Go code in `candy/plugin-marketplace/`). This is the only
    item that touches charly source code. All others are pi config + extension
    changes only.
\ No newline at end of file
diff --git a/README.md b/README.md
index 9a54fb18..b6298c49 100644
--- a/README.md
+++ b/README.md
@@ -421,7 +421,7 @@ dynamic workflows. It installs into whichever harnesses have an adapter today 
 Code, Codex and Kimi — in these modes: `developer` (every plugin), `user` (use and author with
 charly, without contributor internals), and `container <family>` (one generated container family).
 It writes only target-repository files, never any user configuration, and does not depend on MCP.
-See [plugins/README.md](plugins/README.md) for the full index.
+See the [opencharly/marketplace](https://github.com/opencharly/marketplace) repo's README for the full skill index.
 
 Setup instructions live in that repository's own README. They currently require a checkout, which
 is a gap rather than a design: there is no way to install the skill tree with only the `charly`
diff --git a/VISION.md b/VISION.md
index 93d435eb..4516810f 100644
--- a/VISION.md
+++ b/VISION.md
@@ -17,7 +17,7 @@ Every candy, every box, every probe serves one end: **to build a better candybox
    → README "Build → run → deploy → evaluate".
 
 3. **Every candy ships with its recipe card.** Every candy, box, and verb carries a dedicated skill, so nothing in the candy store is a mystery — neither you nor your agents ever have to guess what a piece does, how it's made, or how it should taste.
-   → `plugins/README.md`.
+   → the opencharly/marketplace repo's README.
 
 4. **Two tasters at one bench.** The same `charly` surface serves you at the keyboard and your agents driving the line, with no second-class channel for either. Built for you *and* your agents, in the same breath.
    → CLAUDE.md "Candyboxing", `/charly-internals:agents`.
@@ -61,4 +61,4 @@ Every candy, every box, every probe serves one end: **to build a better candybox
 
 ---
 
-*The factory floor is documented in [README.md](README.md); the house rules in [CLAUDE.md](CLAUDE.md); every candy and box has a recipe card in [plugins/README.md](plugins/README.md) — all of it published, and generated rather than retyped, at [opencharly.ai](https://opencharly.ai). Dated history lives — and only lives — in each repo's [CHANGELOG/](CHANGELOG/README.md), one file per CalVer version.*
+*The factory floor is documented in [README.md](README.md); the house rules in [CLAUDE.md](CLAUDE.md); every candy and box has a recipe card in the [opencharly/marketplace](https://github.com/opencharly/marketplace) repo's README — all of it published, and generated rather than retyped, at [opencharly.ai](https://opencharly.ai). Dated history lives — and only lives — in each repo's [CHANGELOG/](CHANGELOG/README.md), one file per CalVer version.*
diff --git a/reasonix.toml b/reasonix.toml
index 82a773e3..aa95ec3c 100644
--- a/reasonix.toml
+++ b/reasonix.toml
@@ -3,12 +3,9 @@ mode = "ask"
 allow = [
     # Built-in exploration
     "explore",
-    # Submodule and plugin discovery
-    "Bash(cd $PWD && git submodule status plugins 2>/dev/null; ls plugins/ 2>/dev/null | head -5; echo \"---\"; ls .claude/skills/ 2>/dev/null || echo \"no .claude/skills/\"; echo \"---\"; ls .reasonix/ 2>/dev/null || echo \"no .reasonix/\")",
-    "Bash(cd $PWD && cat .agents/skills/.charly-profile.json | python3 -c \"import json,sys; d=json.load(sys.stdin); print(json.dumps(list(d.keys())[:5], indent=2)); print('...'); print('total entries:', len(d))\" 2>/dev/null || echo \"parse failed\")",
-    "Bash(cd $PWD && cat .agents/skills/.charly-profile.json | python3 -c \"\nimport json,sys\nd=json.load(sys.stdin)\nprint('version:', d.get('version'))\nprint('links count:', len(d.get('links',[])))\nfor l in d.get('links',[])[:3]:\n    print(' ', l)\n\")",
+    # Marketplace + harness discovery
+    "Bash(ls .pi/git/github.com/opencharly/marketplace 2>/dev/null || echo \"marketplace not fetched\"; echo \"---\"; ls .claude/skills/ 2>/dev/null || echo \"no .claude/skills/\"; echo \"---\"; ls .reasonix/ 2>/dev/null || echo \"no .reasonix/\")",
     "Bash(cd $PWD && git submodule status 2>/dev/null)",
-    "Bash(cd $PWD && cat .agents/skills/.charly-profile.json | python3 -c \"\nimport json,sys\nd=json.load(sys.stdin)\nprint('version:', d.get('version'))\nlinks = d.get('links',{})\nprint('links count:', len(links))\n# Show a few entries\nfor k in list(links.keys())[:5]:\n    print(f'  {k} -> {links[k]}')\n\")",
     # Charly R10/check verbs (parity with Claude Code + Kimi)
     "Bash(charly check run:*)",
     "Bash(charly check live:*)",
diff --git a/taskfiles/Skills.yml b/taskfiles/Skills.yml
index 42d08733..202ecc0c 100644
--- a/taskfiles/Skills.yml
+++ b/taskfiles/Skills.yml
@@ -1,34 +1,38 @@
 # Skills.yml — the harness/marketplace surface, generated from candy config.
 #
-# The `charly-plugins` marketplace (plugins/) + the harness wiring (.claude/ hooks + settings,
-# the R0 dispatcher) are generated from the candies' `skill:` / `hook:` / `marketplace:` kind
-# entities by `charly marketplace generate`, served by candy/plugin-marketplace — a RUNTIME
-# plugin, deliberately absent from charly/charly.yml's compiled_plugins (a dev-time generator,
-# the plugin-docs placement). `charly marketplace drift` is the fail-closed no-op gate; the
-# committed plugins/ tree + .claude/ files must be a no-op regeneration.
+# The `charly-plugins` marketplace lives in the STANDALONE opencharly/marketplace repo since the
+# marketplace de-submodule cutover: it pins charly in its own .gitmodules, and its own deploy
+# workflow builds charly from the pin and regenerates the corpus under a drift gate. charly
+# itself carries only the harness surface (.claude/ hooks + settings, the R0 dispatcher),
+# generated here by the same `charly marketplace generate` from the candies' `skill:` / `hook:` /
+# `marketplace:` kind entities — served by candy/plugin-marketplace, a RUNTIME plugin,
+# deliberately absent from charly/charly.yml's compiled_plugins (a dev-time generator, the
+# plugin-docs placement). `--out` is the marketplace checkout the corpus is written to (or
+# compared against); `charly marketplace drift` is the fail-closed no-op gate for both trees.
 version: '3'
 
 vars:
-  PLUGINS_DIR: '{{.ROOT_DIR}}/plugins'
+  # The sibling checkout of the opencharly/marketplace repo. Contributors keep one clone next to
+  # this repo (the default below) and regenerate the corpus into it; its own CI gates it.
+  MARKETPLACE_DIR: '{{.ROOT_DIR}}/../marketplace'
 
 tasks:
   sync:
-    desc: Regenerate the plugins/ marketplace + harness surface from candy config
+    desc: Regenerate the charly harness surface + the marketplace corpus from candy config
     cmds:
       - task: :build:binary
-      - '{{.ROOT_DIR}}/bin/charly marketplace generate --root {{.ROOT_DIR}}'
+      - '{{.ROOT_DIR}}/bin/charly marketplace generate --root {{.ROOT_DIR}} --out {{.MARKETPLACE_DIR}}'
       - cmd: |
-          if ! git -C {{.ROOT_DIR}} diff --quiet || [ -n "$(git -C {{.ROOT_DIR}} status --porcelain -- .claude CLAUDE.md AGENTS.md charly.yml go.work charly/plugins_generated.go)" ]; then
+          if [ -n "$(git -C {{.ROOT_DIR}} status --porcelain -- .claude CLAUDE.md AGENTS.md)" ]; then
             echo
             echo "skills: regeneration changed the harness surface — review and commit:"
-            git -C {{.ROOT_DIR}} status --short -- .claude CLAUDE.md AGENTS.md charly.yml go.work charly/plugins_generated.go | head -20
+            git -C {{.ROOT_DIR}} status --short -- .claude CLAUDE.md AGENTS.md | head -20
           fi
-          if ! git -C {{.PLUGINS_DIR}} diff --quiet || [ -n "$(git -C {{.PLUGINS_DIR}} status --porcelain)" ]; then
+          if [ -d {{.MARKETPLACE_DIR}}/.git ] && [ -n "$(git -C {{.MARKETPLACE_DIR}} status --porcelain)" ]; then
             echo
-            echo "skills: regeneration changed the plugins/ submodule — review and commit there:"
-            git -C {{.PLUGINS_DIR}} status --short | head -20
-          else
-            echo "skills: plugins/ already up to date (regeneration is a no-op)."
+            echo "skills: regeneration changed the marketplace corpus — review and commit it in the"
+            echo "marketplace repo (opencharly/marketplace):"
+            git -C {{.MARKETPLACE_DIR}} status --short | head -20
           fi
         silent: true
 
@@ -40,43 +44,50 @@ tasks:
       # that cannot fail truthfully is worse than no gate. `sync` builds for the same
       # reason; drift is the read-only half of the same pair.
       - task: :build:binary
-      # The gate fails on NEW drift only, measured against scripts/drift-baseline-skills.txt
-      # (see scripts/drift-baseline.sh for why, and for why that file can only shrink).
-      #
-      # `marketplace drift` exits non-zero for stale artifacts AND for real errors — a bad
-      # decode, a stale-binary refusal. Those must not parse as "no artifacts, therefore
-      # clean", so a non-zero exit without the artifact header is a hard failure with the
-      # raw output. Only the block BETWEEN the header and the `run ...` trailer is treated
-      # as the stale set; charly's own diagnostics indent lines too.
-      #
-      # The `&& rc=0 || rc=$?` form is load-bearing, not style: Task's shell aborts the whole
-      # cmd on a failing `raw=$(...)` assignment, so the plain `; rc=$?` form exits 1 having
-      # printed NOTHING — drift and a real error become the same silent red.
-      #
-      # The trailing ` (stale)` annotation charly appends to ORPHANED artifacts is stripped:
-      # the baseline keys on the artifact PATH, and orphaned-vs-rewritten is a property of
-      # how it is stale, not of which artifact it is.
       - cmd: |
-          raw=$({{.ROOT_DIR}}/bin/charly marketplace drift --root {{.ROOT_DIR}} 2>&1) && rc=0 || rc=$?
+          raw=$({{.ROOT_DIR}}/bin/charly marketplace drift --root {{.ROOT_DIR}} --out {{.MARKETPLACE_DIR}} 2>&1) && rc=0 || rc=$?
           printf '%s\n' "$raw"
-          if [ "$rc" -ne 0 ] && ! printf '%s\n' "$raw" | grep -q 'generated artifact(s) are stale:'; then
-            echo "skills: marketplace drift failed for a reason that is NOT drift (see above)." >&2
+          [ "$rc" -eq 0 ] || { echo "skills: marketplace drift failed (see above)." >&2; exit 1; }
+        silent: true
+      - cmd: |
+          if [ -n "$(git -C {{.ROOT_DIR}} status --porcelain -- .claude CLAUDE.md AGENTS.md)" ]; then
+            echo "skills: DRIFT — the committed harness surface does not match candy config." >&2
+            git -C {{.ROOT_DIR}} status --short -- .claude CLAUDE.md AGENTS.md >&2
             exit 1
           fi
-          printf '%s\n' "$raw" \
-            | awk '/generated artifact\(s\) are stale:/{i=1;next} /^run /{i=0} i&&/^  /{sub(/^  /,"");sub(/ \(stale\)$/,"");print}' \
-            | bash {{.ROOT_DIR}}/scripts/drift-baseline.sh {{.ROOT_DIR}}/scripts/drift-baseline-skills.txt skills
+          echo "skills: no drift."
         silent: true
+
+  pin:
+    desc: Fail if candy/plugin-marketplace's MARKETPLACE_REF has drifted from the marketplace repo's current main HEAD
+    cmds:
       - cmd: |
-          if [ -n "$(git -C {{.ROOT_DIR}} status --porcelain -- .claude CLAUDE.md AGENTS.md charly.yml go.work charly/plugins_generated.go)" ]; then
-            echo "skills: DRIFT — the committed harness surface does not match candy config." >&2
-            git -C {{.ROOT_DIR}} status --short -- .claude CLAUDE.md AGENTS.md charly.yml go.work charly/plugins_generated.go >&2
+          file=candy/plugin-marketplace/charly.yml
+          declared=$(grep -E '^\s+MARKETPLACE_REF:' "$file" | awk '{print $2}')
+          # The sha appears TWICE in the candy on purpose: once as MARKETPLACE_REF (the clone's
+          # cache key) and once as a literal in the pinned-commit check's stdout matcher, because
+          # a check step's substitution does not resolve a candy var: and would SKIP the step
+          # instead. Both must track the marketplace main commit, so both are asserted here.
+          occurrences=$(grep -c "$declared" "$file" || true)
+          live=$(git ls-remote https://github.com/opencharly/marketplace.git refs/heads/main | awk '{print $1}')
+          if [ -z "$live" ]; then
+            echo "marketplace: could not fetch opencharly/marketplace main HEAD (network?) — skipping" >&2
+            exit 0
+          fi
+          if [ "$declared" != "$live" ]; then
+            echo "marketplace: MARKETPLACE_REF drift" >&2
+            echo "  MARKETPLACE_REF: $declared" >&2
+            echo "  marketplace main: $live" >&2
+            echo "The check-marketplace bed would build the WRONG commit — and, because the clone" >&2
+            echo "layer's cache key is that string, would keep passing while doing it." >&2
+            echo "Bump both occurrences in candy/plugin-marketplace/charly.yml in a charly PR." >&2
             exit 1
           fi
-          if [ -n "$(git -C {{.PLUGINS_DIR}} status --porcelain)" ]; then
-            echo "skills: DRIFT — the plugins/ submodule does not match candy config." >&2
-            git -C {{.PLUGINS_DIR}} status --short >&2
+          if [ "$occurrences" -lt 2 ]; then
+            echo "marketplace: the pinned sha appears $occurrences time(s) in candy/plugin-marketplace/charly.yml; expected 2" >&2
+            echo "(MARKETPLACE_REF plus the marketplace-pinned-commit check's stdout matcher)" >&2
+            echo "A stale literal means the anti-staleness check asserts the WRONG public commit." >&2
             exit 1
           fi
-          echo "skills: no drift."
+          echo "marketplace: MARKETPLACE_REF ($declared) matches the marketplace repo's current main head; both occurrences present."
         silent: true

Candy diffs (full — the 8 content-bearing; the 22 boilerplate share the 2-line shape of the sample):

diff --git a/candy/charly-build/charly.yml b/candy/charly-build/charly.yml
index aad1400a..8cefe0c8 100644
--- a/candy/charly-build/charly.yml
+++ b/candy/charly-build/charly.yml
@@ -3,14 +3,14 @@ charly-build:
         version: 2026.218.1200
         description: |-
             Concept candy owning the charly-build authoring skills (build/generate/list/validate/migrate/…). Owns its family's `skill:` kind entities (sibling nodes in this file) — the
-            plugins→candies migration; candy/plugin-marketplace regenerates the plugins/ corpus
-            from them.
+            the plugins→candies migration; candy/plugin-marketplace regenerates the marketplace
+            corpus (the standalone opencharly/marketplace repo) from them.
         plan:
             - run: this documentation-only candy ships no install content (it carries the family's skill/hook/marketplace entities); validate-satisfying no-op
               command: "true"
               context:
                 - build
-            - check: the build concept candy's skill entities are present and generated into plugins/build/skills
+            - check: the build concept candy's skill entities are present and generated into the marketplace's build/skills
               id: charly-build-present
               context:
                 - build
@@ -1173,7 +1173,8 @@ docs-skill:
             | Flag | Meaning |
             |---|---|
             | `--out` | docs content root to write into (required) |
-            | `--root` | repo root holding `charly.yml`, `candy/`, `box/`, `plugins/` (default: cwd) |
+            | `--root` | repo root holding `charly.yml`, `candy/`, `box/` (default: cwd) |
+            | `--plugins` | the opencharly/marketplace checkout the skill corpus is read from (default: `<root>/plugins`) — the docs deploy passes its marketplace submodule |
 
             ## What it emits
 
@@ -1199,7 +1200,7 @@ docs-skill:
 
             | Tree | Source |
             |---|---|
-            | `index.md` | `README.md`, H1 and tagline dropped (the frontmatter title and hero render them), `https://opencharly.ai/…` links rewritten site-relative, and the repo-relative targets `AGENTS.md`, `plugins/README.md` and `CHANGELOG/README.md` repointed at GitHub or their site equivalent |
+            | `index.md` | `README.md`, H1 and tagline dropped (the frontmatter title and hero render them), `https://opencharly.ai/…` links rewritten site-relative, and the repo-relative targets `AGENTS.md`, the marketplace repo's README and `CHANGELOG/README.md` repointed at GitHub or their site equivalent |
             | `grievances.md` | `GRIEVANCES.md`, H1 dropped, repo-relative links rewritten for a web reader |
             | `vision.md` | `VISION.md`, H1 dropped, repo-relative links rewritten for a web reader |
             | `liberation.md` | `LIBERATION.md`, H1 dropped, repo-relative links rewritten — the deliberate easter-egg page, entered last in the sidebar as "Liberation" |
@@ -1233,14 +1234,16 @@ docs-skill:
 
             **Skill prose — TWO hops.** `recipes/` is NOT read from `candy/*/charly.yml`. A skill is
             authored as a `skill:` entity in its owning candy; `charly marketplace generate` projects
-            that into `plugins/<plugin>/skills/<name>/SKILL.md`, and `charly docs generate` reads
-            **that projection** — the `plugins/` submodule tree, never the candy source. Editing a
-            `skill:` entity therefore changes nothing on the site until `charly marketplace generate`
-            has run, and on any CLEAN checkout the tree it reads is the pinned gitlink, so the change
-            reaches readers only once the `plugins` landing merges and the superproject's `plugins`
-            gitlink advances. **Advancing that gitlink without regenerating `docs` in the same change
-            is what leaves the published site stale**, and nothing except the docs repo's drift gate
-            will say so — which is precisely how the mirror has fallen behind before.
+            that into the opencharly/marketplace repo (`<family>/skills/<name>/SKILL.md`), and
+            `charly docs generate` reads **that projection** (via `--plugins` — the marketplace
+            checkout the docs repo pins as a submodule), never the candy source. Editing a `skill:`
+            entity therefore changes nothing on the site until `charly marketplace generate` has
+            run and the marketplace landing merges; the docs repo pins the marketplace in its own
+            `.gitmodules` (branch `main`), so the change reaches readers once the marketplace main
+            advances and a docs PR regenerates the site at the moved corpus. **Advancing the corpus
+            without regenerating `docs` in the same change is what leaves the published site stale**,
+            and nothing except the docs repo's drift gate will say so — which is precisely how the
+            mirror has fallen behind before.
 
             The ordering this forces — regenerate the projection, land the producer repo, then the
             consumer (docs) and its charly pin — is `/charly-internals:git-workflow` B6's
diff --git a/candy/charly-check/charly.yml b/candy/charly-check/charly.yml
index 062a4f56..85e0df67 100644
--- a/candy/charly-check/charly.yml
+++ b/candy/charly-check/charly.yml
@@ -3,14 +3,14 @@ charly-check:
         version: 2026.218.1200
         description: |-
             Concept candy owning the charly-check evaluation skills (check orchestration + the probe verbs). Owns its family's `skill:` kind entities (sibling nodes in this file) — the
-            plugins→candies migration; candy/plugin-marketplace regenerates the plugins/ corpus
-            from them.
+            the plugins→candies migration; candy/plugin-marketplace regenerates the marketplace
+            corpus (the standalone opencharly/marketplace repo) from them.
         plan:
             - run: this documentation-only candy ships no install content (it carries the family's skill/hook/marketplace entities); validate-satisfying no-op
               command: "true"
               context:
                 - build
-            - check: the check concept candy's skill entities are present and generated into plugins/check/skills
+            - check: the check concept candy's skill entities are present and generated into the marketplace's check/skills
               id: charly-check-present
               context:
                 - build
@@ -2535,7 +2535,7 @@ check-skill:
 
                   | Change class | Pre-flight | The R10 gate | Tier on a clean pass | Explicitly NOT required |
                   |---|---|---|---|---|
-                  | **Documentation-only change class** — `*.md` (`AGENTS.md` / `CLAUDE.md`, `plugins/**/SKILL.md`, READMEs, CHANGELOG), comment-only code edits, or a submodule pointer bump to an all-documentation submodule commit; zero behavior change | markdown integrity, link checks | The non-runtime standards: adversarial consistency review, the R5 grep self-test, cross-reference validation, and command-safety gates | `documentation reviewed` | ANY bed run or image build — beds cannot fail on prose |
+                  | **Documentation-only change class** — `*.md` (`AGENTS.md` / `CLAUDE.md`, the marketplace corpus's `**/SKILL.md`, READMEs, CHANGELOG), comment-only code edits, or a submodule pointer bump to an all-documentation submodule commit; zero behavior change | markdown integrity, link checks | The non-runtime standards: adversarial consistency review, the R5 grep self-test, cross-reference validation, and command-safety gates | `documentation reviewed` | ANY bed run or image build — beds cannot fail on prose |
                   | **Hook / workflow scripts** — `.claude/hooks/*.sh`, `.claude/workflows/*.js` | `bash -n` / async-body parse | Execute the changed script live: run the hook directly (paste its output); a workflow whose control flow changed runs against ONE bed matching the change. Prompt-string-only workflow edits: parse + the non-runtime standards | `fully tested and validated` | The full bed fan-out |
                   | **Harness project configuration** — `AGENTS.md`, `.codex/**`, repo-native `.agents/**`, or an executable that provisions or validates those surfaces | Parse the changed configuration; run the project profile and static-validator checks; verify exact gitlink and linked-worktree provenance | Run the final-tree repository harness gate: execute each changed validator/provisioner directly, verify only the gitlinks dispatched by the change class at their recorded revisions, and run the committed developer-profile checks. A Git-provisioning change also proves its canonical-object reference and exact-gitlink behavior in a dedicated linked worktree. Record the exact approved commands and active managed sandbox available for this run. This proves repository-controlled behavior; never claim that it proves settings loaded by a newly launched harness process. The fresh validator independently decides whether the final-tree delta additionally requires a Charly R10 bed and runs it when required. | `fully tested and validated` | A forced restart/new session, alternate home/cache/workspace, or unrelated VM/container roster that cannot exercise repository configuration |
                   | **`charly` Go code** | `go test ./...` + `go vet` + `task build:binary` (R9 freshness + `charly version` check against `./bin/charly`) | `charly check run <bed>` for EACH bed whose kind matches a touched code path: box/candy/pod/deploy-target mechanism → `check-pod`; `target: local` → `check-local`; VM / kubernetes → `check-k3s-vm`; a feature surface → its feature bed. Cross-cutting loader / resolver / IR / unified-schema changes → fan every matching bed out concurrently, by owner: short beds via `/verify-beds` (one `charly check run <bed>` per agent), every long bed (`vm`/`android`, or last run ≥600s) as a persistent-session `run_in_background` task — in-spec for that class, not a scope override; a `/verify-beds` result with `gateComplete: false` is a partial roster, never a green gate | `fully tested and validated` | Beds whose substrate the change cannot reach |
diff --git a/candy/charly-internals/charly.yml b/candy/charly-internals/charly.yml
index 4c063542..b593d4ae 100644
--- a/candy/charly-internals/charly.yml
+++ b/candy/charly-internals/charly.yml
@@ -3,14 +3,14 @@ charly-internals:
         version: 2026.218.1200
         description: |-
             Concept candy owning the charly-internals contributor skills (go/plugin/agents/skills/cutover/…). Owns its family's `skill:` kind entities (sibling nodes in this file) — the
-            plugins→candies migration; candy/plugin-marketplace regenerates the plugins/ corpus
-            from them.
+            the plugins→candies migration; candy/plugin-marketplace regenerates the marketplace
+            corpus (the standalone opencharly/marketplace repo) from them.
         plan:
             - run: this documentation-only candy ships no install content (it carries the family's skill/hook/marketplace entities); validate-satisfying no-op
               command: "true"
               context:
                 - build
-            - check: the internals concept candy's skill entities are present and generated into plugins/internals/skills
+            - check: the internals concept candy's skill entities are present and generated into the marketplace's internals/skills
               id: charly-internals-present
               context:
                 - build
@@ -90,19 +90,20 @@ agents-skill:
                   | | Claude Code | Codex | Kimi |
                   |---|---|---|---|
                   | Rulebook | `CLAUDE.md` | `AGENTS.md` | `AGENTS.md` (read natively) |
-                  | Skills | plugin manager (`charly-*@charly-plugins`) | `.agents/skills/` repo-native links (also Kimi's source) | `.agents/skills/` project scope, on-demand `Skill` tool / `/skill:<name>`; when not in the session listing, `Read` the `plugins/<plugin>/skills/<name>/SKILL.md` path |
-                  | Sub-agents | custom agents (`plugins/internals/agents/*.md`, `.claude/agents/`) | fresh native agent threads (`.codex/agents/*.toml` roles, e.g. `pr-validator`) | built-in `coder` / `explore` / `plan` only — no custom subagent registry |
+                  | Skills | plugin manager (`charly-*@charly-plugins`, the opencharly/marketplace repo) | the marketplace's `.agents/plugins/marketplace.json` catalog (Codex registers the repo by GitHub source) | kimi plugin (the whole marketplace is one plugin, installed by GitHub URL) / on-demand `Skill` tool; when not in the session listing, `Read` the marketplace repo's `<family>/skills/<name>/SKILL.md` |
+                  | Sub-agents | custom agents (the marketplace's `internals/agents/*.md`, `.claude/agents/`) | fresh native agent threads (`.codex/agents/*.toml` roles, e.g. `pr-validator`) | built-in `coder` / `explore` / `plan` only — no custom subagent registry |
                   | Fresh validator / teammate | sub-agent or team teammate with the agent brief | fresh agent thread with the role toml | a fresh separate `kimi` session (interactive or `kimi -p`) briefed with the agent `.md` by path — context isolation is what makes it independent |
                   | Dynamic workflows | `.claude/workflows/*.js` (run `/<name>`) | re-derived per thread | re-derived per session (no workflow runtime) |
                   | Teams | `~/.claude/teams/` (experimental) | concurrent fresh threads | concurrent fresh sessions |
                   | Gates | `permissions.allow` + the auto-mode classifier (`.claude/settings.json` wires NO hooks — the gate scripts in `.claude/hooks/` are invoked by the other harnesses, not by Claude Code) | sandbox + on-request approvals (`.codex/config.toml`) | hooks + `[[permission.rules]]` in user-level `~/.kimi-code/config.toml` (no project-level config; repo-guarded delegation to `.claude/hooks/`) — no auto-mode classifier |
                   | Hook events | UserPromptSubmit / PreToolUse / Stop / TaskCreated / TaskCompleted / TeammateIdle | — (approvals instead) | UserPromptSubmit / PreToolUse / Stop / SubagentStart / SubagentStop |
 
-                  **Harness-agnostic invariants:** the agent briefs in
-                  `plugins/internals/agents/*.md` are written for any harness's fresh
+                  **Harness-agnostic invariants:** the agent briefs in the marketplace's
+                  `internals/agents/*.md` are written for any harness's fresh
                   evaluator; the `pr-validator` is always a fresh, independent context rooted
                   at the superproject, loading the protected-main rulebook and triggered
-                  skills by path (`plugins/<plugin>/skills/<name>/SKILL.md`) before candidate
+                  skills (the marketplace's `<family>/skills/<name>/SKILL.md`, read by path
+                  from the harness's marketplace load) before candidate
                   actions; and the two-step landing (author opens, fresh evaluator
                   validates/merges/tags) is the sole landing path in every harness.
 
@@ -114,7 +115,7 @@ agents-skill:
                   | Holds the plan | Claude, turn by turn | The script | The lead + a shared task list |
                   | Intermediate results | Claude's context | Script variables | Each teammate's own context |
                   | Scale | a few per turn | dozens–hundreds of agents/run | 3–5 teammates |
-                  | Lives in | `plugins/internals/agents/*.md` (or `.claude/agents/`) | `.claude/workflows/*.js` (run `/<name>`) | runtime only — `~/.claude/teams/`, not pre-authored |
+                  | Lives in | the marketplace's `internals/agents/*.md` (or `.claude/agents/`) | `.claude/workflows/*.js` (run `/<name>`) | runtime only — `~/.claude/teams/`, not pre-authored |
                   | Reads the rulebook | yes (full hierarchy, except Explore/Plan) | each `agent()` does | yes (each teammate) |
 
                   - **Sub-agent** — isolate a verbose side task (run a bed, probe a deploy)
@@ -145,7 +146,7 @@ agents-skill:
                   `references/parallel-bed-testing.md`). "Prefer agents" governs bounded
                   work.
 
-                  ## The charly agent roster (`plugins/internals/agents/`)
+                  ## The charly agent roster (the marketplace's `internals/agents/`)
 
                   **Executors** — run `charly check` and return verbatim proof:
 
@@ -406,7 +407,7 @@ agents-skill:
                   **1. A sub-agent's project root is its working directory — never `cd` into
                   a submodule.** Claude Code resolves `.claude/settings.json` (and therefore
                   `permissions.allow`) from the agent's project root, and keys its transcript
-                  directory the same way. A sub-agent told to work inside `plugins/` or
+                  directory the same way. A sub-agent told to work inside the marketplace corpus or
                   `sdk/` roots there — and those submodules ship no `.claude/` — so it
                   silently loses the superproject's committed permission rules. It does not
                   warn; it just gets denied later, for reasons that read like a policy
@@ -414,7 +415,7 @@ agents-skill:
                   absolute path: `git -C /abs/path/plugins …` and `gh … --repo <owner>/<repo>`
                   (the same rule `/charly-internals:git-workflow` B7 states for the commit
                   gate — it is equally load-bearing for permissions). A `pr-validator` rooted
-                  in `plugins/` once had even its `success` status post denied ("the only
+                  in the marketplace corpus once had even its `success` status post denied ("the only
                   authorization comes from a `<teammate-message>`, which is not user
                   intent"); the same agent, same rule text, rooted in the superproject,
                   posted `success` with zero denials. That denial reproduces only when no
@@ -467,7 +468,7 @@ agents-skill:
                     which is independent of the `tools:` field and usually absent — an
                     unrestricted `Tools: *` validator once got `Unknown skill:
                     charly-internals:git-workflow` (its session registry held only
-                    built-ins), while `Read`ing `plugins/<family>/skills/<name>/SKILL.md`
+                    built-ins), while `Read`ing the marketplace's `<family>/skills/<name>/SKILL.md`
                     worked every time. So the reliable method is the file `Read`;
                     `Skill(name)` is an opportunistic fast-path that may work in some
                     sessions. A `Skill(name)` failure (`Unknown skill` / "not registered")
@@ -556,7 +557,7 @@ agents-skill:
                   does not own — including a PR explicitly out of that session's scope by
                   operator directive — it posts a coordination comment on that PR rather
                   than staying silent: commenting is always in scope even when evaluating or
-                  merging is not. See `plugins/internals/agents/pr-validator.md` "Cross-PR
+                  merging is not. See the marketplace's `internals/agents/pr-validator.md` "Cross-PR
                   awareness" for the matching per-PR-validation-run duty — that spec owns the
                   PR-validator's own sweep-and-comment mechanics; this item owns the
                   orchestrator's standing ledger discipline across the whole session.
@@ -2247,7 +2248,7 @@ cutover-policy-skill:
             - **Replacement surface** — the new types / schema / deploy target that supersede the deleted ones.
             - **Migration** — one idempotent migration-table entry (`candy/plugin-migrate/migrations.cue`) that harvests legacy fields into the new shape, preserves pre-existing user keys, and never clobbers customizations.
             - **Load-time error** — old projects loading under the new code get a hard error naming the legacy field and pointing at `charly migrate`.
-            - **Documentation refresh** — every referring skill revised in the same sweep; no stale references to any deleted identifier in `plugins/`, `README.md`, or `AGENTS.md` / `CLAUDE.md` (R5 grep self-test).
+            - **Documentation refresh** — every referring skill revised in the same sweep; no stale references to any deleted identifier in the marketplace corpus, `README.md`, or `AGENTS.md` / `CLAUDE.md` (R5 grep self-test).
             - **Test deletions** — fixtures and assertions exercising the legacy surface removed; new fixtures exercise the replacement.
             - **CHANGELOG entry at merge** — the merged PR's title + body are written by the
               tag-on-merge workflow to the repo's per-CalVer file `CHANGELOG/<YYYY.DDD.HHMM>.md`
@@ -3508,7 +3509,7 @@ git-workflow-skill:
         description: |-
             Use when committing, branching, pushing, opening PRs, or landing a change with
             gh — the feat/-branch, R10-gated, PR-ONLY, org-workflow-validated, never-force-push
-            landing across the main repo, its plugins/docs/box submodules, and the
+            landing across the main repo, its box submodules, the marketplace repo, and the
             proxy-resolved sdk contract module (no submodule — consumed at the pinned
             go.mod require). A direct push to main is FORBIDDEN and mechanically disabled; the
             org-wide `charly/pr-validator` GitHub Actions gate validates the PR and, on PASS,
@@ -3531,7 +3532,7 @@ git-workflow-skill:
             author (who opens the PR) from the fresh validator (a check run on the same PR).
             This skill is the mechanics; the project rulebook "Post-Execution Policies" (`AGENTS.md` / `CLAUDE.md`) carries the
             mandate, `/charly-internals:cutover-policy` the one-phase rule, `/charly-build:migrate`
-            the schema-version/tag coupling, and `plugins/internals/agents/pr-validator.md` the
+            the schema-version/tag coupling, and the marketplace's `internals/agents/pr-validator.md` the
             validator's own spec.
 
             ## Non-negotiable invariants
diff --git a/candy/jupyter-mcp/charly.yml b/candy/jupyter-mcp/charly.yml
index 8b69493c..85620af7 100644
--- a/candy/jupyter-mcp/charly.yml
+++ b/candy/jupyter-mcp/charly.yml
@@ -186,7 +186,7 @@ jupyter-mcp-skill:
             |---|---|---|---|
             | `candy/jupyter/charly.yml` | `env.MCP_SERVER_NAME` | `"jupyter"` | Runtime advertisement |
             | `candy/jupyter/charly.yml` | `mcp_provide[0].name` | `jupyter` | Cross-container discovery (hermes, openwebui) |
-            | `plugins/charly-jupyter/.mcp.json` | `mcpServers.jupyter` | — | Claude Code static registration |
+            | the marketplace's `jupyter/.mcp.json` | `mcpServers.jupyter` | — | Claude Code static registration |
             
             **Package/candy/box names describe the artifact; the MCP name describes the service contract.** Rename the artifact freely; the contract is stable.
             
diff --git a/candy/jupyter/charly.yml b/candy/jupyter/charly.yml
index 7bbfd86f..4b4900de 100644
--- a/candy/jupyter/charly.yml
+++ b/candy/jupyter/charly.yml
@@ -575,7 +575,7 @@ jupyter-skill:
             claude mcp add --transport http --scope project jupyter http://localhost:8888/mcp
             ```
             
-            **The `charly-jupyter` plugin** (`plugins/charly-jupyter/.mcp.json`) — declares
+            **The `charly-jupyter` plugin** (the marketplace's `jupyter/.mcp.json`) — declares
             the same server at the project level for the opencharly repo itself.
             Suitable when you're working IN the opencharly checkout (the file is
             gitignored downstream of `.claude-plugin/plugin.json`).
diff --git a/candy/marimo/charly.yml b/candy/marimo/charly.yml
index 86dd90a4..19106631 100644
--- a/candy/marimo/charly.yml
+++ b/candy/marimo/charly.yml
@@ -32,7 +32,7 @@ marimo:
             LD_LIBRARY_PATH: "/usr/lib64"
             # Stable, well-known path for any AI agent (driving marimo via MCP) to
             # discover the marimo-team/skills set. Mirrors the Anthropic-style
-            # SKILL.md discovery used by opencharly's own plugins/<plugin>/skills/.
+            # SKILL.md discovery used by opencharly's own marketplace corpus (<family>/skills/).
             MARIMO_SKILLS_DIR: "/opt/marimo-skills"
         distro:
             arch:
diff --git a/candy/plugin-harness-kind/charly.yml b/candy/plugin-harness-kind/charly.yml
index f3823de1..b6605220 100644
--- a/candy/plugin-harness-kind/charly.yml
+++ b/candy/plugin-harness-kind/charly.yml
@@ -15,7 +15,7 @@ plugin-harness-kind:
             COMPILED-IN (in the embedded compiled_plugins:) — the plugin-candy-kind placement,
             because the words must be recognized on every parse (validate/build/deploy) without an
             out-of-process build. The `skill` bodies feed BOTH the ai.opencharly.skills OCI label
-            (CollectSkills → `charly box labels`) and the regenerated plugins/ corpus
+            (CollectSkills → `charly box labels`) and the regenerated marketplace corpus
             (candy/plugin-marketplace, command:marketplace); `hook` bodies feed the .claude/hooks/*
             emission + settings.json wiring; the `marketplace` body feeds the plugin.json /
             marketplace.json / profiles.json / settings.json generated surface.
diff --git a/candy/plugin-marketplace/charly.yml b/candy/plugin-marketplace/charly.yml
index a12d6392..9bad822d 100644
--- a/candy/plugin-marketplace/charly.yml
+++ b/candy/plugin-marketplace/charly.yml
@@ -4,19 +4,23 @@ plugin-marketplace:
         description: |-
             RUNTIME (out-of-process) charly plugin serving `charly marketplace …` — the generator
             that regenerates the ENTIRE `charly-plugins` marketplace + harness surface from candy
-            config, the plugins→candies migration's deliverable. It reads every candy's `skill:`
-            / `hook:` / `marketplace:` kind entities (the candywalk discovery), aggregates them
-            by marketplace family, and emits: plugins/<family>/skills/*/SKILL.md + references/*.md,
-            plugins/<family>/agents/*.md, per-family .claude-plugin/plugin.json + .codex-plugin/
-            plugin.json + .mcp.json, plugins/.claude-plugin/marketplace.json + plugins/profiles.json,
-            the .claude/settings.json plugin-owned keys, .claude/hooks/* (from hook entities),
-            the generated R0 dispatcher section in CLAUDE.md/AGENTS.md, and the plugins/setup
-            launcher. `charly marketplace drift` is the fail-closed no-op gate: it regenerates in
-            memory and compares with the artifacts ON DISK, never with git, so it proves
-            "regeneration is a no-op" and says nothing about whether the tree is committed —
-            this repository's own `task skills:drift` recipe is what adds that `git status`
-            half. A stale mirror is a hard failure, but it is red only for whoever runs it:
-            drift runs in no CI workflow.
+            config. It reads every candy's `skill:` / `hook:` / `marketplace:` kind entities (the
+            candywalk discovery), aggregates them by marketplace family, and emits — into --out,
+            the STANDALONE opencharly/marketplace repo's root (the corpus): <family>/skills/*/
+            SKILL.md + references/*.md, <family>/agents/*.md, per-family .claude-plugin/plugin.json
+            + .codex-plugin/plugin.json + .mcp.json, .claude-plugin/marketplace.json (Claude Code /
+            Cursor), .agents/plugins/marketplace.json (Codex / the AGENTS framework), kimi.plugin.json
+            (Kimi — the whole marketplace is one plugin), package.json (pi — the whole marketplace
+            is one pi package), profiles.json, and the setup launcher — and — into --root, the
+            charly-local harness surface: the .claude/settings.json plugin-owned keys, .claude/hooks/*
+            (from hook entities) and the generated R0 dispatcher section in CLAUDE.md/AGENTS.md.
+            `charly marketplace drift` is the fail-closed no-op gate: it regenerates in memory and
+            compares with the artifacts ON DISK (the corpus under --out, the surface under --root),
+            never with git, so it proves "regeneration is a no-op" and says nothing about whether
+            the tree is committed — this repository's `task skills:drift` recipe adds that `git
+            status` half, and the marketplace repo's deploy workflow runs the same gate on a fresh
+            checkout at its pinned charly. A stale mirror is a hard failure, but drift runs in no
+            CI workflow of this repo: the marketplace repo's own gate owns the corpus.
 
             PLACEMENT — deliberately NOT listed in charly/charly.yml compiled_plugins. This is a
             DEV-TIME generator, run on a contributor's machine to regenerate the harness surface
@@ -25,16 +29,144 @@ plugin-marketplace:
             reverse channel — which is what makes the out-of-process placement free here (the same
             property that lets `charly docs` and `charly migrate` run in either placement).
 
-            HAND-AUTHORED, NEVER TOUCHED: plugins/README.md, plugins/CHANGELOG/, plugins/CLAUDE.md,
-            plugins/LICENSE, plugins/scripts/squash_body.py, plugins/kimi-user-config.toml, and the
-            hand-owned keys of .claude/settings.json (permissions, env, teammateMode, …).
+            HAND-AUTHORED, NEVER TOUCHED (in the marketplace repo): README.md, CHANGELOG/,
+            CLAUDE.md, LICENSE, scripts/squash_body.py, kimi-user-config.toml, and the hand-owned
+            keys of .claude/settings.json (permissions, env, teammateMode, …).
         plugin:
             source: github.com/opencharly/charly/candy/plugin-marketplace
             providers:
                 - command:marketplace
+        var:
+            MARKETPLACE_REPO: https://github.com/opencharly/marketplace.git
+            # An IMMUTABLE COMMIT, never a branch name (the same cache-correctness rule as the
+            # docs-site bed's DOCS_REF): `var:` values are emitted as ENV above the steps, so the
+            # clone layer's cache key moves only when this string moves. It must equal the
+            # marketplace repo's current `main` head; `task marketplace:pin` checks that, and the
+            # pinned-commit check below asserts it from inside the built image.
+            MARKETPLACE_REF: f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e
+        distro:
+            fedora:
+                package:
+                    - git
         plan:
-            - check: the marketplace command plugin ships a buildable Go module (go.mod + the provider package); the generate → drift round trip is covered by this plugin's own Go tests and this repository's `task skills:drift`, while the live R10 bed (check-marketplace) covers the ARTIFACT they produce — the baked ai.opencharly.skill label
+            - check: the marketplace command plugin ships a buildable Go module (go.mod + the provider package); the generate → drift round trip is covered by this plugin's own Go tests and this repository's `task skills:drift`, while the live R10 bed (check-marketplace) covers the ARTIFACT they produce — the published marketplace corpus at the pinned commit
               id: marketplace-module-present
               context:
                 - build
               command: "true"
+
+            - run: clone the published marketplace at the pinned commit
+              command: |
+                rm -rf /srv/marketplace
+                git init -q /srv/marketplace
+                git -C /srv/marketplace remote add origin "${MARKETPLACE_REPO}"
+                git -C /srv/marketplace fetch -q --depth 1 origin "${MARKETPLACE_REF}"
+                git -C /srv/marketplace checkout -q FETCH_HEAD
+                # Record what was ACTUALLY fetched, in the same layer as the fetch, so a stale
+                # cached layer carries a stale sha (the docs-site bed precedent).
+                git -C /srv/marketplace rev-parse HEAD > /srv/marketplace/.charly-pinned-commit
+              run_as: root
+
+            - # The sha is a LITERAL here, duplicating MARKETPLACE_REF above, because charly's
+              # check-step substitution does not resolve a candy `var:` — it SKIPS the step with
+              # "unresolved variables" instead, turning this guard into a non-event while the bed
+              # still reported PASS. `task marketplace:pin` asserts BOTH occurrences against the
+              # marketplace repo's live main head, so the duplication cannot drift unnoticed.
+              check: the cloned marketplace is the pinned commit, not a stale cached layer
+              id: marketplace-pinned-commit
+              exit_status: 0
+              stdout:
+                - contains: f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e
+              context:
+                - build
+                - runtime
+              command: cat /srv/marketplace/.charly-pinned-commit
+
+            - check: the Claude Code / Cursor catalog exists and parses, and every entry's source resolves to a real family directory (the corpus shape the marketplace's own drift gate guarantees; the bed re-proves it on the published artifact)
+              id: marketplace-claude-catalog
+              exit_status: 0
+              stdout:
+                - contains: charly-plugins
+              context:
+                - build
+                - runtime
+              command: |
+                test -f /srv/marketplace/.claude-plugin/marketplace.json && python3 -c '
+                import json,sys
+                m=json.load(open("/srv/marketplace/.claude-plugin/marketplace.json"))
+                assert m["name"]=="charly-plugins" and m["plugins"]
+                for p in m["plugins"]:
+                    assert p["source"].startswith("./"), p
+                    import os; assert os.path.isdir("/srv/marketplace/"+p["source"][2:]), p["source"]
+                print("charly-plugins catalog OK (%d plugins)" % len(m["plugins"]))
+                '
+
+            - check: the Codex / AGENTS catalog exists and every entry's local source resolves
+              id: marketplace-agents-catalog
+              exit_status: 0
+              stdout:
+                - contains: INSTALLED_BY_DEFAULT
+              context:
+                - build
+                - runtime
+              command: |
+                test -f /srv/marketplace/.agents/plugins/marketplace.json && python3 -c '
+                import json,os
+                m=json.load(open("/srv/marketplace/.agents/plugins/marketplace.json"))
+                assert m["plugins"]
+                for p in m["plugins"]:
+                    assert p["source"]["source"]=="local" and os.path.isdir("/srv/marketplace/"+p["source"]["path"][2:]), p
+                    assert p["policy"]["installation"]=="INSTALLED_BY_DEFAULT"
+                print("INSTALLED_BY_DEFAULT: %d plugins" % len(m["plugins"]))'
+
+            - check: the kimi + pi manifests ship at the marketplace root (the whole marketplace is one kimi plugin and one pi package)
+              id: marketplace-kimi-pi-manifests
+              exit_status: 0
+              stdout:
+                - contains: pi-package
+              context:
+                - build
+                - runtime
+              command: |
+                test -f /srv/marketplace/kimi.plugin.json
+                test -f /srv/marketplace/package.json
+                grep -q pi-package /srv/marketplace/package.json
+                python3 -c 'import json; m=json.load(open("/srv/marketplace/kimi.plugin.json")); assert m["skills"]'
+                echo "pi-package + kimi manifests present"
+
+            - check: a baked corpus skill carries the generator header and the two-key frontmatter contract (the ai.opencharly.skill label the generator bakes)
+              id: marketplace-baked-skill
+              exit_status: 0
+              stdout:
+                - contains: GENERATED by `charly marketplace generate`
+                - contains: "name: build"
+              context:
+                - build
+                - runtime
+              command: cat /srv/marketplace/build/skills/build/SKILL.md
+
+            - check: per-family manifests carry NO version field (commit-SHA versioning) and the marketplace repository URL
+              id: marketplace-no-version-manifests
+              exit_status: 0
+              stdout:
+                - contains: opencharly/marketplace
+              context:
+                - build
+                - runtime
+              command: |
+                python3 -c '
+                import json
+                d=json.load(open("/srv/marketplace/build/.claude-plugin/plugin.json"))
+                assert "version" not in d, d
+                assert d["repository"].endswith("opencharly/marketplace"), d
+                print("opencharly/marketplace manifest: no version field")'
+
+            - check: the setup launcher ships executable at the marketplace root
+              id: marketplace-setup-launcher
+              exit_status: 0
+              stdout:
+                - contains: charly marketplace
+              context:
+                - build
+                - runtime
+              command: test -x /srv/marketplace/setup && head -2 /srv/marketplace/setup

Family-candy boilerplate sample (22 files, identical 2-line shape):

diff --git a/candy/charly-core/charly.yml b/candy/charly-core/charly.yml
index 6d6d86af..9b0a3992 100644
--- a/candy/charly-core/charly.yml
+++ b/candy/charly-core/charly.yml
@@ -3,14 +3,14 @@ charly-core:
         version: 2026.218.1200
         description: |-
             Concept candy owning the charly-core command skills (start/stop/status/logs/shell/ssh/deploy/…). Owns its family's `skill:` kind entities (sibling nodes in this file) — the
-            plugins→candies migration; candy/plugin-marketplace regenerates the plugins/ corpus
-            from them.
+            the plugins→candies migration; candy/plugin-marketplace regenerates the marketplace
+            corpus (the standalone opencharly/marketplace repo) from them.
         plan:
             - run: this documentation-only candy ships no install content (it carries the family's skill/hook/marketplace entities); validate-satisfying no-op
               command: "true"
               context:
                 - build
-            - check: the core concept candy's skill entities are present and generated into plugins/core/skills
+            - check: the core concept candy's skill entities are present and generated into the marketplace's core/skills
               id: charly-core-present
               context:
                 - build

Rulebook compliance

Rule How / N/A
R0 git-workflow + strict-policy skills loaded before editing
R1 N/A — no surfaced failure; the RDD pre-flight ran before any edit (RDD discipline); the validator's B5 comment-divergence findings fixed in-tree in the same PR
R2 N/A — no surfaced issue parked; the bed's first live run is structurally post-landing (the marketplace pin dependency — ground-rule-3 disclosed, no coverage claimed)
R3 the generator remains the single canonical surface owner (candy/plugin-marketplace); the harness configs own no re-implemented policy
R4 no workarounds — the marketplace:pin check + the drift gates are the policy's own operations
R5 the plugins submodule, the .agents/ farm, the hand-authored agents catalog, the drift-baseline script, the reasonix profile probes and every stale plugins/ reference are removed in this commit (sweep pasted)
R6 git status checked; no force-push; feat-branch + PR landing
R7 the R10 fresh-clone gate pasted above IS the gate; the charly module go vet/test + both plugin suites green
R8 the emitted artifacts verified live: the fresh-clone generate + drift run above exercised the emission paths (406 artifacts)
R9 the binary was built from the fresh-clone source with the CalVer stamp (mp-r10e) and charly version printed it — binary equals source
R10 the fresh-clone proof above runs on the final COMMITTED HEAD (248ae89) + the marketplace tree (06f9beb), never an edited state; the check-marketplace bed is implemented but its first live run is post-landing by construction (its shape gates assert the cutover corpus, which the committed MARKETPLACE_REF predates) — no R10 coverage claimed for the bed at this head

Change classification

  • Change class: cutover (submodule removal + generator rework + harness rewiring)
  • Verification gate: go vet/go test (charly module + both plugin modules) + the R10 fresh-clone drift gate + task build:binary + marketplace:pin
  • Attribution tier: analysed on a live system — the final committed trees executed live (R10 fresh clones) and the generator/emission paths ran with retained output; the check-marketplace bed's first LIVE run is structurally parked behind the marketplace landing + the ref bump (the bed's shape gates cannot pass on the pre-cutover corpus the committed ref points at), so the full gate did not pass at this head
  • Landing: fresh charly/pr-validator; tag-on-merge

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

…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.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: b61963fa2183ab8c890ea981ad6aa28ea197cee1 (base 92df8e639eca379835f3599b130a5aeda519f1fc)

Change class: cutover — submodule removal + generator rework + harness rewiring (359 files, +720/−1371)

Security screen: CANNOT BE EXECUTED — get_pr_diff failed (diff exceeds the 300-file retrieval limit), so the T3 scope-mismatch/secrets/guardrail screen and the mandatory B16 placement gate, A1 per-file accounting, B13 SDD, and B18 gates cannot be verified against any file content. A merge assertion cannot be made on this basis.

Blocks

  1. R10/A1 — the R10 gate ran on a STALE tree, not the head. The body claims the R10 fresh-clone proof ran on "the final COMMITTED branch trees (69c5b70 + 06f9beb), never an edited state". The live commit history shows 69c5b70f4256 (09:57:53Z) followed by a SEPARATE later commit b61963fa2183 (10:05:17Z) — which IS the head. The body's "final committed tree" citation is contradicted by the live head, so the pasted R10 proof is superseded regardless of what b61963fa2183 contains. The author must either re-run the fresh-clone marketplace generate/drift gate on the actual head b61963fa2183 (and the marketplace tree it pins) and re-paste the output, or prove b61963fa2183 is a zero-delta re-commit. Until then, the A3 tier fully tested and validated is not justified against the current head.

  2. A2/B12 — the body's own named R10 bed never ran (by name). The Summary states "check-marketplace R10 bed (candy/plugin-marketplace): clones the published marketplace at the immutable MARKETPLACE_REF and gates its shape (catalogs parse, INSTALLED_BY_DEFAULT, no version fields, baked skill headers, executable setup, pinned-commit check)". The How-tested R10 section pastes only marketplace generate and marketplace drift output — no check-marketplace (or any named bed) run appears. The generate/drift no-op evidence does not exercise the shape gates the bed is defined to enforce. Paste the actual bed run on the MARKETPLACE_REF tree, or the change-class bed coverage is unproven.

  3. Tool-limited (diff unverifiable) — mandatory review surfaces cannot be certified. The 359-file diff exceeds the retrieval limit; I could not inspect a single file. Consequently: the T3 security screen (scope mismatch / secrets / guardrail weakening — relevant here because the change touches the submodule .gitmodules, harness rewiring, and generator), B16 placement (mandatory for every PR), B13 SDD (generated files vs schema/*.cue sources for the generator rework), B5/B10 (sweep claims), and B18 cannot be verified. Also, CI shows validate / validate still in_progress (only go + wait-for-ci green), so the full gate is not yet confirmed green. The PR must be re-presented in a reviewable form (e.g. split into reviewable chunks or a per-file listing) and the R10 proof reconciled with the head before this can pass.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: b61963fa2183ab8c890ea981ad6aa28ea197cee1 (branch: feat/marketplace-cutover, base 92df8e639eca)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files, +720/−1371; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's own pasted full diffs against get_pr_meta, the commit list, and the live body — every finding below is verifiable from the body's own material).

Comment intake: the single github-actions[bot] review was re-derived against the current state — Finding 1 (R10 ran on a stale tree) is stale-superseded: the current body's R10 proof rev-parses b61963fa2183ab8c890ea981ad6aa28ea197cee1, which IS the live head. Finding 2 (check-marketplace bed never ran by name) is verified-blocking in substance, re-derived with specifics below. Finding 3 (tool-limited) is verified-non-blocking as a standalone reason — the body now pastes complete diffs for every non-mechanical class — but my own independent findings below stand on that pasted material.

Blocks

  1. B12/T4 — the marketplace-pinned-commit check can never pass, and task marketplace:pin fails today, contradicting the body. In candy/plugin-marketplace/charly.yml: MARKETPLACE_REF: f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e (40 chars), but the check's stdout literal is contains: f4f5980f9540e6a4cf88b9a0d86de7ba7717b1e — the 9th char c is missing (39 chars). cat /srv/marketplace/.charly-pinned-commit can never contain that literal. Worse, task marketplace:pin greps the declared sha for 2 occurrences; the wrong literal means grep -c finds only 1, so the task exits 1 with "appears 1 time(s) … expected 2" — the body's claim "marketplace:pin matches the live main head" is contradicted by the diff it pastes. Fix: make the stdout literal an exact duplicate of MARKETPLACE_REF and paste the actual task marketplace:pin output.

  2. B12 — the marketplace-setup-launcher check can never pass, yet the body claims it passed. The step runs test -x /srv/marketplace/setup && head -1 /srv/marketplace/setup with stdout matcher contains: charly marketplace. head -1 emits only line 1, #!/usr/bin/env bash — the string "charly marketplace" lives on line 2 (the GENERATED header). The body's own pasted gate output (#!/usr/bin/env bash) is exactly the output that fails its own matcher. Fix the command (head -2/cat) or the matcher, then re-run and re-paste.

  3. A2/B12 — the check-marketplace R10 bed still has no coherent run. The body admits the bed's first live run happens post-landing (the published main at MARKETPLACE_REF is still the pre-cutover corpus, so multiple shape gates would fail at the current pin). The manual gate executions substituted for it contradict the diff for the two gates above. Provide a coherent bed proof — gates whose commands and stdout matchers agree with the diff, run on the tree the ref will carry — or the change-class bed coverage and the A3 tier fully tested and validated are unproven (a gate that cannot pass as written proves nothing).

Non-blocking note: validate / validate is still in_progress at review time (go + wait-for-ci green); confirm it completes green before merge.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 66e7a907b7fbff7f6705338c86a3ea5403998660 (branch: feat/marketplace-cutover) — note the live head is 66e7a907 (the validator-fix commit), not the b61963fa named in the prompt; get_pr_meta and the commit list agree on 66e7a907.

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files, +720/−1371; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's own pasted diffs, the commit list, and live meta for internal consistency).

Comment intake:

  • Comment 1 (github-actions[bot]): Finding 1 (R10 ran on a stale tree) — stale-superseded (body's R10 proof rev-parses 66e7a907, the live head). Finding 2 (no named bed run) — verified-blocking in substance (re-derived below). Finding 3 (tool-limited) — verified-non-blocking as a standalone reason (body pastes full diffs) but the diff tool still fails, so every finding here rests on the pasted material.
  • Comment 2 (pi-review-action): Finding 1 (pinned-commit literal) — verified-blocking, re-derived: the body's OWN pasted "Complete diffs" still show the buggy literal (see Block 1). Finding 2 (setup-launcher head -1) — stale-superseded: the current pasted diff shows head -2 and the bed output shows both lines, consistent. Finding 3 (bed incoherence) — verified-blocking in substance (Block 2).

Blocks

  1. B12/R1 — the pinned-commit literal contradiction survives; the fix is not evidenced. The head commit 66e7a907 claims to "correct the marketplace-pinned-commit literal", and the body's bed-output section quotes the 40-char literal f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e and claims task marketplace:pin reports "both occurrences present". But the body's own pasted candy/plugin-marketplace/charly.yml diff (labelled "Complete diffs") still shows the stdout matcher as contains: f4f5980f9540e6a4cf88b9a0d86de7ba7717b1e — 39 chars, the 9th char c missing (the pre-fix defect the previous review found). If the file really still holds the 39-char literal, task marketplace:pin (which greps the declared 40-char sha for 2 occurrences) finds 1 and exits 1 — directly contradicting the pasted pin output; if the file holds the 40-char literal, the pasted "Complete diffs" is not the current diff. Either way the core R10/pin evidence is self-contradictory. Fix: paste the ACTUAL current candy/plugin-marketplace/charly.yml (both occurrences of the sha) and the actual task marketplace:pin output from the head; the literal must be an exact duplicate of MARKETPLACE_REF.

  2. A2/B12 — no coherent check-marketplace bed run exists for this change class. The bed is the required R10 gate for the generator rework, yet the body pastes no charly check run check-marketplace output — only manual executions of its commands on a local tree (06f9beb), and it admits the bed's first LIVE run happens post-landing because the committed MARKETPLACE_REF (f4f5980) still points at the pre-cutover corpus, against which the shape gates (.agents/plugins/marketplace.json, kimi.plugin.json, no-version manifests, baked headers) would fail as committed. The substitute manual proof is additionally contradicted by Block 1 on the pinned-commit gate. Fix: run the actual bed at the head against a corpus state where every gate passes and paste the run; or state explicitly how the committed bed can be green before the marketplace landing, with coherent per-gate evidence.

  3. A1 — manifest accounting does not reconcile. The body's class counts sum to 380 (294 deleted .agents/ + 1 gitlink + 1 drift-baseline.sh + 25 family-candy boilerplate + 38 generator/Go + 21 harness/prose), not the live changed_files: 359. Reconcile the accounting with the actual diff.

Non-blocking: validate / validate is still in_progress (go + wait-for-ci green); confirm it completes green before merge.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 66e7a907b7fbff7f6705338c86a3ea5403998660 (branch: feat/marketplace-cutover, base 92df8e639eca)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files, +720/−1371). get_pr_diff exceeds the 300-file limit, so this review cross-checks the body's pasted diffs/evidence against the commit list, meta, and CI — per ground rule 4, every finding below is derived from that material's internal consistency.

Blocks

  1. A2/B12 (R10) — the check-marketplace bed has no coherent green run; the pasted gate executions contradict the diff, and the bed is RED at merge time by the author's own account.

    • The pinned-commit gate (candy/plugin-marketplace/charly.yml, step marketplace-pinned-commit) matches stdout contains: f4f5980… (the body's own task marketplace:pin success output requires the literal to equal MARKETPLACE_REF: f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e). But the body's pasted gate execution for that step records 06f9beb027219f5732d74be6f418cbd1c11b64ae as the clone's HEAD. 06f9beb… does not contain f4f5980… — the gate FAILS on the tree the author tested. The annotation "matches the recorded sha on the live run" is false for the pasted run.
    • The bed as written cannot pass on any tree: at the pinned MARKETPLACE_REF (f4f5980, the pre-cutover corpus) the shape gates (agents catalog, no-version manifests, new setup launcher) fail; at the post-cutover tree (06f9beb) the pinned-commit matcher fails. The author admits "the bed's first LIVE run happens post-landing (the pin moves with the marketplace merge)" — i.e., this PR lands a bed that is guaranteed red at merge time, with the green run parked behind a future charly bump. That is a parked gate (R2/R10) and a result you cannot reconcile from the diff (B12). Fix: run the actual charly check run check-marketplace on a coherent tree (bump MARKETPLACE_REF + both literal occurrences to the marketplace head this cutover is cut against) and paste the full green run, or do not claim R10 coverage.
  2. A1/B12 — the pinned-commit literal fix is unproven; the body's own evidence contradicts itself. The pasted diff (documented "base 92df8e6 → head b61963f") still shows the stdout matcher as f4f5980f9540e6a4cf88b9a0d86de7ba7717b1e (39 chars — the 9th char c missing, exactly the defect the prior review blocked on), while the How-tested narrative cites the literal as f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e and claims task marketplace:pin sees "both occurrences present" (grep -c of the declared sha would find 1, not 2, against the pasted file content). One of these is false. The fix commit 66e7a907's content is never shown anywhere in the body — no post-fix diff is pasted. Fix: paste the actual committed diff of 66e7a907 for candy/plugin-marketplace/charly.yml showing the stdout literal byte-identical to MARKETPLACE_REF.

  3. R5 — stale references to a deleted artifact in a touched file. reasonix.toml retains two allow-rules probing cat .agents/skills/.charly-profile.json … while this PR deletes .agents/skills/.charly-profile.json (the 294-file .agents/ deletion). The pasted sweep only greps plugins/, so it missed these. A file this PR edits still references a path this PR deletes. Sweep both rules (or justify keeping them) in the same commit.

  4. CI — the full gate is not confirmed green at the head. validate / validate is still in_progress (only go + wait-for-ci completed green). A merge assertion requires the complete gate green.

A3 note (folded into block 1): the claimed tier fully tested and validated is not justified — the new/changed bed-gate code paths never executed against a tree where they pass; the strongest supportable tier is analysed on a live system. Also charly version output is never pasted and the R9 stamp is cited inconsistently (mp-r10 in the R9 row vs mp-r10c in the R10 build line).

Comment intake:

  • Comment 1 (5385464387): finding 1 (R10 on a stale tree) — stale-superseded (the body's R10 proof now rev-parses the live head 66e7a90); finding 2 (bed never ran by name) — verified-blocking (re-derived as block 1); finding 3 (tool-limited) — verified-non-blocking as a standalone reason (the body pastes full non-mechanical diffs), though my independent findings stand.
  • Comment 2 (5385487527): finding 1 (pinned-commit literal) — verified-blocking in substance (block 2); finding 2 (setup-launcher head -1) — verified-non-blocking at the current state (pasted diff shows head -2, and the pasted gate output satisfies the contains: charly marketplace matcher), with the caveat that the pasted diff's provenance header (base→b61963fa) is inconsistent with it already containing the fix; finding 3 (bed coverage) — verified-blocking (block 1).

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 66e7a907b7fbff7f6705338c86a3ea5403998660 (branch: feat/marketplace-cutover)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files, +720/−1371; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's pasted diffs/evidence against get_pr_meta, the commit list, live body, and CI for internal consistency — ground rule 4).

Security screen: no finding from the pasted material (no credentials, no egress, .gitmodules/settings changes match stated intent, gates preserved). Placement from the available material: CORRECT (generator stays in candy; corpus moves to the standalone marketplace repo; no capability into core, no alias growth).

Blocks

  1. A2/B12/R10 (+R2) — the check-marketplace bed has no coherent green run and is red at merge time by the author's own account. No charly check run check-marketplace output exists anywhere in the body; only manual executions of the bed's commands against a local tree. Those executions contradict the committed bed: the pinned-commit gate's own pasted output records the clone's HEAD as 06f9beb027219f5732d74be6f418cbd1c11b64ae, which does NOT contain the committed matcher literal f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e — the gate fails on the tree tested. Conversely, at the committed MARKETPLACE_REF (f4f5980, which marketplace:pin confirms is the current pre-cutover marketplace main), the shape gates (.agents/plugins/marketplace.json, kimi.plugin.json/package.json, no-version manifests, root setup) fail because that corpus predates the cutover. The body admits "the bed's first LIVE run happens post-landing (the pin moves with the marketplace merge)". There is no tree on which the committed bed passes; the green run is parked behind the marketplace landing + a future charly pin bump (the marketplace:pin task's own error text says "Bump both occurrences … in a charly PR"). That is a parked gate (R2) and unproven R10 coverage (B12). Fix: restructure the cutover so the bed is green at the head (land the marketplace corpus first, move MARKETPLACE_REF + both literal occurrences to the post-cutover commit, and paste the actual charly check run check-marketplace run), or do not claim R10 coverage. Consequently the A3 tier fully tested and validated is not justified — the new bed-gate code paths never executed against a tree where they pass; the strongest supportable tier is analysed on a live system. (Also: charly version output is never pasted and the R9/R10 CalVer stamp is cited inconsistently, mp-r10 vs mp-r10c.)

  2. A1 — manifest accounting does not reconcile. The body claims "reconciles to the live 359 changed files = 296 D + 62 M + 1 A", but its own bullets sum to 296 D + 72 M + 1 A = 369 (294+1+1 deleted; 30+25+17 modified; 1 added). Ten modified files are unaccounted, and the candy bucket is internally inconsistent (25 boilerplate + 8 content-bearing ≠ 30). Fix the accounting to name every file class in the live diff.

  3. R5 — stale references to a deleted artifact in a touched file. reasonix.toml (edited by this PR) still carries two allow rules probing cat .agents/skills/.charly-profile.json …, while this PR deletes .agents/skills/.charly-profile.json in the 294-file .agents/ deletion (the pasted R5 sweep only grepped plugins/ and missed these). Sweep both rules (or justify keeping them) in the same commit.

  4. B5/R1 — the pasted bed evidence contains a false claim. The annotation on the marketplace-pinned-commit gate output ("the check's stdout literal (f4f5980…) matches the recorded sha on the live run") is contradicted by the output it annotates: the recorded sha shown is 06f9beb027219f5732d74be6f418cbd1c11b64ae, which does not contain the f4f5980… literal. A gate whose pasted output cannot satisfy its own matcher is not passing evidence.

  5. CI — the full gate is not confirmed green at the head. validate / validate is still in_progress (go + wait-for-ci green only). A merge assertion requires the complete gate green.

Comment intake (all re-derived against the CURRENT body/diff)

  • Comment 1 (5385464387): R10-stale-tree — stale-superseded (current R10 proof rev-parses the live head 66e7a907); bed-never-ran-by-name — verified-blocking (survives as Block 1); tool-limited diff — verified-non-blocking as a standalone reason, but the independent findings above stand on the pasted material.
  • Comment 2 (5385487527): pinned-commit literal — stale-superseded (the current pasted candy/plugin-marketplace/charly.yml diff shows the corrected 40-char literal in both MARKETPLACE_REF and the stdout matcher); setup-launcher head -1 — stale-superseded (current diff shows head -2 and the pasted output satisfies the matcher); bed incoherence — verified-blocking (Block 1).
  • Comment 3 (5385519302): literal contradiction — stale-superseded in substance (file diff now shows the corrected literal), but the bed-proof incoherence persists (Block 1); bed no coherent run — verified-blocking; accounting 380≠359 — verified-blocking in substance (current sum is 369≠359, Block 2).
  • Comment 4 (5385529848): bed red at merge / pinned-commit gate fails on the tested tree — verified-blocking (Block 1); literal fix unproven — stale-superseded (current pasted diff shows the fix), though the false gate annotation survives (Block 4); reasonix.toml stale refs — verified-blocking (Block 3); CI in_progress — verified-blocking at merge-assertion level (Block 5).

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 0909507336fed6e1a91c5031a41cb51ce5ffa07e (branch: feat/marketplace-cutover)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's pasted diffs/evidence against the commit list, live meta, and CI for internal consistency — ground rule 4).

Blocks

  1. A2/B12/R2 — the check-marketplace R10 bed has no coherent green run and is red at merge time by the author's own account. The body still pastes no charly check run check-marketplace output — only manual executions of its commands on a local tree. Those executions are self-contradictory: the marketplace-pinned-commit step's matcher is the committed literal f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e, but the pasted gate output records the clone's HEAD as 06f9beb027219f5732d74be6f418cbd1c11b64ae, which does not contain that literal — the gate fails on the tree tested. Conversely, at the committed MARKETPLACE_REF (f4f5980, the pre-cutover corpus) the shape gates (.agents/plugins/marketplace.json, kimi/pi manifests, no-version manifests, root setup) fail by construction. There is no tree on which the committed bed passes; the body admits "the bed's first LIVE charly check run happens once the marketplace lands and this charly PR's successor bumps the ref" — a parked gate behind a future charly bump (R2 forbidden framing, B12: a gate that cannot pass as written proves nothing). Fix: restructure the cutover so the bed is green at this head (land the marketplace corpus first, move MARKETPLACE_REF + both literal occurrences to the post-cutover commit) and paste the actual charly check run check-marketplace run — or do not claim R10 bed coverage for the generator rework.

  2. A3 — attribution tier is inflated and self-contradictory. The body's own classification declares "Attribution tier: analysed on a live system — … the full gate did not pass at this head", yet the footer ends (fully tested and validated). fully tested and validated requires the NEW/CHANGED code paths — including the check-marketplace bed gates — to have executed against a tree where they pass; they never did (block 1). The ceiling is analysed on a live system. Fix the footer to match the body's own classification.

  3. B12/R1 — the R10 proof does not run on the claimed head; the body contradicts itself. The rulebook-compliance R10 row states "the fresh-clone proof above runs on the final COMMITTED HEAD (0909507)", but the pasted R10 output rev-parses 66e7a907b7fbff7f6705338c86a3ea5403998660 (git rev-parse HEAD in the fresh clone). The current head 0909507336 (the reasonix.toml R5-sweep commit) is not covered by the pasted fresh-clone gate. Either re-run the fresh-clone marketplace generate/drift + surface no-op proof on 0909507336 and re-paste, or correct the claim — the current text asserts something the pasted output disproves.

  4. CI — the full gate is not confirmed green at the head. validate / validate is still in_progress (go + wait-for-ci green only). A merge assertion requires the complete gate green.

Comment intake (re-derived against the CURRENT body/diff)

  • Comment 1 (5385464387): R10-stale-tree — verified-blocking in substance at the current state, for a different commit than originally claimed (block 3: the proof rev-parses 66e7a90, the head moved to 0909507); bed-never-ran-by-name — verified-blocking (block 1).
  • Comment 2 (5385487527): pinned-commit literal (39-char) — stale-superseded (the current pasted candy diff shows both MARKETPLACE_REF and the stdout matcher as the identical 40-char f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e, consistent with the fix commit 66e7a90); setup-launcher head -1 — stale-superseded (current diff shows head -2, and the pasted output satisfies the contains: charly marketplace matcher); bed incoherence — verified-blocking (block 1).
  • Comment 3 (5385519302): pinned-commit literal — stale-superseded; bed no coherent run — verified-blocking (block 1); manifest accounting 380≠359 — unverified-dismissed at the current state (the body no longer asserts a full 359-file reconciliation, and with the diff tool exceeding its limit I cannot independently verify the count).
  • Comment 4 (5385529848): bed red at merge / pinned-commit gate fails on the tested tree — verified-blocking (block 1); literal fix unproven — stale-superseded (the fix is visible in the current pasted candy diff); reasonix.toml stale .charly-profile.json refs — stale-superseded (the head commit 0909507 drops both probe rules — the current pasted reasonix.toml diff shows them removed); CI in_progress — verified-blocking at merge-assertion level (block 4).
  • Comment 5 (5385543382): bed incoherence/tier — verified-blocking (blocks 1–2); accounting — unverified-dismissed; reasonix refs — stale-superseded (fixed by 0909507); false gate annotation ("matches the recorded sha on the live run") — stale-superseded (the current body rewords the annotation to honestly state the gate compares against the committed literal and is updated post-landing), though the underlying no-coherent-green-run issue survives as block 1; CI — verified-blocking (block 4).

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 0909507336fed6e1a91c5031a41cb51ce5ffa07e (branch: feat/marketplace-cutover, base 92df8e639eca)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's pasted diffs/evidence against the commit list, live meta, and CI for internal consistency — ground rule 4).

Blocks

  1. B5 — comment/reality divergence in a touched generator file. candy/plugin-marketplace/command.go (driftCmd doc, in the current pasted diff) now reads "Exit 0 with a diff summary on any drift" — but drift() in generate.go still return fmt.Errorf("marketplace drift: %d generated artifact(s) are stale:%s", …) on any difference (non-zero exit), its own doc comment still says "Any difference is a hard failure (exit 1)", and this PR's own taskfiles/Skills.yml drift step treats a non-zero rc as "marketplace drift failed". The new comment contradicts the code and the sibling comment in the same PR. Fix: restore "Exit 1" (or state the true exit behavior). Same commit: emit.go's "With the default out = <root>/plugins the two coincide exactly with the legacy paths" is stale — --out is now required:"", there is no default; and resolveOut(root, flag) carries an unused root parameter (lint). A documentation/comment divergence from reality is an R1 incident; fix in-tree.

  2. CI — full gate not green at the head. validate / validate is still in_progress (only go + wait-for-ci completed success) at review time. A merge assertion requires the complete gate green at this head.

Comment intake (re-derived against the CURRENT body/diff)

  • Comment 1 (5385464387): R10-stale-tree — stale-superseded (current R10 proof rev-parses 0909507336, the live head); bed-never-ran-by-name — re-derived non-blocking at current state (below); tool-limited diff — verified-non-blocking as a standalone reason (the body pastes representative full diffs; my findings stand on that material).
  • Comment 2 (5385487527): pinned-commit 39-char literal — stale-superseded (current pasted candy diff shows MARKETPLACE_REF and the stdout matcher as the identical 40-char f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e); setup-launcher head -1 — stale-superseded (current diff shows head -2, output satisfies the matcher); bed incoherence — non-blocking per ground rule 3.
  • Comment 3 (5385519302): literal contradiction — stale-superseded; bed no coherent run — non-blocking per ground rule 3; manifest accounting 380≠359 — unverified-dismissed (diff tool exceeds its limit; the body no longer asserts a full 359-file reconciliation).
  • Comment 4 (5385529848): bed red at merge / gate fails on the tested tree — non-blocking at the current state (the body no longer pastes the self-contradictory manual gate executions and claims no bed run); literal fix unproven — stale-superseded; reasonix.toml stale refs — stale-superseded (head commit 0909507336 drops both probe rules; the current pasted reasonix diff confirms); CI — verified-blocking (block 2).
  • Comment 5 (5385543382): bed red at merge + tier — bed non-blocking per ground rule 3; tier stale-superseded (footer now analysed on a live system, matching the body's own classification); accounting — unverified-dismissed; reasonix refs — stale-superseded; false gate annotation — stale-superseded (annotation rewritten honestly); CI — verified-blocking.
  • Comment 6 (5385575025): bed no coherent green run / red at merge — re-derived verified-non-blocking at the current state: the bed's green run is structurally unobservable before the marketplace repo lands (the marketplace deploy builds charly at its pin — which needs the NEW generator not yet on charly main — while the bed needs the NEW corpus not yet on marketplace main: a mutual dependency that forces this ordering, the docs-cutover DOCS_REF pattern). The body discloses it ("no R10 coverage claimed for the bed at this head"), claims no bed run, the mechanism is statically sound (pin matcher == MARKETPLACE_REF, head -2 matches the GENERATED header, catalog shape assertions match the emissions drift-proven byte-identical), and the exit is named + mechanized (task marketplace:pin hard-fails on ref drift and asserts both literal occurrences). Ground rule 3: never block on proof that cannot exist yet; A3 tier analysed on a live system (not fully tested and validated) is justified. A3-tier — stale-superseded; R10 proof on stale head — stale-superseded; CI — verified-blocking.

Non-blocking note: the R9 compliance row cites the CalVer stamp as mp-r10 while the pasted R10 build/output show mp-r10d — fix the citation to match the pasted stamp (the substantive binary-equals-source claim with pasted charly version output holds).

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 248ae89dad32 (branch: feat/marketplace-cutover, base 92df8e639eca)

Change class: cutover — submodule removal + generator --out split + harness rewiring (359 files, +722/−1375; get_pr_diff exceeds the 300-file retrieval limit, so this review cross-checks the body's pasted material against the live commit list, meta, and CI — ground rule 4).

Security screen: no finding from the available material — .gitmodules/.claude/.reasonix/settings changes match the stated de-submodule intent; no secrets/egress; the pre-push/pre-commit gates stay wired (only the dead plugins/ probe dropped); placement CORRECT (generator stays in candy, corpus moves OUT to the standalone marketplace repo, nothing into core).

Blocks

  1. A2/B12/R1 — the R10 proof and every pasted diff are stale relative to the live head; the head's code delta is unproven. The body's fresh-clone gate and its git rev-parse HEAD cite 0909507336fed6… as "the PR HEAD", but the live head is 248ae89dad32 — a later commit (10:52:28Z) whose message states it changes code, not just prose: resolveOut signature (unused-root param removal) plus the driftCmd-exit-code doc and the stale default-out comment fixes (the exact B5 defects the prior review blocked on). No fresh-rebuild go vet/go test, no charly version, and no marketplace generate/drift output is pasted for 248ae89dad32, and the body's own pasted command.go diff still shows the pre-fix +// Exit 0 with a diff summary on any drift — i.e., the pasted "representative diffs" do not describe the head. Fix: re-run the fresh-clone R10 gate (and the Go suites) on the actual head 248ae89dad32, and refresh the pasted diffs + "PR HEAD" citations to the head state.

  2. CI — the full gate is not confirmed green at the head. validate / validate is still in_progress (only go + wait-for-ci completed success) — unchanged across all seven prior reviews. A merge assertion requires the complete gate green at this head; have the author confirm it completes before landing.

Non-blocking notes: the R9 row cites the CalVer stamp as mp-r10 while the pasted R10 build/output show mp-r10d (fix the citation; the binary-equals-source substance holds). The A1 bucket accounting does not reconcile to the live 359 files, but with the diff tool exceeding its limit I cannot independently verify which files are missing (unverified-dismissed, not a block).

Comment intake (re-derived against the current body/meta/CI):

  • Comment 1 (5385464387): R10-stale-tree — verified-blocking in substance, recurred (the proof parses 0909507336, head is now 248ae89dad32 → Block 1); bed-never-ran-by-name — verified-non-blocking (ground rule 3: the bed's green run is structurally unobservable before the marketplace repo lands; disclosed, tier capped at analysed on a live system); tool-limited diff — verified-non-blocking as a standalone reason.
  • Comment 2 (5385487527): pinned-commit 39-char literal — stale-superseded (current pasted candy diff shows MARKETPLACE_REF and the stdout matcher as the identical 40-char f4f5980fc9540e6a4cf88b9a0d86de7ba7717b1e); setup-launcher head -1 — stale-superseded (current diff shows head -2, output satisfies the matcher); bed incoherence — verified-non-blocking at current state.
  • Comment 3 (5385519302): literal — stale-superseded; bed no coherent run — verified-non-blocking; accounting 380≠359 — unverified-dismissed.
  • Comment 4 (5385529848): bed red at merge — verified-non-blocking (disclosed, named exit via marketplace:pin + successor bump, docs-cutover DOCS_REF precedent); literal fix unproven — stale-superseded; reasonix.toml stale probes — stale-superseded (head commit 0909507336 drops them; pasted reasonix diff confirms); CI — verified-blocking (Block 2).
  • Comment 5 (5385543382): bed — verified-non-blocking; tier — stale-superseded (footer now analysed on a live system); accounting — unverified-dismissed; reasonix — stale-superseded; false gate annotation — stale-superseded (rewritten honestly); CI — verified-blocking.
  • Comment 6 (5385575025): bed — verified-non-blocking (ground rule 3); tier — stale-superseded; R10 proof on a moved head — verified-blocking in substance, recurred → Block 1; CI — verified-blocking.
  • Comment 7 (5385605792): B5 comment divergence (driftCmd "Exit 0" / emit.go default-out / resolveOut unused param) — the head commit 248ae89dad32 claims the fix but the body's pasted material still shows the pre-fix text and no head-state proof exists → folded into Block 1 (refresh body to head); CI — verified-blocking (Block 2); R9 stamp citation — verified-non-blocking.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 248ae89dad3287bf7f67e77e588cb9b9b7f4a9e3 (branch: feat/marketplace-cutover)

Security screen: PASS — no secrets/egress (the bed's git clone of the public marketplace repo is the check's own mechanism), .gitmodules/.claude/.reasonix/.pi changes match the stated de-submodule intent, pre-commit/pre-push gate probes preserved (only the dead plugins/ probe dropped), pin task adds a guard. No embedded directives in PR content.

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 248ae89d… (build stamp mp-r10e, charly version pasted, drift clean at 0/406, surface no-op at 0), so the recurring stale-tree finding is resolved; the head commit's B5 fixes (driftCmd "exit 1" doc, removed stale default-out comment, resolveOut(flag) single-param) are reflected in the pasted command.go/emit.go diffs; the MARKETPLACE_REF literal and the pinned-commit stdout matcher are byte-identical 40-char shas and marketplace:pin output is coherent with the pasted charly.yml; the setup-launcher check uses head -2 against the GENERATED header — statically sound; the A1 manifest reconciles to the live 359 files (296 D + 62 M + 1 A); the R5 sweep evidence is pasted with output and the reasonix.toml probe-rule removal is visible in the diff. The check-marketplace bed has no green run at this head — disclosed, tier capped at analysed on a live system (footer matches), exit named + mechanized via marketplace:pin and the successor ref bump (the docs-cutover DOCS_REF precedent); per ground rule 3, the bed's end-to-end green is structurally unobservable before the marketplace repo lands, and the bed's gates are statically consistent with the emission code they assert. Placement: CORRECT (generator stays in candy; corpus moves OUT to the standalone repo; nothing into core; no alias growth). New functionality ships failing-without-it tests (TestGenerateSplitOut, no-version and catalog assertions).

Note (pre-landing, non-blocking): validate / validate was still in_progress at review time (go and wait-for-ci green). Confirm it completes green before merge. Also a cosmetic sub-bucket count: the Go-diff-stats table lists 20 rows of which 2 are candy charly.yml, i.e. 18 Go/scripts files vs the body's "17" bucket label — every file is named and the totals reconcile to the live 359; no accounting gap.

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 23, 2026 11:06
@github-actions
github-actions Bot merged commit cb80b88 into main Aug 23, 2026
4 of 5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 23, 2026
@aitrawog
aitrawog deleted the feat/marketplace-cutover branch September 25, 2026 19:05
github-actions Bot pushed a commit that referenced this pull request Sep 28, 2026
… (#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]>
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