Repository navigation
fix(errors): name fixed allowances in resource-constraint recovery - #5633
Conversation
Fixed parser, count, report, input, and capture refusals inherited host-memory, wait-and-retry, or retained-Evidence advice. Producers now attach allowance-specific recovery, and deterministic capacity caps are not retryable. IL2CPP reader occupancy stays retryable capacity. Refs #5556, #5405, #5456, #5459, #5460, #5504, #5505, #5506, #5537, #5628, #5630, #5631, #5632
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: cdcf981673
ℹ️ 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".
close() stops admission before the active inspection finishes. A second inspect in that window was projected as retryable capacity. Closing and closed readers now report capability_unavailable. Occupied readers that remain open stay retryable.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
[Medium impact] The PR appears safe to merge; no new actionable issue remains. SummaryThe PR names the fixed allowance behind inspection and capture refusals instead of suggesting more memory, waiting, or unavailable reports.
The previous-review comparison was not used because its target merge base differs from the current head’s. This review covered the full PR diff. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Resource refusal] --> B{Producer knows the limit?}
B -->|Fixed allowance| C[Name allowance; do not retry]
B -->|Live ADB output| D[Name allowance; allow retry]
B -->|Open occupied IL2CPP reader| E[Retry after active inspection]
B -->|Closing IL2CPP reader| F[Reject new inspections]
B -->|No specific recovery| G[Keep generic resource guidance]
Reviews (9) · Last reviewed commit: "merge(main): align unresolved IDA lookup..." · Reviewed by Greptile |
IL2CPP report refusals keep observed source facts instead of denying Evidence. Command-output caps use the capture allowance. Ghidra seed recovery names the limit that was exceeded.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d1bec7ad8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
WASM representation limits and the IL2CPP Ghidra seed-file cap are byte budgets. Their recovery no longer says the exceeded allowance is a fixed count.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ 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". |
Main now treats an unchanged invalid request as non-retryable. The IDA lookup tests follow that projection.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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". |
A fixed capture allowance still rejects the same output. Live captures such as adb logcat can change between requests, so recovery no longer says every unchanged request fails again.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7c2bfdcd0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Device output can shrink between calls, so an adb capture that exceeds the allowance stays retryable. Deterministic capture and version-output limits stay non-retryable.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 99fc0900b3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Only live observations opt into retrying a capture that exceeded the allowance. Push, install, uninstall, and other mutations stay non-retryable.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Artifact-derived capture allowances again say the unchanged request fails. Only volatile adb observations use the live-output sentence.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
…6148) #5633 gave Rust and IL2CPP input-size refusals input-allowance recovery through fixedAllowanceOptions, but no public CLI check covered either command, and IL2CPP had no remediation assertion at all. Add both commands to the CLI input-limit matrix. Go and WASM still carried a duplicated hand-written copy of the same advice. They now use the shared "input" allowance recovery, so all four commands name their fixed allowance from one owner. The matrix also asserted not.toContain("evidence reply"), which the new "evidence-reply" wording passes only because of the hyphen. Assert the absence of the old advice text instead. Fixes #5405 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Fixed inspection, report, and capture refusals told callers to add memory, wait and retry, or recover Evidence that the refusal never produced. The allowances stay fixed. Recovery now names the allowance that was exceeded.
Fixes #5556, #5405, #5456, #5459, #5460, #5504, #5505, #5506, #5537, #5628, #5630, #5631, #5632.
Problem and expected behavior
A fixed parser, count, report, input, or capture allowance was thrown as
AnalysisResourceConstraintErrorwithoutremediationAction. Shared projection then used the resource-kind fallback:memory: review worker and host memorycapacity: wait for an active analysis, andretryable: truetransport: retrieve retained Evidence or use complete CLI JSONfile-size: raise the evidence-reply file-size allowanceThose actions cannot admit the same input. Occupied IL2CPP reader capacity was also classified as memory, so a second inspection looked non-retryable.
Callers should still be refused. Recovery should name the fixed allowance. Deterministic caps stay
retryable: false. A second IL2CPP inspection stays retryable only while that reader remains open. Onceclose()has stopped admission, the reader iscapability_unavailableand non-retryable, including a second inspect that arrives while the active inspection is still finishing.Change and scope
fixedAllowanceRemediationowns the recovery sentences. Each producer that enforces a fixed allowance sets that recovery when it constructs the error. PE resource metadata refusals also reportmaximum_metadata_bytes. IL2CPP reader occupancy uses capacity and tells the caller to retry after the active inspection only when the reader has not started closing.close()records that admission has stopped before it waits for the active inspection, and later inspects use that fact.The IL2CPP complete-report refusal keeps source facts already observed on the error. Its recovery says no complete inventory is retained and does not deny that source observation. Command-output overruns use the retained command-output allowance. Ghidra seed recovery names the seed-name, seed-file, or seed-entry allowance that was exceeded. Byte budgets, including the WASM representation caps and the Ghidra seed-file cap, say they are a fixed byte allowance. Count limits stay a fixed count.
The generic fallback remains for genuine host, worker, or process resource failures that do not set their own recovery. Flutter snapshot-storage errors that forward an arbitrary filesystem code are unchanged.
Follow the contribution scope.
This is an ordinary recovery-text fix inside existing inspection and capture boundaries. No new provider, target execution, injection, mutation, or protection recovery. Maintainer scope decision: not applicable.
Contract and boundary impact
ArtifactAnalysisResources.commandFailure.resource_constraintcode and resource kinds, except IL2CPP reader occupancy changes frommemorytocapacityand stays retryable while the reader is open. A closing or closed reader projectscapability_unavailablewithretryable: false. Recovery text andretryablechange for the fixed allowances listed in the linked issues. No catalog schema change.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
maximum_metadata_bytes; IL2CPP occupied-open retryable capacity, closing/closed non-retryable admission, and complete-report source facts; Ghidra seed-file byte allowance and seed-name count; typed WASM interface inventory and a comparison of two inventories that together exceed the cap; command-output allowance inArtifactAnalysisResourcesand the tshark and sigrok provider simulators.remediation.actionand, for deterministic capacity caps,retryable: false. An open occupied IL2CPP reader projectsretryable: trueandresource: "capacity". A closing or closed reader projectscapability_unavailableandretryable: false. A fixed command-output cap names the retained command-output allowance. Byte caps sayfixed byte allowance.For evidence-bearing changes:
Validation performed
npm run test:local -- src/domain/fixedAllowanceRemediation.test.ts src/wasm/WasmInterfaceBudget.test.ts src/electron/ElectronFuseProvider.test.ts src/native/pe/PeResourcesProvider.test.ts— 38 passed, then the PE file again with the helper test: 14 passed.npm run test:focused -- tests/boundary/go/goBinaryProvider.test.ts tests/boundary/rust/rustBinaryBudget.test.ts tests/boundary/il2cpp/il2cppMetadataProvider.test.ts tests/boundary/filesystem/flutterBuildProvider.test.ts— 125 passed on an earlier head.1d1bec7ad:npm run test:local -- src/process/ArtifactAnalysisResources.test.ts src/application/wasm/WasmInterfaceComparisonService.test.ts— 23 passed and 7 passed.npm run test:focused -- tests/boundary/il2cpp/il2cppMetadataProvider.test.ts tests/boundary/il2cpp/il2cppGhidraSeeds.test.ts tests/boundary/captures/captureProvider.test.ts tests/boundary/signals/recordingProvider.test.ts— 19, 8, 37, and 36 passed.eb8c31fd0:npm run test:local -- src/domain/fixedAllowanceRemediation.test.ts src/wasm/WasmInterfaceBudget.test.ts src/application/wasm/WasmInterfaceComparisonService.test.ts— 7, 1, and 7 passed.npm run test:focused -- tests/boundary/il2cpp/il2cppGhidraSeeds.test.ts— 8 passed.npm run check:fast— typecheck and lint passed on this head.Not run:
npm run check:pr, real apktool/adb/tshark/sigrok/Ghidra/Hopper workflows, or the original issue CLI scripts.Compatibility, safety, and release
resource: "memory"/retryable: false, will see the new text and, for an open occupied reader,capacitywithretryable: true. A closing or closed reader iscapability_unavailablewithretryable: falseinstead of retryable capacity. Deterministic capacity caps that wereretryable: trueare nowretryable: false.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.