Skip to content

Repository files navigation

ClaimGuard

ClaimGuard is an evidence-linked shipment exception agent for small online sellers. It turns carrier notices, order facts, and customer reports into a traceable claim packet, then stops at a human review gate before any message, refund, payment, or filing can occur.

This is an entry candidate for the AWS Agents for Humans hackathon. It uses the AWS Strands Agents SDK with local Ollama inference, so the demo runs without paid APIs or cloud credentials. All included names, orders, carriers, and events are synthetic.

What it does

  1. Normalizes a shipment exception and links facts to source IDs.
  2. Computes the claim deadline deterministically.
  3. Checks required evidence coverage.
  4. Uses a Strands agent to explain evidence and stage the next action.
  5. Preserves explicit human gates for messages, claims, refunds, and payments.

Run locally

Prerequisites: Python 3.10+, Node 22+, and Ollama.

ollama pull qwen2.5:3b
python3.12 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python -m claim_guard demo/case.json --output demo/output.json
npm install
npm run dev

Run deterministic tests with .venv/bin/pytest and build the interface with npm run build.

Architecture

flowchart LR
 A[Carrier notices] --> N[Normalized case]
 B[Order and invoice] --> N
 C[Customer report] --> N
 N --> D[Deadline and evidence checks]
 D --> S[AWS Strands agent]
 S --> P[Review packet]
 P --> H{Human approval}
Loading

Safety boundary

The demo never contacts a carrier, sends a customer message, files a claim, or triggers a refund or payment. It only stages a packet for review.

License

MIT

About

Evidence-linked shipment claim operations agent built with the AWS Strands Agents SDK

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages