From 076ac2a44e5269eec496317a1f7ccf02693e2d3c Mon Sep 17 00:00:00 2001 From: huangruiteng <14976749+huangruiteng@users.noreply.github.com> Date: Mon, 28 Sep 2026 04:42:12 +0800 Subject: [PATCH] test(scheduler): retain canonical authority in Codex projection Signed-off-by: huangruiteng <14976749+huangruiteng@users.noreply.github.com> --- tests/control_plane/test_scheduler_execution_context.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/control_plane/test_scheduler_execution_context.py b/tests/control_plane/test_scheduler_execution_context.py index ad246061d8..1277368948 100644 --- a/tests/control_plane/test_scheduler_execution_context.py +++ b/tests/control_plane/test_scheduler_execution_context.py @@ -264,7 +264,7 @@ def test_missing_scheduler_context_fails_closed() -> None: assert hint["execution_phase"]["disposition"] == "contract_error" -def test_codex_app_runtime_profile_preserves_host_backoff() -> None: +def test_codex_app_runtime_profile_preserves_host_backoff_and_authority() -> None: context = scheduler_execution_context_for_runtime_profile( SchedulerRuntimeProfile.CODEX_APP_HEARTBEAT ) @@ -300,7 +300,10 @@ def test_codex_app_runtime_profile_preserves_host_backoff() -> None: "codex_app_stateful_backoff_v0" ) assert legacy["stateful_backoff"]["state_key"] == ( - "scheduler_hint.codex_app.stateful_backoff" + "scheduler_hint.app_automation.stateful_backoff" + ) + assert legacy["ack_hint"]["args"]["state_key"] == ( + canonical["ack_hint"]["args"]["state_key"] ) assert legacy["ack_hint"]["schema_version"] == ( "codex_app_scheduler_ack_hint_v0"