docs(evolve): clarify exit 2 and multi-session event attribution - #669
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR adds ChangesMulti-session Skill Evolution
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
evolve 스킬에
--recent [N]멀티세션 검토 모드를 추가합니다. 최근 N개 세션(기본 10)의 transcript를 모아 skill별로 개선 신호를 집계하되, 세션 호출 이후 본문이 이미 바뀐 skill(stale)은 본문 내용 해시 비교로 가려 제외합니다. 이미 진화한/구버전 skill을 옛 신호로 다시 건드리는 헛수고를 막습니다.핵심: stale 판정은 버전 번호가 아니라 SKILL.md 본문 내용의 해시로 합니다 — 버전만 오르고 내용은 그대로인 경우는 stale이 아닙니다. transcript에 보존된 호출시점 본문과 현재 디스크 본문을 비교하므로 git/버전 의존이 없고 repo/캐시 skill에 동일하게 작동합니다.
Changes
build-index.ts:--recent [N]플래그 파싱(+--session/path 모순 거부),loadTurns가 skill 호출시점 주입 본문(isMeta) 캡처, 본문 정규화+sha256 해시 헬퍼,buildRecentIndex(세션 선정·skill별 events 귀속·stale 판정·dropped 처리), 진입점 분기bodyHash는trim()으로 선행/후행 공백 정규화 —stripFrontmatter가 남기는 선행 개행 때문에 멀쩡한 skill이 false-positive stale로 떨어지던 버그 수정SKILL.md:--recentCLI, 멀티세션 인덱스 스키마, stale 규칙 문서화docs/superpowers/)Tests
--recent파싱/모순 2 + skills[] 노출 1 + stale 3분기 3)--recent 11실행 → 현역 skill 8개 events 보존, 구버전 캐시(17.16.2)에서 호출된ship/create-pr2개만 stale-dropped, 호출시점≠현재 본문 해시 차이로 true-positive 입증Summary by CodeRabbit
New Features
--recent [N]flag for analyzing skills across multiple recent sessions (defaults to 10).Documentation
Tests