Skip to content

refactor(status): move status contract projection into bounded module - #2967

Merged
huangruiteng merged 1 commit into
mainfrom
codex/m6-q4-status-contract-20260809
Aug 8, 2026
Merged

refactor(status): move status contract projection into bounded module#2967
huangruiteng merged 1 commit into
mainfrom
codex/m6-q4-status-contract-20260809

Conversation

@huangruiteng

Copy link
Copy Markdown
Owner

Change

Q4 first real replacement slice: build_status_contract and build_contract_health_projection move into loopx/control_plane/status/contract_projection.py, including their status-contract constants.

loopx/status.py keeps the public compatibility functions as thin local wrappers and retains the public constants that existing smokes read from the facade.

Surfaces

  • loopx/control_plane/status/contract_projection.py: new bounded status presentation module.
  • loopx/status.py: facade wrappers delegate to the bounded module.

Validation

  • Full pytest: 2306 passed, 2 skipped.
  • Focused status/contract + import-boundary + maintainability ratchet: 26 passed.
  • Ruff: All checks passed.
  • loopx canary premerge --from-git-diff: passed, selected=17 failures=0, self_merge_allowed=true.

No failures or skips beyond the pre-existing suite skips. No manual holds.

Routing

Route: codex-side-bypass; not assigned to codex-quality-qualification.

@huangruiteng huangruiteng left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVED

head b9d429643。这是对 PR #2967 的完整 owner review。该 PR 是 M6 Q4 的第一片真实替换:build_status_contractbuild_contract_health_projection 迁入 loopx/control_plane/status/contract_projection.pyloopx.status 保留薄兼容壳。

验证

  • 全量 pytest:2306 passed, 2 skipped
  • 聚焦 status/contract + import-boundary + maintainability ratchet:26 passed
  • ruff:通过
  • loopx canary premerge --from-git-diffselected=17 failures=0self_merge_allowed=true
  • GitHub checks:dependency-review / pytest / build 全部通过

结论

无 blocker。状态 contract 投影现在位于 bounded status context,公共 facade 行为保持。按仓库 merge policy 路由合并。

@huangruiteng
huangruiteng merged commit 7049eb9 into main Aug 8, 2026
5 checks passed
@huangruiteng
huangruiteng deleted the codex/m6-q4-status-contract-20260809 branch August 8, 2026 22:32
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