Commit Graph
3170 Commits
Author SHA1 Message Date
hhangandhhang d6c767b3f8 fix(artifacts): check signed BC4 and BC5 DDS payload extents (#15208)
fix(artifacts): verify legacy signed BC4 and BC5 DDS payload extents

Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-30 18:54:30 +08:00
hhangandhhang 177e26effb fix(artifacts): bound embedded GLB images by the declared buffer length (#15207)
fix(artifacts): bound GLB embedded images by their declared buffer

Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-30 18:54:08 +08:00
2f01f653ce fix(tar): account for retained pax owner names (#15195)
* fix(tar): account for retained pax owner names

* test(tar): cover retained names across global replacements

* test(tar): narrow owner metadata to its format

* test(tar): use the measured retained metadata boundary

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 18:06:03 +08: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
c91c504089 fix(nro): exclude ASET header bytes from asset ranges (#15185)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:11:44 +08:00
6ea03cd5c3 fix(bflt): reject relocation tables overlapping image segments (#15188)
* fix(bflt): reject relocation ranges before data

* docs(bflt): clarify unavailable relocation counts

* fix(bflt): reject relocation tables overlapping initialized data

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:04:19 +08:00
Vincent Koc 11c8de1bc1 docs(artifacts): document Kubernetes audit log inventory (#15187)
docs(artifacts): explain Kubernetes audit log inventory
2026-11-30 16:51:06 +08:00
5c3c1edd72 fix(dtbo): keep coverage unknown beyond the declared image (#15182)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:47:52 +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
6053481d47 fix(nds): bind file names to disjoint FNT subtables (#15178)
* fix(nds): bind file names to disjoint FNT subtables

* test(nds): cover FNT subtable boundaries and recovery

* fix(nds): retain reached directories with unusable names

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 16:29:51 +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
e18ed55bac fix(artifacts): report macOS package bundle release versions (#14860)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 15:29:10 +08:00
ShuaixinHuangandShuaixinHuang 9ab90fd7f0 fix(ubi): bound smaller-grid probe memoization (#15168)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 15:12:41 +08:00
ShuaixinHuangandShuaixinHuang 309712cd0f fix(bflt): retain complete text when data is truncated (#15160)
* fix(bflt): retain complete text when data is truncated

* docs(bflt): describe text recovery from short images

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 15:03:28 +08:00
Vinícius AndradeandVincent Koc 244147a2a0 fix(iso9660): read a directory record's data length from its little-endian half (#14801)
* refactor(iso9660): read both-endian halves through one helper

Split the half reading out of readBothEndian, and name the failure it
raises, so a caller can keep a disagreeing big-endian copy or raise the
same failure itself. The agreement check and its failure are unchanged.

* fix(iso9660): read a directory record's data length from its little-endian half

One directory record whose big-endian data_length copy differed from its
little-endian half refused the whole image as malformed, wherever the
record sat in the tree, so no member was inventoried. Linux isofs,
libarchive and pycdlib read only the little-endian half of a record's
data length, because mastering programs have written images whose
big-endian copy is wrong.

Records inside directory extents now use the little-endian half and keep
a disagreeing copy, which the entry reports as a limitation with both
values. A descriptor's own root record still requires both halves to
agree, as libarchive does, and every other both-endian field keeps its
agreement check.

The boundary case that pinned the refusal now lists the file or the
directory by its little-endian length and reads the rest of the tree.

* test(iso9660): keep descriptor root records strict about data length halves

A primary or Joliet descriptor whose root record stores a big-endian
data length copy that differs from its little-endian half stays
malformed at that field, so the little-endian reading of records inside
directory extents does not reach the descriptors.

* docs(iso9660): describe the little-endian data length of directory records

* test(iso9660): name each disagreeing section of a multi-extent file

Damage the big-endian data length copy of both sections of a contiguous
multi-extent file followed by a clean file. The file keeps its summed
little-endian size and verified hash, and its entry names both records
with their own values, in section order. The next file carries no
disagreement, so the per-member list is neither lost between sections
nor carried into the following member.

* test(iso9660): print the section limitation filter as an expanded chain

The formatter prints the three-group chain in the multi-extent case,
rows.get(path)?.limitations.filter(...), one member per line when it
does not fit on one line. The previous commit kept it on one line, which
failed format:check.

* fix(iso): retain directory-link length disagreements

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 14:37:39 +08:00
Vinícius Andrade 72b74f090f fix(iso9660): read a directory record whose identifier padding byte is not zero (#15020)
* fix(iso9660): read a directory record whose identifier padding byte is not zero

A record whose even-length identifier was followed by a nonzero padding
byte failed as malformed, and the walk ended the whole inventory on it.
The byte takes no part in decoding: Linux isofs, libarchive, pycdlib and
7-Zip step over it, and 7-Zip notes that some discs store another value
there.

The value is no longer checked. A record too short to hold the padding
byte stays malformed.

* test(iso9660): read a nonzero identifier padding byte in the Joliet tree

Joliet identifiers are UCS-2, so every file and directory record in
that tree has the padding byte. The case now damages the record of the
tree the reader walks and checks that tree was the one listed.

* docs(iso9660): describe the unchecked identifier padding byte
2026-11-30 13:38:38 +08:00
hhangandhhang 0fd18dfc95 fix(artifacts): read Ogg Opus channel mapping tables (#14975)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-30 13:27:12 +08:00
Tristan 52b3358f7e fix(limits): report details.limit for pyc budget refusals (#14386)
* fix(limits): report details.limit for pyc budget refusals

Rebased onto main; the devicetree and NuGet parts were dropped here (landed via #14622 and #14629). This commit now carries only the pyc part.

Refusals of the per-call budgets on inspect_devicetree, inspect_nuget_nupkg
and inspect_python_pyc carried recovery only in remediation prose. Each
owner now keeps one bounds object that feeds both its input schema and a
structured details.limit (parameter, effective value, unit, range, default).

A pyc limit that depends on max_objects and max_depth together reports
related_parameters instead of a single range. The fixed decoded devicetree
allowance is reported as a fixed ceiling and registered as pending.

Refs #14234

* test(python): expect field-only pyc recovery text and the CLI limit flag
2026-11-30 13:18:51 +08:00
HolyDEEW 5e51d46a31 docs(setup): explain one-off CLI use without MCP registration (#14973)
* docs(setup): explain one-off CLI use without MCP registration

* docs(setup): put package-runner trust requirement beside CLI example
2026-11-30 13:07:04 +08:00
ShuaixinHuangandShuaixinHuang 18dfe17425 fix(android-ota): report bytes beyond the declared payload (#15113)
* fix(android-ota): report bytes beyond the declared payload

* test(android-ota): exercise an unsigned payload suffix

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 13:06:16 +08:00
morlutoandgithub-actions[bot] fc6867c514 chore(main): release rea-agents 7.0.0 (#15143)
* chore(main): release rea-agents 6.11.0

* chore(release): finalize REA 7.0.0 notes and metadata

* chore(release): format the 7.0.0 contribution inventory

* docs(release): highlight firmware and embedded CPU support

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-29 23:07:05 -05:00
morluto cb7627efea fix(release): advance the GitHub Actions example pin with the package (#15144) 2026-11-29 22:26:53 -05:00
Saim Shafiqueandmorluto 2ce4471c9f fix(setup): honor KIRO_HOME for the Kiro user configuration (#15056)
* fix(setup): honor KIRO_HOME for the Kiro user configuration

* fix(setup): fall back when KIRO_HOME is any filesystem root

The ancestor check compared the selected root against home with
path.relative, which returns an absolute path across drives, so a
KIRO_HOME of D:\ or a UNC share root was accepted while Kiro itself
falls back to ~/.kiro. Check the selected path against its own root
separately, and document the override in the client configuration
guide.

* test(setup): clear KIRO_HOME from lifecycle test environments

The client-location scrubber omitted KIRO_HOME, so lifecycle tests
calling supportedClients/detectClients and systemUninstallHost with
the default process.env could resolve a runner-exported KIRO_HOME
outside their temporary home and touch the real Kiro registration.

* fix(setup): resolve Kiro home aliases before selecting a profile

* refactor(setup): use the captured host platform for Kiro path checks

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-29 22:01:03 -05:00
Aditya Mahajanandmorluto 8306fba960 fix(ghidra): list compatible installed JDKs in doctor remediation (#15099)
* fix(ghidra): list compatible installed JDKs in doctor remediation

* refactor(ghidra): derive doctor JDK candidates from installation admission

Candidate discovery now consumes the installation's parsed Java
requirement, its Java-side admission (bounds, 64-bit JDK, and the
os.name/os.arch native directory), its bounded probe environment, and
its PATH and Homebrew enumeration instead of re-deriving them.

- Expose javaRequirement on the installation inspection; doctor read a
  field that did not exist, so discovery never ran.
- Search only when configuration passed and the Java probe failed.
- Enumerate macOS JavaVirtualMachines roots instead of running
  java_home, removing the unowned listing subprocess.
- Add PATH launchers on every platform, including Windows java.exe.
- Filter Homebrew formulae before selection and drop the fixed entry
  and probe caps; realpath deduplication bounds probes by distinct JDKs.
- Propagate cancellation from aborted searches and failed probes.
- Report candidates as structured compatible_jdks details.

* refactor(ghidra): share installation discovery seams with JDK candidates

* refactor(ghidra): name discovered JDKs as the Java remediation

When doctor finds compatible JDKs, the remediation names them instead of
appending them to the generic selection advice. Document the search and
details.compatible_jdks.

* refactor(ghidra): split installation inspection into owned modules

GhidraInstallation.ts gathers installation facts; the judgments and
helpers move to their owners:

- GhidraInstallationChecks: configuration, version, headless, native
  decompiler, and Java checks and their remediation.
- GhidraJavaSelection: JVM selection, probing, and Homebrew fallback,
  extracted from installationCoordinates, plus the Java helpers that
  JDK discovery shares.
- GhidraNativePlatform: native directory tables, decompiler header
  assessment, and JVM os.name/os.arch mapping.
- GhidraInstallationPathDiscovery: Ghidra launcher discovery on PATH.
- GhidraExecutableHeaderProbe now lives with its producer.

Java selection resolves the PATH launcher on every platform, so the
installation records the absolute command it probed. JDK discovery
then recognises it and does not launch the same Linux JVM twice.

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-30 02:35:29 +00:00
Oke Iyanuoluwa Enochandmorluto 7e71400a7c fix(setup): read Devin project MCP configuration (#15101)
* fix(setup): read Devin project MCP configuration

Devin loads .devin/mcp_config.json and .devin/mcp_config.local.json from
the working directory up to the nearest .git or .jj, above the user file.
A local file outranks every shared file, and a nested directory outranks
its ancestors. REA only read the user file, so doctor judged it while
Devin ran a project entry, and project uninstall skipped Devin.

Return Devin's project candidates in that order, evaluate them with
whole-definition replacement, and include Devin in project uninstall.
Setup still writes only the user file.

Fixes #15041

* fix(setup): apply Devin precedence by directory

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-30 02:07:55 +00:00
3474d40489 fix(setup): use native Copilot configuration for VS Code (#15098)
* fix(setup): use native Copilot configuration for VS Code

* fix(setup): preserve the legacy VS Code updater contract

* docs: clarify Copilot doctor and uninstall commands

* test(setup): check the configured client in BOM round trips

* test(ci): publish Pascal compiler readiness atomically

---------

Co-authored-by: Abotboot <173614984+Abotboot@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-30 01:58:44 +00:00
993c693bc1 fix(setup): read Amp workspace MCP settings (#15102)
* fix(setup): read Amp workspace MCP settings

Amp reads the nearest .amp/settings.json or .amp/settings.jsonc from the
working directory up to the repository root (only the working directory
outside a Git repository), and a workspace amp.mcpServers entry takes
precedence over the user entry with the same name. REA only read
~/.config/amp/settings.json, so doctor and setup judged a registration
Amp does not run and project uninstall left the workspace row in place.

The effective registration reader now admits Amp's workspace layer and
selects one whole server definition per name. Both workspace files in
the same directory are refused, as for the user settings, because Amp
does not document which one wins. Project uninstall includes Amp.

Fixes #15037

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

* refactor(setup): share Amp settings names and the existence check

Reuse one existence check for OpenCode's user path and Amp's workspace
walk, name the Amp settings files once, and name the formats whose
effective registration includes project layers.

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

* docs(setup): describe Amp workspace settings selection

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

* fix(setup): honor Amp workspace selection and approval scope

* fix(setup): retain Amp launcher repair alongside approval guidance

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-30 01:51:18 +00:00
ShuaixinHuangandShuaixinHuang 5c11199c59 fix(native): keep MIPS64 relocated initializers unresolved (#15106)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-29 20:39:10 -05:00
2dea2c2038 feat(kuna): admit PE/COFF, and forward the engine's spec variables (#15058)
* kuna: admit PE/COFF and forward the engine's spec variables

PE x64 is the class kuna handles and no other provider here does; its .pdata is a
better boundary source than discovery (430,906 discovered against 299,257
.pdata extents on one 120 MB image). Admission is the format check only — kuna
opens at the header base itself.

A source-built kuna also finds its compiled specs through KUNA_SPECS or
SLEIGHHOME, and the child environment carried only HOME/XDG_CACHE_HOME/NO_COLOR,
so a build install failed with 'Could not find .sla' and it read as a target
problem. Both are forwarded when set; a release kuna carries its specs and is
unaffected.

Adds the env test, flips the PE admission assertion, and says both in the
provider doc.

* chore: rerun checks

* fix(kuna): bind selected spec trees into the child and the cache

Forward KUNA_SPECS and SLEIGHHOME from the environment captured for the
provider, not from the ambient process. Hash each selected tree into the
analysis profile and export key so an in-place rebuild cannot reuse an
older result, and give a tree that cannot be hashed its own inspection
fence.

* fix(kuna): revalidate spec trees at launch and admit only x86-64 PE

The session kept the first specification digest, so a later export could
read a rebuilt tree and publish it under the earlier key. Each command
and export now hashes the selected trees again and keys the result with
that read; a tree that cannot be confirmed becomes an unknown identity
with a new reuse fence.

Directory close failures are retained on the caller's resource scope, and
the entry cap stops the directory read instead of buffering every name.
PE admission is x86-64; other PE architectures are refused.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* style(kuna): format the launch-revalidation changes

oxfmt --check rejected KunaProjectCache, KunaSessionClient, KunaSpecIdentity,
and the spec identity test. Apply the repository formatter.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): own spec identity once per launching operation

Compute one specification snapshot inside the session's classified
failure boundary and use that value for the cache key, the close key,
the profile, and the launch. Cached answers from an adopted project do
not walk the tree again. A tree that differs from the committed profile
is refused and the adopted reader is dropped. Directory close retains
one lease, and the session dialect keeps that cleanup on the classified
error.

Delete the extra refreshes in project build and command launch.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): check spec identity when a child spawns

Drop the operation allowlist. Each operation carries one memoized
confirmation, and runKunaCommand runs it under that command's deadline
before spawn. An unidentifiable tree reuses the fence minted for the
resolved profile, so the export key matches the profile BinarySession
commits. Relative spec paths are resolved from REA's working directory
when they are selected. A spec-file close keeps the lease the hook
returns, and installation retention is keyed by the original owner.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): keep spec-scan leases with the spawn owner

A shared export was retaining a failed spec close on the client that
started the build. That client can close while another client still
waits, and its close does not join the scan. The scan now runs in the
cache scope and the lease it returns is the cache's hash lease, so
close and settled can still release it. A client-owned command keeps
the lease in that command's scope.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): isolate each spec scan's signal and deadline

Spawns still share one identity result, but each waits on its own abort,
budget, and cleanup owner. The child timeout is whatever budget remains
after the scan and names the Kuna timeout setting.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* test(analysis-view): accept either oversized-page parent recovery

Source tests merge this branch with main, whose fixed-allowance recovery
no longer says "caller-supplied bundle".

Co-authored-by: morluto <morluto@users.noreply.github.com>

* test(views): drop recovery-prose lock on oversized route refusal

* fix(kuna): bound installation spec reads by the function timeout

identifyKunaExternalSpecs requires the caller's deadline. Inspection uses
REA_KUNA_TIMEOUT_MS, or the version-probe deadline when that timeout cannot
be read, and reports AnalysisTimeoutError.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): own spec scans through close and register spec roots

A cancelled wait keeps the physical spec read on the command or export
scope until its close settles. Setup and doctor copy an explicit
KUNA_SPECS or SLEIGHHOME into the client registration.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): retry a clean spec timeout and re-list walked directories

A spec-read timeout keeps a failed close's lease. A clean installation
timeout is not reused, so the next settings scan again. The walk re-lists
each directory and refuses the digest when the name set changed.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(kuna): keep spec-scan waits bounded and save absolute spec roots

The caller's wait ends at its deadline while the scope still owns the
read. Setup stores KUNA_SPECS and SLEIGHHOME as absolute paths.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* refactor(kuna): verify spec trees inline at each spawn

Replace the shared, detached per-operation spec scan in KunaSessionClient,
and the ownSpecScan plumbing that kept it owned, with an inline check in
runKunaCommand beside the executable-digest check. Each spawn reads the
tree under its own signal, deadline and cleanup owner, so the scan cannot
outlive the request or the shutdown that admitted it.

- Route every Kuna deadline timeout, including the spec-read timeout and
  its cleanup facts, through one kunaDeadlineTimeout owner.
- Move spec-variable selection into KunaConfiguration, its only reader.
- Pass an owner cancellation reason to the scan timer and read the
  function timeout through readRuntimeSetting (architecture guards).
- Cover a spec-file close failure that coincides with the scan timeout.

* fix(kuna): report late spec scans as timeouts and keep empty selections

- Check the deadline after the final directory read and close, so a scan
  that finishes past its budget is a timeout, not an identified tree.
- Convert only a deadline-stopped read to a timeout; an earlier physical
  failure keeps its cause beside the cleanup it left.
- Keep an explicitly empty KUNA_SPECS or SLEIGHHOME empty in setup and
  doctor registrations instead of resolving it to the working directory.

* test(kuna): remove wall-clock timing from spec deadline tests

- Observe the timeout the strings child is granted instead of asserting
  elapsed time; the scan delay must come out of that grant. A control that
  gives the child the full budget fails the test.
- Block the failing spec close on the scan's own deadline signal, with a
  test-owned release, instead of racing a fixed delay against a 20 ms
  deadline.

* fix(kuna): keep launch directory cleanup and report doctor spec timeouts

- A spec directory whose close failed during a launch scan now reports its
  retained cleanup through kunaRetainedResourceCleanupError instead of a
  plain adapter error, so the command reports cleanupIncomplete until its
  scope retries the handle.
- Doctor projects a spec read that exceeds kuna.function_timeout_ms into a
  failed Kuna version check with the timeout's recovery, instead of
  aborting the doctor run.
- Narrow the granted child timeout in the deadline test (CI typecheck).

---------

Co-authored-by: sharif <sharif@localhost>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-29 22:51:59 +00:00
Jatin PandeyandJatin Pandey cbdcea12a3 fix(setup): write Windsurf Cascade settings to its native config (#15132)
* fix(setup): write Windsurf Cascade settings to its native config

* fix(doctor): surface older Windsurf registrations

---------

Co-authored-by: Jatin Pandey <279688498+JayDev-27@users.noreply.github.com>
2026-11-29 16:52:34 -05:00
8e62e1c7ae fix(setup): honor Mastra Code project registrations in doctor (#15122)
* fix(setup): honor Mastra Code project registrations in doctor

* fix(doctor): share Mastra Code project scope with provider diagnostics

* fix(doctor): cancel Mastra Code registration discovery

* fix(doctor): retain structured Mastra Code cancellation

---------

Co-authored-by: Jatin Pandey <279688498+JayDev-27@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-29 21:08:01 +00:00
Shubham Bhamareandmorluto 43f7680c1f fix(setup): support Antigravity workspace .agents/mcp_config.json (#15125)
* fix(setup): support Antigravity workspace .agents/mcp_config.json

* fix(setup): verify Antigravity project writes and repository lookup

* fix(setup): confine project registration to the selected workspace

* fix(mcp): enforce write scope for every project registration

* test(setup): use existing project root in Kilo layer conflict test

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-29 20:39:47 +00:00
morlutoand2SinceJuly a3be3f429a fix(setup): honor Mastra Code's MCP disable flag (#15126)
* fix(setup): report Mastra Code's MASTRACODE_DISABLE_MCP switch

Mastra Code reads MASTRACODE_DISABLE_MCP at startup and stops loading every
MCP source. REA's client table has no such fact, so doctor kept reporting
~/.mastracode/mcp.json as aligned while Mastra started no server, and setup
rewrote a registration the running client ignores.

readClientPolicyBlock now answers for mastracode through a small module of
its own. The value is truthy only for 1/true/yes/on, case-insensitively
and after trimming, matching Mastra Code's isTruthyEnv. Doctor, setup's
inspect/configure and mcp add pass the launcher environment they already
resolve, so a supplied environment decides the outcome instead of the host
process.env.

The documented load order also lists the project .mcp.json, which this
change does not read yet; #15038 stays open for that half.

Tests: mastracodePolicySources (13, new) covers the value table;
mastracodeDisabledRegistration (2, new) covers status, setup refusal and
an unchanged file; geminiPolicySources (4) and setupPolicySnapshot (7)
still pass. check:fast is green across 3328 files. The CLI boundary suite
mcpAddClientPolicy needs a compiled dist/cli-runtime and was not run.

Refs #15038

(cherry picked from commit 4e5ea523f4a4c3040c7d172758558fb6a0241966)

* fix(setup): enforce the Mastra flag for project MCP registration

* style(test): format Mastra MCP regression

* test(doctor): prove the Mastra disable policy gates a valid launcher

---------

Co-authored-by: 2SinceJuly <202121119+2SinceJuly@users.noreply.github.com>
2026-11-29 20:17:58 +00:00
morluto 4170a4ce40 fix(setup): honor Claude Code local managed MCP policy (#15127)
* fix(setup): honor Claude Code local managed MCP policy

* test(setup): cover Claude project registration under managed MCP

* fix(doctor): report Claude name denies before missing config
2026-11-29 19:47:55 +00:00
morluto 6537e35fa7 fix(setup): honor Qwen Code MCP settings precedence (#15131)
* fix(setup): honor Qwen Code MCP settings precedence

* fix(setup): preserve Qwen settings identity and readiness
2026-11-29 19:19:32 +00:00
6f36de3012 feat(ghidra): admit raw 8051 images (#15057)
* feat(ghidra): admit raw 8051 images

Add 8051 as a raw-only architecture: byte-aligned entry, mapping within
0x0000..0xffff, analyzed by Ghidra with 8051:BE:16:default in the CODE
space. Hopper, IDA, Kuna and Windows Ghidra P0 keep refusing it.

Document the lane, including that bank-switch thunks and Keil ?C?CCASE
switch arms are not followed by auto-analysis and need
REA_GHIDRA_SEED_FILE entries.

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

* test(mcp): update the advertised open_binary schema summary for raw 8051

The architecture enum gained 8051, so the committed input schema digest
for open_binary changed. Regenerated with
`npm run verify:advertised-schemas -- --update-summary`.

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

* test(ghidra): pin the 8051 CODE binding and correct the 8051 docs

- Assert the 8051 language binding (8051:BE:16:default, CODE) and that
  load-image attestation requires the CODE default space; replacing CODE
  with ram now fails three tests.
- Assert that Windows Ghidra P0 refuses raw 8051.
- Derive the raw-binary architecture refusal from BINARY_ARCHITECTURES
  with Intl.ListFormat; the wording, and so the admission grid digest,
  is unchanged.
- Docs: list the memory blocks Ghidra really creates for 8051 (no
  external RAM block), explain bank addressing for paged banks and the
  entry-decode requirement, state when the seed file is read, and add
  8051 to the n64 guide's family list. Fix a duplicated "and" in the
  generic-language limitation.

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

---------

Co-authored-by: Alex Petrochenko <5717309+petrochen@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:20:10 +00:00
Srinivas Chippagiri 8582b69852 fix(tar): read non-UTF-8 pax names that GNU tar writes without hdrcharset (#14923) 2026-11-29 18:14:16 +00:00
morluto 3928b3981a fix(setup): preserve native Codex registration settings (#15119)
* fix(setup): preserve native Codex registration settings

* test(setup): verify nested Grok settings by their parsed values

* test(setup): preserve fractional Codex seconds alongside milliseconds
2026-11-29 18:11:19 +00:00
Adolanium 996ab6e2ae fix(zip): bound the member count of a ZIP inventory (#14997)
* fix(limits): admit a ZIP member count on reader limits

artifact.member_count now resolves artifact_limits.zip.member_count. Recorded Evidence from before this group may omit zip.

* fix(zip): refuse a central directory past the member count

Count every central-directory record before retaining it. The refusal omits required_value because later records stay unread.

* test(zip): cover a central directory past the member count

Three empty members at a count of two refuse through the reader and through the zip format reader.

* docs(limits): name zip.member_count on the member-count setting

The existing REA_ARTIFACT_MEMBER_COUNT seed already supplies that default.

* test(artifacts): select the ZIP member count with the explicit fields

The acceptance case ignores an invalid artifact.member_count seed only when every backed field is selected. zip.member_count is one of those fields.

* fix(schemas): record the ZIP member-count input summaries

extract_artifact and inspect_artifact changed their input compact schema when zip.member_count was advertised.

* fix(zip): keep member count on Flutter, Playwright, and SAZ

Those readers omitted the session count and described the refusal as a byte budget. They now admit artifact.member_count and report the count.

* test(zip): cover member-count refusals outside artifact inventory

A two-member archive at a session count of one stays a count for Flutter, Playwright traces, and SAZ. One member still passes that cap.

* docs(limits): name the ZIP consumers of artifact.member_count

Flutter APK inventory, Playwright trace import, and SAZ decoding use the session count and report it as a count.

* fix(capture): read the fixed-limit boundary from the ceiling

CaptureFormatError keeps that boundary on ceiling. The SAZ reply read cause.boundary, so a fixed-limit reply omitted the field the parent requires.

* fix(limits): recover ZIP member count through the session setting

Flutter, Playwright, and SAZ have no artifact_limits argument. The refusal names artifact.member_count, leaves parameter unset, and tells the caller to raise that setting. sessionSettingConstraint owns the error next to the other resource refusals.

* fix(android): keep a partial JNI report at the ZIP member count

readAndroidJniLibraries already returns a partial inventory when its entry allowance stops the scan. The session member count is that same stop. The reader takes artifact.member_count, and the report names the unexamined remainder instead of aborting the inspection.

* fix(zip): resolve the member count from the selected environment

ZIP admission and its refusal use the launch environment selected for the runtime. Only SAZ sends that count to the capture decoder.

* fix(zip): drop the unused ZipReaderLimits export

Knip reports the type because no caller imports it. ZIP limits stay on the schema.

* fix(playwright): return an invalid member-count seed as a result

The trace catch uses the count captured before the failure. A configuration error stays a Result and keeps the archive hash.

* fix(jni): name the member count on a partial library scan

The partial report keeps the count that stopped the scan and the recovery for artifact.member_count.

* fix(settings): register artifact.member_count for its ZIP consumers

Scoped inspection of the Flutter, Playwright, capture, and JNI operations includes the setting.

* test(artifacts): parse Evidence that omits the audit-log policy

The merged reader-limit schema still accepts a record that omits the Kubernetes audit-log policy.
2026-11-29 13:08:56 -05:00
Adolanium 06761f2993 fix(xml): bound element depth at the XML syntax boundary (#14998)
* fix(xml): refuse element depth at the syntax check

saxes keeps one handler per event and walks the open-element stack on
every start tag. checkXmlSyntax now owns opentagstart and closetag, runs
every caller handler after the depth check, and refuses depth above 1024
as xml-element-depth. 1024 stays above the desktop XML view cap and the
plist nesting cap. This release adds no runtime override.

* fix(xml): keep the depth limit when package parsers read XML

XAR TOC, installer XML, Maven POM, and VSIX manifest parsing wrapped
every syntax failure as malformed or a node budget. A depth limit is
returned as the limit failure those callers already accept.

* test(xml): cover element depth past the syntax ceiling

A document one element past 1024 fails the syntax check, including a
XAR TOC that used to parse because a later opentagstart handler replaced
the depth guard. A sibling range after a branch at the ceiling still
matches.

* test(plist): keep nesting refusals inside the XML depth ceiling

Plist fixtures deeper than 1024 now fail at syntax, so the nesting-limit
cases sit on the deepest document the syntax check admits. One plist and
one keyed archive assert the syntax limit past that ceiling.

* fix(xml): type the depth guard as a saxes start tag

opentagstart emits a start tag, not the finished SaxesTagNS. The handler call failed typecheck on that assignment.

* fix(xml): report element depth from the package providers

A VSIX manifest or Maven POM past the syntax ceiling is an XML limit. Those providers only translated their own format, so the refusal became an I/O error.

* fix(xml): report element depth as a fixed allowance

* fix(firmware): report SVD element depth as the XML ceiling

* fix(nuget): preserve XML element depth on package XML

* fix(capture): preserve XML element depth in SAZ metadata

* style(nuget): format the package fixture

* fix(plist): report XML element depth from native inspection

* fix(pkg): carry the XML depth allowance through a deep TOC

* test(plist): narrow the XML depth refusal before projection

The native depth failure is an analysis error. Project it after that check.
2026-11-29 13:08:39 -05:00
Akshat GuptaandAkshat 2a1a5e903f fix(macho): separate chained bind addends from import names (#14900)
* fix(macho): separate chained bind addends from import names

dyld_info prints a nonzero chained bind addend as a +0x suffix on the
import name, so rows such as __ZTVN10__cxxabiv117__class_type_infoE+0x10
were reported with name null and name_status "ambiguous". When the slice's
chained-fixup import table names the row's ordinal, a row that is that
name plus a hex suffix now reports the exact name and the suffix as
addend. A row equal to the table name keeps a literal suffix, and rows the
table does not settle stay ambiguous with the full expression in raw_name.

* fix(macho): take only dyld's 0x addend prefix and either ordinal spacing

An addend after the import-table name is accepted only with the lowercase
0x prefix dyld_info prints, so a +0X suffix stays ambiguous instead of
yielding an addend that fails the hex address schema. The arm64e CLI test
accepts one or two spaces after the ordinal, as the parser does.

---------

Co-authored-by: Akshat <akshatg9536@gmail.com>
2026-11-29 13:07:40 -05:00
Lewis WangandClaude Opus 5.5 86c27a9b55 fix(native): report ivar layouts that a Swift initializer assigns at load as unknown (#15095)
* fix(native): report ivar layouts that a Swift initializer assigns at load as unknown

A Swift class whose field layout is not fixed at compile time, for
example one holding an @Observable registrar or another resilient type,
sets RO_HAS_SWIFT_INITIALIZER in its class_ro_t. Swift stores 0 as the
placeholder offset of each field without a fixed offset, and size 0 and
alignment 1 for a field type without a fixed layout. The metadata
initializer writes the real values at load. inspect_native_dispatch_metadata
reported those placeholders as decoded offsets and sizes.

In such a class, a stored offset of 0 is now a null offset, and a
stored size of 0 nulls size, alignment and type encoding, which the
initializer replaces together. The row is partial with
ivar_layout_assigned_at_load. Classes without the flag keep their stored
values, including a genuine zero offset. The reader profile becomes
apple-metadata-reader-6 so earlier snapshots are not replayed.

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

* docs(native): state that a zero-size Swift field has placeholder bytes

In a class with RO_HAS_SWIFT_INITIALIZER, Swift stores a field of a
zero-size type such as Void with offset 0, size 0 and alignment 1, the
same bytes as a field whose layout the initializer assigns at load.
ivar_t does not record the field's type, so its size stays unknown.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:06:25 -05:00
morluto 8e18bdecef test(clients): check configured MCP catalogs in native harnesses (#15121)
* test(clients): check configured MCP catalogs in native harnesses

* test(opencode): resolve the native CLI in the isolated home

* ci(clients): identify native catalog discovery in the job log

* test(ci): isolate native clients and preserve registration failures
2026-11-29 18:03:55 +00:00
gensokyo-devandgensokyo-dev 88dfef4e33 docs(setup): describe refreshing another installation's registration
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-29 11:02:35 +08:00
ShuaixinHuangandShuaixinHuang 858a9cf51e fix(firmware): decode Intel HEX linear address crossings (#15074)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-28 20:37:34 -05:00
ShuaixinHuangandShuaixinHuang adf61c7aba fix(nro): report bytes beyond the ASET asset ranges (#15064)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-28 20:00:28 -05:00
2SinceJulyandCursor Agent 295bdfaf73 feat(artifacts): inventory Kubernetes audit logs offline (#14952)
* feat(artifacts): inventory Kubernetes audit logs offline

A Kubernetes audit log exported from kube-apiserver is JSON-lines that the
inventory treated as an unknown file: no format claim, no reader, and no way
to see what an acquired log declares without a live cluster. Recognize the
format from its first event and report, offline, the line, stage and verb
totals and a bounded window of the events joined on their auditID.

Each line stays an event in its own right, so a request whose stages were
written out of order, repeated at one stage, or missing a stage is reported
rather than reordered into a tidy request. Unknown API versions keep their
auditID and stage but are not interpreted under field names the version may
not use. Malformed lines are counted and bounded, never dropped silently.

Refs #11352 (first slice: request, user, object reference and response code;
request/response bodies, annotations and impersonation metadata are not read).

* fix(artifacts): bound Kubernetes audit inventory and preserve stage evidence

* fix(artifacts): preserve audit fields and extend first-record recognition

* fix(artifacts): stream audit identity without decoding skipped bodies

* fix(artifacts): handle every audit probe tokenizer event

* fix(artifacts): read padded Kubernetes audit logs and modelled stages

Recognition stopped at the first newline and rejected a leading UTF-8 BOM, while the reader skipped blank lines and trimmed that BOM away. Both now treat empty lines, JSON whitespace, and one leading U+FEFF as padding.

Request fields come from the first stage whose API version is modelled, so an earlier unmodelled stage no longer hides a later v1 record.

* fix(artifacts): skip unowned Kubernetes audit JSON bodies

JSON.parse built a value tree for ignored request and response objects, so a deeply nested body could abort the process. Each line is tokenized and only the summary fields are kept. The tokenizer stops at 64 containers; identity already read is kept, and a deeper body before that identity is one line diagnostic.

* fix(artifacts): report audit depth limits and wrong field shapes

A container where a scalar or string list was required now leaves that field null, and a source address or group list past the retained text budget is not stored. Lines that exceed the tokenizer depth are counted separately from malformed JSON, and a sampled request says when the scan stopped early. Recognition uses the same depth cap and does not flush a tokenizer that already stopped.

* fix(artifacts): keep audit field omission and last-key facts

A source address or group list past the retained text budget sets request_fields_omitted instead of looking absent. Owned strings stop growing once they pass that budget. A later scalar that replaces user, objectRef, or responseStatus clears the earlier object.

* fix(artifacts): chunk audit tokenization and depth-cutoff versions

Ordinary lines are tokenized in 4 KiB slices. A depth overflow rereads that line one code unit at a time. When the cutoff hides apiVersion, request fields stay uninterpreted. A later array that replaces user, objectRef, or responseStatus clears the earlier object.

* fix(artifacts): reread overflowed audit records from the start

A depth overflow discarded every token in that slice, so identity later in the same record could be missed. Recognition keeps the first record's decoded slices and rereads them after an overflow. A scalar that replaces user.groups clears the earlier list.

* fix(artifacts): stop replaying audit records once identity is known

A depth overflow after auditID and stage no longer rereads the first record, and decoded slices are dropped once that identity is known. A replacement sourceIPs or groups list clears the previous list when it starts, including when the depth cap ends the replacement.

* fix(artifacts): replay only the overflowed audit slice

A depth overflow now rereads the failed slice one code unit at a time and the earlier slices in chunks, so a later stage key in that slice still wins. A cutoff before apiVersion suppresses request fields without labeling the version unsupported.

* fix(artifacts): let a readable stage fill fields cut by depth

A first stage whose request body hits the JSON depth cap observes no
apiVersion, so its request fields are withheld. The sample still marked
fieldsRecorded true because only a declared unsupported version counted,
so a later readable stage for the same auditID never supplied the URI,
verb, user, or object details. Gate both the flag and the later fill on
suppressFields so depth-suppressed stages stay fillable.

* fix(artifacts): clear audit budget omission when the final value fits

A later duplicate that supplies a small user agent, URI, or list no longer leaves request_fields_omitted set for the value that was replaced.

* fix(artifacts): drop audit budget omission when null replaces the value

A later null or container for an owned field clears the budget-omission mark left by the value it replaces.

* fix(artifacts): keep audit omission keys distinct and release replay slices

Nested field omission no longer shares a key with a top-level property of the same spelling. Replacing a list with an object clears that list's budget mark. Recognition drops the first-record replay buffer when the line ends and when the probe finishes.

* fix(artifacts): clear list budget marks and keep replay text until the line is read

A later null for sourceIPs or groups clears that list's budget mark. Recognition keeps the first record's slices until that line has been tokenized, then drops them.

* fix(artifacts): clear nested audit omissions and release failed replay text

A later null or object for user.groups clears that list's budget mark, and a new user or objectRef object clears its child marks. Syntax failures drop the recognition replay buffer before the probe returns.

* fix(artifacts): limit audit budget omission to request fields

An over-budget apiVersion no longer sets request_fields_omitted. Replacing an objectRef field, or starting a new sourceIPs or groups list, clears that field's budget mark.

* fix(artifacts): accept long zero-fraction audit response codes

A status lexeme such as 200.00000000000000000 is still the safe integer 200. The number text bound is 64 characters, which covers that form and still rejects an unbounded digit string.

* test(artifacts): cover audit response code number bounds

The response code is now admitted by its numeric value instead of a 20-character text bound. Pin the two edges that keep the wider bound honest: the widest safe integer on both sides, an exponent form that evaluates to a safe integer, and a value past the safe range that is still dropped.

* fix(artifacts): keep padded audit status codes and pending recognition

Trailing zeros after a decimal do not drop an integral status code. A verb dropped by the text budget counts as unlisted. A recognition finish before the first line ends stays pending and keeps its replay text.

* fix(artifacts): keep integral audit status exponents and probe padding

A status code is the safe integer its lexeme evaluates to, including a fraction that an exponent cancels. Leading padding has its own recognition allowance, and a verb dropped before an unread API version stays out of the histogram.

* fix(artifacts): keep audit status codes with a cancelling exponent

A large exponent is rejected only when it cannot cancel to a safe integer inside the maximum line. The final shift still decides the code.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-28 16:14:52 -05:00
RRFZ 2c07552b64 fix(limits): report details.limit for KernelModuleProvider refusals (#14306)
* fix(limits): report details.limit for ELF dependency, unwind, and kernel reader refusals

Attach structured `details.limit` metadata to per-call budget refusals across
the remaining `src/native/elf/` providers (`ElfDependenciesProvider`,
`KernelModuleProvider`, `KernelBuildConfigProvider`, and
`ElfUnwindRangesProvider`), following the `#14243` shared-budget pattern:

- Generalize `elfReadBudgetLimit` in `src/domain/native/elfReadBudgets.ts` so
  ELF and kernel readers share one parameter-limit builder.
- Export `ELF_DEPENDENCIES_READ_BUDGETS`, `KERNEL_MODULE_READ_BUDGETS`,
  `KERNEL_BUILD_CONFIG_READ_BUDGETS`, and `ELF_UNWIND_RANGES_READ_BUDGETS` from
  their domain schemas so Zod input bounds and projected `details.limit`
  metadata have a single owner.
- Report `details.limit` for caller-selected file, entry, inflation, and record
  budgets, including `compressed_candidate_bytes` (`max_config_bytes`), while
  moving `KernelBuildConfigProvider` file-size handling onto
  `offlineArtifactFailureDialect.fileSize` and removing its unreachable
  `capacity` branch.
- Report `ElfUnwindRangesProvider`'s fixed 16 MiB `symbol_name_text_bytes`
  allowance through `fixedAllowanceOptions` with narrowing guidance and
  `related: { parameters: ["limit", "offset"] }`, registered in
  `scripts/verify/fixed-ceiling-registry.json` under `#14235`, rather than
  reporting an inverted `details.limit`.
- Remove `ElfDependenciesProvider.ts`, `ElfUnwindRangesProvider.ts`, and
  `KernelBuildConfigProvider.ts` from
  `scripts/verify/untyped-budget-refusal-baseline.json`, clearing all
  `src/native/elf/` entries from the baseline, and update
  `docs/reference/rea-limit-inventory.md` and
  `docs/reference/limits-and-recovery.md`.

Part of #14234

* test(elf): assert CLI details.limit and flags for kernel module budgets

* fix(elf): report required_value for KernelModuleProvider max_file_bytes and add MCP recovery test
2026-11-28 22:58:31 +08:00