Skip to content

fix(artifacts): omit required_value where reader limits know only a lower bound - #14646

Merged
morluto merged 2 commits into
mainfrom
fix/reader-limit-lower-bounds
Nov 26, 2026
Merged

morluto merged 2 commits into
mainfrom
fix/reader-limit-lower-bounds

Conversation

@morluto

@morluto morluto commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

Part of #14236 and #14234. Applies the rule from #14625/#14645: required_value is reported only when it is the complete need, so a retry at that value is not refused by the same limit. A count or total that stops at the first crossing is a lower bound and is now omitted.

Behavior change

details.reader_limit.required_value is no longer reported for:

  • artifact_limits.deno.specifier_text_bytes and remote_body_bytes (running totals across the table)
  • artifact_limits.deno.vfs_entries and vfs_name_units (the walk stops at the first entry or path past the allowance)
  • artifact_limits.expanded_bytes from the Deno and wxapkg readers (later members are not counted)
  • artifact_limits.{bun,dotnet_bundle,deno}.path_parts and path_nodes from the shared path registry (later or deeper paths may need more)

Refusals that compare a declared length or count keep required_value: Deno metadata and VFS header JSON, table records, wxapkg table bytes, and tar extended headers.

Not changed here: the older running-total expansion and metadata refusals in the Bun, Godot, Node SEA, ISO 9660, .NET bundle and ZIP readers have the same shape. They predate this work and are left for a follow-up so this stays scoped to the sites #14620 added or centralized.

Validation

  • src/resources/ArtifactPaths.test.ts, src/artifacts/deno/DenoVirtualFs.test.ts (asserts required_value is absent), src/artifacts/deno/DenoSectionLayout.test.ts, src/artifacts/WxapkgArtifactReader.boundaries.test.ts, each run alone with npm run test:local.
  • oxfmt. Typecheck, full lint and broad suites are left to CI to keep local load down.

…ower bound

A reader-limit refusal reports required_value only when a retry at that
value is admitted. Deno specifier text and remote body totals, VFS entry
and name-unit counts, Deno and wxapkg plaintext totals, and the shared
path registry's part and node counts stop at the first crossing, so
those refusals now omit it. Declared lengths and table counts keep it.
@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:47:33.520753Z
We couldn’t complete this review. Comment @codex review to try again.
2808363 PR opened
ℹ️ 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; the previous test gap is fixed and no new blocking issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous test gap is fixed and no new blocking issue was found.

Summary

The PR omits required_value when an artifact reader stops counting before the full need is known. Existing limit checks remain unchanged.

  • Deno and wxapkg refusals omit partial expanded-byte totals.
  • Deno section limits omit partial byte totals.
  • Deno virtual filesystem refusals omit partial counts.
  • Path-budget refusals omit incomplete required counts.

Reviews (2) · Last reviewed commit: "test(resources): assert path budget refu..." · Reviewed by Greptile

Comment thread src/resources/ArtifactPaths.test.ts Resolved
Capture the path_nodes and path_parts refusals and check readerLimit
has no required_value, so restoring the lower-bound value fails.
@morluto
morluto enabled auto-merge (squash) November 26, 2026 04:18
@morluto
morluto merged commit b41399d into main Nov 26, 2026
44 checks passed
@morluto
morluto deleted the fix/reader-limit-lower-bounds branch November 26, 2026 04:19
morluto added a commit that referenced this pull request Nov 26, 2026
…depth refusal

#14646 stopped reporting required_value for artifact_limits path budgets
because the path-depth count stops at the limit and knows only a lower
bound. The .NET bundle journey still expected 257, which failed any CI
run that selected it.
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant