feat(rvw): implement Skills architecture (Day 7-10)
- Add Skills core framework (types, registry, executor, profile, context) - Implement DataForensicsSkill with DI, path security, graceful degradation - Implement EditorialSkill and MethodologySkill wrapping existing services - Extend ExtractionClient with IExtractionClient interface and analyzeDocx - Refactor reviewWorker to support V1/V2 architecture switching - Add Zod config validation and generic type support - Update development docs and module status Day 7: Skills core framework (~700 lines) Day 8: DataForensicsSkill + ExtractionClient extension (~400 lines) Day 9: EditorialSkill + MethodologySkill (~350 lines) Day 10: ReviewWorker integration (~280 lines) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
# RVW稿件审查模块 - 当前状态与开发指南
|
||||
|
||||
> **文档版本:** v4.0
|
||||
> **文档版本:** v5.0
|
||||
> **创建日期:** 2026-01-07
|
||||
> **最后更新:** 2026-02-17
|
||||
> **最后更新:** 2026-02-18
|
||||
> **维护者:** 开发团队
|
||||
> **当前状态:** 🚀 **V2.0 "数据侦探" 开发中(Week 2 Day 6 完成)**
|
||||
> **当前状态:** 🚀 **V2.0 "数据侦探" 开发中(Week 2 Day 10 完成)**
|
||||
> **文档目的:** 快速了解RVW模块状态,为新AI助手提供上下文
|
||||
>
|
||||
> **🎉 V2.0 进展(2026-02-17):**
|
||||
> **🎉 V2.0 进展(2026-02-18):**
|
||||
> - ✅ **L1 算术验证器**:行列加总、百分比验证(Day 3)
|
||||
> - ✅ **L2 统计验证器**:CI↔P 值一致性、T检验逆向验证(Day 6)
|
||||
> - ✅ **L2.5 一致性取证**:SE三角验证、SD>Mean检查(Day 6 终审提权)
|
||||
> - ✅ **Word 文档解析**:python-docx 表格提取(Day 2)
|
||||
> - ⏳ **Skills 框架**:Day 7-10 计划
|
||||
> - ✅ **Skills 核心框架**:types、registry、executor、profile、context(Day 7)
|
||||
> - ✅ **DataForensicsSkill**:依赖注入、路径安全、优雅降级(Day 8)
|
||||
> - ✅ **EditorialSkill + MethodologySkill**:封装现有服务(Day 9)
|
||||
> - ✅ **ReviewWorker 改造**:集成 SkillExecutor,支持 V1/V2 切换(Day 10)
|
||||
|
||||
---
|
||||
|
||||
@@ -85,7 +88,11 @@ backend/src/modules/rvw/
|
||||
│ ├── methodologyService.ts # 方法学评估
|
||||
│ └── utils.ts # 工具函数
|
||||
├── workers/
|
||||
│ └── reviewWorker.ts # pg-boss异步任务处理
|
||||
│ └── reviewWorker.ts # pg-boss异步任务处理(V2.0 Skills集成)
|
||||
├── skills/ # 🆕 V2.0 Skills 架构
|
||||
│ ├── core/ # 核心框架(types, registry, executor等)
|
||||
│ ├── library/ # Skill 实现(Forensics, Editorial, Methodology)
|
||||
│ └── index.ts # 模块入口
|
||||
├── types/index.ts # TypeScript类型定义
|
||||
└── __tests__/ # API测试脚本
|
||||
|
||||
|
||||
Reference in New Issue
Block a user