feat(ship): add stage audit trail and sortable ids

This commit is contained in:
2026-10-14 10:57:16 +08:00
parent 4814bc1026
commit 57879cffdd
10 changed files with 371 additions and 4 deletions
+3 -1
View File
@@ -8,7 +8,7 @@ import shutil
import sys
from pathlib import Path
from ship_lib import check_ship_id, skill_dir
from ship_lib import check_ship_id, ensure_stage_layout, skill_dir
from validate_ship import validate_ship_dir
@@ -94,6 +94,8 @@ def create_ship(
(spec_dir / "decisions.yaml").write_text("[]\n", encoding="utf-8")
(spec_dir / "risks.yaml").write_text("[]\n", encoding="utf-8")
ensure_stage_layout(dest)
issues = validate_ship_dir(dest)
if issues:
shutil.rmtree(dest)