GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step · Issue #1911 · developing-today/code

mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911

New issue
Copy link
New issue
Copy link
Open
Open
mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step#1911
Copy link
Labels
enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state
Milestone
mcpx platform program

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Relocated from dezren39/darwin-nix#100 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: #175

Owns #181 collision 1 (script.typecheck rename vs #79's default flip) and collision 11 (auto resolution); see
"Owned decisions" below.

Summary

Three questions in one: how a user picks the JavaScript runtime, what each of
deno/bun/node actually does with the TypeScript it is handed (they differ, and
node differs from itself depending on one flag mcpx does not pass), and whether
mcpx should validate/transpile a script automatically before running it.

The short answer to the first, which should also be the first line of the docs:

mcpx run x.ts --runtime deno        # flag (also spelled --script-runtime)
MCPX_SCRIPT_RUNTIME=bun mcpx exec …  # env var
{"script": {"runtime": "node"}}      # config key script.runtime
POST /v1/exec {"options":{"runtime":"deno"}}   # wire, and the same field on MCP mcpx_exec
mcpx set script.runtime deno         # /v1/settings, MCP settings tool

Values: auto | deno | bun | node, default auto.

Original notes

  • how do i set the js runtime?
    • you had mentioned node alongside bun etc, would a user run javascript there? typescript would fall over?
    • what is or can be automatically stitched together or compiled to js or doesnt need to can run ts direct?
    • if node would fall over, could existing ts be compiled for a js project?
    • is there a way to support .dt js type files? at least for validation etc?
    • handle validate/import/compile automatically when possible then provide config to disable/skip/run-but-keep-going-on-error/etc.

Current state

  • script.runtime is one registry entry (internal/settings/registry.go:176):
    KindEnum, default auto, enum auto|deno|bun|node, FlagAliases: ["runtime"], scope client, offered only on run and exec. The registry
    gives it the flag, the MCPX_SCRIPT_RUNTIME env var, the config key,
    /v1/settings and the MCP settings tool for free.
  • ExecOptions.runtime carries it over the wire (docs/exec.md), and the
    daemon seeds its default from the same setting
    (internal/daemon/routes_exec.go:173).
  • runner.Detect (internal/runner/runner.go:72) honours an explicit preference
    and otherwise takes the first of deno, bun, node found on PATH. The
    Nix wrapper suffixes all three onto PATH (package.nix:96-103,
    docs/dependencies.md), so on a packaged install auto always means deno.
    The container (Phase 5: tag event bodies must travel with the event #182) ships only bun and sets MCPX_SCRIPT_RUNTIME=bun
    (Containerfile:73-80), so auto never runs there either. No test asserts
    what auto picks; the only caller in a test is execsvc_test.go:42, which
    just needs a runtime.
  • Per-runtime argv, verbatim from Detect:
    • deno: run --quiet --no-check <perms…> script
    • bun: run script
    • node: --no-warnings --experimental-strip-types script (runner.go:100;
      Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108, in flight, replaces the flag)
  • script.typecheck (off|on|strict, default off,
    internal/settings/registry.go:244) runs deno check, and
    preflight.TypeCheck reports "type checking is only available under Deno"
    for the other two rather than pretending
    (internal/preflight/preflight.go:198-213). That report is a non-fatal
    problem, so under bun or node every run with the check on prints it to
    stderr (runner.go:333-340).
  • script.typecheck is not an ExecOptions field (internal/execsvc/execsvc.go:101-124).
    /v1/exec applies the daemon's own value (execsvc.go:336,
    internal/daemon/routes_exec.go:176), and mcpx run --remote --typecheck on
    hands off to the daemon (internal/cli/commands.go:556-559) before
    --typecheck is read (:748), so a remote run accepts the flag and drops it.
    Whatever replaces it has to travel on ExecOptions.
  • diagnose.preflight (default on, internal/defaults/defaults.json:84) already
    stops a run on an unknown tool in a configured namespace before any side
    effect (internal/cli/consumer.go:517-535). It is deliberately silent about
    an unconfigured namespace (internal/diagnose/diagnose.go:278-282), and that
    gap is the one --typecheck closes (Update Rust crate bimap to 0.6.3 #66).
  • Named scripts already resolve .ts, .mts, .js, .mjs
    (ScriptExtensions, internal/cli/scripts.go), with
    plumbing.allowTsJsOverlap for a directory holding both. So JavaScript
    scripts are already runnable; nothing validates them.

What each runtime does with .ts (verified here, versions from the box)

deno 2.9.6 (TypeScript 6.0.3) · bun 1.3.11 · node v24.20.0.

input deno bun node (as mcpx invokes it) node --experimental-transform-types
plain type annotations runs runs runs runs
enum E { A } runs runs fails runs
namespace N { export const v = 1 } runs runs fails runs
legacy decorators runs runs fails fails
import {a} from "./lib" (no extension) fails (wants .ts or --sloppy-imports) runs fails fails
import {a} from "./lib.ts" runs runs runs runs
type checking deno check none none none

Two facts worth pulling out of that table:

  1. node already strips types with no flag at all in v24 — node plain.ts
    works. --experimental-strip-types is now a no-op default (--no-strip-types
    turns it off). What mcpx does not pass is --experimental-transform-types,
    and that single omission is the entire difference between "enum fails" and
    "enum works" on node. This is a one-line change in Detect and is the
    cheapest item in this theme; Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108 (in flight) carries it.
  2. The extension rules are opposite. deno refuses extensionless relative
    imports; node refuses .ts-less and ESM-extensionless ones; bun accepts
    both. A script written against bun is the one most likely to break when the
    runtime changes. mcpx's own generated launcher imports ./mcpx-client.ts
    with the extension, which is the form all three accept — that was already the
    right call.

So: "would a user run JavaScript on node?" — yes, and .js/.mjs scripts
already resolve. "Would TypeScript fall over?" — only on non-erasable syntax
(enum, value namespace, parameter properties, legacy decorators), and
mostly not after passing --experimental-transform-types. Decorators remain
node's hard edge.

Can TS be compiled for a JS project?

Yes, three ways, none currently wired up:

tool command notes
deno deno bundle -o out.js entry.ts (present in 2.9, --platform browser|deno, --packages bundle|external) no extra dependency; mcpx already requires deno for typecheck
bun bun build --target=node --outfile out.js fast, needs bun present
tsc tsc --declaration --allowJs --checkJs the only one that also emits .d.ts; not installed here (which tsc → not found) so it would be an npx/bunx dependency

deno compile additionally produces a self-contained binary from a script,
which is a plausible later answer to "baked into binary" (see the dependency
issue).

.d.ts for .js scripts

The user wrote ".dt"; the thing meant is .d.ts, and it already works without
any new machinery:

  • mcpx already writes mcpx-globals.d.ts beside the client and the built-in
    launcher carries /// <reference path="./mcpx-globals.d.ts" />
    (runner.GlobalsFileName, writeLauncher). That is exactly the mechanism
    being asked for, applied so far only to the ambient globals.
  • A .js script gets checked today by adding // @ts-check and JSDoc types.
    Verified: deno check c.js on a // @ts-check file with
    /** @param {number} n */ … n.toUpperCase() reports the type error and exits
    non-zero. Without the comment it is silent — Deno needs either // @ts-check
    per file or compilerOptions.checkJs in a deno.json.
  • The generated client is .ts. For a .js script to be checked against it,
    mcpx would need to emit mcpx-client.js + mcpx-client.d.ts alongside, or
    rely on the runtime resolving ./mcpx-client.ts from JS (deno and bun do;
    node does not from a .js file under plain strip-types).

Approaches

The design choice is the last sub-bullet: what mcpx does automatically before
running a script, and how it is configured. The runtime-selection answer above
is documentation, not a choice, and the --experimental-transform-types fix is
a bug fix rather than a design.

Approach A — least recommended: transpile everything to JS first

mcpx runs a bundler (deno bundle / bun build) over the launcher and hands
plain JavaScript to whichever runtime is selected, so all three behave
identically and node's syntax gaps vanish.

Why not: it destroys the thing the current design is built around. runner.go's
header comment is explicit that a local file on disk exists so the runtime's
own module cache
does the work and a run costs tens of milliseconds instead of
~10s. A bundle step is a cache mcpx now owns, invalidates and gets wrong; it
breaks stack traces and source positions in the error messages agents read; it
forces a decision on npm:/jsr:/https: specifiers that the runtimes resolve
for free; and it makes the bundler a hard dependency of running any script at
all. It also cannot fix decorators without a full TypeScript compiler.

Approach B — middle: widen the existing typecheck setting into a validation policy

Keep script.typecheck as the single knob but give it more values and make it
runtime-aware: off | on | strict | auto, where auto means "check if the
selected runtime can" and stays silent otherwise. Add an error policy —
script.onTypeError = fail | warn | run — so "run-but-keep-going-on-error" is
expressible, which today it is not: preflight.TypeCheck returns and runner.Run
aborts on rep.Err().

This covers most of the ask with a small diff and no new subsystem. What it
does not cover: it cannot check anything under bun or node (Deno-only, stated
in code), so the policy silently degrades on two of the three runtimes; and it
says nothing about .js+.d.ts, or about compiling.

Worth pairing with #79's proposal to default script.typecheck to on for
run — that measurement work (≈80 ms repeat, ≈400 ms new program) is the
evidence that a default-on check is affordable.

Approach C — recommended: a declared preflight pipeline with per-stage policy

Name the stages that can run before a script does, make each one independently
configurable, and let each one declare what it does when the selected runtime
cannot perform it. This is what the last sub-bullet asks for, and it is the
shape mcpx already uses elsewhere (internal/preflight returns a Report with
problems and warnings; the launcher already has five named phases because "a
launcher that is half-configurable invites forking it" — same argument).

Proposed settings, all in the one registry so they arrive on CLI, env, config,
/v1/settings and MCP at once:

setting values default meaning
script.check off|syntax|types|strict syntax how hard to look before running
script.checkOnError fail|warn|run fail the "keep going on error" knob
script.checkOnUnsupported skip|warn|switch warn what to do when the runtime cannot check — switch borrows deno purely as a checker while still running on the configured runtime
script.compile off|auto|always off emit JS before running; auto only when the selected runtime would choke (node + non-erasable syntax)
script.checkJs bool true pass checkJs so .js scripts with // @ts-check and .d.ts neighbours are validated

Naming (changed in the 2026-09-30 pass): these were script.check.onError and
script.check.onUnsupported. A nested config file cannot hold script.check
as both a value and an object ({"script":{"check":"types"}} vs
{"script":{"check":{"onError":"warn"}}}); no declared setting path is both a
leaf and a branch today, and settings.ApplyFile flattens nested
objects (internal/settings/file.go:18-24). script.onError also already
exists as a launcher phase (registry.go:230), so a second onError under
script. invites confusion. Flat camelCase (script.captureConsole,
plumbing.allowTsJsOverlap) is the house style.

Three properties that make this better than B:

  • onUnsupported: switch is the real fix for bun/node validation. deno is
    already a required-ish dependency (the Nix wrapper ships it; --typecheck is
    meaningless without it). Using deno check as a checker for a script that
    will be run by bun is legitimate — it is the same module graph — and turns
    "type checking is only available under Deno" from a limitation into an
    implementation detail. The one caveat to verify: deno's stricter
    extensionless-import rule means a bun-idiomatic script may fail the check for
    a reason that would not have failed the run, so --sloppy-imports (or
    reporting that class of diagnostic as a warning) is part of the work.
  • compile: auto is narrow enough to be safe. It fires only in the case
    that actually breaks — node meeting non-erasable syntax — and only after
    --experimental-transform-types has failed to be enough. Everywhere else the
    module cache keeps doing its job, so Approach A's cost is not paid by the 95%
    of runs that do not need it.
  • syntax as the default is nearly free and catches the real failure. The
    scanner in internal/diagnose already parses a script statically to find tool
    calls; the same parse can report a enum/decorator that the selected runtime
    will reject, before anything starts, with a message that names the runtime and
    suggests --runtime deno. That is a better error than node's stack trace and
    costs no subprocess.

Also in this issue, cheap and independent:

  • pass --experimental-transform-types in Detect for node (one line, removes
    two of the four node failure modes). Carried by Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108 (in flight under feat(nix): Android SDK + JDK 21 in the system and dev shells, and the OpenChamber release signing key #177);
    not repeated here.
  • drop the now-default --experimental-strip-types, or keep it with a comment
    naming the node version it stopped being needed at (also Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108).
  • when Detect falls back through auto, say which runtime was chosen. The
    machine-readable run envelope already carries runtime
    (internal/cli/commands.go:956); text output and the structured log say
    nothing, and MCPX_RUNTIME is visible only to the script.

Owned decisions (#181 collisions 1 and 11)

The script.typecheck → script.check rename (collision 1)

Owns #181 collision 1: alias-vs-replace is decided here, once, and #79's
default change lands on top of it as a change to script.check's default,
not beside it. Facts that constrain it, at 05c78b2:

  • An unknown key in a config file is reported, not fatal
    (internal/settings/file.go:32-58). An unread MCPX_* variable is simply
    ignored. --typecheck is a hand-written flag (internal/cli/commands.go:465),
    not a registry alias.
  • The registry has FlagAliases and EnvAliases (internal/settings/schema.go:146-154)
    but no config-path alias, no value mapping, and one Default per setting
    (schema.go:133-137), so no per-command default either.

A — replace. Delete script.typecheck, add script.check. Least code, and
the worst outcome: {"script":{"typecheck":"on"}} becomes an unknown-key
warning and checking silently stops, MCPX_SCRIPT_TYPECHECK is silently
ignored, and --typecheck either breaks scripts that pass it or stays and
does nothing — #74's bug class (closed, fixed in #75). If #79 flips a default in
the same release, anyone who set the old key is broken twice.

B — keep both. Add script.check beside script.typecheck with a
precedence rule. Nothing breaks, but two settings mean one thing, can disagree
(typecheck: on, check: syntax), and both appear on every surface the
registry generates, permanently.

C — recommended: script.check is the setting; script.typecheck is a
declared alias with a value map.
off→off, on→types, strict→strict, in
all three spellings: the config key, MCPX_SCRIPT_TYPECHECK, and --typecheck.
A use of the old spelling is reported once, the way unknown keys already are;
giving both at the same layer is the existing same-layer conflict
(internal/settings/value.go Apply). This needs one registry addition —
PathAliases with an optional value map — which is a registry capability, not
a special case, and daemon.inline (#79 point 2) is the next setting that will
want it. The new setting is an ExecOptions field from the start, closing the
remote-drop above. #79 then changes script.check's default (and only that),
in the same release as the alias, with one note in docs/configuration.md.

auto resolution (collision 11)

Owns #181 collision 11. The collision as first recorded is partly outdated:
the e2e suite already runs its runtime tests under each runtime explicitly
(internal/e2e/runtime_test.go:14,46, internal/e2e/e2e_test.go:2478), and CI
installs deno, bun and node (.github/workflows/mcpx.yml:55-61), so node is
exercised. What remains:

  • auto itself. On a nix install the wrapper's PATH suffix makes it deno every
    time; in the container it is pinned to bun. The bun and node fall-through
    branches of Detect are never taken by a packaged install and are asserted by
    nothing. This issue owns the test: runner.Detect("auto", nil) with a
    PATH holding only a stub deno, only bun, only node, and none — four
    cases, stub executables in a temp dir, no real runtime needed.
  • Non-erasable TypeScript under node: Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108 (in flight).
  • A CI leg with no deno on PATH at all goes through Update Rust crate rand to v0.9.3 [SECURITY] #134's matrix, not here.

No real choice for the test; the open question below about "first on PATH" vs
"first that can run this script" is the only design decision in auto.

Open questions

  • Should auto stay "first on PATH" or become "first on PATH that can run this
    script"? The latter is more useful and less predictable; a script that
    silently ran on a different runtime than yesterday is its own bug class.
  • Does script.check replace script.typecheck or alias it? Answered above
    under "Owned decisions" (recommended: alias with a value map); it is this
    issue's to decide, before Update dependency @playwright/test to v1.64.1 #79 changes the default.
  • For .js + .d.ts: emit mcpx-client.js/.d.ts beside the .ts client, or
    require .js scripts to import the .ts one (fine on deno/bun, not on node)?
  • Is tsc ever acceptable as a dependency, given docs/dependencies.md's
    standard for adding one? deno bundle avoids it for compiling but not for
    emitting .d.ts.
  • Does a compiled artifact belong in the content-addressed exec workdir
    (WorkRoot, one directory per catalogue hash) or in its own cache keyed by
    script hash + runtime? If its own cache, it is a tenant of Phase 4: joiner with missing pre-join control messages stalls silently #187's mechanism
    (Phase 3: sync, blob gate, and relays #181 collision 12), not a fourth design.

Ease · Impact · Related

Ease M (S for the node flag fix and the docs; M for the check pipeline; L if
compile lands too) · Impact high — it is the first question a user asks and
the answer is currently only in source comments.

Depends on / related: #79 (typecheck default and measured costs; lands on
this issue's collision-1 decision), #108 (the node flag, in flight), #134 (the
CI leg without deno), #187 (cache mechanism, if compile caches), #74 (closed,
fixed in #75 — flags accepted and ignored), #66 (merged: --typecheck works),
#40 (closed, fixed in #57 — ExecOptions, where runtime crosses the wire), and
siblings #101 (comparison doc), #103 (dependency configuration), #104
(automatic imports), #105 (Python parity), #106 (shebang dispatch), #107 (flake
execution environments).

Security/auth deferred; see tracker.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-837

  2. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    History carried over from dezren39/darwin-nix#100 (verbatim, oldest first):


    @dezren39 · 2026-09-30T07:21:37Z

    Integration pass. Placed in the DAG rooted at #181.

    • Tracker: fix(id): make Nix E2E check reproducible #175 (runtimes, languages, dependencies)
    • Siblings under that tracker: Bump build/buck/preludes/buck2-prelude from d956689 to 8740ce0 #101 Bump build/buck/preludes/buck2-prelude from d956689 to 062245a #103 Bump tracing from 0.1.38 to 0.1.40 in /sources/pavex/examples/skeleton #104 Bump h2 from 0.3.18 to 0.3.24 in /sources/pavex/examples/skeleton #105 Bump h2 from 0.3.19 to 0.3.24 in /sources/pavex/examples/realworld #106 Bump checkmarx/ast-github-action from 2.0.19 to 2.0.22 #107
    • Root: Phase 3: sync, blob gate, and relays #181
    • Proposed order: phase 3 -- the design objects three to six other issues extend

    @dezren39 · 2026-09-30T07:27:45Z

    Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.

    Two breaking changes to one shipped setting in one cycle

    #100 renames script.typecheck -> script.check; #79 flips its default off -> on. It is documented in docs/configuration.md and still Default: "off" at internal/settings/registry.go:244 on 8001f23. Decide alias-vs-replace once, in #100, before #79 lands. Users who set it otherwise get broken twice, or whoever lands second silently reverts the first.

    Also on: #79. Nobody currently owns this.


    @dezren39 · 2026-09-30T07:28:17Z

    Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.

    auto hides all Node breakage from this repository

    package.nix suffixes deno, bun and node onto PATH in postInstall, so on any Nix install script.runtime: auto always resolves to Deno. Nobody testing through the flake will ever see what #100 and #108 describe -- the bugs stay invisible until a user without Deno installs it. This needs a pinned-runtime CI matrix (#49).

    Also on: #108 #49. Nobody currently owns this.


    @dezren39 · 2026-09-30T11:05:57Z

    Collision ownership (issues pass, 2026-09-30, at 05c78b2). #181 listed these cross-theme collisions with no owner. Each now has one:

    #181 row Collision Owner What the owner decides
    1 script.typecheck: rename (#100) and default flip (#79) in one cycle #100 Decide alias-vs-replace once, in #100, and land #79's default change on top of that decision, not beside it.
    11 auto hides Node breakage from anyone testing through the flake #100 Partly outdated: the e2e suite already runs its runtime tests under each runtime explicitly (internal/e2e/runtime_test.go:14,46, e2e_test.go:2478) and CI installs all three. What remains is auto itself -- on a nix install the wrapper's PATH suffix makes it resolve to Deno every time -- and non-erasable TypeScript under Node. #100 owns the test that auto picks each runtime when it is the only one on PATH; the CI leg without Deno goes through #134's matrix.

    Where this issue is the owner, the decision is made here; where it is not, it adopts the owner's decision rather than making its own.


    @dezren39 · 2026-09-30T11:57:03Z

    Issues pass (2026-09-30, at 05c78b2).

    • Added Parent: #175 and the two collision-ownership lines. New section "Owned decisions": collision 1 (script.typecheck → script.check) now has an A/B/C (replace / keep both / alias with a value map, recommended), built on facts checked at 05c78b2: an unknown config key only warns (internal/settings/file.go:32-58), the registry has flag and env aliases but no config-path alias, value map or per-command default (internal/settings/schema.go:133-154), and --typecheck is a hand-written flag (internal/cli/commands.go:465). Update dependency @playwright/test to v1.64.1 #79's default change lands on this decision.
    • Collision 11 marked partly outdated: e2e already pins each runtime (internal/e2e/runtime_test.go:14,46, e2e_test.go:2478) and CI installs all three (mcpx.yml:55-61). This issue now owns the missing test (Detect("auto") with only one runtime on PATH, four cases). Added that the container pins bun (Containerfile:73-80).
    • New fact: script.typecheck is not an ExecOptions field, so mcpx run --remote --typecheck on drops the flag (commands.go:556-559 returns before :748 reads it; the daemon uses its own value, execsvc.go:336). The replacement setting has to travel on the wire.
    • Renamed the proposed script.check.onError/.onUnsupported to script.checkOnError/script.checkOnUnsupported: a nested config cannot hold script.check as both a value and an object, and script.onError already exists as a launcher phase (registry.go:230).
    • Corrected "nothing tells the human which runtime ran": the JSON run envelope carries runtime (commands.go:956). The node flag fix is marked as Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108's (in flight). Update Rust crate petgraph to 0.6.4 - autoclosed #74 → "closed, fixed in Update Rust crate proc-macro2 to 1.0.81 - autoclosed #75", Bump openssl from 0.10.54 to 0.10.55 in /sources/pavex/examples/realworld #40 → "closed, fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 677e9eb #57". Siblings are now listed by number, and Phase 4: joiner with missing pre-join control messages stalls silently #187 is named for any compile cache.

    @dezren39 · 2026-10-28T21:39:44Z

    Triage verdict (task 2114, repo-health-nix-pilot): RELOCATED — analysis/design is complete in this issue; the implementation surface moved to developing-today/code. No fix packet in this repo.

    Verified against current main at 224c7b738e88c7a8e5d406987a7d88257e229db2:

    • Bump build/buck/preludes/buck2-prelude from d956689 to 9afedba #100 is OPEN with labels enhancement, design — no hard-stop labels. Parent tracker fix(id): make Nix E2E check reproducible #175 is OPEN; the cheap independent fix it names, Bump build/buck/preludes/buck2-prelude from d956689 to cb5dc60 #108 (pass --experimental-transform-types for node in Detect), is still OPEN.
    • The questions are already answered in the body: runtime selection surfaces (flag/env/config/wire/settings), the verified per-runtime TypeScript table, the three compile routes, and the .d.ts mechanism. The open design choice is decided: Approach C — a declared preflight pipeline (script.check, script.checkOnError, script.checkOnUnsupported, script.compile, script.checkJs) — plus the owned Phase 3: sync, blob gate, and relays #181 collision 1 (script.typecheck → script.check rename) and collision 11 (auto resolution) decisions.
    • What remains is implementation, and every file it cites (internal/runner/runner.go, internal/settings/registry.go, internal/preflight/, internal/execsvc/) is mcpx source that no longer lives here: code search for path:internal/runner in dezren39/nix returns 0; mcpx-nixbuild.yml states the source "lives only in developing-today/code now" and this repo only builds the pinned mcpx-src input.

    Route: no small_fix packet in dezren39/nix — there is no code here to change. Implementation of Approach C (and #108) routes with the source in developing-today/code, referencing this issue for the design and its owned decisions; per the cross-repo rule, do not re-file the design there. #100 stays open on the nix side until that implementation lands or the issue itself is transferred.

  3. dezren39
    added
    enhancementNew feature or request
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Oct 28, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 2806
    • Found via: queue claim
    • Task: Triage relocated mcpx JS-runtime issue mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911: dedupe against existing code issues, confirm scope against current pkgs/mcpx on main, enqueue implementation follow-up (or split). No implementation in this task.
    • Expectation: m — done = triage verdict posted, follow-up packet enqueued (or split/duplicate handled with links), labels truthful.
    • Links: task 2806 · tracker mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309
  7. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 2806 (triage) → follow-up task 3170
    • Found via: queue claim
    • Task: Triage relocated mcpx JS-runtime / validate-compile issue mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 (was mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step dezren39/darwin-nix#100): dedupe, scope confirmation vs current main, enqueue follow-up.
    • Expectation: done = verdict below + follow-up packet enqueued.
    • Links: follow-up queue task 3170 · mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868 (defers to this issue, collision 1) · parent tracker mcpx: runtimes, languages and dependencies -- what runs a script, in what language, with which packages (tracker) #1889 · tracker mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309

    Triage verdict

    Dedupe: no duplicate. #1911 uniquely owns the script.check design and the two #181 decisions (collision 1: the script.typecheck rename; collision 11: auto resolution). #1868 (was nix#79) point 4 explicitly defers to this issue for collision 1 — it is a dependent, not a duplicate. #1889 is the parent tracker. Closed #263 covered only the node flag (below).

    Scope vs current main (8124cc0): the cheap items are done; the core design is untouched, and runtime selection has moved since the snapshot.

    Already done here:

    • ✅ Node flag: internal/runner/runtimes.go:425-430 now passes --experimental-transform-types with an explanatory comment — the fix the issue assigned to nix#108 landed in this repo as mcpx: --runtime node rejects TypeScript that Node runs, because of one flag (strip-types) #263 (closed). Both "cheap and independent" flag items are closed out.
    • 🔄 Runtime selection evolved: script.runtime (internal/settings/registry.go:226) is now a string that also accepts declared runtimes and binary paths, with new script.runtimes (:235) and script.runtimeOrder (:244, default deno,bun,node) settings; the runner code moved from runner.go to runtimes.go. The issue's "first on PATH" description of auto now reads as "first in script.runtimeOrder that is present" — the follow-up's Detect test must assert the current semantics.

    Still open, exactly as the issue frames them:

    • ❌ Collision 1: script.typecheck still stands alone (registry.go:323, default off); there is no script.check and the settings registry has no PathAliases capability — so mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868's default change remains blocked on this issue, as designed.
    • ❌ Remote drop persists: ExecOptions (internal/execsvc/execsvc.go) carries Runtime but no check/typecheck field, so /v1/exec still cannot receive a caller's check setting.
    • ❌ Collision 11 remainder: no Detect(auto) stub-PATH test, and the chosen runtime is still not surfaced in text output or the structured log.

    Follow-up: queue task 3170 enqueued carrying Approach C (script.check pipeline + the alias-with-value-map decision), the collision-11 test, and chosen-runtime surfacing, with an explicit note to record on #1868 when the rename lands.

    Labels updated to mirror the queued follow-up.

  8. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 29, 2026
  9. 265 remaining items

    Load more actions
  10. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 9, 2026
  11. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Agent note — task 12900 completed: already_done (PR #6111 merged)

    • Worker: repo-worker-code, lane code-y (shift 2026-11-09 02:04 CST)
    • Task: task 12900 (small_fix) — shepherd PR feat(mcpx): add script check failure policies #6111: disposition its two Codex P2 findings and merge, for issue mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911.
    • Fresh verification this shift: PR feat(mcpx): add script check failure policies #6111 MERGED at 2026-11-09T02:34:24Z by dezren39, merge commit 13eb408fe5c9a3539721115e33900082bae5474a; Codex review present on the PR with fleet comments following it. The merge the task called for has already happened, so task 12900 was completed with outcome already_done (issue mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 remains OPEN for its other remainder work).
  12. dezren39
    added this to the mcpx platform program milestone on Nov 12, 2026
  13. dezren39
    added
    epic/mcpx-platformReprioritization program epic (2026-11-12)
    kind/enhancement
    on Nov 12, 2026
  14. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · partial delivery verified; remainder still open

    • Agent: repo-worker-code, lane code-g
    • Session / ID: task 18168
    • Verdict: PR feat(mcpx): add script check failure policies #6111 is merged, but mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 is not complete. Its PR body explicitly calls the change a bounded first slice, not the full Approach C pipeline.
    • Fresh state (2026-11-17): mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 remains OPEN. PR feat(mcpx): add script check failure policies #6111 merged at 13eb408fe5c9a3539721115e33900082bae5474a. The mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911-linked PR search found test(mcpx/runner): Resolve(auto) stub-PATH cases — #1911 collision 11 (subset) #2570, feat(mcpx): make script.check canonical with legacy aliases #5660 and feat(mcpx): add script check failure policies #6111 as merged slices; no open PR for the remainder.
    • Already covered / do not duplicate: mcpx docs: runtimes.md -- compare the execution options and their features, with the capability-probe suite #2129 owns the runtime capability probes and comparison matrix; PR feat(mcpx): runtime capability-probe suite + probe-verified runtimes.md matrix (#2129) #4963 delivered the probe suite and matrix. mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868 remains the coordination tracker for the typecheck-default decision and related preflight work. The legacy alias pipeline is in merged PR feat(mcpx): make script.check canonical with legacy aliases #5660, and feat(mcpx): add script check failure policies #6111 delivered the check-failure policy and checker-flag fixes.
    • Remainder still explicitly owed by mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 / feat(mcpx): add script check failure policies #6111: script.check syntax mode; script.compile; script.checkJs; local/remote text output for the selected runtime; and a one-time notice for legacy spellings. Coordinate any script.check default change with mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868. Keep mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 open; do not re-open completed slices or duplicate mcpx docs: runtimes.md -- compare the execution options and their features, with the capability-probe suite #2129/mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868 work.
    • Next: the remainder is a multi-part pipeline, not a bounded fix packet. This triage is parked until the owning work is split/routed into scoped implementation packets or the owner provides a disposition. No competing implementation packet was filed.
    • Links: mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 · mcpx: faster CLI and exec -- no self-socket, lazy schemas, a typecheck default #1868 · mcpx docs: runtimes.md -- compare the execution options and their features, with the capability-probe suite #2129 · PR feat(mcpx): runtime capability-probe suite + probe-verified runtimes.md matrix (#2129) #4963 · PR feat(mcpx): make script.check canonical with legacy aliases #5660 · PR feat(mcpx): add script check failure policies #6111
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: triaged
    task 19759 (repo-health-code-pilot, lane any-q)

    Pickup + triage revalidation, 2026-11-17.

    Fresh state checked this run: issue #1911 is OPEN, labels enhancement / task/small-fix / status/parked / queue/parked / work/assigned / kind/enhancement / epic/mcpx-platform / source/creator. No held, user/owned, do-not-merge, or do-not-auto-edit label. No open PR references issue #1911 (checked this run).

    Verdict: the triage of record stands - task 18168 (2026-11-17, lane code-g): partial delivery verified (PR #6111 merged 13eb408, a bounded first slice; PR #4963 and PR #5660 slices also merged), and the remainder - script.check syntax mode, script.compile, script.checkJs, local/remote text output for the selected runtime, one-time legacy-spelling notice - is a multi-part pipeline that must be split into scoped implementation packets before implementation, coordinated with tracker #1868 and without duplicating #2129. Nothing about that state has changed this run.

    No follow-on packet is routed from task 19759: the record's own next step is a split/routing pass, not another identical triage follow-on (task 19759 itself arrived as one). Task 19759 completes as triaged naming the triage of record.

  16. dezren39
    removed their assignment
    on Nov 20, 2026
  17. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Second-pass verify (oc-code-08, 2026-11-24): #1911 is still open. No code changes from this lane. Parking 2h for a fresh read.

  18. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Second pass #1911 — mcpx JS runtime / TypeScript / auto-validate (2026-11-24, worker repo-worker-code, task 21772).

    Fresh check:

    • mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 OPEN (enhancement, epic/mcpx-platform, task/small-fix, status/parked, queue/parked, work/assigned).
    • Coverage pass 2026-11-03: verdict "still live", triaged at priority 30 in repo-health-code-pilot.
    • Task 7778 (triage) was handed off to bound opencode session; last note shows task at attempt 11/12, near cap.
    • Issue body contains detailed current-state analysis (runtime detection, per-runtime argv, typecheck flag gaps, ExecOptions missing typecheck, preflight already stops on unknown tools).
    • No implementation PR linked; issue is a design/analysis record awaiting implementation.

    Verdict: #1911 is LIVE and IMPLEMENTATION-READY (detailed current-state analysis present). Next step: implementation packet(s) for the concrete gaps (ExecOptions.typecheck wire, node --experimental-strip-types flag per #108, per-runtime validation auto-run config). No small_fix here — this is a multi-facet implementation. Recommend fan-out to implementation packets after design settlement, or close if superseded by a newer design issue.

  19. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Triage revalidation (xaltha lane, task 24919, 2026-11-26): triage of record stands — PRs #5660/#6111/#4963 merged as bounded slices; remainder (script.check syntax mode, script.compile, script.checkJs, selected-runtime text output, one-time legacy-spelling notice) is a multi-part pipeline needing a split into scoped packets, coordinated with #1868, without duplicating #2129. No code change this run; this lane instead completed the queued #15766 implementation slice (PR #15814).

  20. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #15913 from developing-today/agent-next-25-local/1…

    7f208a8
  21. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage follow-through (Fleet task 24919): the bounded selected-runtime text-output slice landed in merged PR #15913. Fleet run 45937595847 tested the PR head 944a9df669f51f73893e0c9117c37e5d24f12e3f; both the focused test and five race/shuffle repetitions passed. This does not complete #1911: the remaining validation/compile pipeline stays open and is actively owned by follow-up task 26090 (script.checkJs slice). No closure of #1911 is intended.

  22. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Slice 2 delivered in PR #15941: script.checkJs (bool, default true). With check on, a // @ts-check JS entry reports its type errors with adjacent .d.ts declarations resolving through the JSDoc imports that name them; with MCPX_SCRIPT_CHECK_JS=false (or config/flag) the JS entry skips the check while TypeScript checking and the script.checkOnUnsupported policy are unchanged. Verified via the new e2e effect probe plus preflight unit guard; neighboring check-policy probes still pass. PR references this issue and leaves it open for the remaining pipeline slices (compile, defaults, runtime selection).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementqueue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      • mcpx platform programNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.