GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx testing: extended platforms -- which artifacts ship static; alpine, scratch, distroless, flatpak, Fedora, Windows tiers · Issue #1987 · developing-today/code Done Labels app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/mcpx-platformReprioritization program epic (2026-11-12)kind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item Milestone DescriptionRelocated from dezren39/darwin-nix#136 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering). Parent: #97 SummaryThe notes list a wish-list of further environments (alpine-slim,
It then assigns each environment a tier, says what it needs (a copied binary or an installer, and any extra config), and says which runner provides it. Original notes
Current state: is the binary static? (checked on main d0b7e01; #182's measurements added at 05c78b2)
The claim, corrected: a The runtime caveat (
|
| Runtime | glibc | musl (alpine) | static / scratch |
|---|---|---|---|
| deno | single binary, links glibc | no musl build. denoland/deno:alpine copies glibc from gcr.io/distroless/cc and patchelfs deno to use it (https://github.com/denoland/deno_docker/blob/main/alpine.dockerfile; upstream answer in denoland/deno_docker#428) |
needs glibc: distroless/cc is the smallest working base |
| bun | yes | musl builds are published (bun-linux-x64-musl). Version floor to verify |
no |
| node | yes | official node:*-alpine images |
no |
So "FROM scratch/distroless-static" means non-exec surfaces only, unless a runtime is added, which then makes the image distroless/cc or larger. #182 confirmed the same from the other side: in its debian image bun and git are dynamically linked distribution binaries, so a static mcpx beside them "saves nothing at all" until everything in the image is static or exec is dropped (docs/container.md §4).
| Environment | What works | Delivery | Extra config ("non-vanilla") | CI | Tier |
|---|---|---|---|---|---|
| ubuntu (host) | everything | nix or copied static binary + runtimes | none | ubuntu-latest hosted |
1 |
| nix flake / flake image (#134) | everything | nix | none | ubuntu-latest |
1 |
| macOS (host) | everything | nix | none | macos-latest hosted |
2 |
| debian-slim / ubuntu container | everything | copied static binary + runtimes | none | container: on ubuntu |
2 |
↳ #182's pkgs/mcpx/Containerfile (exists) |
everything, with bun only (MCPX_SCRIPT_RUNTIME=bun) |
builds mcpx in a Go stage (CGO_ENABLED=1 by default, glibc-linked) rather than copying a static one; git + ca-certificates; 413 MB |
none | nothing builds or runs it yet (#134 container-user) |
2 |
| distroless/cc | everything with deno only | copied static binary + deno | script.runtime=deno |
container: |
2 |
| alpine-slim | non-exec. exec with node or bun (musl) or with deno + glibc shim | copied static binary + apk add nodejs |
script.runtime=node; no socket for node (it uses TCP, #35) |
container: |
2 |
FROM scratch / distroless-static |
non-exec only | copied static binary; needs /tmp and a writable state dir, plus CA certs for the registry. No /etc/passwd is harmless: user.Current() fails and the trace record just omits the user (internal/logging/trace.go:143) |
daemon.inline maybe (no init to reap; daemon.inline's description names that container as a use case, registry.go:377-388); MCPX_STATE_DIR |
container: |
2 |
| fedora (kde) | everything | copied binary, or an rpm later | none. KDE is irrelevant to a CLI except the TUI's terminal (Konsole) | container: fedora:latest |
3 |
| silverblue / kinoite | everything, inside a toolbox. On the host: /usr is read-only, so copy to ~/.local/bin (works) or layer an rpm with rpm-ostree install (needs a reboot and root) |
copied binary to ~/.local/bin |
none, if runtimes come from toolbox or homebrew | not simulable by a container (ostree host). A fedora-toolbox image covers the toolbox case. The real host needs a VM, self-hosted |
3 |
| flatpak | awkward fit: flatpak packages desktop apps, and mcpx is a CLI plus daemon that spawns host tools (MCP servers, runtimes) | a flatpak manifest | sandbox: the socket must live in $XDG_RUNTIME_DIR/app/<id>/ or be exposed with --filesystem=xdg-run/mcpx; host MCP servers only via flatpak-spawn --host (needs --talk-name=org.freedesktop.Flatpak, which effectively disables the sandbox) |
flatpak-builder on ubuntu |
3 |
| windows-11 | nothing until it compiles | copied .exe, or an installer (winget/scoop) |
see below | windows-latest hosted |
3, then 2 once it compiles |
"installers make assumptions and require permissions": the tier 1-2 set needs no installer. It uses nix, or a copied binary into ~/.local/bin or the image. Installers appear only for:
.exe).Recommendation: ship and test "copy the static binary" as the universal path, and treat each installer as its own tier 3 target with its own issue when one is wanted.
runner.go, stdio.go, client.go process handling into _unix.go/_windows.go. Windows has no process groups in the POSIX sense. The equivalent is a Job Object (CREATE_NEW_PROCESS_GROUP + JobObject with KILL_ON_JOB_CLOSE), and Setsid detach becomes DETACHED_PROCESS. This is not a build-tag exercise: process-group kill is how mcpx stops an MCP server and everything it spawned, and without a Job Object a Windows mcpx leaks children -- the failure scripts/stress.sh exists to catch (from Phase 2: group action codec does not cover friendship or policy #163). internal/pool/pool.go:736 also checks liveness with syscall.Signal(0), meaningless on Windows.net.Listen("unix", ...) there. Whether deno's and bun's unix-socket clients work on Windows is unverified. Node already uses TCP (fix(deps): update rust crate axum to 0.6.20 #35), so a TCP-only mode (daemon.port + MCPX_ENDPOINT) is the fallback.XDG_* fallbacks become %LOCALAPPDATA%. The maxSocketPath logic (internal/daemon/paths.go:96 at 05c78b2) differs on Windows (sun_path is 108 there too, but paths are longer and use backslashes). os.Getuid() in privateRuntimeDir (paths.go:148) returns -1 on Windows.signal.NotifyContext(..., SIGINT, SIGTERM) (cmd/mcpx/main.go:53). SIGTERM is never delivered on Windows. The HTTP shutdown route will not help as written: handleShutdown stops the daemon by sending SIGTERM to its own process (internal/daemon/server.go:774-780), and on Windows os.Process.Signal supports only os.Kill. Shutdown has to become a context cancel.e2e_test.go:590 uses syscall.Signal(0) for liveness, :2704 and :2717 (added by Phase 5: tag event bodies must travel with the event #182) use syscall.Kill(pid, 0), and exec_test.go:107-108 uses syscall.Stat_t. All need build tags.Hosted: ubuntu-latest/ubuntu-24.04-arm, macos-latest, windows-latest. container: and services: run only on Linux runners (https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container). So every distro and minimal image above is a Linux container: job. Silverblue/kinoite on a real ostree host, and a real KDE session, need a VM or a self-hosted runner. Flatpak can be built and run headless on ubuntu.
What CGO_ENABLED=0 costs, for users rather than for images: pure-Go os/user parses /etc/passwd instead of asking NSS (LDAP/sssd users lose only the user name in trace records, since trace.go:143 tolerates the error), and the pure-Go resolver stops honouring nsswitch.conf and the host resolver's configuration (on Linux; this is the whole trade-off. On macOS CGO_ENABLED=0 changes nothing: since Go 1.20 net and os/user there call the system resolver and user database without cgo, https://go.dev/doc/go1.20#cgo). It matters for hostnames mcpx resolves itself: daemon.endpoint, HTTP MCP servers, the registry. Inside a container neither matters.
CGO_ENABLED=0 on Linux. One artifact, static everywhere. But it changes DNS and user lookup for every nix user on a Linux desktop to fix a problem only containers and tarballs have, and the installed bin/mcpx is still a wrapper with nix-store paths, so the nix package does not become copyable anyway. Not recommended.docker build --build-arg CGO_ENABLED=0, already wired in Phase 5: tag event bodies must travel with the event #182). No new package, nothing changes for nix users. But there is no static artifact outside an image -- nothing for amd host fails at evaluation: no outputHashes for p2panda-core-0.7.1 #158's release tarball, and nothing for the tier-2 images below to copy except by rebuilding in each Dockerfile.mcpx-static output (recommended). env.CGO_ENABLED = 0, no wrapper, Linux only (darwin cannot be fully static and keeps the system resolver). It is the artifact every container entry copies and amd host fails at evaluation: no outputHashes for p2panda-core-0.7.1 #158 ships in a tarball, with a test that go version -m reports CGO_ENABLED=0 and file reports "statically linked". The Containerfile's default (ARG CGO_ENABLED=1) is the GIT architect's to set; C does not depend on it. Recommended because it gives the static artifact to the places that need it without changing name resolution for anyone who installed the ordinary package.Every entry gates merges. CI time would exceed any budget (#95), Windows fails until a port is done, and silverblue needs self-hosted infrastructure. The first red flatpak job would train everyone to ignore CI.
Add the Linux container: entries (alpine, distroless, scratch, fedora, ubuntu) as tier 2 nightly. Declare flatpak, silverblue and Windows out of scope. This is cheap and covers most real deployments. It drops a user-stated wish (windows-11) without a plan.
mcpx-static output, env.CGO_ENABLED = 0, no wrapper) with its test (go version -m reports CGO_ENABLED=0, file reports "statically linked"). Phase 5: tag event bodies must travel with the event #182 already showed the build works; this makes it a product. It is the artifact every container entry copies.needsRuntime, so the label system from Update Rust crate rand to v0.9.3 [SECURITY] #134 and Update dependency argoproj-labs/argocd-autopilot to v0.4.20 #137 gains needsRuntime:<deno|bun|node|any> -- and needsGit for the repo/worktree scopes, unless the GIT architect's native git resolution removes that dependency (from Phase 2: removal: weak is stored but not built #161). Where an image lacks what a test needs, prefer asserting mcpx's own refusal over skipping: no JavaScript runtime found is a feature, a crash is a bug, and only a run that expects the failure can tell them apart (from Phase 2: removal: weak is stored but not built #161).GOOS=windows go build passes, and a cheap go vet-level cross-compile check can go into tier 1 right away to stop it getting worse.Recommended because it turns an unverified claim into a checked property, orders the work by users reached per unit of effort, and keeps every wish-list item on a path, not dropped.
Make the tiers mean something with entry and exit rules (from #163): tier 1 admits a platform where a bug has been found or an artifact that ships; tier 2 admits a plausible user environment that runs unattended and passes its surface; a tier-2 leg with no finding for two months is demoted; each tier-3 item gets one paragraph now saying what it would cost and what it would prove, so "ideally would like if worked" becomes a decision someone can revisit rather than a list re-argued every quarter. #163 also argued macOS belongs in tier 1, not 2: #35 is the only cross-OS bug on record, and a parallel leg costs queue time, not wall clock. Decide against #95's budget (#140).
CGO_ENABLED=0 acceptable for the default Linux nix package too, or only for a -static variant?-static variant; feasibility was settled by Phase 5: tag event bodies must travel with the event #182).fetch work on musl?daemon.inline=true, since there is no init to reap children?meta.platforms = lib.platforms.unix: narrow it to linux ++ darwin to match what is tested, or keep the BSD claim as an aspiration (from Phase 2: group action codec does not cover friendship or policy #163)?macos-latest is arm64, so a macOS leg is also a second architecture; ubuntu-24.04-arm is the Linux arm64 leg (Update Rust crate rand to v0.9.3 [SECURITY] #134).Ease XL as a whole (static build and tier-2 containers: M; Windows port: L; silverblue/flatpak: M each, self-hosted) · Impact med (tier 2), low-med (tier 3)
Depends on / related: #134 (container image and #182's Containerfile, labels, matrix entries), #137 (which real servers each image must carry), #133 (binary override to test a copied binary), #158 (the release tarball ships the static artifact), #95 (tiers map to PR/nightly/release workflows), #49, #35 (the Linux/macOS split that motivates cross-OS runs), #99.
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#136 (verbatim, oldest first):
@dezren39 · 2026-09-30T06:51:54Z
Overlaps #163, written concurrently by a second worker on the same slice. Both are kept until reconciled; see the tracker (#97) for the differences and which one to keep.
@dezren39 · 2026-09-30T07:21:10Z
Integration pass. Placed in the DAG rooted at #181.
@dezren39 · 2026-09-30T12:03:28Z
Issues pass (2026-09-30, at 05c78b2).
net and os/user link libc" are true of the default nix build, not of what mcpx can be: Phase 5: tag event bodies must travel with the event #182 built CGO_ENABLED=0 and got a fully static, working binary (ldd: not a dynamic executable; --version/ls/call/exec pass; same size). Summary item 1, the evidence table and "the claim, corrected" now say so; the old sentences would have sent an implementer after a non-problem.CGO_ENABLED=0 acceptable for the default package or only a -static variant?" is now Decision 1 (policy), A/B/C: flip the default (A, not recommended), container build arg only (B), keep the default and add a Linux mcpx-static output (C, recommended), with the NSS/DNS trade-off stated. The only os/user use is the trace's user fields and its error is tolerated (internal/logging/trace.go:143). The old "how far to go" A/B/C is Decision 2, unchanged except step 1 now ships the Decision 1 artifact.e2e_test.go:590, new :2704/:2717; paths.go:96,148) and added pool.go:736.meta.platforms, nightly triage owner. From closed Phase 2: removal: weak is stored but not built #161: the needsGit label and "assert the refusal, not a skip".@dezren39 · 2026-09-30T12:08:14Z
Issues pass (2026-09-30, architect follow-up). The CGO_ENABLED=0 cost paragraph implied the macOS default build differs from a cgo-off build. It does not: since Go 1.20, net and os/user on macOS do not use cgo in either mode (https://go.dev/doc/go1.20#cgo). The NSS/nsswitch trade-off in Decision 1 is Linux-only; the sentence now says so.
@dezren39 · 2026-09-30T12:25:15Z
Issues pass (2026-09-30), heads-up. PR #194 (open, mcpx: build pure-Go (CGO_ENABLED=0)) sets env.CGO_ENABLED = 0 in pkgs/mcpx/package.nix for every nix build. That is this issue's Decision 1, option A (flip the default nix package), which the body currently ranks below C (a separate Linux mcpx-static output). The PR's reason is different from the ones weighed here: a C toolchain in the derivation trips the cc-wrapper purity check on a symlinked /nix store. It says nothing about the Linux NSS trade-off (/etc/passwd instead of NSS/LDAP; the resolver bypasses NSS modules). On macOS the flag changes nothing (Go 1.20+). If #194 merges, Decision 1 is settled as A: record that here, keep the NSS caveat in the docs (#147), and #158's release tarball simply ships the default build.
@dezren39 · 2026-09-30T13:00:59Z
Issues pass (2026-09-30). Heads-up, no body change: PR #194 ("mcpx: build pure-Go (CGO_ENABLED=0)") is open and decides this issue's central question by flipping the default.
That is now a policy choice rather than a feasibility one — #182 verified by cross-compiling that GOOS=linux CGO_ENABLED=0 produces a fully static, working 21 MB ELF, so nothing in mcpx blocks a static build; os/user and net pull libc only under cgo. The trade this issue documents still applies and should be read before #194 merges: pure-Go os/user reads /etc/passwd rather than NSS/LDAP, and the pure-Go resolver ignores nsswitch.conf and the macOS resolver, which is irrelevant in a container and relevant on a corporate laptop with split-DNS VPN. On macOS CGO_ENABLED=0 changes nothing since Go 1.20. And mcpx exec needs a JavaScript runtime whatever the binary is, so a static binary is not a self-contained one — package.nix:96 wraps it with a PATH suffix of git, deno, bun and node regardless.
#181's evidence section and #180's A2 row both carry the correction.
🤖 Agent note · state: filed
Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [2892, 3283, 7821] were marked done, and some work did land:
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11618.
🤖 Agent note · done (triaged)
agent-note:v1 — state: triaged (duplicate; existing triage stands), lane any-h, task 19680, at 2026-11-17T08:22Z
Duplicate bulk-intake triage packet for #1987. Fresh verification this run: issue OPEN with status/triaged, kind/test, priority/normal, effort/m, app/mcpx; no held / user/owned / do-not-merge / do-not-auto-edit labels. Per runbook §1c this packet completes as triaged naming the existing record: task 18187 (lane code-b, 2026-11-17) concurring with remainder triage task 12015 (2026-11-08) — no actionable remainder to route: Tier 2 acceptance delivered (task 7821; PR #2705 merged at 9ffa739), the one excluded leg is tracked and parked in-system, and Tier 3 is explicitly deferred pending a scoped request. The tracker stays open; no duplicate follow-on enqueued.
🤖 Agent note · second-pass verify-and-route (pass 2)
repo-worker-code), OpenChamber scheduled lane oc-code-06kind/test, priority/normal, effort/m, app/mcpx, status/triaged); no held/user/owned/do-not-merge/do-not-auto-edit labels.Triage of record: task 12015 remainder triage (2026-11-08), concurred by tasks 18187 and 19680 (2026-11-17). Fresh PR check this run: referencing PRs since the triage are Tier-2 maintenance only — #8422 (tier-2 CI restore, merged 2026-11-11) and #12093 (flake container + remote env legs, merged 2026-11-21). Nothing implements Tier 3 (alpine/scratch/distroless/flatpak/Fedora/Windows tiers), which remains explicitly deferred pending a scoped request; the one excluded Tier-2 leg stays tracked and parked in-system.
No follow-on packet routed — a packet now would manufacture work the Tier-2 delivery deliberately deferred. Recorded exception to the one-actionable-item rule stands.
Triage of record remains valid: Tier 2 static/container coverage shipped in PR #2705, and the remaining Tier 3 targets (Fedora, Flatpak, Silverblue/Kinoite, Windows) were explicitly deferred pending a scoped request. Fresh check confirms the previously excluded Alpine + Node.js exec leg is no longer outstanding: #2699 is CLOSED by merged PR #5205 (Node TypeScript transform-mode probe and Alpine Node tier-2 leg). No new scoped Tier 3 request or implementation work is recorded, so I am not creating another packet. #1987 remains open as the deferred platform tracker; no code changed.
Final triage (queue task 25410): the issue's acceptance is complete.
9ffa739a4af68d36f6cf7fd0b276b4a33618eaa9: it records which artifacts are static, documents the Tier 2 containers, and runs the specified Alpine, scratch, and distroless legs.258d5d2c1b0487a6817f3f0c462501219da131e0, closing mcpx exec: ERR_NO_TYPESCRIPT under Alpine's nodejs (musl) build #2699. It adds the Alpine + Node.js Tier 2 leg and documents the actionable refusal for unsupported TypeScript mode.Decision: close #1987 as completed. Its acceptance allows explicit deferral of remaining platforms, and no executable work remains on this decision record. Future Tier 3 work should start from a separately scoped issue. This supersedes the previous agent recommendation to leave #1987 open as a deferred tracker; that recommendation caused this completed issue to be repeatedly imported by coverage reconciliation.