Repository navigation
feat(artifacts): back archive member counts with the artifact.member_count setting - #14650
Merged
Merged
Conversation
…count setting Archive member, entry, module and asset counts are the reader limit an agent is most likely to raise repeatedly in one session. A new runtime setting, artifact.member_count (launch seed REA_ARTIFACT_MEMBER_COUNT, default 100,000), now supplies the default for artifact_limits bun.module_count, dotnet_bundle.entry_count, node_sea.asset_count and deno.vfs_entries. An explicit artifact_limits field still wins for that call. A refusal at one of those fields reports the setting's limit with the field as parameter and the value's source, so its recovery names the per-call field and update_analysis_settings (or the launch seed on the CLI). When a non-default session value applies, Evidence reports the resolved effective_limits.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…tdio MCP update_analysis_settings at 1 refuses a two-entry .NET bundle with the setting, source runtime and both recovery routes; an explicit artifact_limits field wins over the session value; raising the setting to 2 admits the same bundle.
Contributor
[Medium impact] The reviewed changes appear safe to merge, with no new actionable issues found. SummaryAdds
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Artifact operation] --> B{Explicit count field?}
B -->|Yes| C[Use caller value]
B -->|No| D[Runtime override, then launch seed, then default]
C --> E[Reader enforces count]
D --> E
E --> F{Count exceeded?}
F -->|Yes| G[Report field, setting, source and recovery]
F -->|No| H[Return artifact evidence]
Reviews (4) · Last reviewed commit: "fix(config): own the artifact.member_cou..." · Reviewed by Greptile |
Open
3 tasks done
When a call selects every field artifact.member_count backs, the session value and its launch seed are no longer read, so an invalid REA_ARTIFACT_MEMBER_COUNT cannot block an explicit per-call recovery; a request-sourced refusal still names the setting. The setting now lists inventory_artifact, which it also applies to.
…ettings module Resolving the seed through launchAnalysisSetting made runtimeAnalysisSettings import the launch schema map, which imports modules that import runtimeAnalysisSettings; the cycle left the bridge reply schema uninitialized in some load orders. The seed now has its own owner, src/config/artifactMemberCount.ts, like the pwntools input seed, and the definition names its environment variable literally as the numeric-limits guard requires.
vincentkoc
added a commit
that referenced
this pull request
Nov 26, 2026
…o-21113-20261126 * commit 'd63982890e70c55b09704249cde0327537e610f0': refactor(views): share default page request fields (#14633) test(dotnet): stop expecting required_value for the lower-bound path-depth refusal feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653) feat(artifacts): back archive member counts with the artifact.member_count setting (#14650) # Conflicts: # tests/acceptance/dotnetBundleJourney.test.ts
vincentkoc
added a commit
that referenced
this pull request
Nov 26, 2026
…-beta3-20261126 * commit 'd63982890e70c55b09704249cde0327537e610f0': refactor(views): share default page request fields (#14633) test(dotnet): stop expecting required_value for the lower-bound path-depth refusal feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653) feat(artifacts): back archive member counts with the artifact.member_count setting (#14650) build(deps): update Knip to 6.46.1 (#14641) fix(native)!: report details.limit for remaining native reader budgets and make BEAM table rows adjustable (#14631) perf(ci): omit unused PR associations from timing queries (#14636) perf(ci): resolve small pinned test batches directly (#14638) # Conflicts: # tests/acceptance/dotnetBundleJourney.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #14236. Follow-up to #14625. Adds one session-adjustable default for the archive reader family:
artifact.member_count. It backs the per-call member-count fields ofartifact_limits, so a refusal offers both recovery routes: the per-call field for one large archive, thenupdate_analysis_settingsfor repeated work.Setting added (one family)
artifact.member_countREA_ARTIFACT_MEMBER_COUNTartifact_limits.bun.module_count,dotnet_bundle.entry_count,node_sea.asset_count,deno.vfs_entriesWhy this one. Member counts are the reader limit an agent is most likely to hit again and again in one session. Triaging many large bundles, packages or compiled apps produces the same refusal on each archive. The four fields share one meaning (members admitted from one container) and one default (100,000), so a single setting maps onto them without per-reader exceptions. Setting IDs are enumerated in
update_analysis_settings' advertised schema, so every setting costs tokens in every session; one family keeps that cost to one ID.Considered and left per-call only:
expanded_bytes: its default is derived from each archive's encoded size, so one fixed session default would change its meaning.record_count: its default is 262,144, not 100,000.Behavior
artifact_limitsfield;REA_ARTIFACT_MEMBER_COUNT(an invalid seed is refused, not replaced by the default);ArtifactReaderPolicy(inArtifactProvider) resolves the session value once per call, then passes it toresolveArtifactReaderLimits. Each call is oneinspect_artifact,extract_artifactorinventory_artifacton a session target or a directory.effective_limits. With a non-default session value,effective_limitsreports the resolved policy, andparametersstill records only what the caller sent.details.reader_limitand also bindsdetails.limitas the setting's limit, withparameterset to the field andsourceset torequest,runtime,settingordefault.required_valueis passed through only when it is a number, so lower-bound omission from fix(artifacts): omit required_value where reader limits know only a lower bound #14646 is preserved.src/domain/analysisErrorRefusal.ts, a shared file, gets one narrow addition: anArtifactOperationErrorthat carries a reader limit and a bound setting limit derives theadjustable_budgetrefusal. The generated recovery from feat(limits)!: report the value a per-call limit needs and derive its recovery #14625 then names both routes. ASAR admission errors carry no reader limit, so their recovery is unchanged.Validation
tests/acceptance/artifactReaderLimitsCli.test.ts(13 tests, compiled CLI):REA_ARTIFACT_MEMBER_COUNT=1refuses a two-entry .NET bundle.details.limitreportssetting: "artifact.member_count",parameter: "artifact_limits.dotnet_bundle.entry_count"andsource: "setting". The recovery names the field andREA_ARTIFACT_MEMBER_COUNT.--artifact-limitsentry count of 2 wins over the seed.effective_limitsreported andparametersunchanged.src/application/AnalysisSettings.test.tsandsrc/domain/analysisRefusal.test.ts.docs:checkand advertised-schema regeneration (inspect_analysis_settingsandupdate_analysis_settingssummaries). The focused build compiles the sources. Typecheck, full lint and broad suites are left to CI to keep local load down.tests/acceptance/artifactMemberCountMcp.test.ts(stdio MCP, the session route):update_analysis_settingswithartifact.member_count= 1 refuses a two-entry .NET bundle.details.limitanddetails.refusalnameartifact.member_countwithsource: "runtime", and the recovery names both the per-call field andupdate_analysis_settings. An explicitartifact_limitsentry count of 2 wins over the session value, and setting it to 2 admits the same bundle.