* fix(process): quote Windows batch operators cmd.exe keeps literal
cmd.exe with delayed expansion off keeps & | < > ( ) ^ ! literal inside quotes. Empty tokens and %name% spans are still refused, including when that name is unset, because the child environment can define it.
* fix(process): report a refused batch path as invalid configuration
A percent expansion or an unusable COMSPEC is configuration_invalid. Packet capture does not append the Wireshark install remediation, and an apktool decode does not report a capability gap.
* fix(process): refuse percent spans joined across batch tokens
cmd.exe expands a percent span on the joined command line. Tokens that
are legal alone are refused when joining them forms a span. The spawn
regression kills its child if that child is still running after 10 seconds.
* test(process): include the Windows batch regression in CI
The curated Windows lane now runs WindowsBatchCommand.test.ts.
* fix(domain): preserve a configuration error's caller message
ConfigurationError accepted userMessage and dropped it, so the public
projection replaced the caller text with the generic doctor sentence.
The constructor now stores that message.
* fix(pcap): keep a batch refusal in the public configuration message
A Windows batch refusal stays in the configuration error the caller
sees, including the refused path and the percent-expansion reason.
* fix(apktool): report a decode batch refusal as invalid configuration
Inspection still reports not_configured. Decoding reports
configuration_invalid and names the launcher that cmd.exe cannot receive.
A percent span that appears only after the quoted tokens are joined is
refused the same way.
* test(process): own the Windows batch regression in the package lane
The curated Windows job already runs WindowsBatchCommand.test.ts. The package scope did not name that file, so the lane ownership check reported it as unowned.
* fix(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>
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.
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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
* 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
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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
* 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>