chore: JSDoc이 엉뚱한 선언에 붙는 것을 가드로 검사(JD-2) #400
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.35) × (1 − Review Confidence (0.51)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 168 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 61% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #400"
general
weight: 0.35
claude[bot]
요약
jsdocPlacement추가 (src/__tests__/guards/jsdocPlacement.test.ts, TS AST, 테스트 제외src). 다음 세 경우를 실패로 처리:- 한 선언 앞 JSDoc이 연속 두 개 이상
- JSDoc과 선언 사이에 일반 주석이 낀 경우 (빈 줄은 파일 머리말로 간주)
- JSDoc 첫머리 백틱 이름이 같은 파일의 export인데 아래 선언 이름과 다른 경우
file#rule>name)와 사유로 등록. 더 이상 해당하지 않는 낡은 예외도 실패docs/CONVENTIONS.md#JD-2에 가드 경로와 범위 한 문장 추가verify:dist통과)Closes #399
검증
| 게이트 | 결과 |
|---|---|
|
yarn typecheck| exit 0 ||
yarn lint| exit 0 ||
yarn format:check| exit 0 ||
yarn build| exit 0 ||
yarn verify:dist| exit 0 (dist 파일 850개) ||
yarn test| exit 0, 456개 파일 중 455 통과 · 1 skipped, 전체 테스트 14,776건 통과 (21 skipped) |반증
가드의 detector 단위 테스트(합성 소스 입력)가 다음 위반을 실패로 잡는 것을 확인:
flags two stacked JSDoc blocks,flags three stacked blocks as two adjacent pairs,flags stacked JSDoc on an interface memberflags a JSDoc followed by a plain comment,flags JSDoc, comment, JSDoc as orphanedflags a JSDoc naming another export above a different declarationapplies and expires name-mismatch exemptions,keeps no stale exemption🤖 Generated with Claude Code
https://claude.ai/code/session_013hBnm9pKRoKzt3auDC5QTb