Sub topic 15
Tooling and Automated Playbook Checks
Prerequisites and scope
This chapter assumes you already know how a playbook entry is built: a preferred position, ordered fallbacks with approvers, and a walk-away point. It also assumes you know how deviations are recorded. Here we cover how software can store those entries, check incoming drafts against them, and route approvals. We stay at the level of a working model, not a product comparison.
Tooling does not replace judgment. It applies the decisions your team has already made, consistently and quickly, and it frees lawyers to spend time on the clauses that need thought.
What tooling can and cannot do
A playbook has three kinds of content, and tools handle each differently.
| Playbook content | Tool can do well | Tool does poorly |
|---|---|---|
| Numeric or categorical terms (cap in months, payment days, governing law) | Compare a proposed value to thresholds | Notice that a number is buried in a side letter |
| Presence or absence of a clause | Flag a missing indemnity or confidentiality clause | Judge whether a short clause is adequate in context |
| Wording and nuance (carve-outs, "reasonable efforts" versus "best efforts") | Highlight text that differs from a standard | Decide whether the difference matters commercially |
| Trade-offs across clauses | Show what has already been conceded | Choose which concession to trade |
The practical rule is to automate the checks that have a clear right answer and flag the rest for a person.
Step 1: Store the playbook as structured data
Automated checks need playbook entries in a form a program can read. A free-text document in a shared drive cannot be checked. A structured record can. The YAML below is one entry. Each field is something a program can read or a person can edit.
clause: limitation_of_liability
risk_tier: high
side: vendor
preferred: "Mutual cap equal to 12 months of fees paid or payable"
fallbacks:
- position: "Cap equal to 24 months of fees"
approver: legal_manager
- position: "General cap of 12 months of fees, with a separate super-cap of 2x annual fees for data breach claims"
approver: general_counsel
walk_away: "Uncapped liability for all claims"
rationale: "Exposure must stay proportionate to contract value and be insurable."Prose positions are readable to people but not to code. To check a draft automatically, you also need machine-readable thresholds. The usual approach is to keep the prose for lawyers and add parameters for the checker, such as preferred_months: 12 and fallback_limit_months: 24. Keep both in the same file, so that a change to one prompts a review of the other. If the prose and the parameters drift apart, the tool will enforce a position the playbook no longer holds.
Step 2: Write a check that returns a classification
A good check returns a category tied to the playbook's structure. It should not return a bare pass or fail. The categories are preferred, fallback, escalate, and walk-away. The function below does this for a liability cap measured in months of fees, from the vendor's side.
def evaluate_cap(proposed_months_of_fees, preferred=12, fallback_limit=24):
"""Classify a counterparty's proposed liability cap, in months of fees."""
if proposed_months_of_fees is None:
return "walk_away" # no cap at all
if proposed_months_of_fees <= preferred:
return "preferred"
if proposed_months_of_fees <= fallback_limit:
return "fallback"
return "escalate"
print(evaluate_cap(12)) # preferred
print(evaluate_cap(18)) # fallback
print(evaluate_cap(36)) # escalate
print(evaluate_cap(None)) # walk_awayNotice what the categories mean. A cap of 18 months falls between the preferred 12 and the fallback limit of 24, so it is "fallback" and the matching approver is the legal manager. A cap of 36 months is beyond every listed fallback but is not the stated walk-away, so the result is "escalate": a senior approver decides whether to accept, counter, or walk away. Only the absence of a cap triggers "walk_away".
The function is deliberately small. Its value is that two reviewers, or the same reviewer on two different days, get the same answer for the same input.
Step 3: Connect the check to the approval matrix
A classification is only useful if it leads to an action. Map each category to a next step:
- Preferred. No approval needed. Proceed.
- Fallback. Look up the approver for that fallback tier. Request approval and record it.
- Escalate. The position is outside the written fallbacks. Send it to the most senior approver in the matrix, with the rationale and the commercial context.
- Walk away. Stop. Do not accept the term without a documented exception from the person who owns red-line decisions.
When tools handle this routing, the approval request can carry the clause, the proposed wording, the playbook position it deviates from, and the reason. Approvers then decide on complete information rather than a forwarded email thread.
Step 4: Handle the extraction problem
The check in Step 2 assumes you already have the number. In practice, someone or something must find it in the draft. This is the weakest link in most setups.
- Structured intake. A form or contract template where the value is entered in a field. This is the most reliable method, and it works well when you control the first draft.
- Rules and patterns. Searching for phrases such as "aggregate liability shall not exceed". This works for stable wording and fails for unusual drafting.
- Language models and clause classifiers. These can read varied wording and propose a value. They can also misread it, and they can produce confident but wrong output.
Whatever the method, treat extracted values as proposals that a person confirms for high-tier clauses. A wrong extraction passed through a correct check produces a wrong answer that looks authoritative.
Step 5: Log every check
Each automated check should write a record. At a minimum, keep the contract identifier, the clause, the proposed value, the classification, the approver, the decision and the date. This is the same deviation data covered earlier, and tooling makes it complete because the record is created as a side effect of the check and not by someone remembering to do it.
Over time these records answer practical questions:
- Which clauses reach "escalate" most often? Their preferred positions may be unrealistic.
- Which fallbacks are accepted in nearly every deal? They may deserve promotion to the preferred position.
- Which approvers are bottlenecks? The matrix may need adjusting.
Common failure modes
| Failure | Cause | Mitigation |
|---|---|---|
| Stale thresholds | The playbook changed but the code parameters did not | Store prose and parameters in one file, with version numbers and a review date |
| Silent extraction errors | Pattern or model misread the clause | Require human confirmation for high-tier clauses |
| False comfort | Team trusts a green result and skips reading the clause | Show the source text next to the result |
| Over-automation | Low-value clauses get as much tooling effort as high-risk ones | Automate by risk tier, starting with the clauses that recur most |
| Missing context | A "preferred" cap sits beside an unlimited indemnity that undermines it | Add cross-clause checks, or keep a human review of the whole package |
| Unbounded exceptions | Overrides are easy and unlogged | Require a reason and an approver for every override |
The cross-clause issue deserves attention. The cap check in Step 2 looks at one clause. A liability cap of 12 months means little if the indemnity clause is excluded from the cap. Simple tools check clauses independently, so a person must still read how clauses interact.
A sensible rollout order
- Convert the highest-risk clauses to structured entries with thresholds.
- Build checks for clauses with numeric or yes/no answers first, such as liability cap, payment terms, term length and governing law.
- Run the checks in advisory mode alongside manual review for a few contracts, and compare results.
- Fix mismatches, then connect routing to the approval matrix.
- Add logging and a periodic report, then expand to lower-tier clauses.
Running in advisory mode first shows you where extraction or thresholds are wrong before anyone relies on the output.
Exercise
A buyer-side check classifies any payment term of 45 days or less as "preferred", 46 to 60 days as "fallback", and anything longer as "escalate". A draft says "payment due 90 days after receipt of a valid invoice". The tool returns "escalate" and an extraction rule reads the value as 90. Name two things a reviewer should still verify before treating the result as final, and say who may approve the outcome.
Show answer
First, confirm the extracted value against the source text, for example that 90 days is not a typo, that no other clause (such as an order form) changes the term, and that "valid invoice" does not add conditions that effectively lengthen payment. Second, check related clauses, such as late-payment interest or a right to suspend, that change what the 90 days means in practice. Because the result is "escalate", it is outside the written fallbacks, so the most senior approver in the matrix decides whether to accept, counter, or walk away. The tool must not approve it, and the decision and reason should be logged.
Exercise
Your vendor-side playbook is updated so that the preferred liability cap stays at 12 months, but the first fallback is raised from 24 to 18 months. The prose entry is edited, but the checker still uses fallback_limit=24. What goes wrong in practice, and what process change prevents it?
Show answer
Caps of 19 to 24 months are classified as "fallback" and routed to the legal manager, although the playbook now treats them as outside the fallback. Those deals may be approved at the wrong level and the team will give away more than the playbook allows. To prevent this, keep the prose and the machine-readable parameters in one versioned file, review both together whenever either changes, and add a test that checks the classifier against example values drawn from the current playbook.