# Repository Briefing: anandapurva55/agentic-claims-adjudication-aws
> Source: https://repoforai.com/repo/anandapurva55/agentic-claims-adjudication-aws (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/anandapurva55/agentic-claims-adjudication-aws
- **Official Docs / Website**: https://anandapurva55.github.io/agentic-claims-adjudication-aws/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 15/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, MCP, API
- **Momentum**: 149 ★ total (+15 24h / +126 7d) · 23 forks
- **Topics**: `agentic-ai`, `amazon-bedrock`, `aws`, `aws-bedrock`, `aws-cdk`, `aws-s3`, `docker`, `fastapi`, `github-actions`, `guardrails`, `human-in-the-loop`, `insurance`
- **When to Use**: Best for: AWS-based motor insurers prototyping an adjuster workbench that must cross-check external records, cite policy clauses, and preserve a human decision trail. Skip if: You need offline inference, automatic payouts, or a low-latency workflow whose deciding facts are already in the claim packet.

## Overview
```text
### Architecture & Core Mechanics
The React/TypeScript workbench calls a FastAPI backend that loads documents and cached extraction results from S3. The Strands graph runs Intake first, then Coverage and Investigator in parallel. Python coordinates photo and rule checks and permits one round of follow-up questions after the graph. Deterministic rules produce the approve, deny, or refer recommendation and calculate the payable amount. A fourth agent writes the adjudication memo afterward; the API requires a human to make the final decision.

The Python 3.12+ manifest pins Strands Agents 1.65.0 and MCP 2.3.0 and includes boto3 and pypdf for AWS calls and deterministic form parsing. Configured Bedrock models are Nova 2 Lite for intake and investigation, Claude Haiku 4.5 for coverage, and Claude Sonnet 4.6 for the memo. Strands attaches two stdio MCP servers by role, exposing lookups without payment or policy-edit tools. AgentCore Memory distinguishes short-term claim notes from long-term lessons that only humans can write. Hooks stream model, tool, and handoff events to the workbench; each run is capped at 40 model calls.

### Key Capabilities & Differentiators
The workflow handles claim forms, repair estimates, accident narratives, and damage photos. Bedrock Data Automation runs before adjudication, and the application cross-checks its form extraction against a deterministic parser. Extraction matched all fields on 58 of 63 forms; damaged-part identification reached 0.80 F1 on 70 photos. Policy retrieval uses Bedrock Knowledge Bases, Titan Text Embeddings V2, and S3 Vectors. Coverage cites clause identifiers from retrieved metadata, but retrieved wording does not directly determine the payout. Default top-three retrieval found the correct clause on 79.2% of 48 questions with clause cards, versus 66.7% without them.

The recommendation matched 77 of 78 held-out cases (98.7%; 95% Wilson interval 93.1%–99.8%), with one unsafe approval attributed to a test-data defect. Payable amounts matched exactly on the template sets; 20 manually calculated boundary cases also matched. Measured claim latency was 25 seconds at p50 and 43 seconds at p95, with about US$0.05 in AI usage per claim, not an all-in hosting estimate. The claims are synthetic, though the policy wording and damage photographs are real, so these results do not establish production accuracy.

### Trade-offs & Limitations
The strongest alternative is a single model call paired with deterministic rules and human review. On 124 free-form cases, the agent team and single-call baseline both reached 98.4% accuracy, with one unsafe approval each; the single call used roughly one-fiftieth of the AI cost when the facts were already in the packet. The graph is more useful when claims depend on outside records. In the planted-problem investigation test, agents plus a rule safety net found 69 of 72 problems (96% recall), with an 11-of-84 false-alarm rate (13%). Structured capture matters: a model can describe a finding in prose without recording it for the rules engine.

Layered controls are more informative than the prompt filter alone: none of 29 completed red-team attempts succeeded, but Guardrails flagged only 15 and a model error ended the 30th attempt. That is a bounded test result, not a security guarantee. Compared with a thin model API workflow, this design adds traceability, tool scoping, and an explicit sign-off gate, but carries more AWS integration and day-two work. The MIT code license permits commercial reuse; it does not remove service dependencies or cover rights to the underlying policy and photo assets.

### Hardware & Deployment Guide
The GitHub Pages demo needs no backend and replays the rule baseline instead of invoking live agents. A live deployment uses the CDK infrastructure, Python 3.12+, Docker, and an AWS account with access to the configured Bedrock models and services. CloudFront and WAF front the application, Cognito handles sign-in, and a CloudFront VPC origin reaches an internal Application Load Balancer. The arm64 Fargate task sits in a public subnet for outbound AWS service access without a NAT gateway, but its inbound traffic is restricted to the load balancer security group.

Serving needs no local GPU or CUDA: Bedrock runs inference, while Fargate handles the API, parsing, tool calls, and orchestration. Before sizing for production, measure task CPU and memory under concurrent runs, verify regional service availability and model quotas, and account for infrastructure charges beyond model usage. S3 telemetry, Glue, Athena, QuickSight, and CloudWatch support analysis and operations; SageMaker fine-tuning is a separate path. The manifest declares version 1.0.0, but there is no published GitHub release from which to infer a release cadence.
```

## Key Capabilities
```text
- Execution graph: Strands runs Intake first, fans out to Coverage and Investigator, and leaves the final memo to a separate post-rules agent.
- Decision authority: Python rules produce the approve, deny, or refer recommendation and payable amount; the API requires human sign-off.
- Tool boundaries: Two stdio MCP servers split policy and claim-record lookups from garage, repair-cost, and police-report checks.
- Policy grounding: Clause cards with clause_id metadata raised Recall@3 from 66.7% to 79.2% on 48 questions.
- Run visibility: Model calls, tool calls, and handoffs drive the React graph; a 40-model-call cap bounds each run.
- Model selection: SageMaker QLoRA raised Qwen2.5-3B accuracy on unseen wording from 65% to 88% in a separate experiment; serving retained prompted Bedrock models.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/anandapurva55/agentic-claims-adjudication-aws.git
cd agentic-claims-adjudication-aws
```
