Skip to content

fix(scheduler): dispatch stranded peer handoffs - #4312

Closed
huangruiteng wants to merge 3 commits into
mainfrom
codex/agent-handoff-dispatch-4311
Closed

huangruiteng wants to merge 3 commits into
mainfrom
codex/agent-handoff-dispatch-4311

refactor(quota): bound heartbeat receipt orchestration

1308566
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 13, 2026 in 2m 35s

Annotations

Check failure on line 60 in loopx/capabilities/manager_context/agent_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TTzkcuVuZeQlLGO&open=AaCZ5TTzkcuVuZeQlLGO&pullRequest=4312

Check failure on line 550 in loopx/control_plane/todos/quota_summary.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TXukcuVuZeQlLGP&open=AaCZ5TXukcuVuZeQlLGP&pullRequest=4312

Check warning on line 251 in tests/test_manager_context_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TbVkcuVuZeQlLGS&open=AaCZ5TbVkcuVuZeQlLGS&pullRequest=4312

Check warning on line 299 in tests/test_manager_context_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TbVkcuVuZeQlLGT&open=AaCZ5TbVkcuVuZeQlLGT&pullRequest=4312

Check failure on line 115 in loopx/capabilities/manager_context/agent_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal ".lock" 4 times.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TTzkcuVuZeQlLGM&open=AaCZ5TTzkcuVuZeQlLGM&pullRequest=4312

Check warning on line 238 in tests/control_plane/test_quota_selection.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5Ta1kcuVuZeQlLGQ&open=AaCZ5Ta1kcuVuZeQlLGQ&pullRequest=4312

Check warning on line 250 in tests/test_manager_context_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Split this composite assertion into separate assertions.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TbVkcuVuZeQlLGR&open=AaCZ5TbVkcuVuZeQlLGR&pullRequest=4312

Check failure on line 274 in loopx/capabilities/manager_context/agent_handoff.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "agent handoff receipt scope mismatch" 3 times.

See more on https://sonarcloud.io/project/issues?id=huangruiteng_loopx&issues=AaCZ5TTzkcuVuZeQlLGN&open=AaCZ5TTzkcuVuZeQlLGN&pullRequest=4312