Repository navigation
fix: report provider admission failures as typed codes - #8066
Conversation
|
@gensokyo-dev @dandgabr Ghidra, WABT, process, EVM, and filesystem admission failures now use typed codes. Please review when you can. Kuna is #8064. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7ab4f9f98f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[High impact] The PR appears safe to merge; no new actionable issues were found. SummaryReplaces sentence-based provider refusals with typed codes and preserves identifying details in returned errors.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Provider refuses input] --> B[Typed error with code and detail]
B --> C[Provider error wrapper]
C --> D[CLI and MCP error]
E[Metadata tokenizer finds duplicate] --> F[EvmAdmissionError]
F --> G[Metadata admission code and detail]
Reviews (5) · Last reviewed commit: "fix(evm): detect repeated CBOR keys in t..." · Reviewed by Greptile |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…e limit Main's typed admission codes (morluto#8066) take more lines to assert than the message patterns they replace, which took the "Ghidra headless launcher" block to 153 lines, over oxlint's 150. The RISC-V calling-convention policy tests move to their own block, as morluto#7484 did for the Hopper refusal tests.
Summary
Ghidra launch and extension admission, WABT output parsing, process ownership and worker runtime, EVM metadata and limiter selection, and owned staged output still threw
Errorand treated the English sentence as the failure identity.Problem and expected behavior
Those failures are now typed errors whose
codeis the stable identity. Optionaldetailkeeps the field that identifies the path, limit, address key, or component. Tests assert the code and those fields.ownedDebuggerSession.tsis unchanged. Test and fixture throws that only fail a test harness stay as they are.Change and scope
Each owner has one admission error:
GhidraAdmissionError,WabtAdmissionError,ProcessAdmissionError,EvmAdmissionError,StagedOutputError, andOwnedFileHandleError.ghidraFileFailurecopies a Ghidra admission code into diagnostics and does not treat that code as a Nodesystem_code. PSP inspection and WABT configuration do the same. An unavailable EVM limiter returns its code as the reason and keepslimiter_pathin diagnostics.No resource budget number changed, so no new
REA_setting. Allegrex scan limits, the CBOR 64-level profile, the JDK options byte bound, and the Linux limits report bound stay named constants.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
Error.messagenow matchcodeanddetailordiagnostics.diagnostics.limiter_path.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
limiter_path.Error.messagenow carries the code. PSP still prefixesPSP_EXTENSION_UNAVAILABLE. EVM limiter diagnostics still name the selected path.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
Ghidra launch, PSP inspection, WABT inspection, staged publication, owned-worker close, and EVM limiter admission are the boundaries covered. Cleanup ownership tests still run. No new lifecycle stage was added.
For evidence-bearing changes:
Validation performed
npm run test:focused --the Ghidra launcher, Java launch, PSP, extension, profile-artifact, seed, WABT output/interface/string/provider, Linux limits, owned worker, staged output, EVM limiter, Solidity metadata, and session-value files — passed.npm run test:focused -- tests/boundary/process/darwinProcessRunTokenReader.test.ts— 28 passed, 7 skipped.npm run test:focused -- tests/boundary/process/providerProcess.test.ts tests/boundary/evm/evmoleInterfaceProvider.test.ts— 61 passed, 3 skipped.npm run format:check— passed.npm run check:fast— typecheck and lint passed, including after mergingorigin/main. The pre-push hook rancheck:fastagain and it passed.Compatibility, safety, and release
Error.messagesentences need to switch oncodeanddetailordiagnostics. Accepted analysis results are unchanged.check: separatororcheck: key. No new process, network, or file write.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.