Repository navigation
fix(provider-selection): name whether a rejection came from availability or target support - #7220
Conversation
…ity or target support `provider_unavailable` flattened availability and target-support refusals into one `details.rejections[]` list, so a provider that was never configured read like one that had refused the target's format. On a Windows host with a DOS image that turned "the Windows admission set is PE-only" into "install IDA". Each rejection now records its origin: `availability` entries carry no information about the target, `target` entries record a refused kind, format, architecture, or role. When every rejection is availability-only, the user message says no configured provider refused the target instead of pointing at a provider that refused it. The mixed and target-only cases keep the previous wording. The field is additive in `details.rejections[]`; selection reasons, candidate IDs, codes, and diagnostics are unchanged. `pwntools-elf` reports its configuration failure as an availability rejection. Refs morluto#7214
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The PR appears safe to merge, with the previous wording issue fixed and no new blocking findings. SummaryThe PR labels provider rejections by their source and gives availability-only failures a more precise message.
Reviews (2) · Last reviewed commit: "fix(provider-selection): describe readin..." · Reviewed by Greptile |
|
@codex review Updated on current main. The configured-provider finding is fixed at the shared error owner, with a regression covering an invalid selected registration and a ready alternative. 116 focused tests, static checks, docs, and real ELF CLI/MCP error projections pass; full evidence and coverage limits are in the description. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
Fixes #7214. CLI and MCP provider-selection errors now distinguish local readiness rejections (
origin: "availability") from observed target-support refusals (origin: "target"). Original provider IDs, codes, reasons, diagnostics, candidate ordering and explicit provider choices are preserved. The shared error owner makes one defensive diagnostic copy.An availability-only error describes recorded readiness failures and the absence of a reported target refusal. It does not claim that the host has no configured providers, or infer target support. This includes invalid existing registrations and an explicit unavailable provider alongside a ready alternative. Documentation uses the same distinction.
Validation
Integrated current main
b45a83368and reviewed head9eb726b1f:npm run check:fastandnpm run docs:checkpass. One concurrent build attempt was refused by the existing artifact lock; documentation validation completed the required artifacts afterward.analyze /usr/bin/true --provider ida --jsonand stdio MCPopen_binarywere run with a private HOME in two cases: no IDA registration, and an invalid existing registration. Both adapters retain matching error projections, respectivelynot_configured/configured:falseandopen_options_invalid/configured:true; every recorded rejection gains its producer-derived origin. Exact main was run as the control and lacks these origin fields.No IDA/Ghidra process was launched, no remote endpoint was contacted, and no native Windows DOS reproduction is claimed. This fixes diagnostic provenance, not DOS admission. Hosted CI 40349759511: source tests, static checks, docs, package build, real binary-layout/recorded-crash/web-network checks, SQLite versions, Linux native baseline, and four portable shards pass. Shard 4 fails four ADB MCP cases; the actual merge-base main
d9908fd7ahas the identical four assertions and diagnostic in its own CI job. The same four cases pass locally on both original main b45 (59.131 s, 1870 MiB peak) and this PR (54.573 s, 2023 MiB peak). Three fail-fast-canceled shards remain unverified. This is an authorized baseline-failure bypass, not a green-CI claim.Fresh Codex review reports no findings and Greptile is 5/5 at
9eb726b1f; the previous thread is resolved with root cause, structural fix, validation and limitations.Author readiness
Human owner: @dxqlovestudy
Before merge
type(scope): outcome.