You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[0.22.2] - 2026-08-05
Changed
Context-size advisory is now fail-closed and opt-in by default (#181). token_sentinel.py's hook path no longer falls back to DEFAULT_CONTEXT_WINDOW
(200K) when MARC_CONTEXT_WINDOW is unset, non-numeric, or <= 0: with no
trustworthy window value AND no explicit MARC_TOKEN_GUARD_TOKENS_THRESHOLD,
the context-size advisory stays completely silent instead of banding against
an assumed window. This closes the residual false positive from #178/PR #179,
where an unset MARC_CONTEXT_WINDOW still let the guard fire against a 130K
band derived from the assumed 200K on a session with a much larger real
window. Set either MARC_CONTEXT_WINDOW or MARC_TOKEN_GUARD_TOKENS_THRESHOLD
to opt back in. The call-count runaway guard (#71) and the mid-session
model-switch guard (#73) are unaffected — neither depends on the context
window.