From a1b864c9784721a5b444af786d35e35b7cce2532 Mon Sep 17 00:00:00 2001 From: huangruiteng Date: Wed, 19 Aug 2026 06:43:24 +0800 Subject: [PATCH] fix(quota): preserve monitor poll recorder seam Signed-off-by: huangruiteng --- loopx/cli_commands/quota.py | 1 + loopx/cli_commands/quota_monitor_poll.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/loopx/cli_commands/quota.py b/loopx/cli_commands/quota.py index c4be0f5a8..1351721c7 100644 --- a/loopx/cli_commands/quota.py +++ b/loopx/cli_commands/quota.py @@ -674,6 +674,7 @@ def handle_quota_command( turn_instance_id=heartbeat_turn_id, scheduler_execution_context=scheduler_context, operator_inbox_urgency_projector=operator_inbox_urgency_projector, + monitor_poll_recorder=record_quota_monitor_poll, status_reloader=lambda: collect_status( registry_path=registry_path, runtime_root_override=runtime_root_arg, diff --git a/loopx/cli_commands/quota_monitor_poll.py b/loopx/cli_commands/quota_monitor_poll.py index 2cd22b847..185e47915 100644 --- a/loopx/cli_commands/quota_monitor_poll.py +++ b/loopx/cli_commands/quota_monitor_poll.py @@ -15,7 +15,6 @@ from ..control_plane.scheduler.execution_context import ( SchedulerExecutionContextResolution, ) -from ..quota import record_quota_monitor_poll def _receipt_bound_monitor_todo_id( @@ -57,9 +56,10 @@ def record_quota_monitor_poll_for_cli( ), operator_inbox_urgency_projector: Callable[..., dict[str, object]], status_reloader: Callable[[], dict[str, object]], + monitor_poll_recorder: Callable[..., dict[str, object]], ) -> dict[str, object]: """Execute the monitor-poll CLI request with receipt-bound settlement identity.""" - return record_quota_monitor_poll( + return monitor_poll_recorder( status_payload, goal_id=args.goal_id, registry_path=registry_path,