Skip to content

[audit] Structural (design): cmd/ talks to DynamoDB directly (27 sites, ~5 files) — extract a store/repository layer #326

Closed

Description

@scttfrdmn

Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.

Phase: Phase 3 — structural (needs design)

Evidence

  • raw dynamodb ops in bot/team/pipeline/list-sweeps/collect; alerts/cost/autoscale/availability already delegate via a client
  • no pkg/team exists

Recommendation
Extract per-domain repos for the ~5 leaking files (mirror pkg/alerts.Client). Leave the 4 that already inject a client. Prerequisite for the cmd SDK-import guardrail. Higher-value of the two big structural items.

User-facing / SemVer: No — internal. No bump.

Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).

Metadata

Metadata

Assignees

No one assigned

    Labels

    audit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions