The prompt lifecycle
| Layer | What it means | Who uses it |
|---|---|---|
| Editor draft | The current editable prompt state: model config, messages, variables, tools, schema, and settings. | Prompt authors and reviewers. |
| Editor snapshot | A captured prompt state used for history, comparison, evaluation, or deployment. | Reviewers, deployments, and audit workflows. |
| Deployment snapshot | The prompt snapshot assigned to a deployment environment. | Your runtime application and release owners. |
| Deployment environment | A named target such as development, QA, staging, or production. | Release managers and application code. |
What deployment captures
A deployment snapshot captures the prompt state needed to reproduce the version:- Provider and model configuration.
- Model settings.
- Messages and variables.
- Tools and project tool references.
- Response schema.
- MCP server configuration when enabled.
- The deployment environment.
- Snapshot metadata, including source context when created from an Improve cycle.
Use environments as release lanes
Create environments that match how your team ships software.| Environment pattern | Use it when |
|---|---|
| Development | Prompt authors need a safe place to test application integration. |
| QA | A test team or automated suite validates behavior before staging. |
| Staging | The application should run the candidate prompt in a production-like environment. |
| Production | End users receive the prompt behavior. |
Deploy from the prompt
Compare before changing
Compare the current editor draft with the selected deployed version or another deployment snapshot.
Improve approval and deployment
Improve has two review outcomes that affect prompts differently:| Action | What happens |
|---|---|
| Approve | Applies the selected candidate to the prompt editor and deploys it to the project’s primary deployment environment when one is configured. The confirmation dialog names the candidate and target environment. |
| Edit & approve | Applies the selected candidate and opens the prompt editor. It does not deploy automatically. |
| Reject | Leaves the prompt unchanged and records the review in history. |
Compare deployments
Use deployment comparison when a release has meaningful risk. Compare:- Current editor draft versus production.
- Staging versus production.
- Current candidate versus last known good deployment.
- Improve candidate versus baseline prompt.
- Model and provider.
- Message text.
- Variables and variable placement.
- Response schema.
- Tools and MCP configuration.
- Cost, token, and latency expectations.
- Evaluator and dataset results that justify the release.
Roll back safely
Rollback restores a previous deployment snapshot to the environment. Rollback is useful when:- Monitor shows a quality, latency, cost, or token regression.
- Traces show the deployed prompt is failing normal production cases.
- Behaviors show a new high-volume issue after deployment.
- A provider or model change behaves differently than expected.
Runtime handoff checklist
Before application code reads a deployment:- Confirm the application is using the correct workspace, project, prompt, and environment identifiers.
- Cache deployment configuration according to your application needs.
- Refresh cache after deployment events or webhooks.
- Keep API keys in a secret manager.
- Log trace metadata that identifies release, route, environment, and prompt context.
- Watch Monitor and Traces after shipping.
Next steps
Deploy
Configure environments, webhooks, comparison, rollback, and runtime handoff.
Release prompts safely
Use a release checklist before changing an environment.
Review Improve candidates
Approve, edit, or reject generated prompt candidates.
Monitor
Watch production metrics after deployment.
Traces
Inspect the exact requests behind a deployment outcome.