Commit Graph
2670 Commits
Author SHA1 Message Date
morluto c082574efc fix(desktop): refuse an invalid withheld-file handle as invalid, not as no free handle (#15571)
DesktopBuildSecrets.keep stops at the first candidate handle that is not a
secret's handle. When that was the computer's own handle, such as
../escaped, the refusal said REA had no handle free and told the person to
delete old secret files. Refuse the invalid handle up front and say so.
2026-12-01 18:04:48 +00:00
Vincent Koc 3b73422004 refactor(json): centralize input read failure handling (#15567) 2026-12-01 17:59:51 +00:00
Vincent Koc 11cbd62d11 refactor(capabilities): share configured provider availability (#15555) 2026-12-01 17:44:11 +00:00
morluto 08db65115f test(application/desktop/browser/process): assert the specific refusal behind each bare toThrow (#15524)
* test(application,desktop,browser,process): assert the specific refusal behind each bare toThrow

Replace bare toThrow() with the errno code of a removed or occupied path, the Zod issue path and code, the YAML parser error code, the cleanup retry failure and the resources it still holds, the analysis error tag and reason, or the contract message each refusal reports.

* test(desktop,process): assert retained cleanup resources and the nested metadata issue
2026-12-01 12:19:11 -05:00
2f92d2699b fix(views)!: refuse an unsupported parent's view kind and name evidence-json (#15535)
inspect_analysis_view refused a view that no projector of the parent
operation serves as an unsupported target: "the selected target's
evidence form is outside what inspect_analysis_view reads",
retry_class never, pointing to get_evidence_bundle. The evidence-json
view reads every parent, so the same call with view
{"kind": "evidence-json"} succeeds on that record within the response
budget; the refusal contradicted it.

The refusal is now a schema-conforming input error at view.kind that
names the requested view kind, with retry_class change_first and a
recovery naming the evidence-json view and the summary receipt's
parent_evidence_id. It does not claim evidence-json is the only view,
because parent-independent views such as recorded-array may apply. The
recovery names no adapter-specific tool, because the CLI shows it too.

Refs #15319

BREAKING CHANGE: inspect_analysis_view on a parent Evidence operation
without a projector for the requested view now fails with code
invalid_request (category invalid_input, retry_class change_first) and a
view.kind issue, instead of unsupported_target with
details.failure_kind "unsupported", format "evidence" and
related_operations.

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:16:03 +08:00
gensokyo-devandgensokyo-dev 630ce39c22 fix(target): name the raw-binary load when no route recognizes a header
When header detection admitted no route for a file, open_binary and
inspect_artifact refused it with the generic "select a supported,
well-formed target", leaving no next step for a headerless firmware or
memory image. The explicit raw-binary load is the only route that admits
such a file, so the producer now names it with its required architecture
and entry_point. inspect_artifact shares the same detection, so it is
not offered as a way to identify the file.

Refs #15319

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 00:52:36 +08:00
morluto 6549264a54 fix(errors): name the next step for schema-valid refusals, including missing files (#15435)
* fix(errors): report a missing selected file with its next step, not the schema

Nine readers hand-built their own copy of the selected-file refusal
(access denied, or an input issue for ENOENT, ENOTDIR, ELOOP and the
other path errnos) instead of using the shared
projectSelectedArtifactFileFailure. The copies left out the conforming
outcome and next step, so a well-formed path to a missing file was
presented as a schema mismatch with inspect_input_contract.

API contract, APK signature, byte entropy, Electron fuse, Playwright
trace, NTFS journal, release exposure, Android mapping and web capture
reads now use the shared owner. A missing OCI image-layout directory
names a directory as its next step.

The first-contact sweep lists none of these as known failures any more;
#15372 already fixed the other 35 entries and the stale-revision replay.

Refs #15312

* fix(errors): give the remaining schema-valid refusals their next step

These refusals accepted a well-formed request and still sent the caller
back to the input schema:

- update_analysis_settings with a stale expected_revision now names
  inspect_analysis_settings and the current revision.
- inspect_electron_fuses on an app or file that is not Electron names
  what to select; capture_electron_scenario reports the same refusal
  on executable_path instead of path.
- inspect_analysis_view on a multi-record Evidence bundle without
  source.evidence_id, or with an absent one, says to pick a listed id.
- extract_uefi_firmware with an unmapped or ambiguous target names
  inspect_uefi_firmware or target.source_stream.
- inspect_labview_artifact on a file without LabVIEW RSRC data names
  what to select.

Refs #15312
2026-12-01 10:36:08 -05:00
morluto 82613c0ace fix(session): never overwrite the open target with a snapshot or bundle (#15449)
* fix(session): never overwrite the open target with a snapshot or bundle

* test(session): cover a hard-linked target and own the test directory cleanup
2026-12-01 15:29:12 +00:00
Vincent Koc 3e565f4bf6 refactor(javascript): share Electron graph edge projection (#15479) 2026-12-01 14:17:07 +00:00
Vincent Koc 0f372680a3 refactor(setup): share registration inspection preflight (#15477) 2026-12-01 13:39:55 +00:00
Vincent Koc 963024935e refactor(dates): share Gregorian calendar day validation (#15463) 2026-12-01 11:50:28 +00:00
Vincent Koc 4766b20a1e test(providers): share effect declarations for inert fixtures (#15204) 2026-12-01 19:31:17 +08:00
morluto 3070116222 fix(errors): let typed limit refusals state recovery from the measured requirement (#15447)
Several limit refusals wrote their own "raise X up to MAX" text, which
replaced the shared adjustable-budget recovery and advised a value that
cannot admit the input when the measured requirement is above the
control's maximum. Following #15407 (VSIX and pyc), these producers now
report a typed limit with the measured requirement and no prose:

- NuGet parse budgets, as VSIX already does.
- The selected-file size budget of NuGet, VSIX, Maven/Gradle metadata,
  ESP NVS, release exposure and NTFS journal reads. The reader's
  observed file size becomes required_value through the new
  selectedFileRequirement helper.
- IL2CPP's native pointer index budget.

inspect_packet_capture's DNS limitation no longer says to raise
dns_identity_limit's control when it is already at its maximum or the
requirement is above it. The unused imageFileSizeRemediation is removed.

Refs #15325
2026-12-01 01:40:19 -05:00
morluto 5a0ab31812 fix(managed): refuse contradictory reconstruction imports at admission (#15438)
* fix(managed): refuse contradictory reconstruction imports at admission

* test(managed): import C# and IL reconstructions of one method together
2026-12-01 06:39:58 +00:00
morluto bd353e7e5c fix(errors)!: producers declare retry class, refusal recovery and real error codes (#15372)
* fix(errors)!: derive retryable from the producer's declared retry class

`retryable` means the unchanged request may succeed, but it was computed
downstream as an OR of a code table and five class rules. Every error
classification now declares a retry class (same_call, change_first, never,
unknown_outcome); `retryable` is `same_call` after one incomplete-cleanup
check, and the RETRYABLE_CODES table is deleted.

Producer corrections:
- update_unknown revision conflicts are change_first and report
  details.current_revision; duplicate record_unknown reports
  details.existing_unknown_id.
- close_gdb_session's explicit-disposition refusal is change_first.
- Per-call artifact reader limits are change_first (never when the limit
  cannot rise).
- An exited or unreachable Hopper bridge, and a Hopper start that another
  REA session owns, are change_first.
- File-descriptor exhaustion (EMFILE/ENFILE) outside process launch is
  occupied host capacity (same_call) for private workspaces, model and GPU
  readers and JavaScript application reads.
- apktool JVM native-thread exhaustion follows the shared capacity default.

BREAKING CHANGE: these refusals now report `retryable: false` (descriptor
pressure now reports `retryable: true` as `resource_constraint`). Callers
that repeated them unchanged should follow the remediation first: re-read
the unknown and retry with details.current_revision, dispose GDB inferiors,
raise the reported reader limit, or restart the Hopper provider.

* fix(errors): require producers to name recovery for conforming refusals

A refusal whose arguments match the input schema was presented as a schema
error whenever its producer left out remediation, and many producers did.
AnalysisInputError's options are now a union: a conforming refusal must
supply both its outcome (userMessage) and next step (remediationAction),
so the compiler lists every producer; only contract violations may fall
back to the schema guidance.

Producers fixed: unknown Frida session and script, decompile_all
output-directory state, the duplicate unknown build computer factory
(collapsed), stale Cutter sessions, Mach-O architecture selection, output
roots that already exist, selected files the host refuses, Ghidra lookups
the bridge could not resolve, YARA path refusals, unresolved native symbol
names, apt key files and withheld sign-in state. A missing selected APK is
now target_unavailable like every other selected-file reader.

The capability fallback "Choose another analysis or target" is deleted; a
capability refusal without its own recovery names details.reason and
binary_session.

Refs #15312

* fix(errors): classify caller selections and target bytes by their real failure

Several refusals reported a code that reads as corruption or a crash:
- a missing unknown_id and a missing Evidence reference now report
  invalid_request instead of execution_failure and
  evidence_integrity_mismatch;
- close_binary with snapshot_path in a resource-only session reports
  invalid_request instead of evidence_integrity_mismatch;
- ADB push onto an existing device path and pulls into an occupied output
  directory are conforming invalid_request refusals naming overwrite or
  output_directory, not unreadable_output;
- damaged APK ZIP, signing-block, signer and central-directory structures
  are malformed targets, not invalid input;
- NuGet and VSIX bytes without a ZIP signature are unrecognized, not
  malformed;
- a historical source graph file whose entries contradict its root
  commitment is an integrity failure, not invalid input;
- a CDP protocol failure states what happened instead of the unclassified
  fallback message.

Refs #15319

* feat(errors): expose the producer's retry class as retry_class

Every error projection now carries retry_class (same_call, change_first, never or unknown_outcome) beside retryable, which stays true exactly for same_call. The field is additive: the error schema accepts errors retained by earlier releases without it.

Refs #15323

* fix(errors): address review of the folded error-contract PRs

Keep a provider's own capability message as its remediation; the binary_session fallback applies only to a bare declared reason. Delete the unused conformingInputRefusal helper. Compose both retry fields for a refused publication whose cleanup is incomplete. Report descriptor exhaustion from a JavaScript directory opendir as occupied capacity. Let an exited Hopper startup attempt without a setup failure code retry unchanged. Declare retry for the Ghidra superseded checkpoint and unknown IDA readiness. Redact ambiguous selector candidates. Give a Ghidra document miss its own recovery. Drop an unchanged-files claim the journal repair cannot make. Name each withheld sign-in refusal's step. Hash the source graph commitment before the cancellation yield. Keep the browser protocol_error message neutral. Add tests for mutation-audit survivors C3, C5, P2, P4, P8, H1, H4 and H5.

* fix(errors): keep a missing Evidence reference an integrity failure and state only the observed commitment mismatch

* test(desktop): assert the unknown build computer refusal's remediation, not its message

The refusal now carries its next step in remediation.action instead of the message, so the closed-computer checks assert the exact code, message and remediation facts.

* fix(errors): keep producer retry choices apart from cleanup and fixed ceilings

A capture's retryable flag no longer folds in pending cleanup, so the projection applies the cleanup rule once and a transient capture with pending cleanup reports change_first instead of never. A release-fixed artifact allowance reports never, and a stale admitted session identity reports change_first (reopen, then retry); both have catalogue rows. The bare capability-unavailable remediation names binary_session only for a binary-analysis session, so standalone bridges such as Cutter are pointed at their own reason.

* test(vsix): expect a non-ZIP selection to be refused as unrecognized

This PR reports bytes without a ZIP signature as another format (unrecognized), not a damaged package; the exact-reason assertion added on main still expected malformed.

* test(delivery): expect the capacity refusal's retry class in delivered failure facts

The exact failure facts asserted on main predate the projection's retry_class; occupied capacity reports same_call.

* fix(errors): mark a sent Hopper cancellation unknown and missing Evidence recoverable

A cancellation Hopper already received may still apply, so its retry class is unknown_outcome instead of same_call; an unsent cancellation keeps same_call. A missing EvidenceReferenceError is change_first, since importing the referenced records lets the same request succeed; other reference failures stay never. Both have catalogue rows.

* fix(hopper): ask for changed launch arguments before retrying an unencodable launch

A launcher path or argument that cannot be encoded as an AppleScript literal meets the same pre-launch guard on every attempt, so the start refusal is change_first and its retry_action is unknown; a start failure without a declared reason stays same_call.

* fix(errors): keep a one-shot cleanup failure's retry class with its cleanup state

A one-shot reply that reports cleanup_incomplete spread the primary or cleanup projection and overrode only retryable, so a timed-out read whose close also failed carried retry_class same_call. The reply now reads its retry class from the typed composed failure, and never offers the same call before cleanup settles.

* test(evtx): expect an unreadable selected log to be refused with its own recovery

This PR treats a well-formed path the host refused as a regular file as conforming input with its own remediation; the evtx boundary test still expected a schema-recovery refusal.

* test(javascript): expect a broken source-graph commitment as an integrity failure

This PR reports a well-formed historical source graph whose entries disagree with its root_sha256 as evidence_integrity_mismatch, not an input issue; the exact refusal assertion added on main still expected invalid_request.
2026-12-01 05:32:33 +00:00
morluto 402ce20b80 fix(session): declare, admit and advertise the open-target prerequisite through one owner (#15356)
* fix(contracts): declare the open-target prerequisite once in availability

Replace the requiresActiveTarget boolean with an "active-target" value of the
availability declaration. 18 contracts that read a required caller path, all
declared standalone or host-restricted or named inventory rules, no longer
claim to need an open target.

* fix(session): admit tools through one session evaluator shared with binary_session

binary_session availability and call-time dispatch now read one admission
evaluator for active-target tools and external mutations. Resource-only
lane refusals and Ghidra or resource-only external-mutation refusals carry
the open_binary or close_binary recovery that binary_session reports,
instead of a generic capability or unreadable-output error. Packet
capture, Wakaru, firmware and mitmproxy refuse an unsupported host before
reading tool configuration.

* fix(mcp): advertise the open-target prerequisite and name open_binary on first contact

Each active-target tool's advertised description ends with one sentence
derived from its availability declaration. When the SDK refuses such a
tool's arguments while the session would also refuse it, the
invalid_request remediation names the session recovery first, read from
the same admission evaluator as binary_session and dispatch.

* fix(mcp): refuse composed workflows as a whole and keep scoped recovery and catalog identity in step

A composed workflow such as batch_decompile now refuses with the
advertised open_binary or close_binary recovery before it runs, instead of
reporting a batch of failed children. Malformed arguments on a connection
that does not advertise session tools lead with the scoped restart
recovery, and catalog digests cover the advertised prerequisite sentence.
The prerequisite test reads union alternatives.
2026-12-01 03:55:48 +00:00
morluto 4d84c6919f fix(frida): recover detached sessions and report why Frida detached them (#15357)
* fix(frida): give detached and unknown sessions lifecycle recovery

A session whose target detached was refused with the unknown-session error,
"No open Frida session; start one with start_frida_session", although the
session is still held, frida_session_status still returns its remaining
messages and close_frida_session must still release it. Following the advice
abandoned the session and its messages.

load_frida_script and resume_frida_session now refuse a detached session with
a capability refusal naming frida_session_status, then close_frida_session.
Unknown session and script IDs conform to the input contract, so their
recovery names the lifecycle tools instead of schema guidance, matching the
gdb and rizin session errors.

Refs #15329

* fix(frida): track session phase and report why a session detached

ManagedSession kept attachment as a `detached` boolean beside
`cleanupStarted` and `resumeAfterDetachPending`, and the `detached`
signal handler ignored Frida's (reason, crash) arguments, so an agent
could see that a session detached but not whether the target exited,
crashed, or the connection dropped.

The session now has one phase: attached, detached with its detachment,
or closing with the detachment seen so far and whether a paused spawn
still owes a resume. The signal arguments are parsed at the native
boundary; a detach seen only through isDetached() is recorded as
`unobserved`. frida_session_status, start_frida_session and
instrument_with_frida report an optional `detachment` with Frida's
reason and crash summary, and the detached-session refusal names the
reason. close_frida_session cleanup is unchanged.

Refs #15329

* fix(frida): report whether a retained crash summary was truncated

A crash summary is bounded to 4096 bytes; detachment output now carries
crash_summary_truncated so a clipped summary is not presented as
complete. The detached-session test also proves messages captured before
the detach stay readable. Commits the advertised schema summary for
start_frida_session.

* docs(frida): state why the crash summary bound is fixed

* fix(frida): keep Frida's one-line crash summary complete instead of capping it

The 4096-byte cap had no format, protocol or resource reason, and cutting
the summary left no way to read the rest. The summary is now kept whole
apart from credential redaction, so the truncation flag and constant are
removed.
2026-12-01 02:36:09 +00:00
morluto 2d1748117e fix(browser): redact literal credentials in browser scenarios unless retained (#15347)
* fix(browser): redact literal credentials in browser scenarios unless retained

capture_browser_scenario records the scenario in Evidence parameters as
written. A literal Authorization header value or cookie seed therefore stayed
verbatim in Evidence, while the same record's network events redacted it.

Literal values of transport-credential headers (isTransportCredentialHeader)
and cookie seeds are now redacted like declared secrets. One domain owner,
scenarioLiteralCredentials, lists them with their redaction identities; the
capture session adds them to its redaction set, and Evidence parameters and
scenario_sha256 record the redacted scenario. A caller that wants the literal
kept sets retain_literal_credentials: true. Other literals stay ordinary
evidence; secrecy is not inferred from names.

Refs #15340

* test(browser): assert whole-value redaction instead of any change

not.toBe(value) also passed for partial redaction, such as a marker appended
with the secret left in place. Assert that each redacted value is exactly one
marker and that no fragment of the secret or its JSON-escaped form remains in
text, bytes, URLs or protected response bodies.

Refs #15340

* fix(browser): redact the trimmed spelling of padded literal credentials and commit the schema summary

* fix(browser): treat a credential header's prefix as part of its literal credential and retain fingerprint fixtures

* fix(browser): keep the bare literal token redacted beside the prefixed header
2026-12-01 02:27:15 +00:00
morluto 44d3658e4a test(runtime): assert exact device effects, limitations and cleanup resources (#15380)
* test(runtime): assert exact device effects, limitations and cleanup resources

Replace length-only, ok:false-only, prose-only and format-only checks in adb, browser and build-computer tests with the exact device argv, limitations, retained resources, refusal field and timeout limit facts the producers report.

* test(runtime): assert measured paging and resource facts instead of guidance sentences

* test(artifacts): attribute comparison limitations by side instead of matching sentences

* test(artifacts): check each side's coverage fact and its carried source limitations
2026-12-01 02:27:07 +00:00
morluto 87fca13536 test(providers): assert exact cancellation, cleanup and identity facts (#15378)
* test(providers): assert exact cancellation, cleanup and identity facts

Replace ok:false-only, toBeDefined, length-only and expect.any checks in provider lifecycle tests with the exact cancellation cause, cleanup resources, partial observations, identity-check facts and process identity the producers report.

* test(ghidra): accept either close cause when the stop races the export reply
2026-12-01 02:07:15 +00:00
morluto 089dfa3a8b fix(setup): derive client deadlines from one record per client (#15371)
* fix(setup): derive client deadlines from one record per client

Each supported client definition now declares the MCP deadlines it applies
to REA's server: key, unit, built-in default, maximum, coverage and whether
progress resets it. Setup raises a shorter or missing deadline to REA's
recommendation within the client's maximum and keeps a longer one; doctor
reports the same shortfall from the same record. Cline, Zed, Antigravity,
Hermes, Goose and Gemini CLI gain deadlines; the codex/kimi/grok/dsh name
branches, the Goose timeout literal and the per-client startup constants
are removed.

Refs #15337

* fix(setup): keep a raised Goose timeout over a short inherited one and expect Antigravity's deadline
2026-12-01 01:48:59 +00:00
morluto fbfcad3152 fix(evidence): route web script export and WASM comparison through shared Evidence inputs (#15385)
* fix(evidence): resolve web script and WASM comparison sources through the shared Evidence input owner

export_web_scripts accepts its capture as declared Evidence input: a
complete record, a retained reference, or a retained inspect_analysis_view
summary, which reads its retained parent. compare_wasm_interfaces admits
both sides through resolveEvidenceRequest, so a malformed side is a
bounded evidence_integrity_mismatch and a summary reads its parent. The
summary-to-parent rule lives in the shared resolver as completeProducers.
A catalog test checks that every declared Evidence input resolves a
retained reference through the shared resolver.

Refs #15341

* fix(evidence): retain an inline web script capture before publishing and commit the schema summary
2026-11-30 20:42:45 -05:00
morluto 3df3253428 test(admission): pin process-capture host, Mach-O target and timer-ceiling admission (#15397)
Add tests for admission rules a mutation audit showed unguarded: capture_process_scenario reports unsupported_host when process capture is disabled, Mach-O-only operations stay target_unsupported on an open ELF or PE executable, and the Hopper request queue admits a deadline equal to the largest Node timer delay.
2026-11-30 20:27:29 -05:00
Beqa 4b19f283d3 fix(setup): own REA scripts when the registered Node path is gone (#15281)
* fix(setup): own REA scripts when the registered Node path is gone

When a saved node/script/mcp launcher pointed at a missing interpreter,
ownership stayed unknown and setup refused to refresh after nvm/fnm moved
Node. Check the script whenever a current entrypoint is available, not only
when the interpreter path still resolves as a foreign binary.

Fixes #15024

* fix(setup): own vanished Node only for verified rea-agents scripts

Narrow the missing-interpreter path: keep a disappeared runtime unknown
unless its basename is node/bun and the script verifies as an installed
rea-agents package. Preserve the existing foreign-runtime script check
and the maintainer invariant that a matching non-package script stays
unknown after the executable vanishes.

Merge upstream/main for ownedPackageCommand OpenCode fixtures.
2026-12-01 02:57:17 +08:00
ShuaixinHuang e8419acaf5 fix(javascript): explain relation omissions at semantic node ceilings (#15295) 2026-12-01 02:51:17 +08:00
ShuaixinHuang f9053a26ec perf(artifacts): defer unrelated modules during CLI inspection (#15268)
* perf(artifacts): defer unrelated modules during CLI inspection

* test(cli): detect unrelated modules folded into startup chunks

* test(cli): exercise bundled source markers with positive controls
2026-12-01 01:55:31 +08:00
7915d15938 fix(setup): own bare rea only when PATH resolves to this package (#15046)
Resolve bare REA launchers using the registration's effective PATH and
verify the resulting installation before setup or uninstall changes an
entry. Share the parsed environment through registration workflows and
keep unproven launchers unknown. Cover npm shim lookup on Windows and
use deterministic ownership fixtures for layered removal.

Fixes #15026.

Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-01 00:53:48 +08:00
2afad5b789 fix(setup): honor OpenCode system, managed and policy configuration (#15081)
Discover the OpenCode system and managed layers and honor their effective
MCP policy when planning, publishing, diagnosing, or removing registrations.
Preserve the writable layer's dialect and verify effective registration
and policy after publication.

Fixes #15036.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-01 00:48:10 +08:00
Ysopwnableandgensokyo-dev 3e3c2ba1cc feat(artifacts): inspect SWF and extract embedded payloads (#15264)
Inventory FWS and CWS files through the shared artifact reader. Preserve the
carrier and normalized identities, top-level tag counts, and individual
DefineBinaryData occurrences. Use the existing selected-extraction pipeline and
per-call artifact admission controls.

Refs #3614

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-01 00:41:11 +08:00
061239a5de fix(setup): follow the registration Copilot, Codex, and Kiro load (#15230)
Follow the effective Copilot, Codex, and Kiro MCP registration. Use the
same resolved Kiro agent file for the approval plan and the write.

Fixes #15032.
Fixes #15034.
Fixes #15035.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-01 00:19:28 +08:00
BeqaandVincent Koc 130243a7c1 fix(setup): recognize path-qualified cmd.exe and npm rea.cmd shims (#15045)
* fix(setup): recognize path-qualified cmd.exe and npm rea.cmd shims

Unwrap C:\Windows\System32\cmd.exe /d /c package runners, and read the
script an npm rea.cmd shim launches so those registrations stay owned.

* fix(setup): parse npm rea.cmd launch statements with a bounded read

Own only the script argument of the npm cmd-shim launch line, skip rem
comments, refuse oversized files before allocating, and join with host
path rules so UNC roots stay intact.

* fix(setup): ignore echoed npm launch text in rea.cmd shims

Skip echo lines and refuse ownership when a later "%_prog%" launch names
a non-package script, so printed paths cannot prove an unrelated row.

* fix(setup): require executed npm rea.cmd launch statements

Anchor "%_prog%" matching to a real launch command, skip @rem comments,
and ignore conditional echo lines so ownership cannot follow text that
is never executed.

* fix(setup): require strict npm cmd-shim structure for rea.cmd ownership

* fix(setup): match exact npm cmd-shim template for rea.cmd ownership

* fix(client-identity): reject batch variables and support local node_modules/.bin rea.cmd shims

* fix(setup): recognize current npm command shims

* fix(ci): route CMD shim tests to the Windows package lane

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 23:53:39 +08:00
morluto 02c6d3c8bc fix(cli): suggest npx rea-agents@latest setup in the update notice under npx (#15251)
* fix(cli): suggest npx rea-agents@latest setup in the update notice under npx

A package-runner launch has no installed rea to run --update on, and its agent registrations point at that run's cache, so the notice now suggests rerunning setup at @latest through the same runner.

* fix(update): tell npx users how to update REA in plain words

rea update cannot upgrade a copy it did not install. Its message now tells npx users to run npx rea-agents@latest setup and that they can ask their agent to do it. The skill tells agents which update command to run, and the README mentions asking the agent.
2026-11-30 10:33:18 -05:00
morluto 3ab956b327 fix(setup): repair npx registrations after the npx cache is pruned (#15249)
* fix(setup): refresh registrations from a removed npx cache entry

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

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

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

The end-to-end run showed POSIX setup saves npm exec's node_modules/.bin/rea alias, not the package script, so removed-npx recognition now accepts both layouts setup writes.
2026-11-30 10:21:49 -05:00
AfloatandVincent Koc 4dccd4d252 fix(comparison): retain function CFG entry identity (#14082)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 23:09:51 +08:00
morluto 9a4e2df67f revert(setup): restore npx rea-agents setup (#15245)
Revert "fix(setup): do not persist versioned launcher paths (#15123)"

This reverts commit 92c61a7c61.
2026-11-30 10:05:27 -05:00
ShuaixinHuangandVincent Koc bd6ff678c4 feat(artifacts): inventory standalone Unix ar archives offline (#15224)
* feat(artifacts): inventory standalone Unix ar archives offline

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

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

* chore(contracts): refresh ar admission schema summaries

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

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

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 22:46:35 +08:00
clyde 490461938b fix(update): drain output after progress destination closes (#4894)
* fix(update): bound package-manager output collection

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

* test(update): use shared progress test deadlines
2026-11-30 22:35:24 +08:00
Lucien b0a910b8f4 fix(update): report Frida native module readiness (#7216)
fix(update): report Frida readiness after verified updates
2026-11-30 22:26:52 +08:00
ShuaixinHuang d99b51051c perf(evidence): use ledger lookups for exact record selection (#15221)
* perf(evidence): use ledger lookups for exact record selection

* fix(evidence): document the exact-page request default
2026-11-30 22:00:50 +08:00
2SinceJuly aea385cda1 feat(evtx): inventory Windows event log records offline
Inventory EVTX file, chunk and record headers with source-scoped identities, full timestamp precision and explicit partial coverage. Discover the reader from first-contact inspection.

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

Refs #5245.
2026-11-30 20:12:29 +08:00
ShuaixinHuangandVincent Koc 5f15fdf457 perf(evidence): inspect retained records without building a bundle (#15219)
* perf(evidence): inspect retained records without building a bundle

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

* docs(evidence): clarify sealed inspection records

---------

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

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

* fix(filesystem): retain cancellation during cleanup retry

---------

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

Refs #14391

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

* fix(artifacts): recognize Android super PE overlays

Refs #14928

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

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

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

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

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-30 06:15:43 -05:00
Dery FerdikaandVincent Koc a4f584f4a8 fix(binary): carry the runtime refusal's repair instruction in remediation (#14123)
* fix(binary): carry the runtime refusal's repair instruction in remediation

CapabilityAvailability documents reason as the refusal and remediation as the
recovery instruction from the owner that made the operation unavailable. The
runtime overlay folded the recovery sentence into reason and stripped any
declared remediation, so a capability refused at runtime reported no repair path
while a statically refused one did.

Keep the observed reason and the owner's remediation as separate facts through
the runtime availability projection and the status overlay.

* fix(runtime): retain complete refusal ownership in sibling reports

* fix(runtime): retain provider-owned refusal remediation

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:55:39 +08:00
HolyDEEW b5ff2dece2 fix(agentenv): reject COM0 and LPT0 bundle names (#14971)
* fix(agentenv): reject COM0 and LPT0 bundle names

* fix(agentenv): share Windows device-name rules and clarify refusals

* test(agentenv): cover both device-name recovery ranges

* fix(agentenv): describe reserved task names and format validator
2026-11-30 17:50:52 +08:00
Vincent Koc 6aa231d20f test(environment): share the loopback capture fixture (#15196) 2026-11-30 09:50:21 +00:00
ShuaixinHuangandShuaixinHuang 62a4ac4a1c perf(evidence): bound investigation closure worklist by depth (#15193)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-30 17:44:12 +08:00
ad7d590ecd fix(artifacts): retain deep comparison source chains (#15191)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-30 17:35:00 +08:00