Skip to content

fix(compress): enforce truncation gates and preserve whitespace - #79

Merged
Patel230 merged 3 commits into
mainfrom
feat/compress-quality-improvements
Aug 12, 2026
Merged

fix(compress): enforce truncation gates and preserve whitespace#79
Patel230 merged 3 commits into
mainfrom
feat/compress-quality-improvements

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Remediation of tok findings:

  • HardTruncated gate keeps first/last fragments on over-budget input
  • whitespace preservation + first-word fallback for long single-word runs
  • budget docs and tier-config cleanup
  • fast BPE estimate path for ShouldCompress
  • remove meta-token from defaults; reject [META: placeholders
  • 3 regression test files added

Verified: GOWORK=off go test ./... green (15 packages).

- HardTruncated gate keeps first/last fragments on over-budget input
- whitespace preservation + first-word fallback for long single-word runs
- budget docs, tier config cleanup, fast BPE-path estimate for ShouldCompress
- remove meta-token from defaults; reject [META: placeholders
- regression tests
@Patel230
Patel230 merged commit 622cafb into main Aug 12, 2026
20 checks passed
@Patel230
Patel230 deleted the feat/compress-quality-improvements branch August 12, 2026 04:21
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