Masking: start at min(compact_at/3, 60k) tokens #117

Merged
hermes merged 1 commits from mask-abs-threshold into main 2026-10-02 15:00:50 +00:00
Collaborator

With a 1M window (claude-sonnet-5-5) compact_at is ~900k, so the compact_at/3 threshold from #110 is ~300k and masking never ran on a real 24-request session (context 82k; resent sent == resent unmasked in hx stats). The threshold is now min(compact_at/3, 60_000). Small windows keep the one-third rule. 60k is from two real sessions (contexts 72k and 105k), marked ponytail. Test for both branches; tests/all.sh green.

With a 1M window (claude-sonnet-5-5) compact_at is ~900k, so the compact_at/3 threshold from #110 is ~300k and masking never ran on a real 24-request session (context 82k; resent sent == resent unmasked in hx stats). The threshold is now min(compact_at/3, 60_000). Small windows keep the one-third rule. 60k is from two real sessions (contexts 72k and 105k), marked ponytail. Test for both branches; tests/all.sh green.
hermes added 1 commit 2026-10-02 15:00:33 +00:00
mask: start masking at min(compact_at/3, 60k) tokens
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
8dd6ce833b
hermes merged commit 1b63c27a52 into main 2026-10-02 15:00:50 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#117