@@ -82,13 +82,13 @@ def test_capture_preserves_full_dispatcher_and_envelope_needs_explicit_opt_in(tm
8282 no_memory = dict (args , reward_memory_enabled = False )
8383 ordinary = build_heartbeat_prompt (** no_memory )
8484 captured_only = build_heartbeat_prompt (** no_memory , decision_output_root = tmp_path )
85- assert ordinary ['interface_budget' ]['max_chars' ] == 4_500
86- assert captured_only ['interface_budget' ]['max_chars' ] == 4_500
85+ assert ordinary ['interface_budget' ]['max_chars' ] == 4_900
86+ assert captured_only ['interface_budget' ]['max_chars' ] == 4_900
8787 oversized = build_heartbeat_prompt (
8888 ** no_memory , decision_output_root = tmp_path , turn_envelope = True ,
89- agent_scopes = [letter * 320 for letter in 'stu ' ],
89+ agent_scopes = [letter * 320 for letter in 'stuv ' ],
9090 )
91- assert oversized ['interface_budget' ]['max_chars' ] == 4_900
91+ assert oversized ['interface_budget' ]['max_chars' ] == 5_300
9292 assert oversized ['interface_budget' ]['within_budget' ] is False
9393 for overrides in (dict (turn_instance_id = None ), dict (thin = False , full = True ),
9494 dict (runtime_profile = 'codex_app_ssh_goal' )):
@@ -163,7 +163,7 @@ def test_bound_captured_prompt_fits_budget_without_reward_memory(
163163 assert '--reward-memory-reflection-json' not in body
164164 assert str (runtime ) in body and str (capture ) in body
165165 assert payload ['turn_instance_id' ] == TURN_ID
166- assert payload ['interface_budget' ]['max_chars' ] == 4_900
166+ assert payload ['interface_budget' ]['max_chars' ] == 5_300
167167 assert payload ['interface_budget' ]['within_budget' ], payload ['interface_budget' ]
168168 assert len (result .stdout ) <= 5_400 # Shipped Agent JSON, not generator metadata.
169169 assert 'using inline ACK argv' in body
0 commit comments