[ccloop] TODO:借鉴其他项目的优点,改进ccloop#9
Open
yuzebin wants to merge 2 commits into
Open
Conversation
…es、stages/hooks、capabilities、reference、policy、guardrails)集成到 solver 主流程。核心改进: 1. **状态机驱动** — issue 生命周期从简单标签升级为完整状态转换(todo→running→review/done/stuck/blocked) 2. **任务类型分流** — test/investigate 类型不创建 PR,只回写报告;code 类型走完整 PR 流程 3. **依赖预检** — 处理前检查引用的前置 issue 是否已完成 4. **Guardrails 集成** — 输入/输出/diff 三层安全校验接入主流程 5. **能力+引用上下文注入** — CC prompt 自动注入能力描述和被引用 issue 上下文 6. **阶段钩子+Tracing** — solve/review/commit 三阶段前后钩子执行,trace 记录 7. **Claim 机制** — machine-readable claim comment 支持多 worker 协调 8. **Policy 加载** — .ccloop-policy.env 项目策略自动加载并应用 194 测试全部通过,含 2 个新增状态过滤测试 Closes #6
Co-Authored-By: Claude Opus 4.7 <[email protected]>
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.
自动解决 Issue #6
★ Insight ─────────────────────────────────────本次改造的核心思路:"模块建好了但没接线" → 将 6 个孤立模块接入 solver 主流程。这是典型的"集成"而非"新增"工作。AI Dispatcher 的设计哲学(状态在 labels、归属在 comments、任务类型分流)现在完整体现在 ccloop 的执行路径中。
─────────────────────────────────────────────────RESULT:{"type":"feature","summary":"借鉴 AI Dispatcher 设计,将 ccloop 已有的 6 个孤立模块(state_machine、task_types、stages/hooks、capabilities、reference、policy、guardrails)集成到 solver 主流程。核心改进:\n1. 状态机驱动 — issue 生命周期从简单标签升级为完整状态转换(todo→running→review/done/stuck/blocked)\n2. 任务类型分流 — test/investigate 类型不创建 PR,只回写报告;code 类型走完整 PR 流程\n3. 依赖预检 — 处理前检查引用的前置 issue 是否已完成\n4. Guardrails 集成 — 输入/输出/diff 三层安全校验接入主流程\n5. 能力+引用上下文注入 — CC prompt 自动注入能力描述和被引用 issue 上下文\n6. 阶段钩子+Tracing — solve/review/commit 三阶段前后钩子执行,trace 记录\n7. Claim 机制 — machine-readable claim comment 支持多 worker 协调\n8. Policy 加载 — .ccloop-policy.env 项目策略自动加载并应用\n194 测试全部通过,含 2 个新增状态过滤测试","success":true,"files":["ccloop_lib/solver.py","ccloop_lib/github_ops.py","ccloop_lib/promp
修改文件
cloop_lib/github_ops.pyccloop_lib/prompts.pyccloop_lib/solver.pytests/test_solver_flow.py由 ccloop 自动创建,请审查后合并。