Skip to content

fix(brains): correct the brains-integrations skill to the real MCP surface [BRNS-CORE-058] - #26

Merged
olegshmuelov merged 1 commit into
mainfrom
fix/integrations-skill-mcp-surface
Aug 10, 2026
Merged

fix(brains): correct the brains-integrations skill to the real MCP surface [BRNS-CORE-058]#26
olegshmuelov merged 1 commit into
mainfrom
fix/integrations-skill-mcp-surface

Conversation

@olegshmuelov

Copy link
Copy Markdown
Contributor

What this delivers

The hand-authored brains-integrations skill taught a stale surface: "no MCP tool to enumerate the catalog", web-only uninstall cascades, no authoring story. This rewrites it against what actually ships — catalog browsing (list_recipes tiers + recommend_recipes), version-drift reading (list_installed_versions as a provenance stamp, with its limits stated), the MCP uninstall cascade (preview_uninstall_recipeuninstall_recipe, with the integration-install recovery exception), install tuning (set_integration_config, set_integration_overrides, run_integration_once), and an authoring section (create_integration_flow playbook → publish_recipe / publisher management). Version 2.8.2 → 2.8.3 in both manifests — hosts update on version, so the bump is the delivery.

Closes BRNS-CORE-058 (the unsuperseded brains-integrations half of #10).

Beyond the #10 port

Every claim was re-verified against ssvlabs/brains at current main/stage (all cited files byte-identical on both refs). Where #10 or the current file disagreed with the code, the code won: #10's description contained a frontmatter-breaking colon (it would have shipped a skill with empty metadata), "pluginOnly = this surface and nowhere else" (the gate blocks only web-agent/Telegram), "everything lands in 7-day recovery" (integration uninstall is a one-shot revoke), "catalog = curated" (it is everything publicly published; owner_user_id: null marks the curated rows), the per-kind upgrade routing including the standalone leaf-upgrade fallback, unavailable sources returning success-shaped no-ops rather than errors, and re-apply semantics (provenance + automation state + un-customized dashboard only).

Verification

Contract suite green with a real claude plugin validate --strict (ran, not skipped); delivery guard passes 2.8.2 → 2.8.3; frontmatter parsed standalone; trigger-owner sweep clean. Three independent review passes on the committed diff (adversarial, standard, fresh-context verifier) — every finding addressed or refuted with evidence.

Careful-review callout: this file is a prompt agents execute on user machines — every behavioral sentence is load-bearing.

…rface

The skill claimed there was no MCP tool to enumerate the catalog and implied
the uninstall cascade was web-only. Both are false: list_recipes (with
tier/kind/category/q), recommend_recipes, list_installed_versions and
preview_uninstall_recipe -> uninstall_recipe all exist today.

Adds the install-tuning tools (set_integration_config,
set_integration_overrides, run_integration_once) and a new authoring section
routing recipe publication through the create_integration_flow playbook rather
than restating the IntegrationTemplate spec.

Corrects claims that had gone stale: source enums are advertised statically and
enforced at call time, not filtered per user; list_my_integrations no longer
returns cost; bundle cascades run over MCP; integration installs are revoked
outright rather than entering the 7-day recovery window; and install_recipe is
not an upgrade path, since a re-apply advances the provenance stamp without
bringing the entity's content along.

@stefan-ssv-labs stefan-ssv-labs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ review-pr: clean vs BRNS-CORE-058.

@olegshmuelov
olegshmuelov merged commit 6085d55 into main Aug 10, 2026
4 checks passed
@olegshmuelov
olegshmuelov deleted the fix/integrations-skill-mcp-surface branch August 10, 2026 11:04
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.

2 participants