Skip to content

fix(compress): raise maxSummaryLengthHard default to 3000, fix reject feedback#43

Merged
ranxianglei merged 1 commit into
masterfrom
ranxianglei/2026-06-30_summary-length-defaults
Jun 30, 2026
Merged

fix(compress): raise maxSummaryLengthHard default to 3000, fix reject feedback#43
ranxianglei merged 1 commit into
masterfrom
ranxianglei/2026-06-30_summary-length-defaults

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Summary

Fixes #42 (prihuda's report: maxSummaryLengthHard=800 caused legitimate compressions to always fail).

  • maxSummaryLengthHard default 800 → 3000. The 800 ceiling was miscalibrated — real summaries routinely run 800–3000 chars, so the safety net was catching normal compression instead of pathological bloat. The soft target (maxSummaryLength) stays at 200 to keep summaries concise (now that search_context can retrieve compressed detail, over-long summaries are wasteful).
  • Fix the reject feedback. On failure the message used to say "aim for <=200" (the soft target) — misleading at failure time. It now guides the model to trim under the actual ceiling and keep only essential detail (conclusions, file paths, decisions, exact values).

Verification

  • tsc --noEmit: clean
  • Docker node:20 full suite: 496 pass / 0 fail

Notes

Tuning will be revisited once the compression-bundle feature lands; for now this unblocks users hitting the default.

… feedback

Reported in #42: the 800-char hard ceiling caused legitimate compressions
to fail for real-world content (summaries routinely run 800-3000 chars).
The ceiling is a safety net against pathological bloat, not a practical
limiter, so 800 was miscalibrated.

- config: maxSummaryLengthHard default 800 -> 3000 (soft target stays 200)
- compress message/range: the reject message no longer tells the model to
  'aim for <=200' (the soft target) at failure time — that was misleading.
  It now guides the model to trim under the actual ceiling and keep only
  essential detail.

Tuning will be revisited with the upcoming compression-bundle feature;
for now the search_context tool makes over-long summaries wasteful, so
the soft target stays low. typecheck clean, 496 tests pass.
@ranxianglei

Copy link
Copy Markdown
Owner Author

link #42

@ranxianglei ranxianglei merged commit ec81db3 into master Jun 30, 2026
3 checks passed
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.

[Bug]: compress always failed

1 participant