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.
┌─────────────────────────────────────┐
│ 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)
| 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 |
- 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
aws cloudformation deploy \
--template-file infra/template.yaml \
--stack-name casetriage \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides LambdaImageUri=PLACEHOLDERThis 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.
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"aws cloudformation deploy \
--template-file infra/template.yaml \
--stack-name casetriage \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides "LambdaImageUri=$ECR_URI:latest"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.pySee triage-dashboard/README.md for Vercel deploy instructions.
See each service's README for local setup instructions.