Skip to content

discovery: ecosystem-discovery table is a closed set with no consumer-extension seam #408

Closed as not planned

Description

@kyle-sexton

Plugin: discovery · Category: missing externalization (2) — low severity
Source: work-readiness sweep (read-only audit vs docs/PLUGIN-PHILOSOPHY.md + docs/MIGRATION-PLAYBOOK.md)

Findings

  • plugins/discovery/skills/explore/reference/ecosystem-discovery.md:17-20 — fixed set: dotnet, typescript, python, go, rust, java ("this table is the generic starting point")
  • Consumed by plugins/discovery/skills/explore/SKILL.md:70,79,89,98

Why it breaks agnosticism

For an ecosystem not in the table (Ruby, PHP, Elixir, C++, Swift, …) there is no documented consumer seam to add the discovery primitives (test-globs, build-configs, dependency-grep, runtime-version-cmd). The playbook's convention-resolution ladder wants config-present → infer-and-record → ask; here it silently degrades to "map the tree yourself" with no persisted override point. Degrades gracefully — incomplete externalization rather than a functional break.

Fix direction

Document a consumer seam the skill reads to extend/override ecosystem primitives (tracked project file or CLAUDE.md/rules convention), resolved via the convention-resolution ladder; keep the bundled table as the default layer.

Activity

  1. added
    needs-triage
    and removed
    needs-triage
    on Jul 19, 2026
  2. kyle-sexton commented on Jul 19, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage T2 → draft plan below; routed needs-human priority: high wayfind: design. Mechanism is execution-ready from a single established pattern, but the deliverable's central choice (seam location A vs B) turns on a concern-boundary judgment with asymmetric cross-plugin blast radius — a human call, so not auto-status: ready.


    Plan

    Established pattern to reuse (settled — no invention). The marketplace already has exactly one pattern for per-ecosystem consumer-extensible config: a seam-2 tracked structured file resolved through the 4-rung convention-resolution ladder, with the plugin's bundled set demoted to the rung-4 fallback and a setup skill as the rung-2/3 writer. Precedents: docs/conventions/ecosystem-commands/README.md, plugins/toolchain/reference/resolution-ladder.md, and docs/MIGRATION-PLAYBOOK.md (§ "Extensibility contract v2.1", § "Convention-resolution ladder"). The fix applies this to discovery primitives:

    1. Demote the bundled table to rung 4. ecosystem-discovery.md's 6-ecosystem YAML stays verbatim as the shipped default layer — a fallback, never a peer source of truth.
    2. Consumer seam = tracked structured YAML, keyed by ecosystem identifier (lowercase kebab-case stem), carrying the same sub-keys the table already defines (test-globs, test-content-grep, build-configs, dependency-grep, runtime-version-cmd).
    3. Resolution per ecosystem, per key, additive: user-global → team → local overlay (~/.claude/… → tracked → *.local.*), then bundled default. A consumer adds an absent ecosystem (Ruby, PHP, Elixir, …) or overrides any single primitive of a bundled one; a later layer refines earlier layers key-by-key, never replacing the base wholesale. Malformed consumer file → warn and degrade to the bundled layer, never a hard stop (tolerant reader; unknown keys inert).
    4. Ladder rungs 2–3 writer = the discovery setup skill. plugins/discovery/skills/setup/SKILL.md currently settles only the topic-docs seam; extend it with a check/apply path that infers per-ecosystem primitives from the repo and persists them (mirroring plugins/toolchain/skills/setup/SKILL.md). Recommend the consumer .gitignore the *.local.* overlay.

    Skill-read changes (the four cited sites). SKILL.md:70,79,89,98 stop pointing at the bundled table as the sole source and instead resolve the ecosystem's primitives through the ladder (consumer seam first, bundled table last). The pointer target becomes the resolution doc, not the raw table.

    Doc changes to ecosystem-discovery.md. Rewrite lines 17–20 (the "this table is the generic starting point / project's conventions win" prose is already the intent — make it a real mechanism, not an honor-system aside): state the table is the rung-4 bundled default, name the consumer seam and its per-key additive resolution, and point to the ladder. Keep the sub-key definitions and the 6-ecosystem YAML unchanged as the default layer.

    The one open fork — WHERE the consumer seam lives (A vs B):

    • Option A — extend the existing marketplace concern. Add the five discovery keys to docs/conventions/ecosystem-commands/ecosystem.schema.json (additive → minor bump) so the same .claude/ecosystems/<ecosystem>.yaml file carries both command surface and discovery primitives; discovery becomes a 4th consumer. Honors that contract's explicit de-fragmentation purpose and reuses a file that already holds per-ecosystem discovery metadata (globs, project-discovery, opt-in). Cost: modifies a versioned shared contract and re-triggers consuming plugins' versions (toolchain, review, implementation).
    • Option B — discovery-owned seam. Stand up .claude/discovery/<ecosystem>.yaml (plugin-named, per the "single-plugin ⇒ plugin-named" rule). Discovery-local, reversible, with a documented promotion path to a docs/conventions/<concern>/ contract if a second consumer ever appears. Cost: re-fragments per-ecosystem config into two files per ecosystem in the same repo — the exact scattering the ecosystem-commands contract was created to eliminate.

    Acceptance criteria (behavioral)

    • For an ecosystem absent from the bundled table (e.g. Ruby) but declared in the consumer seam, /discovery:explore (Dimensions 3–6) uses the consumer's test-globs/build-configs/dependency-grep/runtime-version-cmd instead of silently degrading to "map the tree yourself."
    • For a bundled ecosystem with a single overridden primitive (e.g. custom Python test-globs), the consumer value wins for that key and the other bundled keys still apply (per-key merge, base not dropped).
    • With no consumer seam present, behavior is byte-for-byte identical to today (bundled table = rung-4 default).
    • A malformed consumer file surfaces a warning and falls back to the bundled layer; the skill never hard-stops.
    • Running the discovery setup writer on a repo with an undeclared ecosystem infers-and-persists (or asks-and-persists) a seam file that the next explore run reads at rung 1.
    • ecosystem-discovery.md no longer describes a closed set: the extension seam and its resolution order are documented, and no consumer needs to fork the plugin to add an ecosystem.

    Human decisions required

    A vs B (location/scope of the consumer seam). The seam mechanism is fully determined by precedent; only its location is open, and it hinges on a contestable concern-boundary judgment ("exploration discovery primitives" = same concern as "build/test/lint command surface", or a sibling?) with asymmetric blast radius (A bumps a shared versioned contract + re-triggers 3 consuming plugins; B is discovery-local but re-fragments per-ecosystem config). Per the repo's own de-fragmentation rationale and the standing rule not to silently optimize for blast-radius/reversibility, this is a human call. Recommended default: Option A — the command file already carries per-ecosystem discovery metadata, so discovery primitives are a natural additive extension of one config home rather than a new scattered concern; choose B only if the team wants to keep the change strictly discovery-local and accept two per-ecosystem files.

    Confidence: NEEDS-HUMAN

    Mechanism, ladder, merge semantics, doc rewrite, and setup-writer extension are execution-ready from a single established pattern — but the deliverable's central choice (seam location A vs B) turns on a concern-boundary judgment with asymmetric, cross-plugin blast radius that an agent should not settle unilaterally.

  3. added
    needs-human
    wayfind: design
    on Jul 19, 2026
  4. kyle-sexton commented on Jul 19, 2026

    @kyle-sexton
    MemberAuthor

    Operator decision (2026-07-19, decision-session batch 3; relayed).

    ACCEPTED — the triage plan's Recommended Option A (extend the shared ecosystem-commands concern: .claude/ecosystems/<eco>.yaml gains the discovery keys) — WITH the fleet-wide built-in-first gate from the same-day #423 ruling: the plan must first verify against current official Claude Code plugin documentation whether native mechanisms (plugin userConfig, environment, built-in per-repo config) can host the seam; Option A is the approved custom fallback where they cannot. Decide/implement together with #423's globs half so the two per-ecosystem extensions stay one concern.

    Re-intake: removing needs-human, adding priority: needs-triage for routing.

  5. added
    needs-triage
    and removed
    needs-human
    needs-triage
    on Jul 19, 2026
  6. kyle-sexton commented on Jul 19, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Umbrella-fold: member of #531 (portability lint lane — 19-issue coupling class). Routed blocked-by-carrier, not standalone: native blocked by #531 dependency recorded, priority: needs-triage removed, wayfind: design applied uniformly. Decision lands on #531; this issue rides along.

  7. added
    needs-human
    on Jul 23, 2026
  8. kyle-sexton commented on Aug 13, 2026

    @kyle-sexton
    MemberAuthor

    Frontier disposition (drain session)

    Ruling: Close as not planned.

    Ecosystem-discovery table is a publisher-curated closed set by design; consumer extension ships as new publisher rows, not runtime plug-ins.

    Re-open trigger: When a consumer needs runtime extension without a publisher PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanwayfind: design

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions