Commit graph

110 commits

Author SHA1 Message Date
Adam Moussa
2b8e121413
Merge pull request #2 from Sea-Haven-Industries/feature/verified-sites-pipeline
Add verified-sites pipeline with address fallback
2026-04-30 15:06:04 -04:00
Adam Moussa
2d79c81e7d Update README with pending-site-review table and address fallback docs 2026-04-30 15:03:43 -04:00
Adam Moussa
f5d1eaeb5b Add address reverse-lookup fallback and pending-site-review table
When no site code is found via Claude extraction or regex cascade,
the Lambda now checks the PO address against a cold-start cache of
verified-sites (normalized street + zip match). If still no match,
the PO is written to a new pending-site-review table for manual
verification against Payee Central.
2026-04-30 15:01:09 -04:00
Adam Moussa
5a86b3c96b Add site_code and structured address fields to extraction prompt
The Claude extraction prompt now explicitly asks for site_code (the
Amazon facility code) and structured ship_to address fields (street,
city, state, zip). The site-extractor Lambda prefers these direct
fields when available, falling back to regex for older PO records.
2026-04-30 14:42:09 -04:00
Adam Moussa
194b1aec44 Update README with verified-sites pipeline and architecture changes 2026-04-30 14:30:54 -04:00
Adam Moussa
ec416079f5 Add verified-sites pipeline via DynamoDB Streams
Enable DynamoDB Streams on purchase-orders table and add a site-extractor
Lambda that extracts Amazon facility codes and addresses from PO ship-to
data, upserting them into a new verified-sites table. Includes a backfill
script for existing POs and upgrades existing Lambdas to arm64 + 60-day
log retention.
2026-04-30 14:26:53 -04:00
Adam Moussa
031a0e1c60
Merge pull request #1 from Sea-Haven-Industries/feature/fix-stack-naming
Fix stack naming to kebab-case
2026-04-28 15:15:18 -04:00
Adam Moussa
3514e74e40 Fix stack naming to follow kebab-case convention
Pin existing CloudFormation stack name via stack_name property so
the live stack is not affected. Construct ID now follows the org
kebab-case standard.
2026-04-28 14:43:48 -04:00
Adam Moussa
fef240695c Add README 2026-04-20 19:31:22 -04:00
Adam Moussa
fc690dd958 Initial commit: PO email ingestion pipeline
CDK stack with SES receipt rule, S3 bucket, email processor Lambda
(Claude-powered extraction), web UI Lambda with Function URL, and
DynamoDB for storage. Includes reprocessing script for missed emails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 12:12:30 -04:00