# Document parsing

A reusable skill the "Never miss an obligation in a signed contract" recipe pulls in. Add it once and every agent on the team can use it.

Convert a signed contract in Word or PDF form into full text for obligation extraction.

## Method
1. Fetch the contract at {{contract_path}} from the executed-contracts folder.
2. Convert the file to full text, keeping clause and page references intact.
3. Handle both docx and PDF sources without losing section structure.
4. Flag any file that fails to parse cleanly rather than passing partial text downstream.
5. Hand the parsed text to both extraction sub-agents identically, so neither has an advantage.

## Rules
- Both extraction passes must receive the exact same parsed text, with no version drift between them.
- A parse failure is reported, not silently skipped from the tracker.
- Executed-contracts folder location (set on first run, then stored in memory).
- Preserve clause and page references so every published obligation can cite its source.

## Output
Full contract text with clause and page references, delivered identically to both extraction sub-agents.
