[INFRA-180] Remove broken state-listing path from wo-po-lookup #92
No reviewers
Labels
No labels
app
bug
ci
compliance
dependencies
docker
docs
documentation
duplicate
enhancement
good first issue
help wanted
infra
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/seahaven-slack-bot#92
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "bug/INFRA-180-remove-state-listing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
verified-sitestable'sby-stateGSI was deleted by the owning stack on 2026-06-03 (procurement-ingest audit M-20, "0 reads in 30d"), so the state-listing branch of the bot'slookup_siteaction has failed at runtime ever since. Per the owner's decision (INFRA-180), this removes the state-listing path end-to-end rather than restoring the GSI:lambda/wo-po-lookup/index.ts— drop theby-stateQuery;lookupSitenow takes only a site code. A stalestateparameter (e.g., from an older prepared agent version) returns a clear "no longer supported" message.lib/constructs/bedrock-agent.ts— remove thestateparameter from theWO_PO_Lookup.lookup_sitefunction schema (site_codeis nowrequired: true) and strip state listings from the agent instruction, so the agent stops offering the capability.README.md— update theverified-sitesdata-contract row and mark the known-broken-contract note resolved.siteCode point lookups (
GetItemby PK) are unaffected.Validation
npx tsc --noEmitpasses.by-state/ state-listing anywhere in the repo (outside the README's resolution note).tsc.Tests
No automated tests exist in this repo. Manual verification was static (typecheck + exhaustive grep); the state path was already failing at runtime, and the removed branch is the only consumer of the deleted GSI.
Notes
stateparameter from the Bedrock agent'slookup_siteaction surface. Deploying requires the agent to be re-prepared for the new function schema to take effect.cross_review.py) verdict: no BLOCK items and no security issues. FIX items: (1) document the breaking change for downstream consumers — done in this PR body and the README; (2) handle a stalestateparameter gracefully instead of a confusing generic error — applied in the handler. NITs (docs/tests/dead-reference cleanup) are covered by the README update and repo-wide grep.review.shat~/Documents/repositories/security-review/but the repo lives under~/Documents/repositories/seahaven/security-review/. Flagging as a hook-config issue; unrelated to this change.Refs: INFRA-180
✅ Open SWE Review: No issues found
Open SWE reviewed this PR and found no potential bugs to report.
Open in Web