Skip to content

[FEATURE] OpenAPM: a dependency's vscode target must not choose the consumer's MCP destination #3853

Closed as not planned

Description

Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.

Is your feature request related to a problem? Please describe.
After 0.1.61 (proposed), targets: accepts the legacy alias vscode, which is treated as copilot for the req-tg-008 intersection but selects a different MCP configuration destination. The spec does not say that a dependency package's vscode spelling cannot steer where the consuming project writes MCP configuration, and it does not say what a declaration with both vscode and copilot (for example targets: [vscode, copilot]) selects for MCP.

Describe the solution you'd like
State in sec 8.5.3 (or a revised req-tg-008) that in a dependency's declaration vscode is only a restriction token equal to copilot and never selects or changes the consumer's MCP destination, which comes only from the consuming project's active targets. State the MCP outcome for vscode + copilot together (both destinations, or delegate to the Target Registry companion). Verify the reference implementation matches and add a fixture.

Describe alternatives you've considered
Rely on the restriction-only wording of req-tg-008: it covers targets, but an MCP destination is not a target, so the gap remains.

Additional context
Deferred by the apm-spec-guardian review of #3801 (follow-up PR #3851, Appendix D 0.1.61 proposed). Panel items F17, F18.

Activity

  1. added
    area/multi-target
    on Nov 18, 2026
  2. added
    type/feature
    on Nov 18, 2026
  3. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Specify and enforce that a dependency's vscode target token is only a restriction equal to copilot and never selects or changes the consuming project's MCP destination, which comes only from the consumer's own active targets; state that a consumer declaring both vscode and copilot writes both MCP destinations; make the reference implementation match through the existing target-decision owner; record it as an OpenAPM amendment row (next free 0.1.x) with a conformance case.
    Done when: A dependency declaring targets: [vscode] in a copilot-only consumer writes no .vscode/mcp.json; a consumer declaring [vscode, copilot] writes both destinations; spec sec 8.5.3 or req-tg-008 states both rules; unit, real-binary lifecycle and spec-conformance tests cover them; docs and apm-usage updated; an apm-spec-guardian panel on the PR has no blocking findings.
    Out of scope: Making vscode a separate canonical target; the deferred spec items in #3859; MCP shapes for other harnesses.
    Review contact: Daniel Meppiel (@danielmeppiel)

  4. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Context: Daniel Meppiel (@danielmeppiel) asked for this 0.37 defect to be fixed in 0.37 rather than carried (follow-up of the #3801 spec-guardian review, #3851/#3864).

  5. added
    status/accepted
    on Nov 18, 2026
  6. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Superseded by #3866: the vscode target is being removed in 0.37 (maintainer decision 2026-11-18), so this question no longer arises. #3866 covers replaying old lockfiles that recorded vscode.

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

    area/multi-targetspecstatus/acceptedtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions