@miller-tech/uap 2.39.0 → 2.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miller-tech/uap",
3
- "version": "2.39.0",
3
+ "version": "2.39.1",
4
4
  "description": "Autonomous AI agent memory system with CLAUDE.md protocol enforcement",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1621,11 +1621,23 @@ PROXY_EMPTY_TOOL_LOOP_BREAK = int(
1621
1621
  # ever-growing transcript (observed: ctx 936%, model emits tool_calls 18/min
1622
1622
  # despite tool_choice=auto). After this many consecutive turns at/above the
1623
1623
  # ratio, strip tools entirely so the only possible response is a terminal text
1624
- # summary (end_turn), which ends the client's agentic loop. Ratio is set high
1625
- # enough that only a true runaway trips it — a merely-full session tops out near
1626
- # 100-130%, never 300%. 0 disables.
1624
+ # summary (end_turn), which ends the client's agentic loop.
1625
+ #
1626
+ # Ratio sits above the merely-full band but inside the runaway band. A
1627
+ # merely-full session tops out near 100-141%: a client that honestly believes
1628
+ # a ~200k window (PROXY_CLIENT_ASSUMED_WINDOW) and compacts at 92.5% sends at
1629
+ # most ~185k against a 131,072 rail. A window-blind runaway plateaus wherever
1630
+ # its own belief caps it, and that plateau can sit far below 300%: live
1631
+ # 2026-11-06 (droid + flash-next, cognition-engine), a client with no
1632
+ # maxContextLimit (assumed 250k) ramped 132% -> 198% in 4 minutes and then sat
1633
+ # at 190-198% for 4+ HOURS — every turn CRITICAL-PRUNEd blind to ~6 messages
1634
+ # (~24-40k actually sent upstream), findings evaporating, the model re-reading
1635
+ # the same files — because the 3.0 gate was written for 936% runaways and this
1636
+ # one never crossed 200%. 1.6 clears the merely-full band (141% plus one
1637
+ # ~19k-token turn of headroom) while ending that class of treadmill within
1638
+ # STREAK turns. 0 disables.
1627
1639
  PROXY_RAW_CTX_FINALIZE_RATIO = float(
1628
- os.environ.get("PROXY_RAW_CTX_FINALIZE_RATIO", "3.0")
1640
+ os.environ.get("PROXY_RAW_CTX_FINALIZE_RATIO", "1.6")
1629
1641
  )
1630
1642
  PROXY_RAW_CTX_FINALIZE_STREAK = int(
1631
1643
  os.environ.get("PROXY_RAW_CTX_FINALIZE_STREAK", "2")