chore: sync pouch skill workflows

This commit is contained in:
2026-10-14 10:58:03 +08:00
parent 57879cffdd
commit 125bfe0c23
16 changed files with 277 additions and 57 deletions
+2 -1
View File
@@ -17,7 +17,8 @@
## Agent 会做什么
在 `.pouch/ship/<ship-id>/` 建立或更新记录,把测试、产物和部署写成指针,而不是另写一套缺陷任务。
在 `.pouch/ship/<ship-id>/` 建立或更新记录,把测试、产物和部署写成指针。三个入口的
主会话只编排,具体步骤开新 agent。
## 如何判断完成
+11
View File
@@ -141,6 +141,17 @@ def validate_ship_dir(ship_dir: Path) -> list[str]:
if state not in DELIVERY_STATE:
_issue(issues, f"delivery.state 无效: {state!r}")
manager = data.get("manager")
if manager is not None:
mgr = _mapping(manager, "manager", issues)
if mgr is not None:
result = mgr.get("lastResult")
if result not in (None, "pass", "fail", "blocked", "ask"):
_issue(issues, f"manager.lastResult 无效: {result!r}")
in_flight = mgr.get("inFlight")
if in_flight not in (None, "") and not isinstance(in_flight, str):
_issue(issues, "manager.inFlight 必须是字符串或空")
evidence = _mapping(data.get("evidence"), "evidence", issues)
if evidence is not None:
issues.extend(_validate_evidence(evidence, _project_root(ship_dir)))