* fix(setup): name the analysis tool to add when none is ready
When no native analysis tool is ready, setup names the one to add for this
operating system and links its guide, and automatic provider selection says so
plainly. Its recovery lists only providers this host can run, explains each,
asks the agent to get the person's agreement before setting one up, and says
what REA can still do without one.
Fixes#17292
* fix(providers): explain missing tools and ask before setting them up
Each external tool's repair for a missing installation now starts with what
the tool is and what setting it up installs, from one domain table, and tells
the agent to ask the person before installing it. The no-ready-provider
recovery skips providers this host refuses or that refused the target, Kuna
reports an unsupported host before its unset command, and IDA's repair carries
its description in remediationAction. AGENTS.md notes that agents are the
primary users, with a person behind them who may not know what is missing.
* fix(android): keep JADX release metadata loadable from source
Pre-install fixture scripts import JadxRelease.ts directly, so it stays
dependency-free. JadxConfiguration adds the tool description where it reports
a missing JAR.
* fix(pcap): keep the tool refusal reason in the repair action
pcapToolUnavailable had set remediationAction to the shared tshark setup
text alone, so the projected action dropped the refusal reason while the
message kept only the bare steps. adb and apktool still project both as
`${reason}. ${toolSetupRemediation(...)}` through providerConfigurationRefusal.
The helper now puts that same combined text in userMessage and leaves
remediationAction unset, so the projection copies it into the action. The
pcap CLI tests assert the reason, the Wireshark steps, and the tshark setup
prefix in both fields.
* fix(pcap): carry the tool-setup repair on the refusal itself
The recovery guide requires each refusal to carry its remediation; shared
projection formats those facts and must not fill them in. pcapToolUnavailable
had left remediationAction unset so the action was copied from the message.
The helper now sets remediationAction to PCAP_TOOL_REMEDIATION and keeps the
reason in userMessage. providerConfigurationRefusal, which adb and apktool
use, does the same with the configuration's own repair. CLI tests check the
reason and the repair separately.
* test(android): expect the tool repair in remediation, not the message
* feat(managed): describe the protobuf descriptor recovery report and its budget
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* feat(managed): recover protobuf descriptors from generated Reflection classes
Google.Protobuf's generated <File>Reflection classes build each
FileDescriptorProto in a static constructor that concatenates string
literals and passes them to System.Convert.FromBase64String. Read those
literals from the CIL in order, decode each site and keep the results that
parse as FileDescriptorProtos, byte for byte. A FileDescriptorSet lists
them dependencies first, with the well-known protobuf files they import;
other imports are named as missing. Literal characters count against
max_descriptor_bytes before they are joined. Nothing is loaded or run.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(managed): report descriptor recovery refusals as parse failures
A metadata representation budget stops the whole call as a named limit,
including inside one static constructor; other managed reader refusals
become malformed or unsupported input.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* feat(managed): recover protobuf descriptors through an identity-checked provider
The provider reads one bounded managed assembly. A refusal at
max_descriptor_bytes, max_metadata_representation_bytes or
max_snapshot_bytes names the control to raise.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* feat(analysis): summarize retained protobuf descriptor recovery
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* feat(managed): add the recover_protobuf_descriptors tool
CLI recover-protobuf-descriptors and MCP recover_protobuf_descriptors
return each embedded .proto file's package, imports, messages, enums and
services, and a FileDescriptorSet for decoding captured payloads. Large
reports return the retained per-file summary within the agent budget.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* test(managed): cover protobuf descriptor recovery through the service, MCP and CLI
The protoc-style assembly fixture moves to tests/fixtures so the unit,
MCP and CLI tests share it.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* docs(managed): describe protobuf descriptor recovery
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* docs(skill): route Google.Protobuf assemblies to recover_protobuf_descriptors
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* ci: scope protobuf descriptor recovery with the managed formats
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* chore(schemas): record the advertised recover_protobuf_descriptors catalog summary
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(managed): attribute, bound and account for every descriptor search
- Static constructors are found among physical MethodDef rows and named by
the shared ownership lookup, so a MethodPtr table cannot attribute a
descriptor to the wrong type.
- A FileDescriptorProto's wire form is walked along its schema first, and
every nested message it would create is charged to the representation
budget before protobuf-es decodes it.
- A body whose CIL was not fully decoded, and malformed member lists, make
coverage partial instead of looking searched.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* test(managed): build descriptor fixtures in protoc's String.Concat shapes
The fixture's static constructor now joins its literals through
String.Concat, as arguments or a string[], before calling
FromBase64String with its real static byte[](string) signature; the
managed PE fixture can name each MemberRef row. Tests cover both forms
and the descriptor tree bound.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(analysis): sample missing imports in the protobuf descriptor summary
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* docs(managed): save the descriptor set from complete delivery and fail on null
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(managed): name the descriptor nesting limit instead of rejecting deep files
The nesting cutoff is now the max_descriptor_depth control (100 by
default, up to 1,000). A deeper descriptor stops the call with a named
limit rather than being listed as not a descriptor, and protobuf-es
decodes up to the same depth so it cannot refuse what the walk admitted.
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* docs(managed): list the descriptor depth budget and record its schema
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
---------
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(setup): show a plain review of setup changes
The approval screen printed each action's full disclosure paragraph,
registration command, detected provider environment and integrity hash.
Someone who is not a developer could not tell what they were approving.
The review now lists each change in plain words, the file or folder it
touches, any backup kept, and the download sources and commands of
software it installs. Full detail stays in `setup --dry-run --json`.
Refs #17236
* fix(setup): keep quit prerequisites and accurate verbs in the review
- Claude Desktop's instruction to quit fully before approval lived only
in the action detail the review no longer prints. Setup now records it
as a plain `prerequisite` on the action, and the review shows it before
the change.
- `install` actions can replace an existing copy, such as a changed REA
guide, so the review says "Adds or updates".
- The build-computer runtime action creates an archive; title it so.