mirror of
https://github.com/codestable/CodeStable.git
synced 2026-09-19 09:03:09 +08:00
30fecaae5e
收敛 CodeStable 主入口、runtime preflight、goal driver 与 skill 工程化评测闭环。 - 根 cs 对行动请求同轮直转,咨询与介绍保持非执行 - feature/issue/refactor/epic/docs 按仓库事实恢复,旧 stage skill 保留兼容薄壳 - repo-local runtime 支持版本检测、安全自动同步和显式 refresh-runtime - 完成 Codex/Claude marketplace 1.0.2、升级文档和回归/评测证据 验证:215 tests passed;package/runtime/diff checks passed;独立 review 与 QA 无 unresolved blocking/important findings。
1.7 KiB
1.7 KiB
doc_type, issue, status, tags
| doc_type | issue | status | tags | |||
|---|---|---|---|---|---|---|
| issue-fix-note | 2026-07-03-task-agent-lifecycle-cleanup | confirmed |
|
Task Agent Lifecycle Cleanup Fix Note
根因
CodeStable 的共享 Task agent 规则没有覆盖资源生命周期:结果消费后不要求关闭,容量失败时也没有“清理已完成旧 agent 后重试”的恢复路径。
改动
- 在
execution-conventions.md新增Task agent 生命周期:- 本轮 Task agent final result 被消费并落盘后,调用
close_agent或宿主等价关闭动作。 - close 失败不改变已核验 verdict,但要记录 warning、agent 标识和人工清理提示。
- 不关闭 still-running、pending、permission-needed 或结果尚未消费的 agent。
- 不预先批量清理旧 agent;只有 create/spawn 出现
agent thread limit reached/ capacity exhausted 时,才按最老优先关闭已完成且结果已消费或不再需要的旧 agent,并重试一次。
- 本轮 Task agent final result 被消费并落盘后,调用
- 同步直接 Task agent 入口:
cs-goal功能验收 agent。cs-code-review环节 A reviewer。cs-featdesign-review reviewer、QA runner、acceptance auditor。cs-epicroadmap reviewer、goal QA runner、acceptance auditor。
- 新增测试覆盖生命周期关键语义。
验证
pytest -q→146 passed in 41.60spython tools/check-plugin-package.py --root . --json→{"ok": true, "findings": []}git diff --check→ pass- Markdown 行数上限检查 → pass,无超过 300 行的 skill / issue Markdown。
遗留风险
- 不同宿主关闭工具命名可能不同,文档使用
close_agent或等价关闭动作表达。具体执行仍由宿主工具能力决定。