Skip to content

mcpx: spec-revision choice, finished — every conflict gets a disposition, the predicates get callers, and the policy is demonstrated end to end #2209

Closed
3 of 3 issues completed

Description

@dezren39

Design (fleet design architect, pass 13): finish the spec-revision choice work originated in #1974 (ex-nix#307) — every revision conflict gets a disposition, the internal/spec predicates get their callers, and the policy is demonstrated end to end.

Full design doc: files/designs/code-mcpx-spec-revision-choice.md in the keep-the-four-repos-healthy goal workspace (register: files/potential-projects.md).

Audit summary (origin/main 319e6c2)

The foundation of #1974 is LANDED: settings spec.precedence / spec.first (--mcp-spec, MCPX_MCP_SPEC) / spec.lenient (internal/settings/spec.go), the internal/spec Policy (Governs, Winner, Strict, predicates AtOrAfter/Before/Only/Between), adoptSpec (internal/cli/root.go:236), and reporting on GET /v1/protocol (internal/daemon/routes_proto.go:761).

What is not finished:

  • Exactly TWO behaviours consult the policy: progress message stripping (internal/mcpserver/relay.go:106) and answering 2026-07-28 server-initiated requests when lenient (internal/mcpclient/client.go:550). docs/protocol.md §1.1 says so itself.
  • The predicates have ZERO callers outside internal/spec. Scattered comparisons remain: a duplicate package-local AtLeast (internal/mcpserver/revisions.go:40), raw >= in Modern() (internal/mcpserver/server.go:1285), internal/mcpclient/modern.go (CallerLegacy), internal/mcpclient/client.go:455.
  • docs/spec/revision-conflicts.md still claims headline items 1, 3–13 are all "not yet converted", lumping together peer-settled decisions (disconnect-as-cancel by session presence, server.go:1988; cursor era key, client.go:1214; batches, transport.go:110), recorded readings of intra-revision contradictions (subscription teardown, listen.go:347), and stale text (C5's -32022 claim — replaced by the counter-offer at server.go:1341; C23's protocolVersions claim — code emits supportedVersions, server.go:851).

Decision recorded by this design

Precedence is for conflicts the peer cannot settle — docs/protocol.md §1.1 already scopes it that way. #1974's "every conflict resolves through the precedence list" is reinterpreted deliberately: every conflict gets a DISPOSITION of exactly three kinds — (1) peer-settled (code site + era key named; no policy consultation), (2) precedence-governed (spec.Current() decides, both behaviours implemented), (3) recorded reading (intra-revision contradiction; the reading is recorded, as headline 1 already does). A conflict with no disposition is the defect. This reinterpretation is also posted on #1974 (Phase 1 acceptance).

Phases (each independently landable)

  1. Classification and truth-up (docs only). Every headline (1–13) and per-area (A–E) item in revision-conflicts.md gets a disposition naming its code site; the header's blanket claim is replaced by the disposition index; stale C5/C23 fixed; protocol.md §1.1 updated to match; unclassifiable items listed as undisposed with their specific question. Reinterpretation posted on mcpx: choose between MCP spec revisions where they truly conflict -- a precedence list, --mcp-spec, and version predicates #1974.
  2. One predicate vocabulary (no behaviour change). mcpserver.AtLeast delegates to spec.AtOrAfter or is deleted for direct predicate use; Modern(), CallerLegacy, and the >= "2025-03-26" check use spec predicates. Acceptance: no test changes its verdict. Genuine identity equalities (e.g. request.go:54) stay, named out of scope.
  3. Demonstrate the policy in the full stack + mcpx: choose between MCP spec revisions where they truly conflict -- a precedence list, --mcp-spec, and version predicates #1974 closure. Daemon-level e2e (the internal/e2e/proto_test.go harness) showing --mcp-spec 2024-11-05 stripping a relayed progress message end to end, and MCPX_SPEC_LENIENT=2026-07-28 answering a 2026 server-initiated request that the default drops; then evidence posted on mcpx: choose between MCP spec revisions where they truly conflict -- a precedence list, --mcp-spec, and version predicates #1974 and it is closed or its remaining acceptance lines named precisely.

Open questions (in the design doc, NOT filed)

Headline 5's validation-error form vs #1481's recorded -32602 decision at the client choke point (should the MCP serve seam era-split?); headline 7's non-object structuredContent translation for object-only hosts; headline 9's logging relay gating; whether Governs should gain any more call sites at all.

Origin: #1974 — its triage must not re-file these phases; this design's Phase 1 posts the disposition plan there and Phase 3 closes it with evidence.

Activity

  1. added
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Filed by the design architect (pass 13). Phases, all sub-issues of this design: #2210 (Phase 1, classification + truth-up, pilot task 3318 queued), #2211 (Phase 2, predicate unification, pilot task 3319 queued), #2212 (Phase 3, end-to-end demonstration + #1974 closure, gated on Phases 1–2 + status/blocked, pilot task 3320 queued). The reinterpretation note is posted on origin #1974 (comment 6493196974). Register entry added in files/potential-projects.md; two older entries moved to landed this pass (#1601, #1753 — all phases closed).

  4. added 2 commits that reference this issue on Oct 30, 2026
  5. 206 remaining items

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 10, 2026
  7. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — state: handed_off (task 13890, lane code-t)

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 13890, repo-queue-worker-shift-b 2026-11-09 run. Task 13890 (small_fix) for issue #2209: mcpx spec-revision choice remainder — every conflict gets a disposition; attempts 3/3 (at cap). Fresh check: issue #2209 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 5270 = opencode. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Checkpointed handed_off; parking task 13890 for 20 minutes for the claimant window.

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done (triage verdict: fully satisfied by landed work — closing)
    task: 13890
    lane: code-p

    Triage verdict — task 13890, fresh verification 2026-11-10

    Issue #2209 is FULLY SATISFIED by landed work. All three of its phases are closed with merged PRs:

    Phase 3's #1974 obligation is also discharged in its stated alternative form: the evidence comment on issue #1974 (2026-11-03T14:47Z, "Evidence: all three phases of #2209, and the one acceptance line that stays open") posts the phase evidence there and names #1974's remaining acceptance line precisely — line 3, unmet only for the four undisposed items (5, 7, 9, 13), each of which names its open question in the disposition index instead of a decision.

    That remainder is #1974's work, not #2209's: #2209's own design deliberately left those four as recorded open questions (not filed), #1974 remains OPEN for exactly that line, and it has a live queue task (task 14583) as of today. No remainder packet is filed from this triage — filing one would duplicate #1974's live task.

    Closing issue #2209 with this evidence, per the triage packet's third acceptance branch.

  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 10, 2026
  14. removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)epicMeta-issue grouping multiple items (org Project Type=Epic)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions