* fix(resources)!: refuse Windows names ending in a dot or space
Node writes files through `\\?\` paths on Windows, so a member named
`dir/name.` or `dir/space ` is created literally. Win32 path
normalization drops a trailing dot or space when other programs open
the path, so `dir\name.` reads the bytes of a sibling `dir\name`, and
`dir\space ` cannot be opened. The extraction manifest then records a
digest for a path that ordinary tools resolve to different bytes.
A Windows output tree now refuses any path segment that ends in a dot
or space with DestinationPathUnrepresentableFailure, before creating
the path, using the trailing rule isPortablePathSegment already
applies. The refusal names the cause and the next step. Reserved device
names stay accepted, since Node creates them as ordinary files.
Every writer that materializes target-derived names goes through
SafeOutputTree (extract_artifact, firmware and UEFI publication,
desktop export, environment bundles, recovered JavaScript sources, web
script export), so all of them apply the rule. Web script export
already moves an unrepresentable URL path to its isolated layout.
Fixes#15613
BREAKING CHANGE: On Windows, extract_artifact and other output-tree
writers now refuse a path with a segment ending in a dot or space,
where they used to write it. To extract the rest of such an archive on
Windows, select occurrence_ids that leave those members out, or extract
on a non-Windows host. Web script export on Windows writes such URL
paths under its isolated layout instead.
* ci: run Windows extraction name tests in the curated Windows lane
* fix(setup): recognize path-qualified cmd.exe and npm rea.cmd shims
Unwrap C:\Windows\System32\cmd.exe /d /c package runners, and read the
script an npm rea.cmd shim launches so those registrations stay owned.
* fix(setup): parse npm rea.cmd launch statements with a bounded read
Own only the script argument of the npm cmd-shim launch line, skip rem
comments, refuse oversized files before allocating, and join with host
path rules so UNC roots stay intact.
* fix(setup): ignore echoed npm launch text in rea.cmd shims
Skip echo lines and refuse ownership when a later "%_prog%" launch names
a non-package script, so printed paths cannot prove an unrelated row.
* fix(setup): require executed npm rea.cmd launch statements
Anchor "%_prog%" matching to a real launch command, skip @rem comments,
and ignore conditional echo lines so ownership cannot follow text that
is never executed.
* fix(setup): require strict npm cmd-shim structure for rea.cmd ownership
* fix(setup): match exact npm cmd-shim template for rea.cmd ownership
* fix(client-identity): reject batch variables and support local node_modules/.bin rea.cmd shims
* fix(setup): recognize current npm command shims
* fix(ci): route CMD shim tests to the Windows package lane
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
* fix(process): quote Windows batch operators cmd.exe keeps literal
cmd.exe with delayed expansion off keeps & | < > ( ) ^ ! literal inside quotes. Empty tokens and %name% spans are still refused, including when that name is unset, because the child environment can define it.
* fix(process): report a refused batch path as invalid configuration
A percent expansion or an unusable COMSPEC is configuration_invalid. Packet capture does not append the Wireshark install remediation, and an apktool decode does not report a capability gap.
* fix(process): refuse percent spans joined across batch tokens
cmd.exe expands a percent span on the joined command line. Tokens that
are legal alone are refused when joining them forms a span. The spawn
regression kills its child if that child is still running after 10 seconds.
* test(process): include the Windows batch regression in CI
The curated Windows lane now runs WindowsBatchCommand.test.ts.
* fix(domain): preserve a configuration error's caller message
ConfigurationError accepted userMessage and dropped it, so the public
projection replaced the caller text with the generic doctor sentence.
The constructor now stores that message.
* fix(pcap): keep a batch refusal in the public configuration message
A Windows batch refusal stays in the configuration error the caller
sees, including the refused path and the percent-expansion reason.
* fix(apktool): report a decode batch refusal as invalid configuration
Inspection still reports not_configured. Decoding reports
configuration_invalid and names the launcher that cmd.exe cannot receive.
A percent span that appears only after the quoted tokens are joined is
refused the same way.
* test(process): own the Windows batch regression in the package lane
The curated Windows job already runs WindowsBatchCommand.test.ts. The package scope did not name that file, so the lane ownership check reported it as unowned.
* fix(tests): make three Windows-failing tests pass and give the Ghidra transport one owner
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* test(ghidra): cover the per-platform default bridge transport
defaultGhidraTransport had no direct test. Pins authenticated loopback TCP on win32 and a Unix socket on linux and darwin.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(ghidra): retain Windows transport boundary coverage
* test(ghidra): align Java fixtures with their host platform
* ci(ghidra): verify transport and byte search on Windows
* test(ghidra): keep Windows probes in the existing test process
* fix(ghidra): await complete Windows endpoint publication
* test(ghidra): use owned child identities for Windows fixtures
* ci(ghidra): own the Windows transport regression inputs
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
* fix(process): compare Windows server paths by native realpath
compareServerPaths returned mismatch for every non-equal Windows path,
so case, separator, 8.3, and junction spellings of the running server
were reported as registration_path_mismatch. Compare native realpaths
on Windows, matching registration identity: a different existing file
still mismatches and an unresolvable path stays unknown.
* test(process): run the server path identity regression on Windows
The injected win32 platform only selects the comparison branch; on
the Linux source-test host realpathSync.native still uses POSIX
rules, so Windows letter case, separators, and junction behavior
were unverified. Add Windows-only spelling cases beside the portable
regression and include the file in the curated Windows lane, with
the lane guard asserting it stays there.
* ci(windows): own the server identity regression in the package lane
The Windows lane now runs serverIdentity.test.ts, so the package scope
must own that path for the native-host lane ownership check.
* docs(process): clarify server path comparison authority
---------
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
* perf(ci): confirm test-only macOS selection on Linux
* fix(ci): keep explicit Apple scope in job admission
* perf(ci): publish the build cache only for confirmed consumers
test(ci): keep the separator regression in the Windows-only lane guard
Fold windowsTargetSeparators.test.ts into the existing guard for
Windows-only cases instead of a separate test with the same reason.
Co-authored-by: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com>
A selection whose every module is gated to macOS, such as a change to only
tests/acceptance/applications/nativePlistNesting.test.ts, can only report
skipped modules on Linux, and the portable report then failed with 'Every
portable test module was skipped' although the macOS lane ran the tests.
The report now accepts an entirely skipped selection when the plan selected
the macOS lane and every reported module is gated to macOS by the same
isDarwinGatedTestSource rule that the macOS lane uses to discover its
tests. The summary says so. Any other entirely skipped selection, and an
entirely skipped complete suite, still fail.
Fixes#14596
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Knip ran only in the full-tier deep static job, so pull requests merged
with unused exports and the next scheduled run failed; 3 of the last 12
scheduled CI runs on main failed only on Knip. It needs the built workers
that package imports name, so it now runs in the build job after
test:prepare, where it adds the Knip run itself (about 20 s cold) to a
job every code change already runs. Its cache steps move with it and the
deep job no longer repeats it.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(mutation): include every mutated file in the mutation project
Stryker's typescript-checker watches the files the mutation project
includes. A mutated file the project leaves out has no watcher, and the
sweep aborts with "no watcher is registered for it" before it reports a
score. The semantics suite mutates src/rizin/RizinDebugFrames.ts and
src/rizin/RizinDebugEvidence.ts, and the reverse-tools suite mutates
src/domain/analysisResourceLimits.ts; none of the three was in
tsconfig.reverse-tools-mutation.json, so the daily mutation sweep failed
before it produced a report.
Add the three files to the project. Add scripts/verify/mutation-target-tsconfig.mjs,
which reads the resolved mutation targets from both configurations and
fails when the project does not cover them or lists a file the repository
no longer has. The guard runs in the deep static lane and before the
sweep, so the drift is reported by name instead of as a checker
abort.
* fix(mutation): give the reverse-tools sweep the time it needs
The reverse-tools suite reached 805 of 1008 mutants after 57 minutes of
mutation testing on the 2026-11-26 scheduled run and was killed by the
60-minute job budget before it could report a score. The suite needs
about 70 minutes of mutation testing plus the setup it runs before it.
Raise the job budget to 90 minutes so the sweep reports instead of
being cancelled. The budget is the only change; the suite and its
mutant set are untouched.
* fix(ci): select mutation quality for debugger limit changes
---------
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
curl --retry covers only timeouts and a few HTTP statuses, so a
connection reset mid-transfer failed the Ghidra SDK acquisition outright.
Retry every transient error for the pinned downloads, as the web network
capture lane already does; each archive is still checked against its
pinned SHA-256 before use.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Tests gated with skipIf/runIf to macOS never ran on the Linux lanes and
only ran on macOS when hand-picked, so they went stale. A small owned
script parses each tracked test with @babel/parser and evaluates its
skipIf/runIf conditions (and platform-conditional for/each case lists)
for linux and darwin with three-valued logic, listing the tests that
are skipped on Linux and may run on macOS. The apple-artifacts job runs
all of them; the hand-picked step keeps only the ungated tests.
* fix(ci): read portable build plan from a file instead of a pipe
Write the Turbo dry plan to .cache/ci-build-plan.json, then have key
and snapshot read that complete file by path. This removes the live
stdin pipe from the portable-build-cache plan step.
* fix(ci): clear stale portable build output when the plan file is missing
If readFile fails, still remove the previous key plan or snapshot so a
missing or unreadable input cannot leave stale output for later steps.
The CLI/MCP regression is skipped off darwin, and no macOS job listed it,
so CI never exercised the provenance it covers. Add it to the Apple
artifact lane and its owned paths.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* ci(release): require full qualification before tagging
* ci(release): preserve unpublished versions and verify npm before tagging
* test(release): exercise publication gates on both release routes
* fix(release): fetch the live main checkpoint before verifying it
* fix(release): constrain GitHub requests and workflow output
* fix(release): honor GitHub label and recovery API contracts