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

# 1.4 Context and Scope

## System boundary

Decision Lane accepts a customer's claim and evidence, applies deterministic file checks, retrieves policy passages, asks an AI model to prepare an assessment, and routes the result to a human reviewer.

The application owns claim workflow state, review records, and the connection between a claim and a test refund.

The model cannot approve a claim, move evidence, send email, or issue a payment.

## Users and external systems

* **Customer:** signs in, creates a claim, uploads evidence, submits it, and views its status.
* **Reviewer:** inspects the assessment and evidence, then approves or rejects.
* **Administrator:** views operational KPIs and can initiate a limited model escalation.
* **Microsoft Entra ID:** authenticates users and supplies role claims.
* **Stripe test mode:** receives approved refund requests and sends signed webhook events.
* **Azure AI services:** scan and analyze evidence, extract document fields, retrieve policy passages, and produce a bounded assessment.
* **Azure Communication Services Email:** sends customer status updates.
* **Azure platform services:** host the frontend, API, durable workflow, databases, storage, secrets, and telemetry.

## System context

```mermaid theme={null}
flowchart LR
    Customer[Person: Customer]
    Reviewer[Person: Reviewer]
    Admin[Person: Administrator]
    App[Software System: Decision Lane<br/>Claim intake, evidence validation, human approval]
    Entra[External System: Microsoft Entra ID<br/>Authentication and role claims]
    AzureAI[External System: Azure AI services<br/>Malware scan, safety, extraction, policy retrieval, assessment]
    Stripe[External System: Stripe test mode<br/>Approved test refunds and webhook events]
    Email[External System: Azure Communication Services Email<br/>Customer status messages]

    Customer -->|Claim data and evidence| App
    App -->|Status and result| Customer
    Reviewer -->|Review decision| App
    App -->|Evidence and policy-backed assessment| Reviewer
    Admin -->|Operational queries| App
    App -->|Authentication and roles| Entra
    App -->|Evidence checks and assessment requests| AzureAI
    App -->|Approved refund request| Stripe
    Stripe -->|Signed refund status webhook| App
    App -->|Claim status notification| Email
```

### Scope limits

The guide describes a showcase and Stripe test-mode flow. It does not establish a live commerce integration, a production API hostname, a legal data jurisdiction, or a production release.

Order data is seeded for the showcase. A real commerce integration would require a separately approved source of order ownership and payment references.

The deployed API host is a placeholder. The API reference documents relative routes and disables interactive Try it requests.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.