feat(shipping-notice): 落地 XFA 统一视觉拆分确认门禁与处理投影收敛

闭合拆分预览令牌单次消费、样本 checksum 绑定与确认审计;正式提取改为 bindings-only。
同步统一标注工作台交互,并补齐进度投影/任务中心与迁移文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-06 10:21:25 +08:00
1 parent d2b3d74def
commit 84a881b554
195 files changed
+20269 -3463

No files matched your search

@@ -19,6 +19,7 @@ REQUIRED_SPLIT_AUDIT_EVENTS = (
'xfa_split_rule_suggested',
'xfa_split_rule_previewed',
'xfa_split_rule_validated',
'xfa_split_rule_confirmed',
'xfa_split_segment_created',
'xfa_split_segment_updated',
'xfa_split_segment_deleted',
@@ -39,20 +40,16 @@ def test_split_audit_events_registered_in_contracts():
def _rule_set(*, segment_id: str, handling: str = 'mapped', target: str | None = 'customer_part_number') -> dict:
"""构造最小可 diff 的拆分规则集(stages 流水线)。"""
"""构造最小可 diff 的拆分规则集(matcher 模型)。"""
return {
'rule_id': 'rs-1',
'rule_set_id': 'rs-1',
'rule_version': 1,
'source_path_id': 'path-matnr',
'source_scope': 'line',
'source_field_code': 'MATNR',
'strategy': 'pipeline',
'rules': [{
'rule_id': 'r-1',
'order': 1,
'stages': [
{'stage_id': 'st-split', 'type': 'split_lines', 'line_breaks': ['\n']},
{'stage_id': 'st-sel', 'type': 'select_line', 'line_index': 1},
],
'matcher': {'type': 'position', 'line_index': 1},
'segment': {
'segment_id': segment_id,
'segment_code': 'cpn' if segment_id == 'seg-a' else segment_id.replace('-', '_'),