Files
AIclinicalresearch/docs/08-项目管理
HaHafeng fa72beea6c feat(platform): Complete Postgres-Only architecture refactoring (Phase 1-7)
Major Changes:
- Implement Platform-Only architecture pattern (unified task management)
- Add PostgresCacheAdapter for unified caching (platform_schema.app_cache)
- Add PgBossQueue for job queue management (platform_schema.job)
- Implement CheckpointService using job.data (generic for all modules)
- Add intelligent threshold-based dual-mode processing (THRESHOLD=50)
- Add task splitting mechanism (auto chunk size recommendation)
- Refactor ASL screening service with smart mode selection
- Refactor DC extraction service with smart mode selection
- Register workers for ASL and DC modules

Technical Highlights:
- All task management data stored in platform_schema.job.data (JSONB)
- Business tables remain clean (no task management fields)
- CheckpointService is generic (shared by all modules)
- Zero code duplication (DRY principle)
- Follows 3-layer architecture principle
- Zero additional cost (no Redis needed, save 8400 CNY/year)

Code Statistics:
- New code: ~1750 lines
- Modified code: ~500 lines
- Test code: ~1800 lines
- Documentation: ~3000 lines

Testing:
- Unit tests: 8/8 passed
- Integration tests: 2/2 passed
- Architecture validation: passed
- Linter errors: 0

Files:
- Platform layer: PostgresCacheAdapter, PgBossQueue, CheckpointService, utils
- ASL module: screeningService, screeningWorker
- DC module: ExtractionController, extractionWorker
- Tests: 11 test files
- Docs: Updated 4 key documents

Status: Phase 1-7 completed, Phase 8-9 pending
2025-12-13 16:10:04 +08:00
..

项目管理

用途: 项目进度跟踪、计划管理、决策记录
维护者: 项目管理组
最后更新: 2025-11-07


📋 目录结构

08-项目管理/
├── 01-整体开发计划/        # 长期规划(季度/年度)
│   └── README.md
├── 02-里程碑规划/           # 中期规划(周/月)
│   ├── README.md
│   ├── 04-里程碑4-架构改造.md
│   └── 05-里程碑5-ASL模块开发.md
├── 03-每周计划/             # 短期跟踪(日/周)
│   ├── README.md
│   └── 周次-进度报告模板.md
├── 04-决策记录/             # 重要决策归档ADR
│   ├── README.md
│   ├── ADR模板.md
│   └── ADR-001-Schema隔离暂缓执行.md
└── 下一阶段行动计划-ASL启动.md  # 当前阶段行动计划 ⭐

🎯 当前阶段

下一阶段行动计划2025-11-07 至 2025-12-06

核心目标: Schema隔离 + 前端统一架构 + ASL核心功能

四周规划:

  • Week 1 Schema隔离3详细+7空
  • Week 2 前端统一架构 + 后端分层
  • Week 3-4 ASL核心功能4个LLM筛选
  • Week 5+ LLM网关统一 + 其他模块

当前版本: 下一阶段行动计划-V2.2-前端架构优先版.md

版本历史:

  • V2.2版(前端架构优先) - 2025-11-09 当前版本

    • 核心调整前端架构提前到Week 2避免返工
    • LLM网关推迟到Week 5聚焦核心
    • 4个LLM已配置DeepSeek/GPT-5/Claude-4.5/Qwen
  • V2.1版(务实版) - 2025-11-09

    • 核心调整3详细+7空Schema策略
    • Just-in-time设计避免过度设计
  • V2.0版(模块化架构优先) - 2025-11-07

    • 核心调整Schema隔离 + 独立部署架构
  • V1.0版ASL启动 - 2025-11-06

    • 初始版本直接启动ASL开发

🚀 快速导航

我想...

📋 了解项目整体规划
→ 查看 整体开发计划

🎯 了解当前阶段要做什么
→ 查看 下一阶段行动计划-V2.2(前端架构优先版)

📊 查看本周要做什么
→ 查看 每周计划

🔍 了解某个决策为什么这样做
→ 查看 决策记录


维护者: 项目管理组
创建日期: 2025-11-06
最后更新: 2025-11-07