Skip to content

Add merge train controller run-once endpoint#625

Merged
cbusillo merged 1 commit into
mainfrom
improve/merge-train-one-action
May 15, 2026
Merged

Add merge train controller run-once endpoint#625
cbusillo merged 1 commit into
mainfrom
improve/merge-train-one-action

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • Add POST /v1/work-graph/merge-train/controller/run-once as the one-action controller for full batch merge-train progression.
  • Let the controller advance one safe phase per call across stack collapse, collapsed-root admission, candidate plan/build/observe, landing plan, landing, and stack child disposition.
  • Reuse DB-backed merge-train records and policy-backed auth/token resolution; reject stale policy digests before advancing stored candidate or landing records.
  • Document the controller as the preferred operator entrypoint.

Verification

  • uv run --extra dev ruff format --check control_plane/service.py tests/test_service.py
  • uv run --extra dev ruff check control_plane/service.py tests/test_service.py
  • uv run --extra dev mypy control_plane/service.py tests/test_service.py
  • uv run python -m unittest tests.test_service.LaunchplaneServiceTests.test_merge_train_controller_advances_unstacked_batch_flow tests.test_service.LaunchplaneServiceTests.test_merge_train_controller_advances_stacked_batch_flow tests.test_service.LaunchplaneServiceTests.test_merge_train_controller_rejects_candidate_after_policy_digest_changes
  • uv run python -m unittest tests.test_service.LaunchplaneServiceTests tests.test_merge_train_stack_collapse tests.test_merge_train_worker tests.test_merge_train
  • uv run python -m unittest

Inspection

  • Targeted PyCharm inspection completed for control_plane/service.py and tests/test_service.py; it reported existing broad warnings in the large files, not a new blocking error in the controller path.

@cbusillo cbusillo merged commit 0eb0675 into main May 15, 2026
12 checks passed
@cbusillo cbusillo deleted the improve/merge-train-one-action branch May 15, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant