Conversation
…ss fixes - Add check --recover to comet-state.sh for structured compaction recovery - Add field_status() helper for DONE/PENDING/BROKEN field reporting - Fix unbound variable crash when tasks.md missing under set -u - Fix path truncation risk with spaces in design_doc field - Unify direct_override fallback style to || true - Enforce AskUserQuestion tool at all 21 decision points across 7 skills - Add red flags table, uncertainty weighting, naming guard, file verification - Add idempotency notes and compaction recovery sections to all phases - Sync all 14 zh/en skill files to full parity - Add 8 test cases for check --recover covering all phases - Bump version to 0.3.5
There was a problem hiding this comment.
Code Review
This pull request introduces a context compaction recovery feature (--recover) to the comet-state check command, allowing agents to resume progress from structured recovery contexts across different phases. It updates the corresponding English and Chinese skill guides to detail idempotency, decision-point guards (enforcing the use of AskUserQuestion), and a new 'Red Flags' checklist. Additionally, comprehensive tests are added to validate the recovery logic. The review feedback highlights two issues in the recovery script: an inconsistency in trailing-space stripping for the design_doc path check, and a misleading recovery message in the verification phase when verification has passed but branch handling is still pending.
# Conflicts: # CHANGELOG.md # package-lock.json # package.json
- Remove inconsistent trailing-space stripping in design_doc field_status call - Add explicit elif for verify_result=pass with pending branch_status to avoid misleading 'not yet started' recovery message
All skill files were updated to require AskUserQuestion tool explicitly, but skills.test.ts still expected the old text without AskUserQuestion. Updated 12 assertions across zh/en to match the new wording.
- Run prettier on src/commands/auto.ts to fix CI format check - Add 'AskUserQuestion tool' to design confirmation enforcement text in both ZH and EN comet-design skill files to match PR rpamis#51 test expectations
✨ Summary
🎯 Scope
init,status,doctor,update)assets/skills/,assets/skills-zh/)assets/skills/comet/scripts/)🧪 Testing
pnpm buildpnpm lintpnpm format:checkpnpm testpnpm test -- test/ts/comet-scripts.test.tspnpm test:shell✅ Checklist
fix: handle project-scope initREADME.md,README-zh.md, orCONTRIBUTING.mdCHANGELOG.mdis updated when behavior changesassets/manifest.jsonand relevant tests👀 Notes for Reviewers