The most architecturally novel module in the AE Suite. ContractGuard reads entire contracts — not summaries, not extracted fields — using Gemini 1.5 Pro's 1M token context window. Every clause is classified, risk-scored, and explained before Legal sees it. The counter-position is drafted before the lawyer opens the document.
ContractGuard sits between the document store (where contracts arrive) and the Legal team (who reviews flagged clauses). It is the intelligence layer that makes the Legal team's time go further — they only see clauses that exceed the risk threshold, with full context and a draft counter-position already prepared.
The two-pass architecture is ADR-CG01 — the most important design decision on this page. Document AI provides fast, deterministic, structured clause extraction in Pass 1. Gemini 1.5 Pro provides full semantic reasoning over the entire document in Pass 2. Neither pass alone is sufficient. Together, they are cheaper and more accurate than Gemini alone.
The ContractGuard state machine reflects the two-pass architecture — Pass 1 and Pass 2 are distinct states with their own failure modes and timeout behaviours. HITL nodes can be triggered multiple times in a single contract run — once per flagged clause above the risk threshold, plus a separate HITL-03 if the governing law is non-standard.
The same University Hospital München contract from the RevRec AI demo — uploaded to ContractGuard for risk analysis before signing. Document AI parses it in Pass 1. Gemini analyses the full document in Pass 2. Three clauses are flagged. The highest-risk clause routes to HITL-02. The Legal team approves with an amendment. A counter-proposal is generated.
HITL-02 is more complex than RevRec AI's HITL-04 because the Legal reviewer needs more context: the clause text, the risk reasoning, three precedent contracts with their outcomes, and a draft counter-position already generated by Gemini. The goal is that by the time Legal opens the queue, the analysis work is done — they are making a judgment, not doing extraction.
ADR-010 governs the risk model. ADR-CG01 and ADR-CG02 are ContractGuard-specific — the two-pass architecture and the Vector Store choice. These are the decisions that distinguish ContractGuard from a naive "send the contract to Gemini and ask if it's risky" implementation.
ContractGuard generates more stakeholder questions than any other module — because it operates in a domain where the stakes of being wrong (a bad contract term missed) are high and visible, and where the technology (LLM-based analysis) is the most unfamiliar to the people who matter most.
The same München contract from the RevRec AI demo — showing the continuity between modules. Upload the PDF, watch both passes execute, open the HITL-02 Legal queue with the flagged liability cap clause, show the counter-position draft, approve with amendment.
ContractGuard and RevRec AI share the same München contract across their demos — showing that the AE modules form a coherent workflow, not a collection of independent tools. The next module pages follow the same seven-section template.