morluto
1d826f304f
fix(process): bound normalized terminal retention before allocation
Pre-count ordered normalization stages before materializing output. Charge original and normalized terminal bytes independently, omit whole over-budget chunks and preserve exact raw counts plus explicit unknown final sizes. Bound rendered normalization, retain legacy capture compatibility, and remove temporary per-match output arrays.
Validation: UTF-8 surrogate boundaries, shrinking/no-op/literal rules, capture validation and public MCP expansion/equal-size controls with verified cleanup. CPU, process-family memory and token changes are unmeasured; no performance speedup claimed. Nonterminal derived payload bounds remain separate work.
Fixes #3168
2026-10-14 16:54:08 +08:00
..
2026-10-14 16:54:08 +08:00
2026-10-13 22:00:47 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 08:19:07 +08:00
2026-10-11 10:31:49 +08:00
2026-10-12 08:59:14 +08:00
2026-10-14 16:10:46 +08:00
2026-10-14 02:59:54 +08:00
2026-10-14 02:59:54 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 04:47:34 +08:00
2026-10-14 04:47:34 +08:00
2026-10-11 19:20:00 +08:00
2026-10-11 19:20:00 +08:00
2026-10-13 23:47:41 +08:00
2026-10-13 23:47:41 +08:00
2026-10-14 06:19:47 +08:00
2026-10-14 09:47:27 +08:00
2026-10-14 04:47:34 +08:00
2026-09-29 16:29:23 +08:00
2026-10-13 11:42:54 +08:00
2026-10-13 11:42:54 +08:00
2026-07-24 15:22:24 +00:00
2026-10-03 23:22:07 +08:00
2026-10-11 02:31:07 +08:00
2026-10-11 02:21:50 +08:00
2026-10-12 01:00:08 +08:00
2026-10-10 21:04:05 -07:00
2026-10-12 04:33:42 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 08:19:07 +08:00
2026-08-09 11:58:01 +08:00
2026-10-14 08:19:07 +08:00
2026-10-11 11:06:10 +08:00
2026-10-11 02:10:44 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 03:29:34 +08:00
2026-10-14 03:29:34 +08:00
2026-10-11 02:50:06 +08:00
2026-10-14 08:19:07 +08:00
2026-10-14 08:19:07 +08:00
2026-10-06 05:00:32 +08:00
2026-10-09 20:18:52 +08:00
2026-10-09 20:18:52 +08:00
2026-10-14 08:19:07 +08:00
2026-10-11 17:16:48 +08:00