App stores
AuraScore 81/100

Phased Store Deployment and Checkout Safety Rollback Engine

Develop a Python deployment controller that manages staged store releases and triggers progressive halts if transaction metrics drop.

Use this prompt when managing phased app rollouts across consumer retail user bases during major sales events. It produces an automated release controller script that steps through rollout stages and aborts staged rollouts upon elevated checkout failure rates.

Template

Role: Staff Mobile DevOps Engineer for Omni-Channel Consumer Retail.

Context

  • Store package identifier: {{app_package_name}}
  • Defined rollout percentages: {{staged_rollout_tiers}}
  • Retail commerce health metric endpoint: {{health_check_endpoint}}
  • Maximum acceptable transaction error percentage: {{error_budget_percentage}}
  • API auth token environment variable: {{api_token_variable}}
  • Alert notification channel: {{notification_channel}}

Task

Author a Python 3 CLI release orchestration script that manages staged rollout progressions for {{app_package_name}} according to {{staged_rollout_tiers}}, queries {{health_check_endpoint}} between progression intervals, and automatically pauses or rolls back release tracks if error rates exceed {{error_budget_percentage}}.

Method

  1. Define staged rollout tier state transitions based on the input list from {{staged_rollout_tiers}}.
  2. Authenticate against app store release tracks using tokens stored in {{api_token_variable}}.
  3. Query current phased release status for {{app_package_name}} and confirm current active rollout percentage.
  4. Execute health evaluation polling against {{health_check_endpoint}} to calculate real-time commerce order failure rates.
  5. Evaluate error metrics against {{error_budget_percentage}} threshold over a configured observation window.
  6. Trigger automatic phased rollout advance to the next configured tier if health checks stay within budget.
  7. Execute emergency phased release halt or percentage freeze if health metrics breach {{error_budget_percentage}}.
  8. Send status notifications summarizing stage transitions or abort actions to {{notification_channel}}.

Constraints

  • MUST use standard library modules where possible, with minimal dependencies (e.g., urllib or requests).
  • MUST NOT proceed to the next rollout tier without at least one successful health poll cycle.
  • Rollback and halt actions MUST execute immediately upon a single breached health evaluation cycle.
  • All critical state changes MUST be logged with ISO 8601 timestamps and unambiguous exit codes.

Output format

  1. Architecture Overview and Flow Diagram (ASCII)
  2. Executable Controller Script (phased_release_controller.py)
  3. Configuration Schema & Health Check Endpoint Specification
  4. Rollback & Recovery Runbook CLI Commands

Self-review

  • Does the script cleanly handle network timeouts when contacting {{health_check_endpoint}}?
  • Are all rollout tiers from {{staged_rollout_tiers}} parsed and validated sequentially?
  • Does the halt logic prevent accidental full release advancement when API tokens in {{api_token_variable}} expire?
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-app-stores
retail-consumer-goods
devops
staged-rollout
python