myxce/.wolf/hooks
Rongsong Shen ba4e5fd227
chore(wolf): guard buglog.json integrity, add dedupe rule and auto-checkpoint
Recovered .wolf/buglog.json (828 entries lost when this worktree's copy
silently reset to bug-001 sometime after commit ce96fd6d, 3 days
uncommitted with zero overlap detection) by merging the committed
history back in and renumbering the 43 real entries logged since.

To stop this recurring:
- OPENWOLF.md: require searching for an existing same-file/root_cause
  entry before appending a new bug id (fixes the bug-1418 x4 duplication
  pattern found in the recovered history); never restart the id counter.
- stop.js: validate buglog.json every turn (JSON validity, {version,bugs}
  wrapper, duplicate ids, count/max-id not regressing vs. the last
  commit) and auto-commit it standalone when it grew cleanly, so git
  history is always a recoverable backup instead of a 3-day-stale one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 04:28:44 +00:00
..
_session.json save wolf status 2026-08-10 18:01:29 +08:00
package.json chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
post-read.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
post-write.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
pre-read.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
pre-write.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
session-start.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
shared.js chore: checkpoint all prior work for clean state 2026-06-04 13:04:16 +00:00
stop.js chore(wolf): guard buglog.json integrity, add dedupe rule and auto-checkpoint 2026-08-13 04:28:44 +00:00