Skip to content
The Liberation Engine

Build your own AI setup / Lesson 5 of 8 · Decide

Read the whole contract before you sign

The lease hides a daily late charge and a carpet-cleaning deduction from your deposit. Read every clause, put hard questions in writing, and learn why a contract check is not a legal clearance.

What the agent made

Ran it for real with OMP 18.17.0 on 2026-11-06. The first session started with no saved memory; each later session was a new one that kept only the files in the folder. Your result will differ.

1 · Build the fine-print reader

The piece it left behind

It saved a skill any later session can use: .claude/skills/fine-print/SKILL.md.

SAVED IN THE FOLDER · .claude/skills/fine-print/SKILL.md
name: fine-print
description: Inventory an entire contract, ask clause-specific text questions, preserve exact evidence in Markdown and offline HTML, and independently check coverage without making legal verdicts.

Fine print: contract questions, not legal clearance

A future session can start with a short request to run the fine-print question workflow on a named source. State what remains unverified: jurisdiction, current governing law, legal outcomes, question judgment, and any source layout the parser cannot recognize.

Read the whole result

Before receiving a real document

Warn the user before they provide its contents: the model provider receives prompts and included file contents even if the agent cannot browse the web. Ask the user to inspect their actual provider's retention and training controls first, for example Claude Code data usage. Keep originals outside the agent's working folder. Provide a redacted copy without unneeded names, addresses, emails, phone numbers, account or card numbers, Social Security numbers, member or ticket IDs, or other identifying details. Discuss redaction or contract questions with the user as needed; this skill does not prohibit network use or dialogue in future work.

Inventory and questions

  1. Read every source line. Make a line-to-section inventory before drawing conclusions: each nonempty line belongs either to a unique numbered clause, including every continuation line up to the next numbered opener, or to a separately reviewed outside-text inventory. Preserve outside text verbatim in both reviews. Do not exempt titles, headings, disclaimers or exhibits by assumption. Handle blank separators deliberately. Reject duplicate, out-of-order or ambiguous numbering; do not overwrite clauses. An exhibit or alternative layout needs explicit inventory and parser support, not a passing status inferred from a numbered-clause scan.
  2. For each clause, check whether its own words already answer the proposed question. Mark ASK only for a genuine textual uncertainty or a requested written change; otherwise mark OK, meaning no contract-text question noted, not approval. Give each numbered clause exactly one line starting Clause N: ASK or Clause N: OK. An ASK has exactly one Quote: line with exact contiguous source words inside double quotes and a <cite>source file name</cite> immediately after, followed by one plain Question: line. OK remains one line. Copy anything presented in quotation marks or blockquotes exactly from a source file and add its file-name citation; use plain sentences for summaries. Never repair a correct quote to match a parser that lost continuation text.
  3. Name outputs review-<source file name without extension>.md and review-<source file name without extension>.html. The one-file HTML is offline, with inline CSS, SVG and JavaScript. Lead with ASK and OK counts and a sorted zero-baseline bar chart with units; provide the complete ordered no-script list, status, every ASK quote and question, the full outside-text inventory, and a labeled keyboard/touch clause selector that reveals exact words, source citation and the question, if any, in a visible evidence panel. Include visible focus, reduced-motion support, and narrow-screen layout without horizontal scrolling or mid-word breaks. Mark the source and the limits of the review. This practice exercise explicitly requested review.md and review.html instead of the reusable naming convention.
  4. Distinguish textual questions, landlord answers and applicable law. Never give verdicts that a term is legal, enforceable, safe or fair. Every clause, including OK, needs a separate applicable-law check for a real document. Before any real residential-lease law check, obtain the state, locality and relevant tenancy type; if unknown, ask and label legal review pending. Never derive jurisdiction from a fictional place. For other real contracts, identify the relevant place and governing rules too. Check current official state, local and federal sources, link citations, and separately flag potentially overridden terms including payment methods, late charges versus possible grace periods and caps, returned or declined payment triggers and limits, deposit return and itemization, cleaning deductions and keys, occupancy and guests, assistance-animal accommodation, entry reasons/hours/notice, renewal/reminder/delivery requirements, early exit and possible mitigation duties, notice methods and other mandatory protections. A landlord waiver is not necessarily the only possible protection. Legal advice and definitive enforceability judgments are outside this method; when rights matter, suggest a local tenant organization or housing attorney.
  5. Illustrative official sources, only when actual facts warrant: New York tenant guide, California state guide, and HUD assistance-animal memo. These links do not establish the law for another jurisdiction.

Independent verification

Run python3 clause-check.py SOURCE REVIEW-MARKDOWN REVIEW-HTML and python3 clause-check.py --self-test SOURCE REVIEW-MARKDOWN REVIEW-HTML using the same actual files. Report the real exit statuses; if Python 3 is unavailable, say checks could not run, never claim a pass. The checker must independently read and map every nonempty source line to a numbered clause or outside-text inventory, reject any uncovered line in either review, and reject duplicate or ambiguous numbering. It must compare each quoted passage against the joined source clause, statuses and displayed counts and bars against the reviews, and check the outside-text inventory verbatim in both. Self-test on the actual file contents by mutating in-memory Markdown clause coverage and the in-memory HTML count, confirming both fail without file writes. Also test synthetic wrapped-clause continuation quotations and repeated numbering, plus synthetic outside-clause text: omitted from either review must fail and included verbatim in both must pass. If a new document uses unrecognized numbering, layouts or exhibits, expand the parser and its tests before trusting a pass. Never treat a numbered-clause-only check as whole-document proof. A passing result covers recognized sequential numbering, joined continuation lines and inventoried nonempty text for the exercised layout; it does not prove arbitrary formats, substantive legal correctness or that questions are wise.

Then a brand-new session used what it saved on new input: see the proof.

Make your own

  1. Get the files

    Download the practice folder (ZIP)

    Unzip it: you get a folder called cli-practice with 1 practice file. Download the fictional lease.txt from an invented property manager; its state and locality are deliberately unspecified. It also has a for-later folder with the new files for the fresh sessions.

  2. Open your agent in that folder

    Open a terminal in cli-practice and type claude or omp --approval-mode always-ask. First time? Set up in about five minutes, with steps for Mac, Windows, and Linux.

  3. Paste this prompt

    Work only inside this practice folder with the fictional lease.txt. Do not use the network, install anything, read outside this folder, or edit lease.txt. Do not write any file outside this folder, including temporary test files in /tmp. Do not ask me to reply. Do not use em dashes or en dashes. Use only Python 3 and its standard library already on this computer. If python3 is unavailable, report that the checks could not run and never claim they passed.
    Read every numbered clause of lease.txt, with nothing skipped. Write review.md listing every clause number exactly once. Each entry starts with a line that reads Clause N: ASK or Clause N: OK. An ASK entry has a line Quote: followed by the exact words copied from the lease inside double quotes, and a line Question: with one plain question I could put to the landlord. An OK entry is one line. ASK means a question about the contract text; OK means no contract-text question noted, not approval of the term. Every clause still needs a separate applicable-law check on a real lease, including clauses labeled OK. Do not confuse the contract's wording or a landlord's answer with governing law. Do not say anything is legal, enforceable, safe, or fair on this exercise. For questions, first check whether the lease already answers them; ask instead about genuine uncertainties or a requested written change. Anything inside quotation marks or a blockquote must be copied exactly from the files; put the file name in a <cite> after it, and write summaries as plain sentences, never as quotations.
    Write review.html as the main one-file, offline review beside review.md. Lead with how many clauses got ASK versus OK, show a sorted zero-baseline inline SVG bar comparison with counts and units, followed by every numbered clause in order, its status, and the exact quotation and question for every ASK. Mark the source as lease.txt. A labeled clause selector should reveal the exact words and question for that clause in a visible evidence panel while keeping the full list accessible with JavaScript off. Both chart and counts must agree with review.md. Prominently label the entire page "contract questions, not legal clearance"; explain that Lantern Hollow has no identified state or locality, so no local rule or statutory deadline can be declared applicable. List unresolved legal-rights checks for this lease without answering them as law: payment methods and late charges (contractual fee versus possible statutory grace period and cap); returned or declined payments (trigger and possible limits); deposit return, itemization and cleaning deductions (not automatically contingent on keys); occupancy, guests and assistance-animal accommodations; landlord entry reasons, hours and notice; renewal validity, reminder and delivery requirements; early exit and possible duty to mitigate; notice methods and other potentially mandatory protections. Identify which source clauses trigger each check. Link illustrative official sources: New York tenant guide https://ag.ny.gov/publications/residential-tenants-rights-guide and California state guide https://www.dre.ca.gov/publications/ResourceGuidebook/gb01_toc.html and current HUD memo https://www.hud.gov/sites/default/files/hudclips/documents/AS-Trainor-Enforcement-Guidance-Assessing-Requests-for-the-use-of-an-animal-as-a-reasonable-accommodation-under-the-fair-housing-act.pdf . Those examples do not establish the fictional lease's jurisdiction. Never assert a legal outcome for the fictional tenant or imply a landlord's waiver is the only possible protection. Give the page an annotated document motif, not a generic dashboard; clear heading, restrained accent, readable body. All CSS, SVG and JS inline, no remote assets. Keyboard and touch control, visible focus, reduced-motion path. At 360 pixels wide and wider, the page fits the screen and nothing scrolls sideways, not even inside the clause panel, a table, chart or code box; no word or money amount ever breaks mid-word; same findings visible at desktop.
    Write clause-check.py, independently of how you produced the review, taking source and review files as its first two arguments: prove every source clause appears exactly once, all quoted passages are verbatim, and name every problem; exit 0 only on success. Parse multiline clauses by joining each numbered opener and its continuation lines through the next numbered opener, with blank lines handled deliberately. Reject duplicate or ambiguous numbering instead of silently overwriting a clause. An optional third HTML path must additionally verify every numbered clause and ASK/OK status, every quoted passage and the displayed ASK and OK counts and bar values, independently against the source and review. --self-test must accept the actual source, Markdown and HTML paths as arguments, alter in-memory review coverage and an in-memory HTML count on those actual files, reject both without touching files, and also exercise a synthetic wrapped clause and a duplicate number to prove that a verbatim continuation-line quote passes and repeated numbering fails. Run python3 clause-check.py lease.txt review.md review.html and python3 clause-check.py --self-test lease.txt review.md review.html, reporting real exit statuses. The checker proves quotation and coverage accuracy, not a legal conclusion or whether a question is wise.
    Account for every nonempty source line, not just numbered clauses. Inventory any text outside the numbered clauses separately, reproduce it verbatim in both reviews, and flag anything there that needs a question or applicable-law review. The checker must independently map every nonempty source line to a numbered clause or this separate reviewed-text inventory and exit nonzero on any uncovered text. Do not exempt titles, headings or disclaimers by guessing their importance. Extend --self-test with synthetic source text outside numbered clauses: omitting it from either review must fail, and including its exact text in both must pass. State the scope of the coverage proof accurately in the skill, the reviews and the checker output; arbitrary numbering, layouts and exhibits need a fresh source inventory and appropriate parser tests before any passing status can be relied on.
    Then write the project skill .claude/skills/fine-print/SKILL.md, with frontmatter name: fine-print and a description, capturing this method for any future contract or terms I hand you: cover every clause including continuation lines, reject repeated or ambiguous numbering, quote exact words, ask questions and never give verdicts, name the review file review-<source file name without extension>.md and companion HTML review-<source file name without extension>.html, preserve the full no-script list and quoted clause reveal, run clause-check.py on source, Markdown and HTML and its self-test with the same actual file paths and report real exit statuses. If the parser does not recognize a document's numbering, expand its parser and tests before treating a check as passing; never change a correct quote merely to satisfy a parser that dropped part of its source. This practice folder has no network access, but the reusable skill must not prohibit network or dialogue on a future real lease. Before using a real document, warn that the model provider receives prompts and any included file contents even if the agent cannot browse the web. Tell the user to check their actual provider's retention and training controls first (example: Claude Code https://code.claude.com/docs/en/data-usage), keep originals outside the working folder, and give the agent a redacted copy without unneeded names, addresses, emails, phone numbers, account or card numbers, Social Security numbers, member or ticket IDs, or other identifying details. For a real residential lease, first obtain state, locality, and relevant tenancy type before attempting any applicable-law check; if unknown, ask the user and mark the legal review pending, never infer a place from a fictional name or guess the law. Use current official state, local and federal sources, cite links and distinguish the lease language from statutory rights; separately flag all potentially overridden terms, including those labeled OK and the categories listed above. Legal advice or definitive enforceability judgments are outside this method; suggest a local tenant organization or housing attorney when rights are consequential. For other real contracts, identify applicable place and governing rules too. Include the illustrative New York, California, and HUD source links above in the skill and teach that they apply only if the real facts warrant. A new session needs only a short request to reproduce the question workflow; state what remains unverified.
    The saved skill must carry the whole-source inventory and uncovered-text rejection requirements, including their self-tests. Never present a numbered-clause check alone as proof that a whole document was reviewed.

    The prompt asks the agent to stay in this folder; it cannot enforce that. Read each file change and command before you approve it.

  4. Check it yourself

    Open cli-practice/review.html in your web browser (double-click it), then:

    Human check: Confirm each numbered clause appears once and all nonempty text before the first numbered clause is represented in the reviewed-text inventory. The parser maps subsequent unnumbered text to the preceding clause, including text after the last clause: reconcile any rider, addendum, exhibit or signature block explicitly rather than treating a passing check as proof it was reviewed. Confirm every ASK quotation is exact and every question concerns a genuine uncertainty or a requested revision rather than something the text already answers. Run clause-check.py on lease, Markdown and HTML and --self-test; confirm omitted preamble text is rejected. Check chart counts, keyboard and touch clause reveal, the complete no-script list and prominent legal-review-pending banner. Confirm the skill carries source inventory and parser limits, requests state, locality and tenancy type for real leases, does not mistake ASK or OK for legal clearance, and points to official sources.

    When we checked the recording above: All 26 clauses and all 3 nonempty preamble lines checked against source: 12 ASK and 14 OK. Normal checker and actual-file self-test exit 0; a planted omitted summary exits 1. Whole-source inventory, parser limits, exact quotes, chart counts and legal-review limits checked. Keyboard and emulated touch reveal work; all selector states fit 360, 375 and 390 pixels and every four-pixel width from 400 through 1300 with no document or inner sideways scrolling. JavaScript off retains every clause, preamble line and legal-clearance warning.

Then prove it: fresh sessions

Each run below is a brand-new session, recorded for real in OMP. It remembers nothing from the run before except the files saved in the folder, so the short prompt is the whole instruction.

2 · A fresh session, a different contract

Before this run, copy the files from for-later/phone-plan in the ZIP into cli-practice: phone-plan.txt.

Quit the agent, start it again in cli-practice, and paste only this:

Same treatment for my phone plan terms, including the saved skill's companion HTML with complete no-script clause list and source-linked ASK/OK count chart. Reuse the checker without changing the original input; run its normal check and --self-test against the actual phone-plan.txt, review-phone-plan.md and review-phone-plan.html files, reporting both exit statuses. ASK and OK are contract-reading labels, not legal clearance; do not apply the lease-specific jurisdictional rules to this phone-plan fiction. Keep keyboard and touch clause reveal, and fit 360px and wider without broken words or anything scrolling sideways. Anything inside quotation marks or a blockquote must be copied exactly from the files; put the file name in a <cite> after it, and write summaries as plain sentences, never as quotations.

Human check: Confirm the saved skill produced review-phone-plan.md and review-phone-plan.html without re-explaining it. Every numbered clause appears once, and all nonempty text before the first numbered clause is represented in the reviewed-text inventory. Reconcile trailing text explicitly: the parser absorbs it into the last numbered clause rather than listing it separately. Check every question against the source and inspect the price change and network access fee yourself, whether labeled ASK or OK. Run this session's clause-check.py on phone-plan.txt, review-phone-plan.md and review-phone-plan.html and --self-test. Confirm omitted preamble text is rejected. Check chart counts and a revealed source quote against the text, plus the full list with scripts off; neither status means legal approval.

When we checked the recording: All 18 clauses and all 3 nonempty preamble lines checked against source: 7 ASK and 11 OK. Normal checker and actual-file self-test exit 0; a planted omitted summary exits 1. Every question, exact quotation and displayed count checked; price and network fee remain OK, not approval. Keyboard and emulated touch reveal work; all selector states fit 360, 375 and 390 pixels and every four-pixel width from 400 through 1300 with no document or inner sideways scrolling. JavaScript off retains every clause, preamble line and legal-clearance warning.

Do it for real

Before sharing a real lease, check your model provider's retention and training settings, for example Claude Code data usage. The model provider receives prompts and included file contents even if you forbid the agent from browsing. Keep your original outside the working folder; work with a copy that removes unneeded names, addresses, emails, phone numbers, account and card numbers, Social Security numbers, member and ticket IDs, and other identifying details. Keep the dwelling's state, locality and tenancy type in the copy, since those determine which rules to check. Before relying on a coverage check, reconcile the entire source against its reviewed-text inventory, including cover pages, summary boxes, recitals, riders and exhibits. A checker proves only what its parser recognizes and its tests exercise; adapt the parser and test uncovered text when the document's structure changes. Ask the agent to list questions from the contract AND separately compare clauses with current official state, local and federal rules. ASK is a contract question, not a finding of illegality; OK is not legal approval. A landlord's answer cannot waive mandatory protections. Check fees, deposit and cleaning rules, occupancy and accommodations, entry, renewal, notice and early-exit rights in your own jurisdiction before signing. Start with your state attorney general, housing agency or real estate regulator, for example New York's tenant guide or California's state guide; neither governs this placeless fictional lease. For animal accommodations, see HUD's current enforcement guidance; individual rights are fact dependent and HUD's enforcement posture is not the whole law. Ask a local tenant organization or housing attorney about consequential disputed terms. The questions help you read and negotiate, not decide legal rights or whether to sign.

Why an agent, not a chat window

The agent reads every clause without skipping, copies the exact words behind each question, and runs a checker for coverage and quotation accuracy. A separate check of the law where you live is still necessary.

Go deeper

Why the prompt is written this way

The recorded runs

ToolModelFirst run tookFiles madeSessions
OMP 18.17.0openai-codex/gpt-6-sol7 min 14 s4first session + 1 later

The published OMP lease run and its later phone-plan run use the same ASK/OK method, with questions chosen for each document. The checker maps nonempty source lines to numbered clauses, continuation lines or a separate preamble inventory; it does not judge law or the wisdom of questions. A new document structure needs its own parser and coverage tests. The first checker hardcodes lease.txt in its citation checks; reuse the later phone-plan session's updated clause-check.py, which takes the citation file name from the source path.

Push it further