← Back to Pull requests

docs(design): ADR-0059 — a deployment environment is a stage, not a branch #385

Open
unknown opened this pull request with 208 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 23, 2026 14:56 UTC
Author

prisma dev module.ts                      # local development
prisma deploy module.ts --stage staging  # the stage named staging

This ADR records that Composer's word for a deploy-time environment is stage, and that it stays that way on every public surface: the --stage flag, the destroy operation's { kind: 'stage', stage } target, the guides, errors and the agent skill.

A stage is a concept of Composer's core. The same module graph deploys unchanged to any stage, and the deploy state is kept per stage. Alchemy, the deploy engine underneath, uses the same word. A deployment target decides what a stage becomes on its platform. On Prisma Cloud a stage resolves to a Branch, as ADR-0024 describes; this ADR does not change that. A stage also names local development (prisma dev), which has no Branch and never can.

"Branch" is Prisma Cloud's term, and it brings a GitHub-shaped workflow with it: a pushed git branch becomes a Branch. Not every project deploying to Prisma Cloud with Composer works that way, and --branch staging reads as "the git branch called staging". So the Prisma Cloud term stays inside the Prisma Cloud extension and in output that reports what the platform did.

The ADR also adds a line to the glossary's Stage entry and an entry to the ADR index.

Numbering: ADR-0057 is claimed by #382, #383 and #384, so this takes 0059 to leave room for them.

Alternatives considered (in the ADR): rename to --branch with a deprecated --stage alias; keep both words as synonyms; call it "environment". All three are rejected.

Agent: ptah-43

🤖 Generated with Claude Code

Diff: 208 lines (+156 / -52) across 2 files Reviewer: wmadden-electric Review duration: 2786m
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 208 lines diff across 2 files
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.320
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #385"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 59.6% (MEDIUM) · Higher = larger blast radius
59.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 31.8% · Safe to merge
31.8%