Repository navigation
Open
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)Package/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workepic/mcpx-platformReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)Ordinary priority (the default)queue/blockedQueue or user escalation stateQueue or user escalation statesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/blockedQueue or user escalation stateQueue or user escalation statetask/ci-investigationQueue packet kind: investigate a CI failureQueue packet kind: investigate a CI failurework/assignedQueue worker lifecycle stateQueue worker lifecycle state
Milestone
Description
On 2026-10-30, three NixOS switch attempts in a row died inside the mcpx derivation's checkPhase:
- internal/e2e burns its whole 30m timeout in the sandbox. The suite spawns real script subprocess trees; the build sandbox has no init reaping them, so they pile up as zombies (~3,800 observed, process table degraded) and the package runs to the
go test -timeout 30mcap:FAIL github.com/dezren39/mcpx/internal/e2e 1800.385s. - internal/settings env tests fail in the builder environment.
TestNoUndeclaredEnvReadandTestTheScriptEnvironmentIsWhatTheCodeSetsassert the process environment is exactly what the code sets; the stdenv builder env makes that untrue inside the sandbox.
Interim fix (the mechanism package.nix itself provides): both packages are in checkExclude in pkgs/mcpx/package.nix with the reasons recorded there. The full suite still runs in CI on main.
To restore sandbox checks:
- e2e: bound and reap spawned subprocess trees when running under a non-init supervisor, or split the process-spawning cases behind a sandbox capability check.
- settings: scope the environment assertions to the variables mcpx itself controls, ignoring builder-provided vars.
Acceptance criteria
- mcpx
internal/e2eandinternal/settingsare removed fromcheckExcludeinpkgs/mcpx/package.nix(or any remaining exclusion is narrowed and re-justified in place). - The e2e suite's spawned subprocess trees are bounded/reaped under a non-init supervisor, so the suite no longer burns its 30m timeout in the nix build sandbox.
- The settings env assertions scope to the variables mcpx itself controls, so they pass in the stdenv builder environment.
- The full suite still runs in CI on main (unchanged).
Metadata
Metadata
Assignees
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)Package/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workepic/mcpx-platformReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)Ordinary priority (the default)queue/blockedQueue or user escalation stateQueue or user escalation statesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus/blockedQueue or user escalation stateQueue or user escalation statetask/ci-investigationQueue packet kind: investigate a CI failureQueue packet kind: investigate a CI failurework/assignedQueue worker lifecycle stateQueue worker lifecycle state
Activity
mcpx: exclude e2e and settings from the sandbox check phase (#2686)
Merge pull request #2687 from developing-today/fix/mcpx-check-exclude
dezren39 commentedon Oct 30, 2026
Interim fix landed in #2687 (merged d3ba80a):
internal/e2eandinternal/settingsare now incheckExcludein pkgs/mcpx/package.nix with the sandbox reasons recorded, so the NixOS switch is unblocked. This issue stays open for the restore work described above — making both suites sandbox-safe so the exclusions can be removed. The full suite continues to run in CI on main.dezren39 commentedon Oct 30, 2026
Precision note from the 2026-10-30 05:02 switch log on the internal/settings failures: the undeclared-read report names a specific variable —
MCPX_ADAPTER_DECLARATION_SHA256, set at cli/adapter.go:264 and read at routes_settings.go:906 without a declaration. That looks like a genuine undeclared read the test caught (not only a sandbox-environment artifact), so the restore work for internal/settings likely starts with declaring that variable properly; the e2e exclusion stands on the zombie/timeout grounds above.mcpx: also exclude internal/cli from the sandbox check phase (#2686)
Merge pull request #2707 from developing-today/fix/mcpx-exclude-cli
dezren39 commentedon Oct 30, 2026
Update: with e2e + settings excluded, a standalone realise (2026-10-30) showed every other package passing — conformance included — except
internal/cli, which burned its whole 30m timeout (1803.655s) with no failing test: its tests drive the real CLI, daemon and adapter subprocesses and hang waiting on them in the sandbox.internal/cliis now also in checkExclude via #2707 (merged 86c6f61). The restore scope for this issue now covers all three packages: e2e, settings, cli.mcpx: exclude conformance and defaults from sandbox check phase (#2686)
Merge pull request #2710 from developing-today/fix/mcpx-exclude-conf-…
dezren39 commentedon Oct 30, 2026
Update 2: at the newest main the realise also fails fast in
internal/conformance(TestAuthSplit/TestMatrix — auth-split matrix ahead of the in-flight auth-matrix landing) andinternal/defaults(TestNoPackageRedeclaresADefault — unregistered const in internal/execsvc). Both are main-side desync, not sandbox issues; both now excluded interim via #2710 so the OS deploy stops gating on them. Restore scope: e2e, settings, cli (sandbox-shaped) + conformance, defaults (main desync — these two should drop out as soon as their owning work lands and CI on main is green for them).259 remaining items
dezren39 commentedon Nov 21, 2026
Claimed and checkpointed task 20705. Fresh GitHub verification: #2686 is OPEN with no hold labels; PR #12069 is OPEN, CLEAN against main at head 3846359, with no required review outstanding. Its previous full Nix checkPhase passed on c90da1e, but that is not this current head; current checks show Proof skipped and CodeRabbit success only. Continuing from the existing task branch/worktree, preserving the Nix-verification requirement before merge.
dezren39 commentedon Nov 21, 2026
agent-note:v1
state: picked_up
task: 20705
issue: #2686
lane: code-i
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: main-merged -> verification
Merged current main (bd902e1) into PR branch
queue/20705-2686-mcpx-checkphasewithout conflicts and pushed merge commit 27a35f4 to PR #12069. The PR is now current against main. Full mcpx Nix build/checkPhase is running locally under~/tools/fleet-build-lock; previous green check was on an earlier commit and is not being substituted.dezren39 commentedon Nov 21, 2026
Task 20705 completed for the requested suites. On PR #12069 head
27a35f4c0b50ba3d8eeed84b539d459ab0738016, the Nix checkPhase passedinternal/e2e(873.290s) andinternal/settings(0.802s); this verification is recorded on the PR: #12069 (comment).The overall Nix derivation did not pass: unrelated
internal/api/TestEveryDaemonRouteIsDeclaredreports GET and POST/v1/calls/{run}missing frominternal/api/ops.go. PR #12069 remains OPEN and mergeable. This unrelated failure is explicitly preserved as the remaining full-check/merge blocker; no unrelated source was changed.Deferred bookkeeping: {"backlog_updated":false,"sweep_log_line_at":null,"note":"sandbox backlog and sweep-log bookkeeping deferred to fleet reconciliation"}
Merge pull request #12069 from developing-today/queue/20705-2686-mcpx…
fix(mcpx): read execsvc's call-history TTL from defaults.json