← all decisions

ADR-001: Staging gate required before production

Status: accepted · Date: 2026-04-18


Context

The portfolio uses AI-driven automation to ship code: issues are picked up by archon, PRs are generated, CI runs, and merges happen without human review on the happy path. This compresses the feedback loop but also removes the human gate that traditionally catches “looks fine, breaks in prod” regressions.

Decision

Every backend service with a prod environment must have a staging environment that the automation deploys to first, and a set of smoke/E2E tests that run against staging. Prod deploys are gated on staging tests passing.

Consequences

Alternatives considered