Skip to content

mcpx: give plugin.instructions an effect probe (#8472) - #13345

Merged
dezren39 merged 1 commit into
mainfrom
lane-xy-8472
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-xy-8472

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

One burn-down slice of #8472 (settings plugin family), landed under Drew's 2026-11-23 batch approval of the outstanding flag holds. Prepared scope: Lane KX's hold record on #8472; the bun suite was drafted by Lane KQ (recorded 5/5 green before the hold) and is adopted unchanged.

What changed:

  • New bun suite plugin/opencode/v2/instructions.test.ts driving the real setupMcpxV2: MCPX_PLUGIN_INSTRUCTIONS through resolveOptions (host option first, then the environment, default false) — unset and explicit false append nothing; true appends the session-context paragraph, once per system array; another truthy spelling appends it too; the host option beats the environment in both directions.
  • New Go probe TestPluginInstructionsAppendsTheContextParagraphFromTheEnvironment in internal/e2e/plugin_test.go running that suite; mirror entry in implementedEffectProbes and anchor in effectProbeFuncs (internal/e2e/effect_test.go).
  • plugin.instructions moves from EffectExemptions to EffectProbes in internal/settings/effect.go; EffectExemptionPin 8 → 7; the setting's line is deleted from internal/e2e/feature_coverage_exemptions.txt.

Verification (laptop, on the rebased tree):

  • bun test plugin/opencode/v2/instructions.test.ts — 5 pass / 0 fail
  • go test ./internal/e2e/ -run TestPlugin — all 13 plugin probes pass, including the new one
  • TestEffectProbeDeclarationsMatchTheProbesThatExist and all TestFeatureCoverage* guards pass; go test ./internal/settings/ ok
  • v1 sibling suite plugin/opencode/mcpx/instructions.test.ts — 3 pass / 0 fail

#8472 stays open: plugin.disabledTools remains in the exemption list, alongside the five non-plugin exemptions and protoTasks.cancelGrace (#8473).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T14:01:42Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:03:12.157658Z d1ebda9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 2d69ca2 into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the lane-xy-8472 branch November 23, 2026 14:02
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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