Inferensys

Prompt

Dark Launch Architecture Evaluation Prompt

A practical prompt playbook for using Dark Launch Architecture Evaluation Prompt in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the ideal scenario, required inputs, and boundaries for the Dark Launch Architecture Evaluation Prompt.

Use this prompt when a platform team is designing or reviewing a dark launch (shadow traffic) architecture for a new service and needs a structured, pre-implementation risk assessment. The ideal user is a staff engineer, architect, or technical lead who has a concrete design proposal in hand—including a service topology diagram, a description of the traffic mirroring path, and a list of downstream dependencies. The prompt evaluates four critical dimensions: traffic mirroring mechanisms, isolation guarantees, observability design, and production safety boundaries. It is intended for use during architecture review sessions, as part of a pre-deployment risk gate, or when comparing alternative shadowing approaches before any code is written.

This prompt is not a deployment runbook, an incident response guide, or a substitute for load testing. Do not use it to evaluate a system that is already live in production without design documentation, or to assess non-functional requirements like cost optimization or team staffing. The prompt assumes the reader brings a specific design proposal; it will not generate a dark launch architecture from scratch. If you lack a service topology or cannot describe how traffic will be mirrored, start with a design spike before invoking this evaluation. The output is a structured review document with identified risks, missing safety controls, and recommended mitigations—not a pass/fail verdict.

Before running this prompt, gather the following context: the service topology (including the shadow target and any downstream services), the traffic mirroring mechanism (e.g., request duplication at the proxy, async log replay, or sidecar capture), the isolation strategy (e.g., separate database instances, read-only shadow stores, or virtualized dependencies), the observability plan (metrics, traces, and alerts that distinguish shadow from production traffic), and the safety boundaries (rate limits, circuit breakers, and kill switches). If any of these inputs are missing, the evaluation will be incomplete. After receiving the review, use the identified gaps to update your design before proceeding to implementation. For high-risk systems—especially those touching payment processing, user notifications, or stateful external APIs—always require human review of the evaluation output before approving the architecture.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Dark Launch Architecture Evaluation Prompt works and where it introduces unacceptable risk. Use this to decide if the prompt fits your context before you run it.

01

Good Fit: Pre-Production Service Validation

Use when: you are validating a new service or a major refactor before exposing it to real users. The prompt excels at reviewing traffic mirroring design, isolation guarantees, and observability instrumentation. Guardrail: ensure the design document includes the shadow traffic path, side-effect sinks, and resource allocation details before invoking the prompt.

02

Bad Fit: Live Incident Response

Avoid when: you are in an active production incident and need immediate root cause analysis. This prompt is a design review tool, not a diagnostic tool. It will produce a structured architecture critique, not a timeline or remediation steps. Guardrail: use an incident runbook or log analysis prompt for active fires; apply this prompt during the postmortem design review phase.

03

Required Input: Traffic Mirroring Architecture Document

Risk: without a concrete design document describing the mirroring topology, isolation boundaries, and observability stack, the prompt will produce generic advice that misses your specific failure modes. Guardrail: provide a detailed architecture document including data flow diagrams, side-effect handling, and resource quotas. The prompt's value scales with the specificity of the input.

04

Operational Risk: Side-Effect Leakage

What to watch: the prompt may identify side-effect risks (e.g., shadow traffic triggering real payments, emails, or state mutations) but cannot verify that your isolation is complete. Guardrail: always pair the prompt's output with a manual review of every external system call in the shadow path. No prompt can guarantee that a dark launch is truly read-only.

05

Operational Risk: Resource Contention Blind Spots

What to watch: the prompt can reason about CPU, memory, and network contention between production and shadow workloads, but it cannot model your specific infrastructure limits. Guardrail: combine the prompt's review with load-testing data and resource utilization forecasts. The prompt identifies categories of risk; your benchmarks quantify them.

06

Team Readiness: Requires Platform Engineering Context

Avoid when: the team running the prompt lacks deep understanding of their traffic routing, service mesh, or observability stack. The prompt's output assumes the reader can evaluate mirroring fidelity and isolation guarantees. Guardrail: pair the prompt with a reviewer who understands the production network topology and can validate the prompt's findings against real infrastructure.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A structured prompt for evaluating dark launch architecture designs against production safety criteria, including side-effect leakage, resource contention, and observability gaps.

This prompt template is designed for platform engineers and SREs who need a rigorous, repeatable review of a dark launch architecture before any production traffic is mirrored. It forces the reviewer to articulate the system context, traffic mirroring mechanism, isolation guarantees, and observability design in sufficient detail that a model or a peer reviewer can identify risks that are often missed during implementation. The template is structured to produce a JSON output with severity-rated findings and actionable recommendations, making it suitable for integration into a release gate or architecture review pipeline.

text
Evaluate the following dark launch architecture design for production safety. Identify risks related to side-effect leakage, resource contention, and observability gaps. Provide a structured review with findings, severity ratings, and actionable recommendations.

## System Context
[SERVICE_NAME]: Name of the service being dark launched.
[ARCHITECTURE_DESCRIPTION]: A description of the service topology, including upstream callers, the mirroring point, and all downstream dependencies.

## Traffic Mirroring Design
[MIRRORING_MECHANISM]: How production traffic is duplicated and forwarded to the dark service (e.g., Envoy request mirroring, Kafka topic duplication, application-level SDK).
[MIRRORING_PERCENTAGE]: The percentage of production traffic being mirrored.
[MIRRORING_LATENCY_IMPACT]: The expected impact on production request latency.

## Isolation Guarantees
[DATA_STORE_INTERACTIONS]: List all databases, caches, queues, and object stores the dark service reads from or writes to. For each, specify whether it is a dedicated dark instance or a shared production instance.
[SIDE_EFFECT_ACTIONS]: List any external API calls, email/SMS sends, payment processing, or other side-effect-producing actions the dark service might trigger.
[RESOURCE_QUOTAS]: CPU, memory, and network limits applied to the dark service instances.

## Observability Design
[METRICS_COLLECTED]: The metrics emitted by the dark service for comparison against the production baseline.
[LOG_AGGREGATION]: How dark service logs are separated from production logs.
[ALERTING_RULES]: Any alerts configured on dark service metrics or error rates.

## Evaluation Criteria
1. Side-Effect Leakage: Can the dark service cause any real-world side effects?
2. Resource Contention: Can the dark service degrade production performance?
3. Data Isolation: Is any production data at risk of corruption from the dark path?
4. Observability Completeness: Can the team detect and diagnose failures in the dark service?
5. Abort Safety: How quickly and safely can the dark launch be terminated?

## Output Format
Return a JSON object with the following structure:
{
  "overall_risk_assessment": "low" | "medium" | "high" | "critical",
  "findings": [
    {
      "id": "string",
      "category": "side_effect_leakage" | "resource_contention" | "data_isolation" | "observability_gap" | "abort_safety",
      "severity": "low" | "medium" | "high" | "critical",
      "description": "string",
      "impact": "string",
      "recommendation": "string"
    }
  ],
  "required_actions_before_launch": ["string"],
  "monitoring_requirements": ["string"]
}

To adapt this template for your own review process, replace each bracketed placeholder with concrete details from your architecture. The quality of the output depends heavily on the specificity of the inputs—vague descriptions of [DATA_STORE_INTERACTIONS] or [SIDE_EFFECT_ACTIONS] will produce vague findings. For high-risk services that interact with payment systems, user notification channels, or production databases, require a human reviewer to verify each finding before the dark launch proceeds. The overall_risk_assessment field should gate the launch: any result of high or critical must block production traffic mirroring until the required_actions_before_launch are completed and re-reviewed.

When integrating this prompt into a CI/CD pipeline or architecture review tool, validate the output JSON against the expected schema before accepting the results. A common failure mode is the model producing findings that are too generic—if a finding does not reference a specific component from your [ARCHITECTURE_DESCRIPTION], treat it as low confidence and request a re-evaluation with more detailed inputs. For services that handle regulated data or have strict uptime requirements, pair this automated review with a manual architecture review; the prompt identifies technical risks, but it cannot assess organizational context or team readiness.

IMPLEMENTATION TABLE

Prompt Variables

Required inputs for the Dark Launch Architecture Evaluation Prompt. Each placeholder must be populated before the prompt can produce a reliable architecture review.

PlaceholderPurposeExampleValidation Notes

[SERVICE_NAME]

Identifies the service under evaluation for dark launch

payment-router-v2

Must be a non-empty string matching a known service registry entry or deployment identifier

[TRAFFIC_SOURCE]

Describes where shadow traffic originates and how it is mirrored

Envoy sidecar capturing 5% of production gRPC calls to checkout-svc

Must specify mirroring mechanism, percentage, and protocol; null if not yet designed

[ISOLATION_BOUNDARIES]

Lists all isolation guarantees between shadow and production traffic

Separate Kafka topic 'shadow.orders', read-only DB replica, no outbound writes

Must enumerate data stores, message queues, and external calls; each boundary must state read/write posture

[OBSERVABILITY_STACK]

Describes the metrics, traces, and logs available for comparing shadow vs production behavior

Prometheus metrics on latency p99, Tempo traces with 'shadow' tag, structured logs to Loki

Must include metric names, trace identifiers, and log query filters; null entries require explicit gap flagging

[SIDE_EFFECT_CATALOG]

Lists every external side effect the service can produce under normal operation

Email send via SendGrid, SMS via Twilio, payment capture via Stripe, webhook dispatch to partners

Must be exhaustive; each side effect requires a suppression strategy or explicit acceptance of risk

[RESOURCE_CONTENTION_POINTS]

Identifies shared resources that shadow traffic could exhaust or degrade

Shared Redis cache cluster, Aurora reader endpoint, CPU on co-located Kubernetes nodes

Must include resource type, sharing mechanism, and current utilization baseline

[ABORT_CONDITIONS]

Defines the thresholds or signals that trigger immediate dark launch termination

Shadow error rate > 10%, production p99 latency increase > 50ms, CPU saturation > 85%

Each condition must have a measurable threshold, data source, and evaluation interval

[OUTPUT_SCHEMA]

Specifies the expected structure of the evaluation report

JSON with sections: safety_assessment, isolation_gaps, observability_gaps, side_effect_risks, resource_risks, recommendation

Must define required fields, types, and enum values for recommendation severity levels

PROMPT PLAYBOOK

Implementation Harness Notes

Wire the Dark Launch Architecture Evaluation Prompt into a production design review workflow with structured output enforcement, validation, and human-in-the-loop approval gates.

This prompt is designed to be called programmatically within a design review pipeline, not as a one-off chat interaction. Integrate it into your existing architecture review process by calling the LLM API with structured output mode enabled—either JSON mode or function calling with a strict schema that matches the expected output contract. The prompt instructs the model to return a list of findings, each with a severity level (critical, high, medium, low), a category, a description, and a recommendation. Enforcing this schema at the API level prevents parsing errors downstream and ensures every finding is machine-readable for automated routing.

After receiving the model response, validate the returned JSON against your output schema before presenting results to the user or taking automated action. Check that all required fields are present, severity values match the allowed enum, and no malformed or truncated objects exist. If validation fails, implement a retry loop with the same prompt and schema, up to a maximum of two retries. If the model consistently fails to produce valid output, log the failure and escalate to a human reviewer rather than silently dropping findings. For findings with a critical severity, flag the review for mandatory human approval before the dark launch can proceed. This means routing the finding to a designated reviewer queue, blocking the deployment pipeline, and requiring explicit sign-off. Do not treat the model's risk assessment as the sole approval signal for high-risk services such as payments, healthcare, or authentication systems—pair this prompt with a formal Failure Mode and Effects Analysis (FMEA) process.

Log the full prompt, raw model response, validated output, and any retry attempts for audit and debugging purposes. Include a unique review ID, timestamp, model version, and the architecture description hash so you can trace every evaluation back to the exact inputs that produced it. This prompt is not a one-shot gate; re-run it whenever the architecture description, traffic mirroring mechanism, or downstream dependencies change. For teams using retrieval-augmented generation (RAG), you can extend the harness by injecting relevant incident postmortems, previous dark launch reviews, or service-level objective (SLO) definitions into the [CONTEXT] placeholder before calling the model. Choose a model with strong reasoning capabilities and low hallucination rates for this task—GPT-4o, Claude 3.5 Sonnet, or equivalent. Avoid smaller or faster models that may miss subtle side-effect leakage or resource contention risks. The harness should treat this prompt as a structured evidence generator, not a decision maker, and always pair its output with human judgment for critical safety boundaries.

IMPLEMENTATION TABLE

Expected Output Contract

Defines the structure, types, and validation rules for the Dark Launch Architecture Evaluation output. Use this contract to parse, validate, and integrate the model response into downstream review systems.

Field or ElementType or FormatRequiredValidation Rule

evaluation_id

string (UUID v4)

Must match regex ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

service_name

string

Non-empty string matching the [SERVICE_NAME] input placeholder exactly

overall_risk_score

string (enum)

Must be one of: low, medium, high, critical. Null not allowed.

traffic_mirroring_assessment

object

Must contain mirroring_method, completeness_percentage (0-100), and sampling_strategy fields

isolation_guarantees

array of objects

Each object must have guarantee_type (string), status (pass|warn|fail), and evidence (string) fields

side_effect_leakage_risks

array of strings

Each string must describe a specific side-effect risk. Empty array allowed only if no risks found.

observability_gaps

array of objects

Each object must have gap_description (string) and severity (low|medium|high|critical) fields

production_safety_recommendation

string (enum)

Must be one of: proceed, proceed_with_cautions, block. Must align with overall_risk_score severity.

PRACTICAL GUARDRAILS

Common Failure Modes

Dark launch evaluations fail silently when the model assumes perfect isolation or ignores side effects. These are the most common failure modes and how to prevent them before traffic hits production.

01

Side-Effect Leakage

What to watch: The model fails to identify that shadow traffic will trigger real side effects—writes to production databases, payment processing, email sends, or push notifications. This is the highest-severity dark launch failure. Guardrail: Require the prompt to enumerate every external write path and state mutation. Add a hard constraint that any unisolated side effect must block the evaluation until resolved.

02

Resource Contention Blindness

What to watch: The evaluation overlooks CPU, memory, connection pool, or disk I/O contention between shadow and production traffic on shared infrastructure. Shadow load degrades real users. Guardrail: Add explicit resource isolation checks to the prompt template. Require the model to identify shared resources and recommend dedicated shadow infrastructure or throttling when isolation is incomplete.

03

Observability Gap Assumption

What to watch: The model assumes observability exists without verifying that metrics, traces, and logs actually distinguish shadow from production traffic. Without this, you cannot compare behavior or detect anomalies. Guardrail: Require the prompt to audit observability design explicitly. Check for shadow-specific headers, trace tags, and metric dimensions before approving the dark launch architecture.

04

Data Privacy Violation in Shadow Path

What to watch: Shadow traffic copies real user data—PII, credentials, session tokens—into test systems, logs, or unsecured storage. This creates compliance and security exposure. Guardrail: Add a data sanitization checkpoint to the prompt. Require the model to identify all data flows and flag any path where real user data reaches non-production systems without redaction or encryption.

05

Traffic Mirroring Completeness Gap

What to watch: The evaluation misses that only a subset of traffic is mirrored—specific endpoints, user segments, or request types—leading to false confidence from incomplete shadow coverage. Guardrail: Require the prompt to verify mirroring scope against production traffic patterns. Flag gaps between mirrored and unmirrored paths and their impact on evaluation validity.

06

Response Comparison Drift

What to watch: The model assumes production and shadow responses can be compared directly but ignores nondeterminism, timestamps, random IDs, or async ordering differences that cause false mismatches. Guardrail: Add a comparison normalization step to the prompt. Require identification of fields that differ by design and specification of comparison logic that tolerates expected variance while catching real regressions.

IMPLEMENTATION TABLE

Evaluation Rubric

Criteria for evaluating the quality and safety of a Dark Launch Architecture Evaluation output before approving it for production use.

CriterionPass StandardFailure SignalTest Method

Side-Effect Leakage Detection

Identifies all state-changing operations (writes, queues, external calls) and classifies each as blocked, isolated, or risky

Omits a known write path or classifies a production DB write as safe without justification

Provide a system design doc with a hidden write path; check if the output flags it

Traffic Mirroring Completeness

Describes the mirroring point, sampling rate, and header propagation strategy for all relevant protocols

Fails to mention how gRPC metadata or async message headers are propagated to the shadow

Submit a design with multi-protocol ingress; verify output addresses each protocol's mirroring mechanism

Resource Contention Analysis

Quantifies expected CPU, memory, and connection pool overhead on production services and sets safe limits

States there is no contention risk without calculating overhead or checking colocation

Check output for specific resource limit recommendations and a statement on colocation impact

Observability Signal Design

Specifies metrics, traces, and logs that compare shadow vs. production latency, errors, and saturation without double-counting

Suggests alerting on shadow service metrics using the same thresholds as production

Verify output recommends separate dashboards and muted or distinct alert rules for shadow traffic

Isolation Guarantee Verification

Confirms shadow traffic cannot reach production databases, queues, or third-party APIs, including retry and error paths

Assumes network policy alone is sufficient without checking SDK retry logic or fallback URLs

Look for a check of application-layer configuration, not just infrastructure firewall rules

Data Sanitization Strategy

Requires PII and sensitive data scrubbing or tokenization before traffic reaches the shadow service

Suggests mirroring raw production traffic without mentioning data classification or compliance

Check for explicit mention of a scrubbing proxy or tokenization step in the data path

Production Safety Boundary

Defines a kill switch or automated circuit breaker that stops mirroring if production SLOs degrade

Relies solely on manual operator intervention to stop a dark launch causing production impact

Verify output specifies an automated abort condition tied to a production SLO metric

Result Comparison Methodology

Defines a statistically valid method for comparing shadow and production responses, accounting for non-determinism

Proposes a simple diff or exact match comparison for responses with timestamps or random IDs

Check for a strategy that normalizes dynamic fields and uses distribution comparison, not exact matching

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a single service and a simplified architecture diagram. Remove the production safety boundary checks and focus on the core traffic mirroring logic. Replace the structured output schema with a free-text summary to speed up iteration.

code
Evaluate this dark launch design for [SERVICE_NAME]. Focus only on traffic mirroring correctness and isolation. Ignore production safety boundaries and observability design.

Architecture: [ARCHITECTURE_DESCRIPTION]

Watch for

  • Skipping side-effect leakage analysis because the prompt no longer requires it
  • Overly optimistic assessments without production constraints
  • Missing observability gaps that would surface in real traffic
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.