Managed system prompt lifecycle
| Stage | Description |
|---|---|
| Canonical source | One versioned definition of intent per agent. |
| Provider adapters | Explicit, reviewed mapping to each provider's format. |
| Regression gates | Behavioral and policy tests before promotion. |
| Runtime verification | Applied prompt version checked and logged per request. |
Separate the canonical definition from provider adaptation
- Canonical prompt artifactStored in version control with owner, version, and approval metadata.
- Provider adapterVersioned code or configuration per provider and model family.
- Registry or resolverMaps agent, environment, and provider to an approved canonical and adapter version.
- Rendered prompt identifierA hash of the final prompt, used for drift detection and runtime checks.
A prompt change lifecycle for platform teams
What system prompt drift is and how it enters
Drift is the gap between the canonical prompt and what is actually deployed per provider, model version, and environment. Because provider variants are generated through explicit adapters, deployed prompts can be compared with the canonical source and traced to a reviewed change.
Regression testing and runtime verification
Test every change against behavioral and policy regression suites before prompt or model changes are promoted. At runtime, record which prompt version and adapter each request used, and check the applied version against the approved one.
Audit, governance, and tradeoffs
Approval workflows and an audit log of the applied prompt version and adapter tie each request back to a reviewed change.
Capabilities to require when evaluating tooling
- Maintains a single canonical prompt definition and records provider adaptations as explicit, versioned derivatives.
- Shows which prompt version and adapter were applied to each request and writes that to an audit log.
- Detects drift between the canonical prompt and what is deployed per provider, model version, and environment.
- Supports approval workflows and automated behavioral and policy regression tests before prompt or model changes are promoted.
- Enforces runtime policy, such as blocking requests that use an unapproved or modified prompt, and ties it to least-privilege controls for agents.