refactor: rename _kernel_turn.py → _orchestration.py + docstring polish (4.12)#43
Merged
Merged
Conversation
…sh (4.12) - Rename runtime/_kernel_turn.py → runtime/_orchestration.py - Rename tests/test_runtime_kernel_turn.py → tests/test_runtime_orchestration.py - Update imports in gate.py, cli.py, engine.py, test file - Update comments in state.py, context_snapshot.py - Rewrite module docstring to stable description (remove migration language) - Add docstrings to _derived_resolution_id(), _result_state_store_for_route() - Fix engine.py module docstring and run_runtime() deprecation notice - No shim, no behavior change, no function rename - 631 tests passed, 49 subtests passed Context-Checkpoint: A Release-Sync: yes Release-Version: 2026-05-26.130923 Release-Date: 2026-05-26
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.
4.12: naming/comment polish
命名决策:
runtime/_kernel_turn.py→runtime/_orchestration.pyexecute_kernel_turn()函数名保留不改_kernel_turn.py兼容 shimDocstring/comment polish:
_orchestration.py模块 docstring 重写(去迁移语言,写稳态描述)_derived_resolution_id()加 docstring(优先级链说明)_result_state_store_for_route()加 docstring(store 选择逻辑说明)engine.py模块 docstring 更正("Top-level orchestration" → legacy wrapper)run_runtime()deprecation docstring 修正Import 更新: gate.py, cli.py, engine.py (3 处), test_runtime_orchestration.py (1 处)
注释更新: state.py, context_snapshot.py
验证: 631 passed, 49 subtests — 0 行为变更
Context-Checkpoint: A
Decision IDs: none
Blocked by: none
Out-of-scope touched: none