Files
dacli/tests
sswandClaude 367d90e4d1 fix(dacli): R3 实战 3 bug 修复 (form create 残留/autoRelease 400/workflow --ai 兜底)
- form create --ai 失败留 state=0 残留 (R3 P0)
  - 加 src/commands/form/_cleanup.ts + cleanupResidueForms helper
  - 集成到 wrapCommand 4 个 ctx.fail 路径 (T3 回读失败 / release 重试失败 / 外层 catch)
  - 默认 ON, --no-cleanup-on-fail 关闭
- form create --autoRelease 报 400 (R1 P6.2 + R3 P1)
  - release 失败首次 400 时 GET 一次 formInfo 刷新后端缓存, 再 retry release
  - 现有 retry + 指数 backoff (500/1000/2000ms) 保留, additive safety net
- workflow create --ai lint 失败直接 throw (R1 P5 + R3 P2)
  - 加 src/commands/workflow/_auto_assign_admin.ts + autoAssignAdmin helper
  - semanticLint 失败全为 missing assignee/candidate 类时, 自动注入 admin 重 lint
  - 兜底后仍失败才 throw (非 assignee 类错保持原 throw)
- 2 vitest tests: form_create_cleanup_residue (8 cases), workflow_auto_assign_admin (7 cases)
  - 含端到端 R3 实战场景: 4 userTask 缺 PO → autoAssignAdmin → re-lint OK
- workflow CreateOpts 加 forceLint/keepOnFail 字段 (历史缺失, TS 兜底)
- form CreateOpts/DeleteOpts 加 force 字段 (历史缺失, TS 兜底)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2026-07-29 17:39:39 +08:00
..