Skip to content

feat: adaptive budget scaling, proportional entity caps#11

Merged
SimplyLiz merged 3 commits intodevelopfrom
feature/adaptive-budget-entity-scaling
Mar 10, 2026
Merged

feat: adaptive budget scaling, proportional entity caps#11
SimplyLiz merged 3 commits intodevelopfrom
feature/adaptive-budget-entity-scaling

Conversation

@SimplyLiz
Copy link
Owner

Summary

  • Replace binary budget step function (200/400) with linear 30% scaling clamped to 200–600
  • Entity cap now scales with content length (3–15) instead of fixed 10
  • Add JSDoc for confidence field, inferProseTier, and T2/T3 pipeline treatment
  • Update docs and benchmark baseline

Test plan

  • 336 tests pass (4 new/updated for adaptive behavior)
  • All benchmarks pass with new baseline saved
  • Lint + format clean
  • Build compiles cleanly

Replace the binary budget step function (200/400) with linear 30%
scaling clamped to 200–600. Entity cap now scales with content length
(3–15) instead of a fixed 10. Both changes improve information
preservation on long content and reduce noise on short content.

Add JSDoc for confidence field, inferProseTier, and T2/T3 treatment
in the compression pipeline. Update docs and benchmark baseline.
Two test names and assertions still referenced the old fixed 400-char
budget ceiling. Updated to match computeBudget() output for their
respective content lengths (1000 chars → 300, 1675 chars → 503).
@SimplyLiz SimplyLiz merged commit 37ab06b into develop Mar 10, 2026
8 checks passed
@SimplyLiz SimplyLiz deleted the feature/adaptive-budget-entity-scaling branch March 10, 2026 00:59
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.

1 participant