Skip to content

refactor(elf): share note reader limit error projection - #14644

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/share-elf-note-limit-projection
Nov 26, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/share-elf-note-limit-projection

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

Both ELF providers now project the note reader’s entry, text and section-name limits in one place. Each supplies its own operation and bounds. Debug-link retains its native-structure handling, and the notes provider retains its Zstandard handling. The existing fixed-ceiling classification now has one registry entry pointing to the shared projector.

All 162 before-and-after comparisons of the real error projection matched, including fallthrough, provider IDs, candidate-file errors, fixed allowances, and required byte counts above the safe integer range. Both old and new code preserve the original exact bigint on the cause and the same public representations. The registry declarations and refusal counts matched across all three production files with the pinned TypeScript parser. Formatting and git diff --check passed. Local checks exercised error objects and did not run target binaries.

This uses the current fourth elfReadBudgetLimit argument for the measured requirement. The separate ELF reader limits PR proposes that argument for a unit and already needs reconciliation with main. The pending allowance issue retains its classification; a registry reformat also touches those entries.

@vincentkoc
vincentkoc marked this pull request as ready for review November 26, 2026 03:42
@vincentkoc
vincentkoc enabled auto-merge (squash) November 26, 2026 03:42
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T03:42:39.627607Z
We couldn’t complete this review. Comment @codex review to try again.
1bc974a Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The refactor appears safe to merge; no actionable issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The refactor appears safe to merge; no actionable issue was found.

Summary

Both ELF providers now use elfNoteLimitConstraint to turn shared reader limits into public errors.

  • Both ELF tools now explain note-reader limits the same way.

Reviews (1) · Last reviewed commit: "refactor(elf): share note reader limit e..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit 9edc95c into main Nov 26, 2026
41 checks passed
@vincentkoc
vincentkoc deleted the refactor/share-elf-note-limit-projection branch November 26, 2026 03:58
vincentkoc added a commit that referenced this pull request Nov 26, 2026
…-6461-20261126

* commit '77687702b3d0e375e8698128a5b4746022e8e4f6':
  test(trace): assert adjustable nesting budget refusals (#14647)
  refactor(elf): share note reader limit error projection (#14644)
  refactor(limits): derive help from resolved per-call defaults (#14642)
  refactor(domain): use known coverage in web bundle reports (#14643)
  refactor(verify): share canonical output schema assertions (#14640)
  refactor(mcp): share retained evidence link eligibility (#14639)
  test(cli): share cancellation command argument construction (#14635)
  refactor(ci): share completeness guard grouping transitions (#14637)
vincentkoc added a commit that referenced this pull request Nov 26, 2026
…less-json-434-20261126

* commit '77687702b3d0e375e8698128a5b4746022e8e4f6':
  test(trace): assert adjustable nesting budget refusals (#14647)
  refactor(elf): share note reader limit error projection (#14644)
  refactor(limits): derive help from resolved per-call defaults (#14642)
  refactor(domain): use known coverage in web bundle reports (#14643)
  refactor(verify): share canonical output schema assertions (#14640)
  refactor(mcp): share retained evidence link eligibility (#14639)
  test(cli): share cancellation command argument construction (#14635)
  refactor(ci): share completeness guard grouping transitions (#14637)
vincentkoc added a commit that referenced this pull request Nov 26, 2026
* commit '77687702b3d0e375e8698128a5b4746022e8e4f6':
  test(trace): assert adjustable nesting budget refusals (#14647)
  refactor(elf): share note reader limit error projection (#14644)
  refactor(limits): derive help from resolved per-call defaults (#14642)
  refactor(domain): use known coverage in web bundle reports (#14643)
  refactor(verify): share canonical output schema assertions (#14640)
  refactor(mcp): share retained evidence link eligibility (#14639)
  test(cli): share cancellation command argument construction (#14635)
  refactor(ci): share completeness guard grouping transitions (#14637)
vincentkoc added a commit that referenced this pull request Nov 26, 2026
* commit '77687702b3d0e375e8698128a5b4746022e8e4f6':
  test(trace): assert adjustable nesting budget refusals (#14647)
  refactor(elf): share note reader limit error projection (#14644)
  refactor(limits): derive help from resolved per-call defaults (#14642)
  refactor(domain): use known coverage in web bundle reports (#14643)
  refactor(verify): share canonical output schema assertions (#14640)
  refactor(mcp): share retained evidence link eligibility (#14639)
  test(cli): share cancellation command argument construction (#14635)
  refactor(ci): share completeness guard grouping transitions (#14637)
@morluto morluto added the area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants