Repository navigation
fix(verifiers): align WABT operation timeout - #4117
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3318d802e2
ℹ️ 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".
[Medium impact] This PR appears safe to merge; no new actionable issue was found. SummaryThis PR puts WABT verifier deadlines in one shared module.
The merge bases differ, so this review treated the full PR diff as changes since the last review. Tests were not run. GitHub access was blocked, so whether another PR supersedes this one could not be confirmed. Reviews (4) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
The real Windows WABT verifier gave equivalent CLI and MCP inspections different fixed deadlines, so MCP expired at the SDK default 60 seconds and a later malformed CLI case could expire at 120 seconds. This change gives every WABT inspection one 240-second operation budget across both transports and gives the complete packaged workflow a shared 15-minute aggregate budget, preserving all parity, malformed-input, retained Evidence, residue, and cleanup checks.
Fixes #4109.
Problem and expected behavior
On an ordinary two-core Windows run, the verifier reached the production MCP inspection and failed with typed
REQUEST_TIMEOUTat 60 seconds. Enabling the existing Node compile cache reproduced it. A 120-second MCP-only candidate passed that boundary, then the equivalent malformed CLI path reached its separate 120-second deadline and retained a workspace residue. Equivalent verifier operations need one budget large enough for the measured bounded workload.Change and scope
Contribution scope: verifier-only correction for existing read-only WASM artifact analysis. No provider capability or authority changes; no maintainer scope decision is required.
Contract and boundary impact
Expected effects:
Evidence and regression coverage
Base reproductions: default and compile-cache Windows runs both failed at the SDK's 60-second MCP timeout and cleaned to Job0.
Intermediate 120-second candidate passed the original MCP failure, then retained a later malformed CLI timeout and workspace residue instead of hiding either fact.
Final real run passed all 42 WABT 1.0.42 cases: seven normal CLI/MCP schema, Evidence, identity, hash/bytes, WAT, section, glue/candidate, and retained-bundle comparisons plus both malformed inputs and their retained failed Evidence for every fixture.
Review follow-up on exact head
ecd04eea840385caeb7b595c827845b6ff8c6c88: an ordinary-user Windows continuation from the extracted-package entrypoint passed the same 42 cases through the packaged wrapper in 363.28 seconds, exceeding the old 180-second cap, with empty stderr and Job0.Full pack/install verification exposed four independent existing Windows verifier defects: npm command-script launching ([Bug] Windows package verifiers cannot spawn npm command scripts #4125), CRLF tar-member parsing ([Bug] Windows package verifier retains CR in tar member names #4128), child extraction into a leased private root ([Bug] Windows packed-bridge verifier extracts into its leased private root #4134), and transient installed-tree cleanup ([Bug] Windows packaged verifier loses its result on transient install-root cleanup failure #4136). Each is recorded separately. The continuation used explicit test-only bypasses for those prerequisites; it directly verifies this PR's nested timeout and cleanup path, but does not claim the full pack/install lane passed.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:fast— passed on final headfbc268555adbf00c68c4cb38aaed16a8ff78abf3.npm run test:focused -- tests/boundary/mcp/wasmArtifactMcp.test.ts src/wasm/WabtArtifactProvider.test.ts src/wasm/WabtOutput.test.ts— 42/42 passed on the final head.fbc268555adbf00c68c4cb38aaed16a8ff78abf3— all required checks passed, including five test shards, source/static/build/package, Windows capability/package, native package baselines, Portable tests, the required aggregator, and Greptile review. The latest-main merge changed only JavaScript tool-effect contracts/docs/tests; a machine diff confirms every WABT and package-verifier input used by the Windows run is unchanged.5423ae0734c89c825cf06603187db45cbf9e55e7— 42/42 real verifier cases passed; 647.28 s Job wall, 667.84 s observer wall, 148.91 sampled CPU seconds, 1,145,798,656-byte Job peak, 1,175,539,712-byte sampled working-set peak, 2 LP, BelowNormal, 2 GiB, 631 output bytes, empty stderr, and Job0.The completed final workload is broader than the failing reproductions, and the compile-cache reproduction was slower than the default failure. No speedup or cache benefit is claimed. Agent-token cost was not measured; the verifier's output shape and size are unchanged.
Compatibility, safety, and release
Author readiness
Human owner: @N0zoM1z0
Before merge
type(scope): outcome.