feat(kernel): flow-control-tool - #126
Merged
Merged
Conversation
- flow_control 工具(spec §2.3):create-flow / status / planning-start / planning-pr / stage-start / stage-complete / complete-flow / cancel-flow / takeover - create-flow:validateTitle → Draft Parent Issue(目标/验收/阶段 checklist)→ bindSession 双 session 检查 → 最小 goal;绑定已有 Issue 时先做 legacy FlowRun 检测(§11.2) - status:聚合 Flow Record + 子任务 + 关联 PR checks - planning-start/planning-pr:planning worktree 与 Planning PR(Planning Baseline) - stage 门禁(§2.3):requirements 基线确认一次、design 后才允许 task、高风险 design/tasks 暂停 - complete-flow 仅 goal-verify(caller 校验 + goal complete 门禁);cancel/takeover 需 user_confirmed - legacy.ts:cabinet marker 检测,命中返回 LEGACY_FLOW_DETECTED(不迁移,提示用 0.x) - caller:primary 全量(除 complete-flow);提供 createFlowControlTool(deps) + registerFlowControl, server.ts 接线留待后续批次(旧版 createFlowControlTool 由批 15 清理)
devcxl
force-pushed
the
feat/flow-control-tool
branch
from
July 31, 2026 20:19
748ebcb to
05c397d
Compare
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.
flow-control-tool
src/kernel/flow.ts— flow 纯函数(stage 门禁矩阵、status 聚合、planning)src/kernel/legacy.ts— legacy FlowRun 检测(不迁移只提示)src/plugin/flow-control.ts— flow_control 九 op + caller 门禁 + registerFlowControlCloses #107