The verified-sites table's by-state GSI was deleted by its owning
stack (procurement-ingest, audit M-20, 2026-06-03, "0 reads in 30d"),
so the state-listing branch of lookup_site has failed at runtime ever
since. Per the owner's decision, remove the path end-to-end instead
of restoring the GSI: drop the by-state Query from the Lambda, remove
the state parameter from the WO_PO_Lookup lookup_site function schema
(site_code is now required), strip state listings from the agent
instruction, and update the README data-contract table. siteCode
point lookups are unaffected. A stale state parameter from an older
prepared agent version now returns a clear "no longer supported"
message.
Refs: INFRA-180
- Create SiteAssignments DynamoDB table with state GSI for site code and
state-based queries
- Add lookup_site function to wo-po-lookup action group lambda
- Add seed script (scripts/seed-sites.ts) to load site CSV into DynamoDB
- Upload site list markdown to KB S3 bucket for semantic search
- Update agent instruction to include site lookup capability
- Update README with site assignment docs and maintenance notes
Vector search couldn't match exact work order/PO numbers, so queries
always came back empty. This adds a dedicated lambda that queries
DynamoDB directly by ID, wired as a Bedrock Agent action group.