Skip to content

About

AI-powered government resource allocation triage system built for {build} hackathon 2026 . Businesses submit appeals during a crisis; Claude on Amazon Bedrock adjudicates them; human officers review and override via a web dashboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaseTriage

AI-powered government resource allocation triage system built for {build} hackathon 2026. Businesses submit appeals during a crisis; Claude on Amazon Bedrock adjudicates them; human officers review and override via a web dashboard.

Architecture

                  ┌─────────────────────────────────────┐
                  │         triage-dashboard             │
                  │  Next.js officer dashboard           │
                  │  /apply  /  /cases/[id]              │
                  └───────┬──────────────┬───────────────┘
                          │              │
                     DynamoDB          SQS
                   (read/write)    (submit appeal)
                          │              │
                          │        ┌─────▼──────────────┐
                          │        │  triage-appeal-bot  │
                          │        │  Python Lambda      │
                          │        │  (SQS triggered)    │
                          │        └─────┬───────────────┘
                          │              │
                     DynamoDB    S3 + Bedrock (Claude)
                   (decisions,  (policies + PDFs →
                   ledger)       AI adjudication)

Services

Directory Language Purpose
triage-dashboard/ TypeScript / Next.js Officer dashboard + appeal submission
triage-appeal-bot/ Python 3.12 Lambda adjudication engine
infra/ CloudFormation All AWS infrastructure

AWS Resources

  • DynamoDB — 6 tables: Appeals, AppealDecisions, AppealDocuments, ResourceLedger, LedgerEntries, PriorityList
  • S3 — appeal PDFs + government policy documents
  • SQS — two priority queues (high / normal) decoupling submission from adjudication
  • Lambda — containerised Python function, SQS-triggered
  • ECR — Docker image registry for the Lambda function
  • Bedrock — Claude via Converse API with forced tool use for structured decisions

Deploy

1. Provision infrastructure

aws cloudformation deploy \
  --template-file infra/template.yaml \
  --stack-name casetriage \
  --capabilities CAPABILITY_NAMED_IAM \
  --parameter-overrides LambdaImageUri=PLACEHOLDER

This creates all tables, queues, the S3 bucket, the ECR repo, and the IAM role. Note the stack outputs — you'll need the SQS queue URLs and bucket name.

2. Build and push the Lambda image

ECR_URI=$(aws cloudformation describe-stacks \
  --stack-name casetriage \
  --query "Stacks[0].Outputs[?OutputKey=='ECRRepositoryUri'].OutputValue" \
  --output text)

aws ecr get-login-password --region ap-southeast-1 \
  | docker login --username AWS --password-stdin "$ECR_URI"

docker build -t triage-appeal-bot ./triage-appeal-bot
docker tag triage-appeal-bot:latest "$ECR_URI:latest"
docker push "$ECR_URI:latest"

3. Update the stack with the real image URI

aws cloudformation deploy \
  --template-file infra/template.yaml \
  --stack-name casetriage \
  --capabilities CAPABILITY_NAMED_IAM \
  --parameter-overrides "LambdaImageUri=$ECR_URI:latest"

4. Seed test data

cd triage-appeal-bot
S3_BUCKET=<bucket> AWS_REGION=ap-southeast-1 \
  BEDROCK_MODEL_ID=anthropic.claude-3-5-sonnet-20241022-v2:0 \
  python seed.py

5. Deploy the dashboard

See triage-dashboard/README.md for Vercel deploy instructions.

Local development

See each service's README for local setup instructions.

About

AI-powered government resource allocation triage system built for {build} hackathon 2026 . Businesses submit appeals during a crisis; Claude on Amazon Bedrock adjudicates them; human officers review and override via a web dashboard.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages