Document review
Begin with a small synthetic document and a specific review contract, such as identifying required fields and reconciling line-item totals. Install only the file integrations your chosen input format requires.
Split the work
Section titled “Split the work”- Validate attachment type and limits.
- Extract content with provenance.
- Check exact facts in code where possible.
- Ask the model for semantic review against an explicit rubric.
- Retain a report artifact and verify its bytes and retrieval.
Place file access in tools, deterministic checks in domain code, review instructions in prompts, and completion assertions in tests/evals. A document’s embedded instructions do not override those policies.
Make failure observable
Section titled “Make failure observable”Test an unreadable file, missing field, inconsistent total and unsupported format. Assert the report identifies the evidence gap rather than inventing a value. If a report needs human approval before external delivery, keep drafting, approval and delivery as separate operations with exact identities.
Read files and artifacts, structured extraction and test layers.