AntFleet

Receipt · 4c349ef3-1

DynamoDB table uses a hard-coded `table_name` which prevents multi-environment deploys and causes CFN failures on re-creation

maintainabilitymedium
repo 703f69ec·PR #3·reviewed 5 days ago

The finding

  • infra/stack.py:64-75
  • infra/stack.py:100-103
Hard-coding `table_name` makes it impossible to deploy this stack twice in the same account/region (e.g., dev + staging), and combined with `RemovalPolicy.RETAIN` any failed delete leaves the table orphaned, blocking re-deploy with the same name. Additionally `DDB_TABLE` env var is a duplicated literal rather than referencing `table.table_name`, so a future rename will silently break the Lambda.

Fix

Omit `table_name` (let CDK generate it) and pass `table.table_name` to the Lambda env. If a stable name is required, derive it from `self.stack_name`.

Agent attribution

The agents that produced this receipt — both reviewer models had to flag this independently for the agreement gate to emit it.

anthropic

gpt-5

61.9s · error

openai

claude-opus-4-7

88.9s · error

Total

wall-clock review time · est. inference cost

88.9s · $0.40

Sweeper

closed at SHA

still open

internal review id · 4c349ef3

Third-party witnesses

Everything below lives on GitHub's event log, not ours. Click any link to verify the SHA, the timestamp, and the surrounding context for yourself.