Skip to content

mcpx conformance: TestStatefulServer/TestMessagesClient fail on main (tasks/get frame carries expiresAt not in the 2025-11-25 strict schema) #8564

Closed

Description

@dezren39

Failure (verified on clean main)

pkgs/mcpx/internal/conformance suites TestStatefulServer and TestMessagesClient FAIL on current main — reproduced 2026-11-11 by queue lane code-b (task 14860) while baseline-checking PR #8512:

  • On clean main at d63a12c3aa (laptop primary, no local changes): go test ./internal/conformance/ -run 'TestStatefulServer|TestMessagesClient' → FAIL (6.9s).
  • Same failures in the PR feat(mcpx): bind server-side authorization rows to the merged bearer gate (#1950) #8512 worktree at b61cef0d08 (30 failing subtests across the two suites), whose diff touches none of these files — pre-existing, not PR-caused.
  • Representative failure (stateful_test.go:342): the 2025-11-25 frame for tasks/get does not match the schema — $.result.expiresAt: property not defined by this revision (strict). The server emits expiresAt in task results; the strict schema for that revision does not define it.
  • TestMessagesClient/2026-07-28/messages/messages-resulttype-extension-values also fails.

Acceptance

  • Root cause decided and fixed: either the emitted task frame stops carrying expiresAt for the 2025-11-25 revision, or the revision's strict schema gains the property — whichever the spec for that revision actually mandates (state which, with the spec reference).
  • go test ./internal/conformance/ -run 'TestStatefulServer|TestMessagesClient' passes on main.
  • The messages resulttype-extension failure is fixed or split into its own issue with the evidence.

Filed by queue lane code-b during task 14860 (PR #8512 shepherding); PR #8512 was merged on its own targeted tests (TestMatrix/TestAuthSplit/bearer suite all pass) with this failure recorded as pre-existing.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15291 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  4. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    Verdict

    Routing

  5. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    effort/mMedium: expected under 1 day of work
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 14, 2026
  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane any-o (OpenChamber scheduled lane)
    • Session / ID: queue task 16868 · openchamber scheduled lane 2026-11-16 04:40 CST
    • Found via: queue claim (unfiltered one-queue claim)
    • Task: Fix mcpx conformance — tasks/get frame carries expiresAt not in the 2025-11-25 strict schema; TestMessagesClient resulttype-extension failure alongside.

    State at pickup

    Next

    Reproduce on current main, locate the expiresAt emission, apply the spec-mandated fix, run go test ./internal/conformance/ -run 'TestStatefulServer|TestMessagesClient'.

  7. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (already fixed on main)

    • Agent: queue worker (repo-worker-code), lane any-o (OpenChamber scheduled lane)
    • Session / ID: queue task 16868 · openchamber scheduled lane 2026-11-16 04:40 CST
    • Found via: queue claim (unfiltered one-queue claim), follow-on fix task from the 2026-11-14 triage
    • Task: Fix mcpx conformance — tasks/get frame carries expiresAt not in the 2025-11-25 strict schema

    Verdict: already_done — no code change needed

    Reproduced the issue's exact command on a clean worktree at origin/main 9290a368d1 (zero local changes, ~/git/fleet/16868-8564-mcpx-expiresat):

    • go test ./internal/conformance/ -run 'TestStatefulServer|TestMessagesClient' -v → PASS (156 subtests, 6.6s). Not not_reproducible by accident: the failure the issue describes is gone because the fix already landed.
    • The messages subtest named in the issue also passes explicitly: TestMessagesClient/2026-07-28/messages/messages-resulttype-extension-values → PASS.

    Root cause and the fix that landed

    • Commit 138ca8afeb (PR fix(mcpx): gofmt execsvc_test.go and omit retention fields from 2025-11-25 task frames #9623, merged 2026-11-13, authored on main-broken: developing-today/code mcpx @1858531 — basic: lint #8917) — "omit retention fields from 2025-11-25 task frames" — is this issue's fix.
    • It takes the spec-mandated side: for peer.Version == "2025-11-25", maybeTask, tasks/list and tasks/get now return coreTask(t) instead of the internal task struct. coreTask emits only taskId, status, createdAt, lastUpdatedAt, ttl, plus optional statusMessage / pollInterval, and drops the mcpx-internal retention fields expiresAt, lastTouched, ttlRemainingMs.
    • Spec reference: the vendored strict schema pkgs/mcpx/internal/mcpspec/schema/2025-11-25/schema.json defines no expiresAt for task objects (grep expiresAt → zero hits), and the validator rejects undefined properties as property not defined by this revision (strict) (internal/mcpspec/validate.go:277). So stopping the emission for that revision is correct; erasing the strictness would have been schema weakening.
    • The extension revision (2026-07-28) keeps the richer modernTask shape (ttlMs, pollIntervalMs, expiresAt, …), which is where those fields are actually defined.

    No PR opened: there is no work left for one, and no schema or test was weakened or skipped to get green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

effort/mMedium: expected under 1 day of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions