Repository navigation
fix(evm): explain limiter configuration and access failures - #8521
ShuaixinHuang wants to merge 1 commit into
Conversation
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 changes affect EVM limiter readiness and admission, not other provider workflows. The PR appears safe to merge, with a non-blocking gap in tests for other filesystem failures. Findings
Fix with agent prompt### Issue 1
tests/boundary/evm/evmLimiterAvailability.test.ts:47-49
The new fallback for filesystem errors has no test that checks its classification or recovery. The freshness test throws an error without `code`, but only checks that its message survives. Add cases for `EIO` and an error without `code`; assert `runtime_unavailable`, the selected path, the configuration action, and whether `system_code` is present. Otherwise this behavior can regress while the tests still pass.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryThe PR fixes limiter recovery at the shared
Source review found no new security issue. No runtime checks were performed. The supersession check could not be completed because GitHub access required authentication. Reviews (1) · Last reviewed commit: "fix(evm): explain limiter configuration ..." · Reviewed by Greptile |
| it.each(["EACCES", "EPERM"])( | ||
| "uses the exact absolute override and reports denied access: %s", | ||
| async (code) => { |
There was a problem hiding this comment.
Fallback recovery lacks test coverage
The new fallback for filesystem errors has no test that checks its classification or recovery. The freshness test throws an error without code, but only checks that its message survives. Add cases for EIO and an error without code; assert runtime_unavailable, the selected path, the configuration action, and whether system_code is present. Otherwise this behavior can regress while the tests still pass.
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/boundary/evm/evmLimiterAvailability.test.ts
Line: 47-49
Comment:
**Fallback recovery lacks test coverage**
The new fallback for filesystem errors has no test that checks its classification or recovery. The freshness test throws an error without `code`, but only checks that its message survives. Add cases for `EIO` and an error without `code`; assert `runtime_unavailable`, the selected path, the configuration action, and whether `system_code` is present. Otherwise this behavior can regress while the tests still pass.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.|
Heads-up from #8532 (fix for #8506): that PR gives unavailable Whichever lands second will conflict in 🤖 Generated with Claude Code |
|
@kaoru0822-kitauji Thank you for the suggestion and for coordinating the overlap with #8532. I'll leave this PR unchanged for now, as you suggested, until one of the two PRs is merged. If you have time, could you also take a look at my other open PRs, or help point them to an appropriate reviewer?
I appreciate your help and your time. |
Superseded by #8637 at the author's request: #8637 . The replacement reuses the same published branch and HEAD. This closed PR preserves the original discussion and historical validation.
Summary
Fixes #8508. Invalid EVM limiter selections previously surfaced internal admission codes such as
prlimit_not_absoluteas the final capability recovery instruction, and all probe failures were classified as a missing executable.The shared limiter-selection owner now supplies readable recovery naming the selected path and
REA_EVM_PRLIMIT_COMMAND. Relative and non-file selections use the existingnot_configuredavailability code; missing paths useexecutable_missing; denied access and other probe failures useruntime_unavailable. Stable admission codes and system error codes remain in diagnostics.Change and scope
Discovery and execution already share
selectEvmLimiter; the fix stays at that owner instead of parsing error prose in inventory. Final capability output receives the same corrective action, and execution admission uses the same reason and original cause. Documentation describes these filesystem-only readiness outcomes. No alternate command is selected and no tools are installed.This is an ordinary recovery/diagnostic correction for the existing Linux x64 EVM profile. No new provider or target authority, process launch, resource-limit, worker, cleanup or dependency change. A new maintainer scope decision is not applicable. Availability uses existing codes; callers can now distinguish invalid configuration and unavailable access from absence.
Validation
Pinned baseline:
aa48d494e9726d469a1b9ed917f021d8a1a4c7ea, also fresh main at verification. Windows x64, Node 24.22.1, npm 10.9.3 (repository pins 11.16.0); shared dependencies were unchanged.npm run check:fast: 2/2 passed, 36.741 seconds. Formatting andgit diff --checkpassed.00eeac1db3321b0a4e962d018a521efffe24dbc1exactly matches the tested local commit tree.Representative results:
prlimit:not_configured; “Set REA_EVM_PRLIMIT_COMMAND to an absolute executable regular file for caller-supplied util-linux prlimit.”prlimit_not_filepreserved in diagnostics.runtime_unavailable; grant execute permission/filesystem access or explicitly configure an accessible absolute executable regular file; original system code and path retained.executable_missing; select an existing absolute executable regular file.No real Linux EVM execution or compiled CLI/MCP recovery run is claimed. Hosted CI, including the existing Linux execution cases, must validate this new PR independently.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.