v1.108.55 - turn-budget reset, honest budget packing, fast search_text rejection (#327, #328, #329)
v1.108.55 - turn-budget reset, honest budget packing, fast search_text rejection (#327, #328, #329)
Patch release closing the jcodemunch side of @mmashwani's 2026-06-11/12 report batch (the four jdocmunch siblings shipped as jdocmunch-mcp v1.70.1/v1.70.2).
#327 - Turn budget now resets in every reader. The idle-gap reset only fired lazily inside record_output (post-dispatch), so readers that run during tool execution - plan_turn's budget advisor via percent_used(), should_compact() - reported the previous turn's exhausted counter after an idle gap (143.4% observed after a 2-minute pause). The gap check is factored into _maybe_reset_locked() and fires in every reader; reader-triggered resets don't advance the activity timestamp. The class docstring now documents the process-global scope across repos and the rolling-budget semantics under continuous agent use.
#328 - search_symbols token_budget packs against payload; fallback summaries no longer duplicate signatures. All three search paths packed entries (and reported tokens_used) using each symbol's source-body byte_length, even in compact/standard mode where a row is ~50-80 bytes - so token_budget=8000 admitted 84 rows for max_results=18 while tokens_used described code nobody received. Packing and tokens_used/tokens_remaining now charge the actual per-row payload cost (full mode keeps the materialized byte_length from 1.2). Summaries that merely echo signature[:120] (the no-AI-summarizer fallback) are emitted empty. The documented "token_budget overrides max_results" contract is unchanged.
#329 - search_text limits documented; rejection is instant. The 200-char regex cap, 500-char plain cap, and nested-quantifier rejection are now in the tool schema and docstring, and the checks run in call_tool BEFORE strict-freshness waits and auto-watch reindexing - so a doomed call fails in milliseconds instead of 29s behind a pre-dispatch reindex.
Additive per the 1.x contract. Regression tests in tests/test_v1_108_55.py (15); full suite 4555 passed.
pip install --upgrade jcodemunch-mcp