Loading...
Loading...
Compare original and translation side by side
| Document | Verification Focus |
|---|---|
| Instructions match project structure, paths valid |
| Navigation accurate, descriptions match reality |
| Standards applicable to this project |
| Principles reflected in actual code patterns |
| Requirements implemented or still valid |
| Architecture matches actual code structure |
| Versions/technologies match package files |
| Endpoints/contracts match controllers |
| Schema matches actual DB/migrations |
| Components/styles exist in codebase |
| Commands work, paths valid |
docs/tasks/docs/reference/docs/presentation/tests/| 文档 | 验证重点 |
|---|---|
| 说明与项目结构匹配,路径有效 |
| 导航准确,描述与实际一致 |
| 标准适用于当前项目 |
| 原则在实际代码模式中得到体现 |
| 需求已实现或仍然有效 |
| 架构与实际代码结构匹配 |
| 版本/技术与包文件匹配 |
| 端点/契约与控制器匹配 |
| 架构与实际数据库/迁移文件匹配 |
| 组件/样式在代码库中存在 |
| 命令可执行,路径有效 |
docs/tasks/docs/reference/docs/presentation/tests/{
"doc_path": "docs/project/architecture.md",
"project_root": "/path/to/project",
"tech_stack": {
"language": "TypeScript",
"frameworks": ["Express", "React"]
}
}{
"doc_path": "docs/project/architecture.md",
"project_root": "/path/to/project",
"tech_stack": {
"language": "TypeScript",
"frameworks": ["Express", "React"]
}
}<!-- SCOPE: ... --><!-- SCOPE: ... -->| Check | Finding Type |
|---|---|
| Section not serving scope | OFF_TOPIC |
| Scope aspect not covered | MISSING_COVERAGE |
| Excessive detail beyond scope | SCOPE_CREEP |
| Content duplicated elsewhere | SSOT_VIOLATION |
| 检查项 | 发现类型 |
|---|---|
| 章节不符合范围 | OFF_TOPIC |
| 范围方面未覆盖 | MISSING_COVERAGE |
| 超出范围的过多细节 | SCOPE_CREEP |
| 内容在其他地方重复 | SSOT_VIOLATION |
| Document | Verification Method |
|---|---|
| architecture.md | Check layers exist (Glob for folders), verify imports follow described pattern (Grep) |
| tech_stack.md | Compare versions with package.json, go.mod, requirements.txt |
| api_spec.md | Match endpoints with controller/route files (Grep for routes) |
| requirements.md | Search for feature implementations (Grep for keywords) |
| database_schema.md | Compare with migration files or Prisma/TypeORM schemas |
| runbook.md | Validate file paths exist (Glob), test command syntax |
| principles.md | Sample code files for principle adherence patterns |
| CLAUDE.md | Verify referenced paths/files exist |
| 文档 | 验证方法 |
|---|---|
| architecture.md | 检查层级是否存在(使用Glob匹配文件夹),验证导入是否遵循描述的模式(使用Grep) |
| tech_stack.md | 对照package.json、go.mod、requirements.txt比较版本 |
| api_spec.md | 匹配端点与控制器/路由文件(使用Grep搜索路由) |
| requirements.md | 搜索功能实现(使用Grep搜索关键词) |
| database_schema.md | 对照迁移文件或Prisma/TypeORM架构 |
| runbook.md | 验证文件路径存在(使用Glob),测试命令语法 |
| principles.md | 抽样检查代码文件是否遵循原则模式 |
| CLAUDE.md | 验证引用的路径/文件存在 |
scope_alignment_score = weighted_average(coverage, relevance, focus)
fact_accuracy_score = (verified_facts / total_facts) * 10
overall_score = (scope_alignment * 0.4) + (fact_accuracy * 0.6)scope_alignment_score = weighted_average(coverage, relevance, focus)
fact_accuracy_score = (verified_facts / total_facts) * 10
overall_score = (scope_alignment * 0.4) + (fact_accuracy * 0.6){
"doc_path": "docs/project/architecture.md",
"scope": {
"stated": "System architecture with C4 diagrams, component interactions",
"coverage_percent": 85
},
"scores": {
"scope_alignment": 8,
"fact_accuracy": 6,
"overall": 7
},
"summary": {
"total_issues": 4,
"high": 1,
"medium": 2,
"low": 1
},
"findings": [
{
"severity": "HIGH",
"type": "BEHAVIOR_MISMATCH",
"location": "line 45",
"issue": "Architecture shows 3-tier (Controller->Service->Repository) but code has Controller->Repository direct calls",
"evidence": "src/controllers/UserController.ts:23 imports UserRepository directly",
"fix": "Update diagram to show actual pattern OR refactor code to match docs"
},
{
"severity": "MEDIUM",
"type": "OUTDATED_PATH",
"location": "line 78",
"issue": "References src/services/legacy/ which was removed",
"evidence": "Folder does not exist: ls src/services/legacy/ returns error",
"fix": "Remove reference or update to current path"
}
]
}{
"doc_path": "docs/project/architecture.md",
"scope": {
"stated": "System architecture with C4 diagrams, component interactions",
"coverage_percent": 85
},
"scores": {
"scope_alignment": 8,
"fact_accuracy": 6,
"overall": 7
},
"summary": {
"total_issues": 4,
"high": 1,
"medium": 2,
"low": 1
},
"findings": [
{
"severity": "HIGH",
"type": "BEHAVIOR_MISMATCH",
"location": "line 45",
"issue": "Architecture shows 3-tier (Controller->Service->Repository) but code has Controller->Repository direct calls",
"evidence": "src/controllers/UserController.ts:23 imports UserRepository directly",
"fix": "Update diagram to show actual pattern OR refactor code to match docs"
},
{
"severity": "MEDIUM",
"type": "OUTDATED_PATH",
"location": "line 78",
"issue": "References src/services/legacy/ which was removed",
"evidence": "Folder does not exist: ls src/services/legacy/ returns error",
"fix": "Remove reference or update to current path"
}
]
}evidenceevidence