Files
AIclinicalresearch/docs/05-部署文档/0316部署/01-部署完成总结.md
HaHafeng c3554fd61d feat(rvw): harden json parsing and finalize 0316 rollout
Stabilize RVW editorial and methodology JSON parsing in production with layered repair and fallback handling, then publish the paired frontend task-level language selector updates. Also reset deployment checklist, record the 0316 deployment summary, and refresh the SAE runtime status with latest backend/frontend IPs.

Made-with: Cursor
2026-03-16 00:24:33 +08:00

74 lines
2.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 0316 部署完成总结v1.0
> **部署日期**2026-03-16
> **部署环境**:阿里云 SAE 测试环境cn-beijing:test-airesearch
> **部署主题**RVW V4.0 全量发布 + JSON 解析稳态修复二次发布
---
## 一、部署范围
### 1) 数据库RDS PostgreSQL
- 已执行 DB-1~DB-4 迁移并完成状态对齐:
- `20260311_add_ssa_agent_step_seed_fields`
- `20260314_add_tenant_rvw_configs`
- `20260314_add_tenant_id_to_review_tasks`
- `20260315_journal_config_center_mvp`
- 已完成 `prisma migrate resolve --applied` 标记,迁移链路一致。
- 已补齐默认租户:`code='yanjiu'`,并完成 `review_tasks.tenant_id` 历史回填(空值为 0
### 2) 镜像构建与推送ACR
- 后端:`backend-service:v2.12`
- 前端:`ai-clinical_frontend-nginx:v2.9`
- Python`python-extraction:v1.3`
- R`ssa-r-statistics:v1.0.6`
### 3) SAE 发布结果(本轮重点)
- `nodejs-backend-test``172.17.197.30`
- `frontend-nginx-service``172.17.197.31`
---
## 二、核心修复说明(本轮二次发布)
### 后端 JSON 解析稳态BE-10
- 针对 RVW 稿约规范性与方法学输出,增强多策略 JSON 解析与二次严格修复。
- 增加解析失败观测日志(长度、预览),便于线上快速定位。
- 目标问题:`无法从LLM响应中解析JSON``section repair invalid`
### 前端联动能力FE-9
- 任务发起弹窗新增“稿约基线语言(中文/英文)”任务级选择。
- 优先级规则:任务级显式选择 > 租户默认语言。
- 用于覆盖中英稿件混合审稿场景,降低提示词与输出格式错配风险。
---
## 三、环境变量与配置
- Node.js 服务新增:
- `RVW_FORENSICS_RULES_ENABLED=false`
- 前端 Nginx 服务更新:
- `BACKEND_SERVICE_HOST=172.17.197.30`
- `BACKEND_SERVICE_PORT=3001`
- `review.xunzhengyixue.com` 路由链路依赖:
- SPA 深链回退(`try_files ... /index.html`
- `/api/` 反代优先级高于 SPA 回退
---
## 四、验收结论
- 数据库结构与迁移链路:✅ 完成
- 后端与前端二次发布:✅ 完成
- JSON 解析稳态修复版本已上线:✅ 完成
- 待部署清单:✅ 已清零并归档到 0316 历史
---
## 五、回滚建议
若出现异常,建议按以下顺序回滚:
1. 前端回滚到 `v2.8`
2. 后端回滚到 `v2.11`
3. 数据库不建议直接反向 DDL优先应用层回滚。如必须回退使用部署前备份恢复并复核迁移基线。