Skip to content

feat(fuse-ai-pilot): wire beforeMCPExecution to the aipilot scope - #4

Merged
brunoazoulay merged 1 commit into
mainfrom
feat/aipilot-before-mcp-execution
Sep 4, 2026
Merged

brunoazoulay merged 1 commit into
mainfrom
feat/aipilot-before-mcp-execution

Conversation

@brunoazoulay

Copy link
Copy Markdown
Collaborator

The harness doc-cache gate lives under scope aipilot, but beforeMCPExecution was only wired by core-guards and fuse-design, both in scope core — so the gate was never reached.

Changes

  • fuse-ai-pilot/hooks/hooks.json — new beforeMCPExecution entry, matcher MCP:(query-docs|resolve-library-id|web_search_exa|get_code_context_exa), command ./scripts/hook.sh aipilot, failClosed: false
  • fuse-ai-pilot/.cursor-plugin/plugin.json + .cursor-plugin/marketplace.json — PATCH bump 1.2.40 → 1.2.41
  • docs/harness-cursor-fix-prompt.md — records the measured Cursor adapter defects and the work-isolation requirement

Verification

  • the three JSON files parse; version: 1 stays an integer; no duplicate event
  • matcher compiles as a regex and does not overlap fuse-design (MCP:browser_navigate → false)
  • reachability probe with an isolated HOME: {"permission":"allow"}, exit 0 — the aipilot scope is reached
  • no npx invoked directly from a hooks.json, no absolute path

core-guards (scope core) and fuse-ai-pilot (scope aipilot) both fire on the three shared doc tools; Cursor merges with deny > allow. resolve-library-id is covered only by the new entry.

Nothing to pin harness-side: every hook.sh wrapper tracks latest, and 0.1.94 is published.

The doc-cache gate lives in the harness under scope `aipilot`, but
`beforeMCPExecution` was only wired by core-guards and fuse-design, both
in scope `core` — so the gate was never reached. Adds the event to
fuse-ai-pilot with a matcher covering the four documentation tools.

Also records the measured Cursor adapter defects and the work-isolation
requirement in the harness fix prompt.
@brunoazoulay
brunoazoulay merged commit 9a12fee into main Sep 4, 2026
3 checks passed
@brunoazoulay
brunoazoulay deleted the feat/aipilot-before-mcp-execution branch September 4, 2026 07:44
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