Files
leaudit-platform-backend/rules/contract_evaluation/rules.yaml
T
wren 535d97a70c chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments,
FastAPI project structure (admin/common/modules),
DSL rule files, and schema migration scripts.
2026-04-27 16:48:22 +08:00

137 lines
3.2 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: contract.evaluation.delegation
name: 委托评估合同
version: '0.1'
last_updated: '2026-04-14'
parent: 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
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