feat(shipping-notice): 收敛复核状态隔离、STP 重试幂等与 XFA 合成预览标注
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
84a881b554
commit
74270adc22
149 files changed
+20111
-3871
No files matched your search
@@ -13,13 +13,13 @@
|
||||
|
||||
> 详细方案/验收/Dify:**[xfa-profile-implementation-plan.md](xfa-profile-implementation-plan.md)**、**[xfa-profile-acceptance.md](xfa-profile-acceptance.md)**、**[xfa-profile-dify-config.md](xfa-profile-dify-config.md)**(Dify = **NONE**)。
|
||||
|
||||
**运行时**:上传物化后 Layout/Extraction Worker 先探测 `/AcroForm` + `/XFA`。`xfa_hybrid` 且 `SHIPPING_NOTICE_XFA_ENABLED=true` 时优先走 `xfa_dataset` Profile;失败回退坐标/OCR/通用确定性,再进入 Dify LLM 辅助复核。普通 PDF 仍走 Coordinate / MinerU / 通用路径。
|
||||
**运行时**:上传物化后 Layout/Extraction Worker 先探测 `/AcroForm` + `/XFA`。`xfa_hybrid` / `pure_xfa` 且 `SHIPPING_NOTICE_XFA_ENABLED=true` 时走 `xfa_dataset` Profile(冻结 Layout → `structure_analysis_id` → datasets → confirmed bindings → confirmed split_rules)。**XFA 正式解析失败一律 `needs_review`,禁止回退坐标/OCR/通用确定性作为正式提取。** 建模阶段唯一标注图源为**离线完整 flatten 有效页**(须与 Acrobat/官方阅读器人眼正式外观一致);**禁止** XFA 壳 PDF、PDFium 壳图、overlay 作为图源/确认/发布证据。OCR 仅可在 flatten 页上作自动标记建议,不得替代 datasets。普通 PDF(`plain_pdf` / 无 XFA 的 `acroform`)仍走 Coordinate / MinerU / 通用路径。权威硬冻结见 [xfa-synthetic-preview-ocr-implementation-plan.md](./xfa-synthetic-preview-ocr-implementation-plan.md) §0。
|
||||
|
||||
**Profile**:`template_mode=xfa_dataset` 鉴别联合 definition;映射工作台选择唯一权威集合并绑定冻结 Schema 字段;验证/盲测/发布复用版本中心,结构签名替代版面签名门禁;published/retired 只读。
|
||||
|
||||
**门禁**:精确唯一 published 命中;权威集合存在;镜像集合与 AcroForm 对账;金额恒等式;其后与坐标路径共用统一 Candidate Qualification / STP 自动建单(Schema `auto_creation_policy`),**无**独立 XFA 自动建单开关 / 审计密钥。
|
||||
|
||||
**故障处理**:XFA 解析未命中或对账失败 → 回退坐标/OCR/通用/Dify;紧急停止用全局 `EXTRACTION_EMERGENCY_STOP`,**不删除**审计与加密快照。完整快照 Fernet 由 `SECRET_KEY` 派生。
|
||||
**故障处理**:XFA 解析未命中、对账失败、合成预览不可用或身份漂移 → `needs_review`(不回退坐标/OCR 正式提取)。紧急停止用全局 `EXTRACTION_EMERGENCY_STOP`,**不删除**审计与加密快照。完整快照 Fernet 由 `SECRET_KEY` 派生。合成预览与 OCR 自动标记见 [xfa-synthetic-preview-ocr-implementation-plan.md](./xfa-synthetic-preview-ocr-implementation-plan.md)。
|
||||
|
||||
**阶段状态**:0–5 PASS;6 并入统一 CQ/STP;7 文档 PASS。
|
||||
|
||||
|
||||
Reference in new issue
Block a user