关于「合同暗坑扫描矩阵:八个风险维度与召回优先的初筛」,《合同暗坑与资产主权》给出的定量结论是什么?

结论:第一至六章依次给出八维合同扫描矩阵、单向上限的期望损失差(只改上限写法,期望净值相差 14.47)、敲竹杠的准租金上界(残值比例低于 0.40 时好项目无人投入)、指纹码长与改写衰减、主权隔离的控制路径图、外部合作的接触比例红线(技术接触 0.6 时客户接触红线 0.241)与分段托管(最大损失压到 17.50)。

数据口径:合同机检确有扎实证据:法律专家在 510 份商业合同里标注了 41 类审阅要点,在线服务条款里的八类潜在不公平条款可被机器标出;但机检是召回优先的初筛,在本书的合成标注集上,改写过的风险条款只有 0.380 被抓到,漏报代价越高,律师越要通读全文。 书中参数为示意,全部计算由书中程序生成。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库

weights: CAP3 TERM=2 IPR=3 NSOL=2 CONF=1 AUTO=1 LAW=1 PEN=2
max score 15; red if CAP or IPR hit, or score >6
contract CAP TERM IPR NSOL CONF AUTO LAW PEN score band
C1 vendor1 0 0 0 0 0 0 1 5 RED
C2 agent0 0 0 1 1 0 0 0 3 YELLOW
C3 outsourcing1 1 1 1 1 1 1 1 15 RED
C4 platform1 1 0 1 0 0 1 0 8 RED
C5 balanced0 0 0 0 0 0 0 0 0 GREEN
hits3 2 1 3 2 1 2 2
bands: RED 3 YELLOW 1 GREEN 1
查看完整验算程序
# Chapter 1. p11: clause-risk scan matrix on four synthetic contracts
# Eight risk dimensions. Each dimension is a pair of regular expressions:
# a risky pattern that fires when present, and a protective pattern that
# fires when it is missing. Weights and bands are illustrative.
# All four contracts are synthetic; no real party or clause is used.
import re

# code, weight, rule, risky pattern, protective pattern.
# rule AND: hit when the risky text is present and the protection absent;
# rule OR: hit when the risky text is present or the protection absent.
DIMS = [
    ("CAP", 3, "AND", r"liability of the (provider|agent|vendor|platform) "
               r"shall not exceed",
     r"liability of either party shall not exceed"),
    ("TERM", 2, "AND", r"(provider|agent|vendor|platform) may terminate"
                r"[^.]{0,40}without cause",
     r"either party may terminate"),
    ("IPR", 3, "OR", r"(vest|belong)s? (in|to) the (provider|agent|vendor|"
               r"platform)",
     r"(vest|belong)s? (in|to) the client"),
    ("NSOL", 2, "OR", r"may contact the client's customers",
     r"shall not solicit[^.]{0,40}customers of the client"),
    ("CONF", 1, "OR", r"confidential[^.]{0,60}for (one|1) year",
     r"confidential"),
    ("AUTO", 1, "AND", r"renews? automatically",
     r"client may opt out"),
    ("LAW", 1, "OR", r"courts of the (provider|agent|vendor|platform)'s "
               r"domicile",
     r"courts of a neutral seat|mutually agreed seat"),
    ("PEN", 2, "AND", r"client shall pay[^.]{0,30}liquidated damages",
     r"(vendor|provider|agent|platform) shall pay[^.]{0,30}"
     r"liquidated damages|mutual liquidated damages"),
]
RED_LINES = ("CAP", "IPR")

CONTRACTS = {
    "C1 vendor": (
        "The liability of the vendor shall not exceed the fees of one "
        "month. All deliverables vest in the client. Either party may "
        "terminate on sixty days notice. The vendor shall not solicit "
        "the customers of the client. Information is confidential for "
        "five years. Disputes go to the courts of a neutral seat. The "
        "client shall pay liquidated damages for late payment."),
    "C2 agent": (
        "The liability of either party shall not exceed the annual "
        "fees. All deliverables belong to the client. The agent may "
        "contact the client's customers after the term. Information is "
        "confidential for one year. This agreement renews automatically "
        "and the client may opt out with notice. Either party may "
        "terminate on notice. Mutual liquidated damages apply. Disputes "
        "go to a mutually agreed seat."),
    "C3 outsourcing": (
        "The liability of the provider shall not exceed the fees paid. "
        "All source code and know-how vest in the provider. The "
        "provider may terminate at any time without cause. This "
        "agreement renews automatically. Disputes go to the courts of "
        "the provider's domicile. The client shall pay liquidated "
        "damages of twice the fees on early exit."),
    "C4 platform": (
        "The liability of the platform shall not exceed the fees of "
        "three months. Content licensed to the platform remains owned "
        "by the client and all rights belong to the client. The platform "
        "may terminate the listing without cause. Information is "
        "confidential. This agreement renews automatically and the "
        "client may opt out at any time. Disputes go to the courts of "
        "the platform's domicile."),
    "C5 balanced": (
        "The liability of either party shall not exceed the annual "
        "fees. All deliverables vest in the client on payment. Either "
        "party may terminate on notice. The partner shall not solicit "
        "the customers of the client for two years. Information is "
        "confidential for five years. Disputes go to a mutually agreed "
        "seat. Mutual liquidated damages apply."),
}


def scan(text):
    t = text.lower()
    hits = {}
    for code, w, rule, risky, protect in DIMS:
        bad = re.search(risky, t) is not None
        missing = re.search(protect, t) is None
        hit = (bad and missing) if rule == "AND" else (bad or missing)
        hits[code] = 1 if hit else 0
    score = 0
    for code, w, _, _, _ in DIMS:
        score += w * hits[code]
    red = any(hits[c] for c in RED_LINES)
    band = "RED" if (red or score >= 6) else (
        "YELLOW" if score >= 3 else "GREEN")
    return hits, score, band


codes = [d[0] for d in DIMS]
print("weights: " + " ".join("{}={}".format(c, w) for c, w, _, _, _ in DIMS))
maxs = 0
for _, w, _, _, _ in DIMS:
    maxs += w
print("max score {}; red if CAP or IPR hit, or score >= 6".format(maxs))
print("")
print("{:<15}".format("contract") + "".join("{:>5}".format(c)
                                         for c in codes)
      + "{:>7}{:>8}".format("score", "band"))
total = dict((c, 0) for c in codes)
bands = []
for name, text in CONTRACTS.items():
    h, s, b = scan(text)
    bands.append(b)
    for c in codes:
        total[c] += h[c]
    print("{:<15}".format(name) + "".join("{:>5}".format(h[c])
                                         for c in codes)
          + "{:>7}{:>8}".format(s, b))
print("{:<15}".format("hits") + "".join("{:>5}".format(total[c])
                                       for c in codes))
print("")
print("bands: RED {}  YELLOW {}  GREEN {}".format(
    bands.count("RED"), bands.count("YELLOW"), bands.count("GREEN")))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《人机联防资产与知识产权护城河、契约暗坑机检与全方位防侵蚀母典》第 1 章「合同暗坑扫描矩阵:八个风险维度与召回优先的初筛」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-383 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026383,
  author    = {Fan, Yafu},
  title     = {Human-AI Joint Asset and IP Protection, Automated Contract-Loophole Auditing and Full-Spectrum Anti-Erosion Architecture},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论