Files
ai-contract-platform/project-docs/V2-phase3-published-snapshot-read-path-smoke-verification-2026-07-02.md
T
yuqei a3bb78e06b
Security Quality Gate / npm audit, Bandit, pip-audit, detect-secrets (pull_request) Failing after 16m35s
release: freeze V2 release candidate
2026-07-12 15:32:24 +08:00

60 lines
2.2 KiB
Markdown
Raw 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.
# V2 Phase 3 Published Snapshot Read Path Smoke Verification
日期:2026-07-02
## 环境
- Host: `192.168.3.90`
- Remote path: `/opt/apps/ai-contract-platform-v2-smoke`
- Compose project: `yuqei-contract-v2-smoke`
- Contract API: `http://192.168.3.90:18100`
- Web: `http://192.168.3.90:13000`
- Contract DB: `yuqei_contract`
## 部署结果
使用 `yuqei-infra/scripts/deploy-v2-smoke-docker.ps1` 部署当前本地代码到 smoke 环境。
- Deploy artifact: `project-docs/qa-artifacts/v2-smoke-docker-deploy/2026-07-02T15-54-15`
- Deploy status: `pass`
- Contract API health: `ok`
- Runtime schema-check: `ok`
- Alembic actual/head: `20260702_0026`
## 抽样验证
验证 artifact:
- `project-docs/qa-artifacts/v2-published-snapshot-read-path-smoke/published-snapshot-read-path-smoke-20260702160940.json`
通过项:
- `schema_check`: runtime schema-check `ok`
- `template_drafting`: 模板详情和模板起草正文使用 `template_published_snapshots`
- `clause_recommendation`: 审查风险项命中 `legal_asset_published_snapshots` 中的规则快照,并返回条款快照中的推荐文本
- `rule_offline_boundary`: 规则下线后不再参与条款推荐
- `legal_change_impact_scan`: 法规变更影响扫描使用条款快照法源和模板快照正文
- `restore_template_snapshot`: 临时模板快照已恢复
- `restore_clause_snapshot`: 临时条款快照已恢复
- `restore_rule_snapshot`: 临时规则快照已恢复并重新发布
## 最终状态
复跑 `/api/v1/runtime/schema-check`:
- status: `ok`
- Alembic actual/head: `20260702_0026`
- display cache mismatch: `0`
抽样资产最终状态:
- `TPL-SERVICE-GENERAL-001`: `published`
- `CLAUSE-COMMON-DISPUTE-001`: `published`, visible version restored to `v1`
- `RULE-BREACH-LIQUIDATED-DAMAGES-001`: `published`, visible version restored to `v1`
说明:smoke 验证为了生成和下线/恢复法律资产快照,会留下追加的 lifecycle events;未重置数据库,也未删除历史事件。
## 结论
Slice 3.6 第二片已在远端 smoke 环境验证通过:模板起草、条款推荐、审查规则下线边界、法规变更影响扫描均已按“发布快照表优先,旧 lifecycle metadata fallback”的运行时路径工作。