Skip to content

Fast checks every turn; screenshots and review once when ready (0.8.0) - #8

Merged
davidxiaodev merged 2 commits into
mainfrom
claude/fast-loop-final-verify
Dec 3, 2026
Merged

davidxiaodev merged 2 commits into
mainfrom
claude/fast-loop-final-verify

Conversation

@davidxiaodev

Copy link
Copy Markdown
Owner

为什么

0.7 的 Stop 钩子把每一轮都当成"改完了"来检查:完整 run-verify(截图、e2e、inspect),standard 以上还要新评审和证据包。这些都绑定内容哈希,下一次改动就作废,所以一个改了五轮的改动要付五次截图和五次评审。

改了什么

  • 检查可以标 "stage": "final";模板默认标了 look、functional、inspect、security 和 RN 模拟器检查。
  • run-verify --fast 跳过它们,lane 记为 fast;不加 --fast 才算 pass。
  • Stop 钩子(默认 enforce)每轮只在快检查没跑/没过/过期时拦;final 检查、评审、验收、证据包缺什么用 systemMessage 告诉用户,记为 final-pending。DX_WORKFLOW_GATE=full 保留 0.7 行为。
  • review-brief 拒绝 fast 运行;make-evidence 把它标为"未就绪";CI 仍跑全部检查。
  • skills:实现阶段用 --fast,改完后完整验证一次;原型挑选仍在前面。验收文件只在 Medium/Large 写(和 0007 一致)。修了 frontend verify.md 里断掉的一句、README 里重复的一段。
  • ADR 0008,版本 0.8.0。

测试

npm test:90/90 通过(新增 test/stages.test.mjs 5 个用例;原有钩子测试在 full 模式下跑,行为不变)。


Generated by Claude Code

The Stop gate judged every turn as if the change were finished: the full
run-verify (Playwright screenshots, e2e, inspect) and, for standard and
strict changes, a fresh review and evidence pack. The next edit threw all
of it away, so a change built over several turns paid for each slow step
several times.

- Checks can be marked "stage": "final"; the template marks look,
  functional, inspect and security (and the RN simulator checks).
- run-verify --fast skips them and records the lane as "fast".
- The Stop gate (default enforce) blocks only on missing, failing or stale
  fast checks; what the final verification lacks is shown to the person
  and logged as final-pending. DX_WORKFLOW_GATE=full keeps 0.7 behaviour.
- review-brief refuses a fast run; make-evidence marks it not ready.
- Skills: implement with --fast, verify once when ready; acceptance only
  for Medium and Large (matching 0007); fix a broken sentence in
  frontend verify.md and a duplicated README paragraph.
- ADR 0008, version 0.8.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JaMb11KUWULtVrTGwgNRJt
run-verify records the real path of the run directory (/private/var/...),
so stripping the project root from it failed when the root was given
through the /var symlink. Read the file at the recorded path instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JaMb11KUWULtVrTGwgNRJt
@davidxiaodev
davidxiaodev merged commit a808e94 into main Dec 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants