Skip to content

Bring 0.4.0 to main and sync the README - #4

Merged
davidxiaodev merged 5 commits into
mainfrom
claude/0.4-to-main
Nov 18, 2026
Merged

davidxiaodev merged 5 commits into
mainfrom
claude/0.4-to-main

Conversation

@davidxiaobj

@davidxiaobj davidxiaobj commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

PR #3 (0.4.0) was merged into claude/p0-verification-trust, its stacked base, after #2 had already merged, so main never got it. This PR brings it to main, together with:

8162291  Reviews that converge, a project checklist and a ratchet (0.4.0)   ← from #3
718917f  Sync README with 0.3 and 0.4; fix stale freshness wording in skills
(new)    README and CI template: repository renamed to davidxiaodev/workflow
(new)    Fix treeHash missing same-size edits made in the index's second

Bug fix (found as a CI flake on this PR): treeHash copies git's index to reuse its stat cache, but the copy got a fresh mtime. Git trusts cached stat data only for files older than the index, so an edit that kept the file size and landed in the same second as the last index write was read as unchanged when hashed a second later, and verification could bind to content that was not on disk. The copy now keeps the index's timestamps. The new regression test sets up that exact timing and fails without the fix.

README regrouped: flow, merge tiers (silenced checks, sensitive paths, merge danger), how checks stay out of the change's reach, review brief and rounds, ratchet and checklist format, Stop gate and commit stamps, CI, setup and upgrades, environment variables, files, development and release. Both SKILL.md "Done means" and ui verify.md now describe tree-bound verification instead of "newer than".

Evidence

  • npm test: 53 pass, 0 fail, four times in a row locally; the previously flaky test passed 48/48 parallel runs (it failed 7/48 before the fix). CI green on Node 20/22, Linux/macOS.
  • Every README claim checked against the code (depth thresholds, guard list, base resolution, commands and flags).

Merge Danger

Door: two-way.

Blast Radius: the 0.4.0 changes described in #3, plus docs. After merging, tag v0.4.0: the CI template pins it.

How to revert

Revert the merge commit.

https://claude.ai/code/session_014d2MvQ5v7FCph37jwFCC7i


Generated by Claude Code

- review-brief.mjs writes every reviewer brief: tree, depth (quick,
  standard, deep with a disproof pass for Blockers), checklist items the
  diff triggers, round 2+ previous findings and the incremental diff;
  refuses a fourth round. Round state resets with a new acceptance.md.
- docs/checklist.md: diff-triggered items (lib/checklist.mjs), read from
  the base commit, guarded (tier 3).
- Pre-existing findings are reported but do not block; class findings
  list every instance.
- shared/ratchet.md: turn Blockers, reverts and corrections into checks;
  setup steps for lint guardrails, boundaries, sensitive paths.
- evals/: known-bug and clean cases, prepared like real changes; scorer
  for recall and false Blockers.
- sensitive paths are tier 3; run-verify stops a lane at the first
  failure (--keep-going); stamp.mjs adds a Verified: trailer via a
  prepare-commit-msg hook; evidence and PR body state door, blast radius
  and how to revert; make-evidence --checks-only and a CI template.
- Fix: a previous change's review was counted as round 1 of the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d2MvQ5v7FCph37jwFCC7i
README regrouped: flow, merge tiers (silenced checks, sensitive paths,
merge danger), how checks stay out of the change's reach, review brief and
rounds, the ratchet and checklist format, Stop gate and commit stamps, CI,
setup and upgrades, environment variables, files, development and release.
SKILL.md "Done means" and ui verify.md now describe tree-bound runs,
reviews and evidence instead of "newer than".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d2MvQ5v7FCph37jwFCC7i
treeHash copies git's index to reuse its stat cache, but the copy got a
new mtime. Git trusts cached stat data only for files older than the index,
so a same-size edit made in the same second as the last index write (with
seconds-only timestamps) was read as unchanged once hashed a second later:
verification could bind to content that was not on disk. Keep the index's
timestamps on the copy. Found as a CI flake; regression test sets up the
exact timing and compares with a hash from an empty index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d2MvQ5v7FCph37jwFCC7i
@davidxiaodev
davidxiaodev merged commit 7d7c4b1 into main Nov 18, 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.

3 participants