Files
leaudit-platform-frontend/mock-data/leaudit-rules/packs/yc/contract_evaluation/rules.yaml
T

155 lines
3.7 KiB
YAML
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.
metadata:
type_id: yc.contract.evaluation.delegation
name: 委托评估合同
version: '0.1'
last_updated: '2026-04-14'
parent: yc.contract
classification_keywords:
- 委托评估
- 评估合同
- 房地产评估
description: '最小规则集,用于端到端验证印章 / 签名 / 齐缝章识别流水线。
'
extract:
- group: 默认分组
fields:
- name: 甲方名称
type: string
required_from: draft
desc: 委托估价方(甲方)全称
deep_retry: false
- name: 乙方名称
type: string
required_from: draft
desc: 受托估价方(乙方、评估机构)全称
deep_retry: false
visual_elements:
seals:
- id: 乙方评估机构章
name: 乙方合同专用章 / 公章
required: true
required_from: executed
allowed_types:
- 合同专用章
- 公章
signatures:
- id: 甲方签约代表
name: 甲方法定代表人或授权代理人签名
required: true
required_from: executed
signer_roles: [法定代表人, 授权代理人]
signature_types: [签名, 私章]
private_seal_restricted: true
expected_text_match:
field: 委托方
alternatives:
- 甲方授权代理人
- id: 乙方签约代表
name: 乙方法定代表人或授权代理人签名
required: true
required_from: executed
signer_roles: [法定代表人, 授权代理人]
signature_types: [签名, 私章]
private_seal_restricted: true
expected_text_match:
field: 受托方
alternatives:
- 乙方授权代理人
cross_page_seals:
- id: 齐缝章
name: 页间齐缝章
required: true
required_from: executed
rules:
- group: 印章合规
rules:
- rule_id: EVAL-SEAL-001
name: 合同存在合同专用章或公章
risk: high
score: 10
applies_in:
- executed
stages:
- id: '1'
check: visual
element: seal
expect: type_in
allowed_types:
- 合同专用章
- 公章
logic: '1'
messages:
pass: 检测到合同专用章或公章
fail: 未检测到合同专用章或公章
type: deterministic
- rule_id: EVAL-SEAL-002
name: 乙方评估机构章文字匹配
risk: medium
score: 10
applies_in:
- executed
stages:
- id: '1'
check: visual
element: seal
expect: text_match
expected_text: 广东博亿美房地产资产评估有限公司 合同专用章 4453020060917
logic: '1'
messages:
pass: 乙方合同专用章文字命中
fail: 乙方合同专用章文字未命中
type: deterministic
- rule_id: EVAL-CROSS-001
name: 存在齐缝章
risk: high
score: 10
applies_in:
- executed
stages:
- id: '1'
check: visual
element: cross_page_seal
expect: present
min_count: 1
logic: '1'
messages:
pass: 检测到齐缝章
fail: 未检测到齐缝章
type: deterministic
- rule_id: EVAL-CROSS-002
name: 齐缝章两侧对齐且完整
risk: medium
score: 10
applies_in:
- executed
stages:
- id: '1'
check: visual
element: cross_page_seal
expect: complete
logic: '1'
messages:
pass: 齐缝章两半对齐且完整
fail: 齐缝章仅检测到单侧,无法判定完整性
type: deterministic
- group: 签字合规
rules:
- rule_id: EVAL-SIGN-001
name: 合同尾页存在手写签名
risk: high
score: 10
applies_in:
- executed
stages:
- id: '1'
check: visual
element: signature
expect: present
min_count: 2
logic: '1'
messages:
pass: 合同存在甲乙双方的手写签名(≥2
fail: 合同缺少甲方或乙方的手写签名
type: deterministic