You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Approach C (the same tests, tagged by need, and a remote runner) is only partly landed. What exists today: the remote-smoke leg in .github/workflows/mcpx-test.yml — the shipped image's daemon runs in its own container on a docker network and a client container reaches it over TCP (status reports running). That proves the transport. What does not exist: any run of the actual e2e assertions against a remote daemon.
Scope
A per-test needs/opt-in mechanism for internal/e2e: a test declares localFS, ownsDaemon (restart/stop), or perTestConfig, or opts in as remote-safe. mcpx testing: environments -- nix flake, container, local, remote -- as CI matrix entries #1983's open question stands — opt-in is safer at first; deriving from declared needs is the later step. The selection must fail closed: a test whose needs are undeclared is not run remotely.
A remote runner leg (in mcpx-test.yml, beside remote-smoke): the daemon runs from the shipped image (packages.mcpx-container) in a separate container with daemon.address=0.0.0.0 and a fixed port; the selected remote-safe /v1 + MCP subset runs against it via MCPX_DAEMON_ENDPOINT. Per-test servers are added over POST /v1/servers with a per-test name suffix and removed in cleanup.
TestExecOnTheDaemonRunsWhereTheDaemonIs (internal/e2e/exec_test.go) is the canonical member of the subset.
Acceptance
The leg is green in CI with the selected subset actually executing (test count reported, not a smoke).
Not enqueued as a pilot task in this pass: the opt-in-vs-derived decision in step 1 is a design call the parent issue left open, and the leg's shape depends on it. Filed as the sequenced remainder of #1983 for Felix to scope and enqueue.
agent-note:v1 — claim: Lane AU12 (archer), 2026-11-23. Taking #13386: per-test needs/opt-in selection for pkgs/mcpx internal/e2e (fail-closed — undeclared needs are never run remotely) plus a remote runner leg in .github/workflows/mcpx-test.yml beside remote-smoke, running the selected remote-safe subset against a daemon from the shipped image via MCPX_DAEMON_ENDPOINT, with TestExecOnTheDaemonRunsWhereTheDaemonIs as the canonical member.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (automated Kaneo link only) — no lane claim, no user/* label, no design-protection/ratification gate, no flag hold. fleet agent next returned no claimable task, so this was picked directly from GitHub. (This lane's first pick, #13532, stopped on a platform flag hold recorded there; this is the one replacement pick.)
agent-note:v1 — outcome: Lane AU12 (archer), 2026-11-23. #13386 landed and closed.
PR:#13597, merged as e42c545f9d6d241d9a5d7b45501c13b4f05e21cd (branch head 9f1278d3310 after a union merge with main — the ci-ok needs list now carries both this leg and main's e2e-no-deno).
What landed, against the acceptance:
Opt-in selection, fail-closed.pkgs/mcpx/internal/e2e/remote_safe_tests.txt is the registry (one test name per line, membership claim spelled out in its header). Two enforcement layers: the CI leg builds its -run pattern from the registry, and newEnv skips any unlisted test when remote mode is on (MCPX_E2E_REMOTE=1), so a manual full-suite run against a shared daemon cannot point host-local fixtures at it. Guard test TestRemoteSafeSelectionFailsClosed proves the registry is non-empty, names resolve to real test functions, and pattern + predicate admit exactly the registry.
Remote runner leg.remote-e2e in .github/workflows/mcpx-test.yml, beside remote-smoke: daemon from the shipped image (packages.mcpx-container) with a published port, readiness by the remote-smoke status probe, subset run on the host over MCPX_DAEMON_ENDPOINT. Added to the ci-ok gate's needs. Green in CI: workflow_dispatch run 45240985250 on the merge commit — job "environment: mcpx remote daemon e2e subset" (137925633562) concluded success.
Per-test servers.addRemoteServer registers over POST /v1/servers under a per-test suffixed name and removes with DELETE in cleanup; exercised by TestAddRemoteServerRegistersSuffixedAndRemovesOnCleanup against a fake /v1 daemon.
Canonical member.TestExecOnTheDaemonRunsWhereTheDaemonIs is the registry's first entry and is the subset the leg runs.
newRemoteEnv transplants no host-local config (empty server set) and never starts/stops the shared daemon.
Verification (laptop runs): go vet + gofmt clean; both new guard tests pass; canonical test passes in local mode; go test ./internal/settings/ green. Container rehearsal of the leg (nix-built image, daemon in docker, subset from the host): PASS. A Codex P1 on the PR — with the default script.cwd=caller the CLI forwards host-local paths a container daemon cannot see — was fixed (MCPX_SCRIPT_CWD=workdir in newRemoteEnv, commit 3ab6b6c9716) and mutation-checked against the image: forcing caller makes the same run fail (the daemon tries to exec the host's nix-store bun path); workdir passes. One earlier local run tripped the suite's disturbed-daemons guard from concurrent suites on the shared laptop and passed clean on re-run.
Not this issue:TestEveryRegistryVariableIsHarnessSetOrSafe is red at the base commit (MCPX_ADAPTERS_ALLOW_BARE in neither envguard table) — pre-existing main suite health, tracked by #13481, untouched here.
Activity
developing-today commentedon Nov 23, 2026
CODE-4874
dezren39 commentedon Nov 23, 2026
agent-note:v1 — claim: Lane AU12 (archer), 2026-11-23. Taking #13386: per-test needs/opt-in selection for pkgs/mcpx internal/e2e (fail-closed — undeclared needs are never run remotely) plus a remote runner leg in .github/workflows/mcpx-test.yml beside remote-smoke, running the selected remote-safe subset against a daemon from the shipped image via MCPX_DAEMON_ENDPOINT, with TestExecOnTheDaemonRunsWhereTheDaemonIs as the canonical member.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (automated Kaneo link only) — no lane claim, no user/* label, no design-protection/ratification gate, no flag hold.
fleet agent nextreturned no claimable task, so this was picked directly from GitHub. (This lane's first pick, #13532, stopped on a platform flag hold recorded there; this is the one replacement pick.)test(mcpx): remote runs resolve script.cwd on the daemon (Codex P1, #…
Merge pull request #13597 from developing-today/lane-au12-13386
dezren39 commentedon Nov 23, 2026
agent-note:v1 — outcome: Lane AU12 (archer), 2026-11-23. #13386 landed and closed.
PR: #13597, merged as
e42c545f9d6d241d9a5d7b45501c13b4f05e21cd(branch head9f1278d3310after a union merge with main — the ci-ok needs list now carries both this leg and main's e2e-no-deno).What landed, against the acceptance:
pkgs/mcpx/internal/e2e/remote_safe_tests.txtis the registry (one test name per line, membership claim spelled out in its header). Two enforcement layers: the CI leg builds its-runpattern from the registry, andnewEnvskips any unlisted test when remote mode is on (MCPX_E2E_REMOTE=1), so a manual full-suite run against a shared daemon cannot point host-local fixtures at it. Guard testTestRemoteSafeSelectionFailsClosedproves the registry is non-empty, names resolve to real test functions, and pattern + predicate admit exactly the registry.remote-e2ein.github/workflows/mcpx-test.yml, besideremote-smoke: daemon from the shipped image (packages.mcpx-container) with a published port, readiness by the remote-smoke status probe, subset run on the host overMCPX_DAEMON_ENDPOINT. Added to the ci-ok gate's needs. Green in CI: workflow_dispatch run 45240985250 on the merge commit — job "environment: mcpx remote daemon e2e subset" (137925633562) concluded success.addRemoteServerregisters overPOST /v1/serversunder a per-test suffixed name and removes withDELETEin cleanup; exercised byTestAddRemoteServerRegistersSuffixedAndRemovesOnCleanupagainst a fake /v1 daemon.TestExecOnTheDaemonRunsWhereTheDaemonIsis the registry's first entry and is the subset the leg runs.newRemoteEnvtransplants no host-local config (empty server set) and never starts/stops the shared daemon.Verification (laptop runs): go vet + gofmt clean; both new guard tests pass; canonical test passes in local mode;
go test ./internal/settings/green. Container rehearsal of the leg (nix-built image, daemon in docker, subset from the host): PASS. A Codex P1 on the PR — with the defaultscript.cwd=callerthe CLI forwards host-local paths a container daemon cannot see — was fixed (MCPX_SCRIPT_CWD=workdirinnewRemoteEnv, commit3ab6b6c9716) and mutation-checked against the image: forcingcallermakes the same run fail (the daemon tries to exec the host's nix-store bun path);workdirpasses. One earlier local run tripped the suite's disturbed-daemons guard from concurrent suites on the shared laptop and passed clean on re-run.Not this issue:
TestEveryRegistryVariableIsHarnessSetOrSafeis red at the base commit (MCPX_ADAPTERS_ALLOW_BAREin neither envguard table) — pre-existing main suite health, tracked by #13481, untouched here.