refactor(heartbeat): move task body renderers into bounded module - #2979
Merged
Conversation
huangruiteng
commented
Aug 9, 2026
huangruiteng
left a comment
Owner
Author
There was a problem hiding this comment.
Review: APPROVED
head 4664d0b5c。这是对 PR #2979 的完整 owner review。该 PR 是 M6 Q5 的第一片真实替换:heartbeat task body 与 markdown renderers 迁入 loopx/control_plane/heartbeat/task_body.py,loopx/heartbeat_prompt.py 降到 878 行并保留薄兼容壳。
验证
- 全量 pytest:
2306 passed, 2 skipped - 聚焦 heartbeat/host/agent/import-boundary/maintainability:
109 passed - ruff:通过
loopx canary premerge --from-git-diff:selected=15 failures=0,self_merge_allowed=true- GitHub checks:dependency-review / pytest / build 全部通过
结论
无 blocker。heartbeat task body renderers 现在位于 bounded heartbeat 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
Q5 first heartbeat-prompt extraction slice: task-body and markdown renderers move from
loopx/heartbeat_prompt.pyintoloopx/control_plane/heartbeat/task_body.py:render_heartbeat_task_bodyrender_brief_heartbeat_task_bodyrender_compact_heartbeat_task_bodyrender_visible_goal_task_bodyrender_traex_visible_goal_task_body_render_goal_task_bodyrender_ark_managed_agent_goal_task_bodyrender_thin_heartbeat_task_bodyloopx/heartbeat_prompt.pykeeps thin compatibility wrappers and drops from 1565 lines to 878 lines, satisfying the M6 heartbeat_prompt.py < 1200 gate.Surfaces
loopx/control_plane/heartbeat/task_body.pyloopx/heartbeat_prompt.pyValidation
2306 passed, 2 skipped.109 passed.All checks passed.loopx canary premerge --from-git-diff: passed,selected=15 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.