Commit Graph
6723 Commits
Author SHA1 Message Date
morluto 3ab956b327 fix(setup): repair npx registrations after the npx cache is pruned (#15249)
* fix(setup): refresh registrations from a removed npx cache entry

npx rea-agents setup saves REA's script in npm's _npx cache. After npm prunes that entry, setup could not read the package manifest, marked the registration unknown and asked for a manual config edit. A saved script with setup's exact npx layout that no longer exists is now REA-owned and stale, so npx rea-agents@latest setup replaces it and doctor names that command. The npx cache matcher moves to one module shared by doctor and setup.

* docs(agents): keep npx rea-agents setup as the onboarding path

* test(setup): run real npx setup through a cache prune and repair

The end-to-end run showed POSIX setup saves npm exec's node_modules/.bin/rea alias, not the package script, so removed-npx recognition now accepts both layouts setup writes.
2026-11-30 10:21:49 -05:00
AfloatandVincent Koc 4dccd4d252 fix(comparison): retain function CFG entry identity (#14082)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 23:09:51 +08:00
fafde7b243 fix(javascript): resolve Electron paths held in definite constants (#9540)
* fix(javascript): resolve Electron paths held in definite constants

A preload, utilityProcess.fork module path, serviceName or loadFile path
written inline as path.join(__dirname, "preload.js") resolves, but the same
expression stored in a const first stays dynamic, because staticPathFact
returned undefined for every identifier. The ESM idiom
const __dirname = path.dirname(fileURLToPath(import.meta.url)) left
path.join(__dirname, ...) unresolved for the same reason.

The path intrinsic query now also returns the initializer of a single,
unreassigned, unprojected const whose initializer the shared lexical index
proves has run at the read (the proof constant BrowserWindow options use).
staticPathFact and the filesystem-context check recurse into that
initializer, so a source-directory base survives, and the source-directory
and source-file identity proofs follow const aliases. Each constant is
substituted at most once per evaluated expression, which keeps work and
spelling bounded by the source text.

let and var bindings, reassigned, destructured or shadowed constants, reads
that may run before initialization and URL objects stay unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(javascript): bound constant alias chains in static path facts

Root cause: staticPathFact and isFilesystemPathExpression recurse once
per substituted constant, and the once-per-initializer set only stops a
revisit. A linear chain of shallow declarations (const c1 = c0; const
c2 = c1; ...) admits every link, so a long enough chain exhausts the
call stack (12,000 `c + "a"` links throw RangeError in the domain test
worker). For plain aliases the same chain was quadratic instead:
isFilesystemPathExpression asked the source-directory proof at every
step, and that proof walks the whole remaining chain (4,096 aliases took
about 55 s). That proof reads initializers outside the per-expression
set, so a source-directory alias read twice, path.join(DIR, DIR, "x"),
still resolved. isFilesystemPathExpression also matched the name
__filename before following a constant of that name, so an ES module
const __filename = "service" got filesystem context, unlike the inline
string.

Structural fix, one bound owned where constants are substituted:
- The path query admits constant substitutions
  (admitConstantSubstitution): at most SEMANTIC_EXPRESSION_DEPTH_LIMIT
  per expression, the budget the expression shape resolver already uses
  for alias chains. substitutingConstantsOnce asks it, so a refused read
  is unknown, never a partial or truncated literal. A refusal records
  the expression-depth resource limit, so the examination is limited and
  the unresolved path still counts as an unknown finding.
- The source-directory proof's alias walk (constantTarget) asks the same
  question, and once the proof holds its top-level aliases are spent
  from the per-expression set like any other constant read.
- isFilesystemPathExpression follows a constant to its initializer
  before the name-based identity checks.

The guide documents the bound. Not changed: constants inside
new URL(CONST, import.meta.url) stay unknown, and the inline
path.join(__dirname, __dirname, "x") still resolves as before.

Validation:
- npm run test:local with the PR test file and nine neighbours:
  Test Files 10 passed (10), Tests 763 passed (763).
- With the two source files at 7d7180515 and the new tests, the rows for
  12,000 concatenations (RangeError: Maximum call stack size exceeded),
  4,096 aliases (resolved after about 55 s), 256 aliases to a source file,
  a chain of 256 aliases, both directory-alias rows and the __filename
  row fail; the 255-alias controls pass.
- npm run check:fast passed; oxfmt --check passed on the four files.
- Not run: the acceptance and boundary tests that need test:focused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(javascript): read the constant alias bound from the semantic precision

Main (#9706) removed SEMANTIC_EXPRESSION_DEPTH_LIMIT: the expression-depth
bound is now state.precision.expression_depth (default 256), so a caller
can raise or lower it per analysis. The constant-alias bound added by this
PR read the removed constant, so the tree merged with main did not compile.

Read the bound from index.bindings.precision, like the other semantic
evaluators. The test takes the default from
JAVASCRIPT_SEMANTIC_PRECISION_DEFAULTS and imports
analyzeParsedJavaScriptStaticSource from tests/fixtures, where main moved
it (#10275). Behavior at the default bound is unchanged.

Validation: npm run check:fast passed on the merged tree.
npm run test:local on javascriptStaticPathConstants.test.ts: Tests 34 passed
(34). The same command on 42 static-analysis test files (this one, the
javascriptStaticAnalysis* files and the electronStaticAnalysis app-path and
identity files): Tests 1004 passed (1004).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(javascript): keep file URLs with an unknown base unresolved

staticFileUrlPathFact read only the spelling of its argument's path fact,
so the unknown base that main's #11991 rejects through staticPath was
dropped. `fileURLToPath(path.join("file:", __dirname, "preload.js"))`
spells `file:/preload.js` after the leading source directory, and the
Electron findings reported `/preload.js` instead of an unknown path.

The reader keeps this branch's shared substitution set and now rejects a
fact whose base is unknown before it converts the URL.

Validation: the two new controls (inline and through a constant) fail on
the previous head with `/preload.js` and pass now. vitest on
javascriptStaticPathConstants.test.ts and
javascriptStaticPathResolution.test.ts: 153 passed (153).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(javascript): resolve a constant inside a source-relative URL

`const REL = "./preload.mjs"; fileURLToPath(new URL(REL, import.meta.url))`
stayed unknown while the inline literal resolved, because
staticSourceRelativeUrlPath read its first argument with stringValue only.

The decoder now takes the path query and follows a `const` chain to a
string literal, spending the same substitution bound as other constant
reads. A `let` binding, a joined path and a source-directory path inside
the URL stay unknown, and a stored URL object is still not followed.

Validation: the constant, alias and constant-path rows fail on the
previous head and match the inline result now; the three controls stay
unknown. vitest on javascriptStaticPathConstants.test.ts: 43 passed (43).
tsc --noEmit is clean. The CLI acceptance test needs the built runtime
and runs in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(javascript): share source path substitution budget

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 23:05:30 +08:00
morluto 9a4e2df67f revert(setup): restore npx rea-agents setup (#15245)
Revert "fix(setup): do not persist versioned launcher paths (#15123)"

This reverts commit 92c61a7c61.
2026-11-30 10:05:27 -05:00
ThejeshandVincent Koc aeca62b117 fix(javascript): recover webpack chunks with array module tables (#13829)
* fix(javascript): recover webpack chunks with array module tables

Webpack writes a chunk's module table as a sparse array when numeric
module ids are dense (webpack 5 moduleIds natural/size, webpack 4
production builds), and webpack 4 registers chunks on webpackJsonp.
Chunk registration accepted only object tables and *Chunk* globals, so
these chunks recovered no modules while coverage stayed complete.

Read object, sparse-array and Array(n).concat([...]) tables through one
moduleTableEntries helper (index plus offset is the module id) and
recognize webpackJsonp as a chunk runtime.

* fix(javascript): mark webpackJsonp chunks as webpack vendor

A minified webpack 4 chunk whose factories never spell
__webpack_require__ now yields a webpackJsonp registration with
bundler "webpack", but detectVendors matched only __webpack_require__
and webpackChunk, so the same file reported no webpack vendor and the
artifact graph's vendor_markers stayed empty.

Add webpackJsonp to the webpack vendor markers, next to webpackChunk,
so the marker and the chunk-runtime classification agree. This also
covers the not-examined path, which reports vendors without
registrations.

* fix(javascript): validate intrinsic array module table offsets

* fix(javascript): guard inherited array slots in table recovery

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 22:52:55 +08:00
ShuaixinHuangandVincent Koc bd6ff678c4 feat(artifacts): inventory standalone Unix ar archives offline (#15224)
* feat(artifacts): inventory standalone Unix ar archives offline

* test(artifacts): align standalone ar assertions and comparison docs

* fix(artifacts): preserve ar names, admission and permission uncertainty

* chore(contracts): refresh ar admission schema summaries

* fix(artifacts): handle GNU thin references and exact name budgets

* perf(artifacts): cache ar name-table observations

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 22:46:35 +08:00
ShuaixinHuangandShuaixinHuang 4886a406f9 fix(release): recover verified versions after npm advances (#15234)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 22:39:39 +08:00
clyde 490461938b fix(update): drain output after progress destination closes (#4894)
* fix(update): bound package-manager output collection

* fix(update): drain output after progress destination closes

* test(update): use shared progress test deadlines
2026-11-30 22:35:24 +08:00
fbb113b0d0 fix(release): confirm npm absence with an exact-version lookup (#15233)
* fix(release): confirm npm absence with an exact-version lookup

* test: cover the reviewed CI boundary cases

* fix(release): share the npm registry lookup deadline

---------

Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 22:34:39 +08:00
Adolanium 9d5c5f687d fix(process): accept legal characters in Windows batch paths (#15128)
* 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.
2026-11-30 22:28:54 +08:00
Lucien b0a910b8f4 fix(update): report Frida native module readiness (#7216)
fix(update): report Frida readiness after verified updates
2026-11-30 22:26:52 +08:00
ShuaixinHuangandShuaixinHuang 8c3491439e fix(release): bind every publication preflight to its target branch (#15232)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 22:17:19 +08:00
ShuaixinHuang d99b51051c perf(evidence): use ledger lookups for exact record selection (#15221)
* perf(evidence): use ledger lookups for exact record selection

* fix(evidence): document the exact-page request default
2026-11-30 22:00:50 +08:00
54a700e18c fix(ghidra): use host transport defaults for direct clients (#6410)
* 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>
2026-11-30 21:51:57 +08:00
Vincent Koc 220374038b fix(ghidra): explain Windows P0 database edit limits (#15225)
* fix(ghidra): explain Windows P0 database edit limits

Fixes #15153.

* test(ghidra): narrow unavailable capability before checking recovery

* test(ghidra): distinguish mutation guidance from readiness repair
2026-11-30 20:59:49 +08:00
e9a6324a1c test(javascript): prove receiver ownership by source location (#15227)
* fix(javascript): scope candidate this event receivers

Preserve lexical receiver scopes and possible local inheritance links without asserting runtime this identity. Keep decorator evaluation outside method receiver and callable boundaries.

Fixes #3360

AI-assisted implementation and verification with OpenAI Codex; human PR ownership and readiness remain unfilled.

* fix(javascript): retain receivers through type wrappers

Reuse the canonical expression normalizer to preserve object function receiver identity through transparent wrappers. Keep arrows, computed keys and non-transparent expressions separate. AI-assisted implementation and verification with OpenAI Codex.

* fix(javascript): retain enclosing receivers for computed keys

Apply the existing computed-method-key evaluation boundary before non-arrow receiver selection. Cover object method keys and bodies through semantic IR and CLI/MCP regressions.

* test(javascript): verify class receiver links by source location

* test(javascript): prove computed receiver boundaries by source

---------

Co-authored-by: Codex <codex@openai.com>
Co-authored-by: 星闌 <Xinglan233@163.com>
Co-authored-by: 星闌 <130824939+Xinglan233@users.noreply.github.com>
2026-11-30 20:42:41 +08:00
星闌andCodex 17940852ed fix(javascript): scope candidate this event receivers (#4656)
* fix(javascript): scope candidate this event receivers

Preserve lexical receiver scopes and possible local inheritance links without asserting runtime this identity. Keep decorator evaluation outside method receiver and callable boundaries.

Fixes #3360

AI-assisted implementation and verification with OpenAI Codex; human PR ownership and readiness remain unfilled.

* fix(javascript): retain receivers through type wrappers

Reuse the canonical expression normalizer to preserve object function receiver identity through transparent wrappers. Keep arrows, computed keys and non-transparent expressions separate. AI-assisted implementation and verification with OpenAI Codex.

* fix(javascript): retain enclosing receivers for computed keys

Apply the existing computed-method-key evaluation boundary before non-arrow receiver selection. Cover object method keys and bodies through semantic IR and CLI/MCP regressions.

---------

Co-authored-by: Codex <codex@openai.com>
2026-11-30 20:36:33 +08:00
AfloatandVincent Koc 66f0882ece fix(config): validate target and loader options before printing MCP registrations (#9279)
* fix(config): validate target and loader options before printing MCP registrations

* Preserve executable mode of MCP configuration helper

* Format MCP config CLI and its validation tests

* Run MCP configuration printer regressions in the process boundary suite

Move the config printer's valid, invalid and help cases into the registered MCP launcher Vitest suite. Run the real script with the test-scoped process fixture so CI owns each child and checks its output and exit code.

* test: align verification fixtures with current public contracts

Keep the production changes from upstream and update the verification consumers that still asserted their retired contracts:

- assert unknown workflow identity structurally and retain the bounded provider caveats;
- observe the process capture's partial-error delivery while preserving live cleanup ownership assertions;
- use the package's declared imports in the isolated release controller;
- refresh the replay card digest after the Evidence subject identity migration;
- use the supported compact Kimi profile while testing case-insensitive environment keys;
- assert each public interface's own capture issue path.

These are shared test and verifier compatibility repairs. The evidence summary pagination and config-printer feature changes remain separate.

* test(mcp): observe Kuna close failures at the session owner

Read the original session.close promise result when checking cleanup retry guidance. This keeps the real typed error and all retry assertions while avoiding the retired delivery path after upstream #11647.

* test(mcp): assert DOL snapshots through target identity

Follow the upstream target identity migration in ff017625 (#11551). Preserve the exact DOL format, architecture and entry-point assertions together with the snapshot replay and provider-call checks.

* test: align CLI and progress fixtures with shared owners

Reuse the core registrar for decompile-all instead of registering it twice
after upstream #11680. Assert the outer MCP start/completion notifications
separately from provider cleanup progress introduced by #11637, retaining
cleanup, rate, timeout, cancellation, and evidence assertions.

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 20:35:43 +08:00
AfloatandVincent Koc 7dc0356531 fix(native): honor cancellation during PE alias expansion (#9063)
* fix(native): honor cancellation while parsing exports

Advance export parsing at its cooperative checkpoints so queued cancellation is observed before publishing a complete inventory. Preserve the exact caller abort reason and the existing resource owner.

Add matching checkpoints to PE name, address and alias traversal, with real-byte regression coverage for ELF symbols, GNU version records and PE tables.

* test(setup): retain a valid lowercase Kimi schema profile

Use the supported compact profile in the Windows environment-spelling regression. Keep the exact environment assertion so a duplicate uppercase key still fails, and retain separate coverage rejecting the removed full profile.

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 20:35:37 +08:00
AfloatandVincent Koc 748537728f fix(audit): preserve env shebang argument ownership (#14075)
* fix(audit): preserve env shebang argument ownership

* fix(config): consume env argv0 operands in shebangs

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 20:25:42 +08:00
2SinceJuly aea385cda1 feat(evtx): inventory Windows event log records offline
Inventory EVTX file, chunk and record headers with source-scoped identities, full timestamp precision and explicit partial coverage. Discover the reader from first-contact inspection.

Refs #9174.
2026-11-30 20:25:14 +08:00
ABHISHEK KR. SHARMA aeea7c25ed fix(hopper): clarify publisher verification failures
Clarify publisher hash mismatch and preserve other verification failure causes. Include the selected release and launcher override recovery.

Refs #5245.
2026-11-30 20:12:29 +08:00
ShuaixinHuang 913406fcf8 fix(analysis-view): keep PTX text pages on Unicode boundaries (#15222) 2026-11-30 20:03:26 +08:00
ChiragandVincent Koc d840860bd7 feat(mcp): advertise each tool's family in tools/list _meta (#7154)
* feat(mcp): advertise each tool's family in tools/list _meta

Clients that index a large catalog lazily had to guess each REA tool's
group from its name. Every tools/list entry now carries the contract's
adapter family under the vendor-prefixed _meta key
"io.github.morluto/rea", attached once at the contract-to-registration
boundary. The recorded catalog replays it unchanged on the deferred path.

No tool is hidden or renamed and input schemas are unchanged.

Closes #6870

* refactor(mcp): advertise the selectable family id in tools/list _meta

Since #7228 the contract-owned family inventory gives every tool one
selectable id, the vocabulary REA_MCP_TOOL_FAMILIES accepts. Advertise
that id instead of the adapter kind so clients can map an advertised tool
back to the scope that enables it.

* fix(mcp): omit family metadata for contracts outside the inventory

Renamed test fixtures have no published family; advertise nothing for
them instead of throwing. Drop the docs claim that a family move changes
the catalog digest, since the digest hashes the adapter kind.

* docs(mcp): scope family _meta promise to domain tools; pin catalog env in test

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:58:25 +08:00
ShuaixinHuangandVincent Koc 5f15fdf457 perf(evidence): inspect retained records without building a bundle (#15219)
* perf(evidence): inspect retained records without building a bundle

* perf(evidence): reuse ordered inspection records across pages

* docs(evidence): clarify sealed inspection records

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:43:40 +08:00
SandivandVincent Koc f5055cd2ed fix(process): report denied inspection as typed cleanup failures (#9261)
* fix(process): report denied inspection as typed cleanup failures

Preserve the native ps diagnostic through owned-worker cleanup and finalize one-shot JavaScript analysis before Evidence delivery. Retain mandatory inspection and existing cleanup authority.

Preserve the inspector diagnostic when the initial process-table read succeeds but pre-signal revalidation fails, and remove the unreachable typed-error branch so retained artifact retry failures project through the existing cleanup contract.

* fix(resources): preserve independent close failure ownership

* fix(cli): retain cleanup recovery and nested close evidence

* refactor(providers): classify rejected closes at the shared boundary

* test(cli): preserve bundle metadata and physical inspection failures

* fix(cli): preserve the JavaScript failure envelope after finalization

* test(cli): validate the JavaScript error envelope at its boundary

* fix(providers): preserve unnamed close failure resources

* fix(cli): retain invocation owners through outer cleanup

* test(cli): distinguish reported cleanup failures from uncaught errors

* fix(cli): compose each runtime’s declared cleanup owners

* test(cli): preserve the original cleanup rejection

* test(cli): allow cleanup retry recovery after a reported failure

* fix(cli): report final cleanup after returned results

* fix(cli): preserve launcher executable mode

* test(cli): retain invocation cleanup in file sessions

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:38:45 +08:00
ShuaixinHuangandVincent Koc 891a999a12 perf(mcp): complete retained Evidence without rebuilding bundles (#15210)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:33:39 +08:00
d0694fb5b7 fix(agentenv): stop dry-run tarball reads on cancellation (#15205)
* fix(agentenv): stop dry-run tarball reads on cancellation

* fix(agentenv): retain tarball cancellation when close fails

* fix(filesystem): retain cancellation during cleanup retry

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:31:47 +08:00
6af7a04dd9 perf(png): reuse scanline storage in screenshot comparisons (#15215)
perf(png): reuse inflated scanline storage in screenshot comparisons

Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:25:10 +08:00
608378c311 fix(windows): reject native addons with unusable delay-import tables (#15216)
* fix: deepen verified coverage for PR #14258

* fix(windows): recognize GNU delay-import terminator placement

* fix(windows): validate complete delay-import address tables

* fix(windows): validate delay-load descriptor targets

* fix(windows): validate delay-import function names

* fix(windows): bound delay imports to the dedicated IAT section

* test(windows): cover delay-import verifier refusals

* test(windows): cover nonzero delay-import padding

* fix(windows): require readable delay-import descriptors

* test(windows): accept read-only delay import names

* fix(windows): validate initial delay loader state

---------

Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 19:18:16 +08:00
a5aee4f9e9 feat(artifacts): inventory Android super image metadata (#14928)
* feat(artifacts): inventory Android super image metadata

Refs #14391

* fix(artifacts): preserve partial Android super metadata evidence

* fix(artifacts): recognize Android super PE overlays

Refs #14928

* fix(artifacts): reject an Android super device with no usable sector

A first usable sector at the device size was accepted, so extent checks
reported a different field. Keep stored copy failures to malformed,
truncated, and unsupported now that format failures include unrecognized.

* fix(artifacts): preserve Android super partial evidence on budget exhaustion

* fix(mcp): preserve existing provider partial observation contracts

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-30 06:15:43 -05:00
Saim ShafiqueandVincent Koc 60de294646 fix(process): compare Windows server paths by native realpath (#15044)
* 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>
2026-11-30 19:05:38 +08:00
Vincent Koc c12177ce0d perf(ci): confirm test-only macOS selection on Linux (#15203)
* 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
2026-11-30 18:51:07 +08:00
Dery FerdikaandVincent Koc 81384ecfdc fix(conformance): validate paired fixture count expectations (#14125)
* fix(conformance): refuse a fixture that declares half of a count pair

A counted expectation is a pair: the prefix selects the records and the count is
what the verifier binds to the source. Admission accepted either half, and
verifyCount returned silently when one was missing, so a fixture could declare
the invariant and never have it checked while verify:fixtures still reported
the fixture as verified.

Require both members in parseConformanceFixtureManifest and treat a half pair
at verification time as a producer defect instead of skipping the count.

* fix(fixtures): validate counted expectation types

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 18:01:46 +08:00
Vincent Koc 6aa231d20f test(environment): share the loopback capture fixture (#15196) 2026-11-30 09:50:21 +00:00
ShuaixinHuangandShuaixinHuang 358e4e52ad feat(iso9660): stream files across separated extents (#15190)
* feat(iso9660): stream files across separated extents

* test(iso9660): compare extracted buffers directly

* fix(iso9660): keep separated read plans private

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 17:50:09 +08:00
ShuaixinHuang aa01be1d0d perf(artifacts): isolate offline session composition from deep providers (#15194)
* perf(artifacts): isolate offline session composition from deep providers

* test(mcp): use the artifact session factory in bundle resource tests
2026-11-30 17:48:15 +08:00
Vincent Koc 0460fb757a test(mcp): share server result readers (#15174) 2026-11-30 17:40:15 +08:00
Saim ShafiqueandVincent Koc 31cec30f51 fix(android): declare Android mapping and JNI fixed allowances (#15183)
* fix(android): declare Android mapping and JNI fixed allowances

* fix(android): avoid ineffective JNI allowance recovery advice

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:38:39 +08:00
ba90eb2255 perf(evidence): bound link inspection frontier by records (#15189)
* perf(evidence): bound link inspection frontier by records

* test(evidence): cover reconvergent closure pagination

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:22:19 +08:00
e98a1e66ef fix(oci)!: keep unobserved directory identity unknown (#15164)
* fix(oci)!: keep unobserved directory identity unknown

BREAKING CHANGE: OCI layout Evidence now reports an unknown subject. The selected path and layout-document snapshot digest are available in normalized_result.artifact.

* fix(evidence): keep desktop directory content identity unknown

* fix(evidence): admit legacy desktop directory subjects

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:42:34 +08:00
91380cff6a fix(ci): run npm lifecycle hooks in selected host lanes (#15169)
* fix(ci): run npm lifecycle hooks in selected host lanes

* fix(ci): avoid nested lifecycle hooks in host lanes

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:19:02 +08:00
c86e86d697 fix(artifacts): retain stored files in Godot PCK patches (#15180)
* fix(artifacts): retain stored files in Godot PCK patches

* docs(godot): distinguish stored member flags from removals

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:12:48 +08:00
92c61a7c61 fix(setup): do not persist versioned launcher paths (#15123)
* fix(setup): do not persist versioned launcher paths

A command saved from nvm, Volta, Homebrew Cellar, mise, or a package cache stops launching after an upgrade or prune, and doctor then treats that registration as foreign.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(setup): recognize default nvm installation layouts

The usual POSIX install is ~/.nvm/versions/node, and nvm-windows stores each release in nvm\v<version>. Both were still saved, and the launcher guide still told setup to keep a cache path.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(setup): keep durable Windows and mise launcher paths

Default Windows Volta and pnpm dlx stores were still persisted, and mise's stable latest alias was dropped before the Aube launcher could use it.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(setup): keep a mise shim when Node itself is versioned

A versioned running runtime was rejected before a durable Node alias could be selected, and fnm's installed tree was still saved. Doctor now tells version-manager and package-cache paths apart from a session directory.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(setup): reject versioned aube store targets and align install routes

Reject version-tagged node_modules/.mise store targets beneath mise latest aliases (while keeping verified outer Aube shims), reject asdf/nodenv/nvs/nix/snap versioned paths, fix the nvm-sensitive Windows runtime assertion in setupLauncherAlias tests, and align installation docs, install.sh, and getting-started guidance with durable-path registration.

* fix(setup): recognize custom manager env roots and align onboarding docs

Pass environment through versionedLauncherPath and transientLauncherRemediation so custom version-manager env roots are classified accurately while preserving fnm_multishells as a session path; fix Windows PowerShell rea.cmd and Linux PATH persistence in get-started; align remaining setup quick starts and affected setup acceptance/boundary tests.

* fix(setup): reject session paths and configured package caches

Windows fnm session directories and custom npm or Bun cache roots were still eligible for client registration. Quick starts now require a durable Node install, and the website setup copy no longer uses a PowerShell-invalid command chain.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(setup): resolve configured launcher roots

* docs(setup): align persistent launcher prerequisites

* docs(setup): persist paths in Bash login profiles

* fix(setup): name the missing saved launcher path

* fix(setup): reject Bunx execution-cache launchers

* docs(setup): add writable npm prefix prerequisite

* style(website): format prefix prerequisites

* chore(website): format setup introduction

---------

Co-authored-by: Ambuj Agrawal <aseachambuj@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:10:33 +08:00
Vinícius AndradeandVincent Koc eb5cd34258 fix(devicetree): read later FDT versions backwards compatible with v17 (#14136)
* fix(devicetree): read later FDT versions backwards compatible with v17

The header reader admitted only versions 16 and 17 and consulted
last_comp_version only to reject a value above the version. DTSpec 5.1
requires a client to accept any version backwards compatible with
version 17, and libfdt reads such a blob with the version 17 header.

Admit a later version whose last_comp_version is 17 or lower and read it
with the version 17 layout, reporting the declared version. A later
version that needs a newer reader and any version below 16 stay
unsupported, and v16 and v17 outcomes are unchanged. FIT recognition
shares the reader, so it now claims a FIT in such a version as well.

* test(devicetree): cover a later FDT version backwards compatible with v17

Parse the shared fixture with version 18 and last_comp_version 16: the
header is read with the version 17 layout and the tree decodes as it
does for v17. Raising last_comp_version to 18 keeps the blob
unsupported. FIT recognition, which shares the header reader, covers
the same version.

On the previous reader the version 18 parse and the version 18 FIT
recognition fail, because version 18 was refused before
last_comp_version was read.

* docs(devicetree): describe later FDT versions backwards compatible with v17

* test(devicetree): keep the unsupported-version cases on an incompatible header

The CLI and MCP error cases used version 18 as an arbitrary unsupported
version, but their fixture declares last_comp_version 16, which is now
read as a version 17 blob. Declare last_comp_version 18 there so both
cases still reach unsupported_target through the public paths.

The shared fixture takes the declared compatibility version for this,
and the parser case uses it instead of patching the header word.

* test(devicetree): cover compatible versions through CLI and MCP

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:02:58 +08:00
Saim ShafiqueandVincent Koc 76cb6645be fix(macos-pkg): retain cpio hard-link contents (#15157)
* fix(macos-pkg): retain cpio hard-link contents

* fix(macos-pkg): withhold ambiguous aliases and bound link resolution

* fix(macos-pkg): bound cpio hard-link resolution

* fix(macos-pkg): keep intermediate cpio sidecar boundaries

* fix(macos-pkg): bound trailing cpio sidecar work

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 15:46:09 +08:00
ShuaixinHuangandShuaixinHuang 4ccc685dd5 test(asar): verify cleanup on the original file handle (#15155)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 15:15:35 +08:00
ShuaixinHuangandShuaixinHuang 784c3df925 fix(artifacts): distinguish content from containment changes (#15165)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 15:08:01 +08:00
Vincent Koc 112aac745b test(ghidra): wait for each fixture spawn before expiring startup (#15172) 2026-11-30 14:33:04 +08:00
Vincent Koc 97322254dd test(beam): reuse the CLI Evidence reader (#15171) 2026-11-30 06:20:51 +00:00