Skip to content

refactor(discovery): compose toolchain ecosystem signals instead of duplicating them - #2754

Merged
kyle-sexton merged 2 commits into
mainfrom
cursor/2726-discovery-ssot-8f91
Aug 15, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
cursor/2726-discovery-ssot-8f91

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #2726

Summary

ecosystem-discovery.md no longer silently duplicates the toolchain plugin's
per-ecosystem signal vocabulary. Explore composes /toolchain:check's resolved
surface when that plugin is installed, and keeps the prior YAML table only as
the documented fallback.

Fix

  • Rewrote plugins/discovery/skills/explore/reference/ecosystem-discovery.md
    with a presence-gated toolchain seam pointer (globs, project-discovery /
    anchor, install-hint), explore-only keys (dependency-grep, test-globs,
    test-content-grep) retained even when the seam is present, and the previous
    table scoped as the toolchain-absent fallback.
  • Updated explore Dimensions 3–6, the explorer agent, and the plugin README to
    cite the same gate+fallback shape (docs/conventions/seam-phrasing).
  • Bumped discovery 0.15.4 → 0.15.5 with CHANGELOG.

Verification

  • bash plugins/discovery/scripts/contract.test.sh — all assertions passed
  • bash plugins/discovery/agents/tool-honesty.test.sh — all tests passed
  • Confirmed seam / fallback / explore-only phrasing in the reference, skill,
    agent, and README

Related

…uplicating them

Presence-gate /toolchain:check's resolved surface for shared vocabulary, keep
explore-only keys, and retain the prior YAML table only as the documented
fallback when toolchain is absent.

Closes #2726

Co-authored-by: Kyle Sexton <[email protected]>
@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 45s —— View job


Security review — no issues found

Skip-gate check: PR is open, and no prior review is being superseded, but after reading the full diff (git diff origin/main...HEAD), this change has no security-relevant surface.

Scope reviewed: all 6 changed files —
plugins/discovery/.claude-plugin/plugin.json, plugins/discovery/CHANGELOG.md,
plugins/discovery/README.md, plugins/discovery/agents/explorer.md,
plugins/discovery/skills/explore/SKILL.md, and
plugins/discovery/skills/explore/reference/ecosystem-discovery.md.

Why no findings:

  • Every changed file is Markdown documentation/skill-reference content or a
    version bump in plugin.json — no executable code, no shell/script logic, no
    GitHub Actions workflow files, and no permissions/config changes.
  • No injection surfaces (command, SQL, path, template), no credential/token/secret
    handling, and no authorization or access-control logic anywhere in the diff.
  • The one YAML block present (the ecosystem fallback table) is unchanged in
    content type — it's the same static per-ecosystem reference data that
    previously lived in this file, just re-scoped as the toolchain-absent
    fallback; nothing in it is executed directly by these files.

No CRITICAL / IMPORTANT / SUGGESTION security findings to report for this PR.

  • Gather context (PR diff, changed files)
  • Run skip-gate check (open PR, security-relevant surface, no prior applicable review)
  • Review diff for security issues per /review:security-review criteria
  • Post findings / no-issues summary

@github-actions

Copy link
Copy Markdown
Contributor

Last security-reviewed head: b3d2b9d65816ba6fa3e4b1e3512e3d7344a4042a. On the next push, the relevance gate compares only the commits since this SHA; delete this comment to force a full re-review.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3d2b9d658

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 23s —— View job


Code review complete

  • Gather context (PR diff, changed files, CLAUDE.md)
  • Review changed files against code-review lane criteria
  • Post findings (inline comments + summary)

Scope: Reviewed the single commit (b3d2b9d) against origin/main, matching the 6 changed files listed on the PR. This is a docs-only refactor (no executable code), so review focused on internal consistency and whether the new claims about /toolchain:check's schema (globs, anchor, project-discovery, install-hint, enabled) are accurate — cross-checked against plugins/toolchain/reference/resolution-ladder.md and the bundled plugins/toolchain/reference/ecosystems/*.yaml files. They check out: those keys are real, and dependency-grep/test-globs/test-content-grep genuinely have no home in the toolchain ecosystem-commands schema, supporting the "explore-only keys" claim. The gate+fallback phrasing also matches docs/conventions/seam-phrasing/README.md's shape.

One finding posted inline on plugins/discovery/skills/explore/reference/ecosystem-discovery.md: the refactor drops the old "use only the ecosystems the consuming repo actually contains" guidance without carrying an equivalent into the new "Fallback — toolchain absent" section, so the fallback table (still listing all 6 ecosystems) loses the instruction to scope down to what the repo actually has. Only the second half of that sentence ("project's conventions win") survived, and only in the seam-present branch. See:

Not independently verified: I could not execute bash plugins/discovery/scripts/contract.test.sh or bash plugins/discovery/agents/tool-honesty.test.sh in this environment (no shell execution permission beyond trivial commands in this lane) — the PR description's claim that both pass is author-claimed and unverified by me.

No other correctness or maintainability issues found; the other four files (SKILL.md, explorer.md, README.md, CHANGELOG.md) consistently cite the same gate+fallback shape and version bump is correctly reflected.

@github-actions

github-actions Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count.

Toolchain covered-ecosystem set omits rust/java; globs/install-hint are not
exhaustive build-config or runtime-version probes. Keep those fallback keys
explore-owned when composing the seam, and restore the fallback scoping sentence.

Co-authored-by: Kyle Sexton <[email protected]>
@kyle-sexton
kyle-sexton merged commit 2676036 into main Aug 15, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the cursor/2726-discovery-ssot-8f91 branch August 15, 2026 20:26
@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cursor[bot]'s task in 25s —— View job


Code review skipped

  • Gather context (PR diff, changed files)
  • Apply /review:code-review skip gate

Skip gate: this PR's state is MERGED (not open), which is skip-gate condition 1 ("PR is closed or not open"). Per /review:code-review's skip gate, no deep review is performed and nothing further is posted.

For reference, this PR already received a code-review pass from this lane on the pre-merge head (b3d2b9d) earlier in the thread above, which found one issue (dropped "use only ecosystems the repo actually contains" guidance in the fallback section) and confirmed the rest of the diff was consistent.

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.

refactor(discovery): ecosystem-discovery.md duplicates the toolchain signal vocabulary

2 participants