Claim states
TheClaimStatus model defines draft, uploading, scanning, processing, needs_information, pending_approval, approved, rejected, refund_submitted, refunded, refund_failed, pending_ai_capacity, and closed. A defined state is not a promise that every path reaches it.
Submission requires at least one document and requires every uploaded document to be verified. The Durable workflow scans evidence, applies safety and evidence checks, runs an assessment, and waits for human approval. It closes a claim after a seven-day approval timeout. A rejection ends the workflow without a refund. When an assessment requires two approvals, the workflow waits for two distinct reviewer IDs.
Implemented limits
Monthly claim and document-page limits are configuration values, but the current FastAPI routes do not enforce them. The API does not define cursor pagination or a general client idempotency header.
The Stripe refund uses
refundflow:{claim_id} as its idempotency key. Repeating upload completion returns the verified result, and the Functions starter reuses an active workflow for the same claim and input. A review decision is accepted only while the claim is pending approval.