Add summary growth model with logarithmic floor option#115
Closed
jimmytacks wants to merge 2 commits into
Closed
Conversation
Add summaryGrowthModel ('fixed' | 'logarithmic') and summaryGrowthCoefficient
parameters to break the fixed summary convergence ceiling. When set to
'logarithmic', summary size grows as coefficient * ln(1 + totalCompressed/1000),
modelling that longer sessions need larger summaries to retain accumulated
knowledge.
- Apply floor in all strategies that produce summaries (1, 2, 4a-d)
- Add enum paramKind for sweep support of string enum parameters
- Frontend: dropdown in Parameter Panel, sweep UI with checkboxes
- 9 new tests (unit + integration) verifying floor logic and backwards compat
- Default 'fixed' preserves all existing behaviour and results
Closes #95
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add compressedTokens=0 arg to all evaluate() calls in strategy.test.ts - Spread readonly enum values to satisfy mutable return type in sweep.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Engine Change
Add
summaryGrowthModelandsummaryGrowthCoefficientparameters to enable realistic summary growth over long sessions.Problem: Summary size converges to a fixed ceiling of
interval / (ratio - 1)— at default settings, ~3.3k tokens regardless of how much history has been compressed. For 200-cycle sessions compressing 100k+ tokens, this is unrealistically small.Solution: A logarithmic growth floor:
floor = coefficient × ln(1 + totalCompressed / 1000). When enabled, summary size grows sublinearly with compressed history:Changes:
summaryGrowthModel: 'fixed' | 'logarithmic'(default:'fixed'— preserves existing behaviour)summaryGrowthCoefficient: number(default:1000)enumparamKind for sweep support of string enum parametersCloses #95
Test plan
🤖 Generated with Claude Code