Skip to content

mcpx: internal/settings (scriptenv) and internal/conformance (TestAuthSplit, TestMatrix) failing on clean main #2716

Closed

Description

@dezren39

Finding (queue worker Lane A, task 3277 verification, 2026-10-30)

Two mcpx test packages fail on a clean checkout of main (verified at 7b76c79, the #2685 merge, in a pristine worktree on the laptop — no local changes):

  1. pkgs/mcpx/internal/settings — scriptenv_test.go:118,123: MCPX_ADAPTER_DECLARATION_SHA256 is set by cli (internal/cli/adapter.go:436) and MCPX_EPHEMERAL is set by exec (internal/execsvc/execsvc.go:758), but ScriptEnv does not declare/list them as setters.
  2. pkgs/mcpx/internal/conformance — TestAuthSplit and TestMatrix fail (each also fails standalone with -run, so it is not suite interference).

Both reproduce with: cd pkgs/mcpx && go test ./internal/settings/ ./internal/conformance/ -count=1 on clean main.

Why it matters

Every queue worker verifying an mcpx PR on the laptop currently has to re-prove these are pre-existing before trusting any other result (this cost ~15 minutes of task 3277's shift). Under the main-only CI model, a red main also means the post-merge runs for unrelated PRs report failures nobody owns.

Acceptance

  • Both packages pass on clean main.
  • The fix names which merge introduced each failure (git bisect or the diff that desynced ScriptEnv / the conformance matrix).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (2026-10-30 run). Labels normalised this pass: status/needs-triage, effort/s, meta/enriched (kind/bug, priority/normal, app/mcpx were already present). The body's existing ## Acceptance section is retained as the acceptance criteria (no duplicate section appended).

    Still live: no merged PR since filing (2026-10-30T11:37Z) touches mcpx internal/settings ScriptEnv declarations or the conformance TestAuthSplit/TestMatrix failures; the recent merged code PRs are muse-proxy / opencode-config / pm-stack work.

    Overlap warning — read before claiming: this issue is a roll-up of the same main-red failures filed separately as #2697 (the three internal/settings guard tests, including the same MCPX_ADAPTER_DECLARATION_SHA256 ScriptEnv gap) and #2695 (conformance TestMatrix). Whoever takes one of the three should expect the settings half to close #2697's settings items and the conformance half to overlap #2695; the non-overlapping remainder here is TestAuthSplit and the MCPX_EPHEMERAL ScriptEnv declaration. Do not run three parallel fixes on the same two packages.

    Suggested approach: fix once, on one branch: declare both env vars in ScriptEnv, repair the conformance auth-split applicability, then close or cross-link the duplicates with evidence per package.

  3. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Still failing on main @ bcc7a45a (verified locally 2026-10-30T15:45Z, and in the stress: PR changed tests job of run 41069456034, which gates every PR in the queue):

    --- FAIL: TestTheScriptEnvironmentIsWhatTheCodeSets
        scriptenv_test.go:118: MCPX_ADAPTER_DECLARATION_SHA256 is set by cli (internal/cli/adapter.go:436) and ScriptEnv does not declare it
        scriptenv_test.go:123: MCPX_EPHEMERAL is set by exec (internal/execsvc/execsvc.go:896), and ScriptEnv does not list it as a setter
    --- FAIL: TestNoUndeclaredEnvRead
        consumed_test.go:224: internal/daemon/routes_settings.go:906 reads MCPX_ADAPTER_DECLARATION_SHA256 (index), which no setting and no ScriptEnv entry declares
    --- FAIL: TestEverySettingHasAnEffectProbeOrAnExemption
        effect coverage violations:
              script.imports has neither an effect probe nor an exemption
              script.importsOnDynamic has neither an effect probe nor an exemption
    

    script.imports/script.importsOnDynamic are the newer pair — script.cwd and script.interpreter were the other two when PR #2611 started and that PR now ships probes for them, so this ticket shrinks by two. Because stress: PR changed tests runs the whole internal/settings package, this failure is currently red on every queue PR regardless of its diff (#2611 at 05b113ed failed only here, everything else passed).

  4. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  5. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  6. 56 remaining items

  7. added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 10, 2026
  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    agent: repo-worker-code
    lane: 7b47536b-c162-444c-be8a-3a9538cc4cb5
    task: 14582
    reason: PR #8135 remains open with checks queued, and its author is dezren39 (Drew); the runbook forbids touching or merging Drew-owned PRs.
    resume: task parked until 2026-11-10T12:33:40Z; re-read issue/PR/checks and ownership fresh. Do not modify the PR unless the Drew-ownership restriction no longer applies.
    labels: queue/parked, status/parked; work/assigned retained.

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Agent note — task 14582 parked (awaiting CI), lane code-v

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note: task 14582 parked by lane code-b - CI pending on PR #8135. Verified fresh via gh: issue #2716 OPEN, no hard-stop labels, no status/needs-triage; PR #8135 OPEN, 1-line conformance-matrix hash regeneration, targeted tests verified on laptop (TestMatrix/TestAuthSplit/settings pass after regen, per PR body); Codex review failed to run (usage limits) with zero findings posted - nothing undispositioned. Basic checks still QUEUED after a 5-minute poll window. Next: resume when PR #8135 basic checks settle green, then merge.

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note: task 14582 parked by lane code-b — CI still pending on PR #8135. Re-verified fresh via gh: issue #2716 OPEN, no hard-stop labels, no status/needs-triage; PR #8135 OPEN at head e3e4eae, no labels, 1-line conformance-matrix input-hash regeneration (a20a9594b52c33e6 -> e9dd5586bf31ef90); Codex findings already dispositioned by lane code-v (Codex review failed to run — usage limits; no findings in the review list). Basic-tier checks remain QUEUED. Resume: when PR #8135 checks complete green, merge under standing criteria and complete task 14582 with outcome fixed_merged; if red, fix forward on branch queue/14582-2716-mcpx-conformance.
    stage: awaiting_ci

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Closing on its named scope — verified fixed on main (task 14582, lane code-m, 2026-11-10).

    Evidence, all on a pristine worktree of clean main at 58369f9 (laptop):

    PR #8135 (the matrix-regeneration PR bound to task 14582) was closed as superseded: merging it would have set the hash to e9dd5586bf31ef90 (correct only for its old base) and re-broken TestMatrix on current main. Salvage note is on PR #8135.

    One transparency note: the full conformance package is still red on clean main for three OTHER test groups not named in this issue (TestStatefulServer tasks subtests, TestMessagesClient messages-resulttype-extension-values, TestUtilitiesServer completion-max-100). Those are filed separately as #8168 with reproduction evidence, so this package-level redness stays tracked there rather than keeping this issue open as a catch-all.

  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  14. added a commit that references this issue on Nov 13, 2026
  15. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: repo-worker-code / any-a
    state: done (this packet's scope; issue stays open for #9210 only)
    issue: #2716
    task: 8673

    PR #9212 MERGED (a0f3a52). On current main the original 9 failures had narrowed to: settings 3 failures + conformance TestMatrix/TestMessagesClient/TestUtilitiesServer. All fixed: settings declarations caught up (ScriptEnv consumer setter for MCPX_PARENT_SESSION_ID; compendium entries for docs/changes/ask-path-cancel.md and docs/index.md; environment.md regenerated); the #2436 capability gate no longer refuses completion/complete at revisions that cannot advertise the completions capability (its unit test updated to match, subscribe gate unchanged); the client-extensions conformance guard now checks declared extensions against the handled set (the tasks extension is implemented since #1556); conformance matrix doc regenerated. Codex review on PR #9212: no findings. Tests: settings PASS, mcpserver PASS, conformance TestAuthSplit/TestMatrix/TestMessagesClient/TestUtilitiesServer PASS.

    Remaining red in the suite is a different, newer desync — TestStatefulServer task frames carry expiresAt, which the 2025-11-25 strict task schema does not define — filed as #9210 with evidence and acceptance. #2716 itself has no remaining work in its original scope; it stays open only as the pointer to #9210.

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)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/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