From b3a5395826f3be472bb7e23bb1fcc2d3620f2e07 Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Fri, 16 Oct 2026 01:41:27 +0800 Subject: [PATCH 1/4] test(release): align priority and recovery checks and isolate worker runtimes Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- CONTRIBUTING.md | 1 + examples/blocker-push-runtime-smoke.py | 3 ++- .../control-plane-integrated-canary-smoke.py | 2 +- .../control_plane/quota-no-git-status-smoke.py | 2 +- .../runtime-handoff-status-read-path-smoke.py | 6 ++++-- examples/control_plane/todo-cli-smoke.py | 16 ++++++++-------- .../todo-concurrent-write-lock-smoke.py | 4 ++-- .../control_plane/todo-lifecycle-cli-smoke.py | 8 ++++---- examples/install-local-smoke.py | 3 ++- .../project/global-manager-command-cli-smoke.py | 6 +++--- examples/project/project-agent-adoption-smoke.py | 2 +- .../test_control_plane_import_boundaries.py | 14 +++++++------- .../test_source_session_registry_denial.py | 8 +++++--- tests/conftest.py | 16 ++++++++++++++++ .../test_advancement_frontier_classification.py | 2 +- .../test_canonical_todo_writer_isolation.py | 2 +- .../test_canonical_update_dispatch.py | 2 +- tests/control_plane/test_chat_reviewed_create.py | 4 ++-- .../control_plane/test_cold_source_import_cli.py | 3 ++- .../test_goal_attention_integration.py | 2 +- .../test_local_coordination_authority.py | 2 +- .../test_native_user_completion_update.py | 2 +- .../test_new_goal_storage_defaults.py | 2 +- .../test_promoted_archive_retention.py | 2 +- .../test_runtime_shadow_writer_capture.py | 2 +- .../control_plane/test_shadow_registry_source.py | 2 +- .../test_steward_goal_notice_integration.py | 2 +- .../test_todo_handoff_retirement_contract.py | 2 +- .../test_todo_list_read_transport.py | 6 +++++- tests/test_collaboration_mcp.py | 2 +- tests/test_independent_delegation_validation.py | 2 +- tests/test_manager_context_tracking.py | 4 ++-- 32 files changed, 82 insertions(+), 54 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1975e0bab3..4216452681 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -184,6 +184,7 @@ touch, mention it in the PR instead of fixing it there. | --- | --- | --- | --- | | `python-tests.yml` | every PR | yes (`merge-gate`) | lint, mypy, sharded pytest, TypeScript core and coverage, minimum Node.js, Windows PowerShell, dashboard presentation | | `dco.yml` | every PR | yes (`Sign-off`) | `Signed-off-by` on contribution commits; verified GitHub-generated two-parent merges are exempt | +| `ci-maintenance.yml` | closed or updated PR (`pull_request_target`, trusted base code only) | no | cancels obsolete Python qualification runs after rechecking the PR and source branch | | `dependency-review.yml` | every PR | no | dependency changes introduced by the PR | | `postgresql-integration.yml` | control-plane or npm lockfile paths | no | PostgreSQL authority store and service on a temporary instance | | `package-smoke.yml` | extension package paths | no | extension packages install, entrypoints, and example schemas | diff --git a/examples/blocker-push-runtime-smoke.py b/examples/blocker-push-runtime-smoke.py index f847f6af4a..a4372be45a 100644 --- a/examples/blocker-push-runtime-smoke.py +++ b/examples/blocker-push-runtime-smoke.py @@ -217,7 +217,8 @@ def main() -> int: # The bootstrap rule is shared from heartbeat.rules after #4201; assert the # current compact sentence instead of the retired per-shell phrasing. assert "reuse the value on retries" in compact_prompt, prompt - assert "guard; 2 stalls->replan" in compact_prompt, prompt + assert "re-enter guard." in compact_prompt, prompt + assert "2 stalls->replan" not in compact_prompt, prompt assert "Exact monitor settlement=no refresh/spend" in compact_prompt, prompt assert "Admitted work: settlement_plan even if artifacts unchanged" in compact_prompt, prompt # The shipped writeback sentence moved to the mixed-language form in the diff --git a/examples/control_plane/control-plane-integrated-canary-smoke.py b/examples/control_plane/control-plane-integrated-canary-smoke.py index 63049aa45b..a784e4f554 100644 --- a/examples/control_plane/control-plane-integrated-canary-smoke.py +++ b/examples/control_plane/control-plane-integrated-canary-smoke.py @@ -31,7 +31,7 @@ CANARY_TODO_ID = "todo_integrated_canary" CANARY_TODO_TITLE = "Design bounded status/quota/review-packet/Todo/read-path canary" SUCCESSOR_TODO_TITLE = "Continue integrated Markdown successor routing canary" -MARKDOWN_CONTINUATION_TITLE = "Continue same-agent markdown continuation through status and quota." +MARKDOWN_CONTINUATION_TITLE = "[P1] Continue same-agent markdown continuation through status and quota." MONITOR_TODO_ID = "todo_integrated_due_monitor" MONITOR_TARGET_KEY = "integrated-due-monitor-watch" VALIDATED_PROGRESS_CLASSIFICATION = "integrated_canary_validated_progress" diff --git a/examples/control_plane/quota-no-git-status-smoke.py b/examples/control_plane/quota-no-git-status-smoke.py index 6cf51ef55d..6ff81a01a5 100644 --- a/examples/control_plane/quota-no-git-status-smoke.py +++ b/examples/control_plane/quota-no-git-status-smoke.py @@ -118,7 +118,7 @@ def main() -> int: ) assert quota.get("status") != "quota_collection_failed", quota assert quota["should_run"] is True, quota - assert quota["recommended_action"] == "Solve the no-git quota fixture.", quota + assert quota["recommended_action"] == "[P1] Solve the no-git quota fixture.", quota return 0 diff --git a/examples/control_plane/runtime-handoff-status-read-path-smoke.py b/examples/control_plane/runtime-handoff-status-read-path-smoke.py index 7ef879820c..8f57342ea3 100644 --- a/examples/control_plane/runtime-handoff-status-read-path-smoke.py +++ b/examples/control_plane/runtime-handoff-status-read-path-smoke.py @@ -206,9 +206,11 @@ def assert_status_read_path( runtime_root=runtime_root, ) item = status_item(payload) - assert item["status"] == POST_HANDOFF_CLASSIFICATION, item + assert item["status"] == "active_state_agent_todo", item + assert item["source"] == "active_state", item + assert item.get("stale_latest_run_warning") is None, item assert item["waiting_on"] == "codex", item - assert item["recommended_action"] == POST_HANDOFF_ACTION, item + assert item["recommended_action"] == f"[P1] {TODO_TITLE}", item assert item["project_asset"]["active_state_next_action"] == GOAL_NEXT_ACTION, item assert item["project_asset"]["latest_validation"]["classification"] == POST_HANDOFF_CLASSIFICATION, item assert item["project_asset"]["latest_validation"]["summary"] == POST_HANDOFF_ACTION, item diff --git a/examples/control_plane/todo-cli-smoke.py b/examples/control_plane/todo-cli-smoke.py index 693129e18f..822b5038ab 100644 --- a/examples/control_plane/todo-cli-smoke.py +++ b/examples/control_plane/todo-cli-smoke.py @@ -22,13 +22,13 @@ GOAL_ID = "todo-cli-goal" -USER_TODO = "Review the owner decision checklist before approving delivery." -SCOPED_USER_GATE = "Choose the side-agent publishing channel before posting externally." -AGENT_TODO = "Summarize the read-only evidence after the user checklist is done." +USER_TODO = "[P1] Review the owner decision checklist before approving delivery." +SCOPED_USER_GATE = "[P1] Choose the side-agent publishing channel before posting externally." +AGENT_TODO = "[P1] Summarize the read-only evidence after the user checklist is done." AGENT_TODO_NOTE = "Start from the public-safe evidence summary." UPDATED_AGENT_TODO_NOTE = "Preserve the validated summary as the handoff context." -UPDATED_AGENT_TODO = "Publish the compact evidence summary after validation passes." -MONITOR_TODO = "Monitor the release-note draft PR until the next scheduled check." +UPDATED_AGENT_TODO = "[P1] Publish the compact evidence summary after validation passes." +MONITOR_TODO = "[P1] Monitor the release-note draft PR until the next scheduled check." MONITOR_DUE_AT = "2026-01-02T00:00:00+00:00" MONITOR_NEXT_DUE_AT = "2026-01-03T00:00:00+00:00" MONITOR_EXPIRES_AT = "2026-01-04T00:00:00+00:00" @@ -299,7 +299,7 @@ def main() -> int: assert "has no coordination.registered_agents" in legacy_claim["error"], legacy_claim assert "Register this peer identity first" in legacy_claim["error"], legacy_claim assert "--registered-agent codex-main-control" in legacy_claim["error"], legacy_claim - wrapped_agent_todo = "- [ ] Summarize the read-only evidence after the user\n checklist is done." + wrapped_agent_todo = "- [ ] [P1] Summarize the read-only evidence after the user\n checklist is done." state_file.write_text( state_file.read_text(encoding="utf-8").replace(f"- [ ] {AGENT_TODO}", wrapped_agent_todo), encoding="utf-8", @@ -351,8 +351,8 @@ def main() -> int: } ], metadata_payload after_metadata = state_file.read_text(encoding="utf-8") - assert after_metadata.count("- [ ] Summarize the read-only evidence after the user") == 1, after_metadata - agent_block_start = after_metadata.index("- [ ] Summarize the read-only evidence after the user") + assert after_metadata.count("- [ ] [P1] Summarize the read-only evidence after the user") == 1, after_metadata + agent_block_start = after_metadata.index("- [ ] [P1] Summarize the read-only evidence after the user") agent_metadata_start = after_metadata.index("