Skip to content

[audit] Guardrail: add a test forbidding NEW direct aws-sdk service imports in cmd/ (allowlist) #327

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 (gated)

Evidence

  • cmd imports 33 internal pkgs; 19/50 files hit the AWS SDK directly (sts in 9 files, dynamodb in 9)

Recommendation
Add a guardrail test with an allowlist of existing offenders, failing on NEW aws-sdk service imports in cmd/. GATE on the store-layer + STS-helper landing first (else the allowlist is huge).

User-facing / SemVer: No — internal test. 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-07testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions