> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixus.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How It Works

> Our document review process from start to finish

# How We Process Your Documents

Our system follows a rigorous, multi-stage process designed to match the standards
of top-tier law firms. Here's how we handle every document:

## The Complete Workflow

```mermaid theme={null}
graph TD
    A[Document Upload] --> B[Classification]
    B --> C[Intelligent Editing]
    C --> D[Multi-Pass Validation]
    D --> E{Validation Passed?}
    E -->|No| F[Refine & Retry]
    F --> C
    E -->|Yes| G[Output Generation]
    G --> H[Delivery]
```

## Stage 1: Document Intake & Classification

When you upload a document, we first understand what type of document it is.
Is it an NDA? A Master Services Agreement? An employment contract?

<Info>
  Different document types have different standards, expected sections, and risk
  profiles. We validate accordingly.
</Info>

### What We Detect

<CardGroup cols={2}>
  <Card title="Document Type">
    NDA, MSA, SOW, employment, SaaS, purchase, lease, amendment, or general
    contract
  </Card>

  <Card title="Structure">
    Expected sections and actual sections present in your document
  </Card>

  <Card title="Key Parties">Names of the parties to the agreement</Card>

  <Card title="Critical Terms">
    Important dates, governing law, and key provisions
  </Card>
</CardGroup>

### Why Classification Matters

A change to an indemnification clause means very different things in an NDA versus
an MSA. By understanding the document type first, we can:

* Apply appropriate validation rules
* Flag risks specific to that document type
* Ensure expected sections are present
* Validate section boundaries correctly

## Stage 2: Intelligent Editing

Once we understand the document, we apply your requested changes with full
awareness of the document's structure and context.

### Section-Aware Modifications

When you say "edit only Section 3," we take that literally:

<Check>
  * Changes are restricted to the specified section - Other sections remain
    completely untouched - We verify compliance after editing
</Check>

### Context-Preserving Edits

We don't just find-and-replace text. We understand context:

* Defined terms are used consistently
* Cross-references remain accurate
* Document flow is maintained
* Formatting is preserved

## Stage 3: Multi-Pass Validation

This is where we ensure quality. Every document goes through five sequential
validation passes—the same review a senior associate would perform.

<Steps>
  <Step title="Pass 1: Content Accuracy">
    Did the changes match your instructions? We verify every modification aligns
    with what you requested—no more, no less. Unexpected changes are flagged.
  </Step>

  <Step title="Pass 2: Risk Analysis">
    For legal documents, we automatically flag changes to indemnification
    clauses, liability caps, termination terms, and confidentiality provisions.
  </Step>

  <Step title="Pass 3: Section Compliance">
    Did the edit stay within specified boundaries? When you ask for "only
    Section 4," we verify nothing else was modified.
  </Step>

  <Step title="Pass 4: Format Integrity">
    Is document formatting preserved? We check for consistent styling,
    sequential numbering, and no corrupted content.
  </Step>

  <Step title="Pass 5: Visual Verification">
    The final check: we render the document and verify it looks correct. This
    catches subtle issues that text analysis alone might miss.
  </Step>
</Steps>

### Automatic Retry

If any validation pass identifies issues, we don't just return an error. We:

1. Analyze what went wrong
2. Refine our approach
3. Re-apply the changes
4. Re-validate

This continues up to three times before delivering results. You get the best
possible output without manual intervention.

## Stage 4: Output Generation

We generate the BigLaw-standard deliverable package:

| File              | Format   | Purpose                                    |
| ----------------- | -------- | ------------------------------------------ |
| Redlined Document | DOCX     | See all modifications with tracked changes |
| Clean Version     | DOCX     | Final negotiated version without markup    |
| Blackline PDF     | PDF      | Archival, email-safe, locked format        |
| Change Summary    | Markdown | Executive summary for quick review         |
| Risk Report       | Markdown | Detailed risk flags (if any detected)      |

<Note>
  The first three files are always generated. Change summary and risk report are
  created for legal documents or when risks are detected.
</Note>

## Stage 5: Risk Reporting

If we detect any high-risk changes, we flag them in a separate risk report:

### What We Flag

<AccordionGroup>
  <Accordion title="Indemnification Changes">
    Expansion or reduction of indemnification obligations, removal of
    carve-outs, changes to cap structures.
  </Accordion>

  <Accordion title="Liability Modifications">
    Changes to liability caps, limitation of liability provisions, or the types
    of damages that can be recovered.
  </Accordion>

  <Accordion title="Termination Terms">
    Modified notice periods, changes to termination rights, or alterations to
    termination for cause provisions.
  </Accordion>

  <Accordion title="Confidentiality">
    Strengthening or weakening of confidentiality obligations, changes to
    permitted disclosures, or modified duration of obligations.
  </Accordion>

  <Accordion title="Non-Standard Language">
    Language that deviates from market-standard terms, unusual provisions, or
    terms that may require special attention.
  </Accordion>
</AccordionGroup>

## What You Receive

<Card title="Ready for Client" icon="check-circle">
  At the end of this process, you receive BigLaw-quality deliverables ready for
  client delivery—all automatically, in minutes instead of hours.
</Card>

***

<CardGroup cols={2}>
  <Card title="Multi-Pass Review Details" icon="list-check" href="/legal-ai/multi-pass-review">
    Deep dive into our 5-pass validation process.
  </Card>

  <Card title="Risk Detection" icon="shield-halved" href="/legal-ai/risk-detection">
    Learn more about automatic risk flagging.
  </Card>
</CardGroup>
