refactor(status): move status contract projection into bounded module - #2967
Merged
Conversation
huangruiteng
commented
Aug 8, 2026
huangruiteng
left a comment
Owner
Author
There was a problem hiding this comment.
Review: APPROVED
head b9d429643。这是对 PR #2967 的完整 owner review。该 PR 是 M6 Q4 的第一片真实替换:build_status_contract 与 build_contract_health_projection 迁入 loopx/control_plane/status/contract_projection.py,loopx.status 保留薄兼容壳。
验证
- 全量 pytest:
2306 passed, 2 skipped - 聚焦 status/contract + import-boundary + maintainability ratchet:
26 passed - ruff:通过
loopx canary premerge --from-git-diff:selected=17 failures=0,self_merge_allowed=true- GitHub checks:dependency-review / pytest / build 全部通过
结论
无 blocker。状态 contract 投影现在位于 bounded status context,公共 facade 行为保持。按仓库 merge policy 路由合并。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Q4 first real replacement slice:
build_status_contractandbuild_contract_health_projectionmove intoloopx/control_plane/status/contract_projection.py, including their status-contract constants.loopx/status.pykeeps 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
2306 passed, 2 skipped.26 passed.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 tocodex-quality-qualification.