docs: document cross-stack DynamoDB data contracts (INFRA-138) #79

Merged
amoussa1229 merged 1 commit from INFRA-138-document-dynamo-contracts into main 2026-07-08 20:22:56 +00:00
amoussa1229 commented 2026-07-08 20:16:41 +00:00 (Migrated from github.com)

INFRA-138 — document cross-stack DynamoDB data contracts

seahaven-slack-bot imports 5 DynamoDB tables it does not own via Table.fromTableName(...) and reads them read-only to back the Bedrock agent (Alex). Because the tables are imported by name, owner-side schema/encryption/lifecycle changes break the agent silently at runtime, not at deploy (CMK grant-gap INFRA-95/M-3 is precedent).

Adds a Cross-stack data contracts section to the README listing all 5 tables with owner repo/stack, the keys/GSIs/attributes the bot depends on, and encryption.

Tables

Table Owner
WorkOrders procurement-ingest / WorkorderIngestStack
WorkOrderComments procurement-ingest / WorkorderIngestStack
purchase-orders procurement-ingest / po-ingest
verified-sites procurement-ingest / po-ingest
PaymentsDashboard payments-dashboard

Flagged: live broken contract

wo-po-lookup still queries the verified-sites by-state GSI, which the owner removed 2026-06-03 (M-20). State-based lookup_site calls fail at runtime today. Point lookups by siteCode are unaffected. Needs cross-repo reconciliation (restore GSI or drop the state path).

Docs only. Companion PRs on procurement-ingest and payments-dashboard.

## INFRA-138 — document cross-stack DynamoDB data contracts `seahaven-slack-bot` imports 5 DynamoDB tables it does not own via `Table.fromTableName(...)` and reads them read-only to back the Bedrock agent (Alex). Because the tables are imported by name, owner-side schema/encryption/lifecycle changes break the agent silently at runtime, not at deploy (CMK grant-gap INFRA-95/M-3 is precedent). Adds a **Cross-stack data contracts** section to the README listing all 5 tables with owner repo/stack, the keys/GSIs/attributes the bot depends on, and encryption. ### Tables | Table | Owner | |---|---| | `WorkOrders` | procurement-ingest / WorkorderIngestStack | | `WorkOrderComments` | procurement-ingest / WorkorderIngestStack | | `purchase-orders` | procurement-ingest / po-ingest | | `verified-sites` | procurement-ingest / po-ingest | | `PaymentsDashboard` | payments-dashboard | ### Flagged: live broken contract `wo-po-lookup` still queries the `verified-sites` `by-state` GSI, which the owner removed 2026-06-03 (M-20). State-based `lookup_site` calls fail at runtime today. Point lookups by `siteCode` are unaffected. Needs cross-repo reconciliation (restore GSI or drop the state path). Docs only. Companion PRs on `procurement-ingest` and `payments-dashboard`.
seahaven-openswe[bot] (Migrated from github.com) reviewed 2026-07-08 20:17:51 +00:00
seahaven-openswe[bot] (Migrated from github.com) left a comment

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in Web

## ✅ Open SWE Review: No issues found Open SWE reviewed this PR and found no potential bugs to report. [Open in Web](https://openswe.seahaven.com/agents/reviews/Sea-Haven-Industries/seahaven-slack-bot/79) <!-- open-swe-reviewer pr=79 -->
This repo is archived. You cannot comment on pull requests.
No description provided.