What does Contract Pitfalls and Asset Sovereignty conclude, in numbers, about “The Contract-Pitfall Scan Matrix: Eight Risk Dimensions and a Recall-First Screen”?

Answer: Chapters 1 to 6 give the eight-dimension scan matrix, the expected-loss gap of one-way caps (changing only how a cap is written moves expected net value by 14.47), the quasi-rent bound of hold-up (below a salvage fraction of 0.40 a good project finds no investor), fingerprint length and the decay of rewording, the control-path graph of sovereign separation, and access red lines for outside partners (at technical access of 0.6 the customer red line is 0.241) and staged delivery with escrow (largest loss 17.50).

Scope of the numbers: But machine screening is a recall-first screen: on the book's synthetic labelled set only 0.380 of reworded risky clauses are caught, and the costlier a miss, the more a lawyer must read in full. Parameters are illustrative and all calculations are generated by the book's programs.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only

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
Show the full program
# 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")))

Single source and citation

Fan, Y. (2026). Human-AI Joint Asset and IP Protection, Automated Contract-Loophole Auditing and Full-Spectrum Anti-Erosion Architecture (Version 1.0.0), Chapter 1: The Contract-Pitfall Scan Matrix: Eight Risk Dimensions and a Recall-First Screen. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 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}
}

Other chapter answers in this book