* 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>
The decode-budget preflight from #14999 refuses any non-empty DOCTYPE
internal subset before decoding, and its unit tests pin that refusal for an
unused entity. This older CLI case declared two unused entities, so it now
fails on main with "XML plist internal entity expansion exceeds the keyed
archive decode budget".
Keep the case's intent, which is that markup inside the DOCTYPE is opaque
and counts toward neither plist nesting nor XML element depth, by placing
the nested markup in the quoted system identifier instead.
* 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>
* 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.
* 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.
* 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>
A registration that starts this installation's own script under another
still-installed runtime, such as a source checkout after a Node switch,
was foreign because the runtime mismatch was decided first. Runtime and
script identity are now evaluated separately: when both Node's lexical
and native traversal select the current script, the registration is owned
but selects another installation, and setup refreshes it. A spelling only
one traversal maps to the current script is unknown. Aube launchers of
another runtime use the same rule.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A different runtime no longer proves a registration foreign, so a saved
launcher under another runtime whose REA script was removed, such as a
pruned npx cache entry, is now unknown rather than foreign. Doctor then
asks the user to restore or verify the installation instead of renaming
or removing the registration.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A launcher in REA's package layout whose manifest cannot be read or
parsed, or whose spelling Node and native traversal resolve to different
files with either one in an REA package, no longer reads as foreign.
Package evidence is now verified, absent or unknown, and unknown evidence
leaves ownership unknown. A missing manifest still means no installed
package claims the script.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Shim inspection discarded the parsed target when the shim's runtime was
not this process's, so a saved Aube wrapper stayed unknown after a Node
change even when its target was an installed REA package. Inspection now
reports which runtime the shim uses, and ownership claims another
installation only for a verified REA package target; other targets keep
their earlier classification.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Node removes `..` before following links, while native traversal follows
links first. A spelling such as `<dir>/link/../scripts/rea.mjs` could
realpath into an installed REA package while another runtime runs an
unrelated script, so it no longer proves another REA installation.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A registration saved by an earlier npx run, a different global prefix or
another runtime points at REA's own CLI script under a different path.
Exact path comparison classified it as foreign, so setup refused to
refresh it and asked for manual edits in every client.
An absolute launcher whose script resolves to the CLI script named by an
installed node_modules/rea-agents/package.json is now owned but selects
another installation. Doctor reports it stale with a refresh remediation,
and setup replaces it with the current launcher after backing it up.
Source checkouts, other package names, other bin scripts and removed
installations stay foreign or unknown.
Fixes#15022
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* 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>
The malformed-POM cases kept their own lazy MCP session beside the file's
shared one, so the file still started two servers. They now use the
shared session, and the superseded owner and its import are gone.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Seven tests opened their own MCP server; one lazy file session now serves them. Each test opens its own image before implicit-target calls.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each test opened its own default MCP server; they now use the file's shared session. Each test opens its own target before implicit-target calls.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each test opened its own default MCP server; they now use the file's shared session. Retained bundles are matched by Evidence ID, so records from earlier tests do not affect them.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
The default-catalog test now uses the file's shared session. Tests that select a schema profile or heap limit keep their own server.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each test ran the CLI as a fresh process and opened its own MCP server. They now use the file's shared CLI worker with complete Evidence, which the inherited test budget used to select, and one lazy MCP session that keeps the ping.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Six tests opened an MCP server each with three slightly different catalogs. One file session with the application and session families serves all of them; no browser is installed or launched.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each test ran the CLI as a fresh process and opened its own MCP server. They now use the file's shared CLI worker and MCP session, with the complete Evidence the inherited test budget used to select.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
With HOME and USERPROFILE empty, the child reads the account's real home,
whose saved configuration the test does not control. The case now checks
only that the file's home was not used.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A shared and a fresh CLI process read saved settings from the file's home.
A caller's USERPROFILE-only or empty HOME selection is kept instead. The
selection rule is checked for each home variable.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
The tests set a per-test HOME only for isolation and opened an MCP server per
test. They now use the file's home and shared MCP session. Each test still
opens its own archive before the implicit-target call.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Each test set its own HOME only to avoid the account's home, which restarted
the shared CLI worker and opened a new MCP server per test. They now use the
file's home and shared MCP session; the per-family fresh process check stays.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
A test child given no home resolved the account's real home and read its
saved REA configuration. cliTest's shared worker, its fresh processes, its
file MCP session and direct connectLocalToolsMcp() connections all did so.
cliTest now owns one home per file, and a direct MCP connection owns one per
connection, removed only after its server closes. A caller that selects
HOME, USERPROFILE, HOMEDRIVE or HOMEPATH, even as an empty value, keeps its
whole selection.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
test(ci): keep the separator regression in the Windows-only lane guard
Fold windowsTargetSeparators.test.ts into the existing guard for
Windows-only cases instead of a separate test with the same reason.
Co-authored-by: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com>
Ghidra selector misses, type-edit refusals and the Mach-O LC_MAIN entry
hint wrote CLI and MCP spellings into one remediation, such as 'CLI: rea
search <path> . --kind procedures ...' or 'For CLI decompile, use
--procedure ...', so each adapter showed the other's commands. The
errors already carried their related operations.
The recovery now names only contract operations and the procedure field.
The entry hint also reports procedure as a related parameter, so the CLI
renders it as --procedure through related_cli_flags, as it does for the
related operations.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>