# Environment Choice Staging Or Prod

> Decide deliberately whether the proof runs against staging, a local build or production, and record why, so the choice is justified by evidence instead of grabbed by default. Use when several environments could host the test and the choice changes risk or validity

- Skill: `wsh7ash/environment-choice-staging-or-prod` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/environment-choice-staging-or-prod`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/environment-choice-staging-or-prod/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/environment-choice-staging-or-prod

---


# Environment Choice Staging or Prod

> Decide deliberately whether the proof runs against staging, a local build or production, and record why, so the choice is justified by evidence instead of grabbed by default

**Use when:** several environments could host the test and the choice changes risk or validity

**Avoid when:** only one environment holds the behavior under test and it is already authorized

## Procedure

1. List candidate environments: local build, staging, sandbox, shared test tenant and production.
2. Check each for behavioral parity with production, since a stale staging build invalidates the proof.
3. Weigh risk: production proves the real thing but carries real blast radius, staging may not reproduce.
4. Confirm authorization covers the environment you choose, since permission rarely spans all of them.
5. Record the choice with its reasoning and the parity evidence that justified it.
6. Fall back deliberately if staging fails to reproduce, rather than drifting silently into production.

## Signals

- Staging runs an older build than production, so a pass there may not reflect the real behavior.
- The bug appears only in production, which forces a higher-risk choice that needs explicit justification.
- Authorization covers staging but your plan quietly targets production because it is easier.
- Nobody can state which environment matches production behavior right now.

## Patterns

**1. Choice row**

```text
env=staging build=2.31.0 parity=checked-on=2026-10-27 risk=low authorization=yes verdict=use-staging
```

**2. Parity note**

```text
feature=new-checkout staging=absent production=present implication=staging-cannot-prove-this
```

**3. Fallback**

```text
trigger=staging-no-repro next=request-production-approval reason=parity-gap-not-your-assumption
```

## Pitfalls

- Testing on staging that no longer resembles production and reporting a behavior that does not exist.
- Choosing production for convenience while authorization only covers staging.
- Treating a staging failure as a negative result when the build simply lacks the feature.
- Switching environments without recording why, so the evidence chain loses its context.

## Done when

- The environment choice is recorded with its parity evidence and authorization status.
- Staging-versus-production differences relevant to the claim are documented.
- Any fallback to another environment is a recorded decision, not a drift.

## References

- [OWASP - testing guidance for test environments](https://owasp.org/www-project-web-security-testing-guide/)
- [ISO 29147 - vulnerability disclosure](https://www.iso.org/standard/72311.html)

