Skip to content

fix(pack-git): report effective digest budget - #2172

Draft
ohdearquant wants to merge 1 commit into
mainfrom
codex/git-digest-effective-max-2074
Draft

fix(pack-git): report effective digest budget#2172
ohdearquant wants to merge 1 commit into
mainfrom
codex/git-digest-effective-max-2074

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Summary

  • report both requested and effective max_items values from git.digest
  • add a warning whenever the requested budget is clamped to the supported range
  • cover both lower- and upper-bound clamping in acceptance tests

Verification

  • cargo fmt -p khive-pack-git -- --check
  • cargo clippy -p khive-pack-git --all-targets -- -D warnings
  • cargo test -p khive-pack-git

Regression tests:

  • digest_verb_max_items_negative_and_zero_clamp_to_one
  • digest_verb_sources_stopped_early_on_budget_exhaustion

Fixes #2074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

git.digest: out-of-range max_items is silently clamped with no signal in the report

1 participant