# Give clients the keys to the prompt but keep the core locked

> Split the system prompt into layers with named owners, and move every permission check out of the prompt and into code.

Original: https://fdetimes.net/en/guides/prompt-ownership-layers-client-handover/

In Zendesk, any change to an active instruction takes effect immediately in the conversations the AI agent is having with customers. When the head of customer service edits a sentence, the very next conversation runs on the new wording.

FDEs meet this situation in handover week. The client wants to tune the agent without calling the engineer every time a policy changes, and the client is right. Falk Gottlob argues that when the FDE leaves, someone named on the client side must hold the "keys": a person who can edit prompts, rules or thresholds without calling the vendor.

The harder question is which doors those keys open. Hand over the whole prompt file and sooner or later someone will break the core.

Lock everything and the prompt fossilizes. Tian Pan observes that a prompt with no record of why each line was added gets frozen, because nobody dares to touch it.

The way out is to draw the edit boundaries into the structure of the prompt itself, before the handover.

## A prompt needs permissions, like any system

Model providers already layer their own rules. The OpenAI Model Spec has defaults that developers may override but end users may not. OpenAI's prompt engineering documentation compares the developer message to a function definition, holding system rules and business logic, while the user message is like the arguments passed to that function.

At handover, you insert a tier in between: a business layer owned by the client's operations team. Agent platforms for customer service describe the same division of labor.

In an example about a retailer, Sierra writes that the returns process, which changes with every product launch, should be built and maintained by the customer experience team in Agent Studio.

Decagon says engineering teams manage versions in Git and keep full control of the code, while the agent's operating procedures are written in plain language.

Both are vendors describing their own products, but the rule that follows applies anywhere. Whatever changes at the pace of the business goes to the people who run the business. Whatever changes at the pace of engineering stays with engineers.

One tier sits at the bottom, and nobody may edit it through a prompt. OWASP, under LLM07:2025, says critical controls such as privilege separation and authorization bounds checks must not be delegated to the LLM. Those rules therefore belong in no prompt layer, not even a locked one.

**Key point:** Anything that must never go wrong does not belong in the prompt, not even in the locked part.

## A returns prompt, split by owner

Take a hypothetical agent that handles return requests for a retail chain. Anthropic recommends wrapping each type of content in its own XML tag, such as ``, `` and ``, so the model is less likely to mix them up. Those same tags can serve as edit boundaries, with an owner line attached to each block.

```xml
<!-- CORE LAYER · Owner: FDE/platform team · Changed via pull request + eval -->
<instructions>
You are a returns assistant. Only handle orders returned by the lookup_order tool.
<!-- Why: stops the agent inventing an order status when the lookup fails. -->
When unsure, hand over to a human agent with the escalate tool.
</instructions>

<!-- BUSINESS LAYER · Owner: CX lead (named) · Changed on the staging label -->
<context>
<return_policy>
Items with tags still attached can be exchanged within the current policy period.
<!-- Why: new product drops often come with their own exchange terms. -->
</return_policy>
<tone>Brief, apologize once, never promise a specific refund date.</tone>
</context>

<!-- INPUT LAYER · Filled at runtime, never edited by hand -->
<input>{{customer_message}}</input>
```

The "Why" lines do two jobs. Anthropic says explaining why an instruction matters helps the model understand the real goal. For people, they are the provenance map Tian Pan describes: six months later, the CX lead can see which lines are safe to delete.

Note what is missing from the prompt: the automatic refund limit and the right to view other customers' orders. They live in the tool's code, where nobody can change them with a sentence:

```python
def issue_refund(order, amount, actor):
    # Hard control: never placed in the prompt (OWASP LLM07)
    if order.customer_id != actor.customer_id:
        raise PermissionError("order does not belong to this customer")
    if amount > policy.max_auto_refund:
        return escalate(order, reason="exceeds automatic refund limit")
    return payments.refund(order, amount)
```

Even if the CX lead writes "refund every VIP customer immediately" into the business layer, this function still stops at the limit. The prompt only decides what the agent says; the code decides what the agent is allowed to do.

## Which checkpoints does a change pass through?

Splitting the layers is half the job. The other half is the path each edit takes. Tian Pan proposes that the business domain owner is accountable for what the prompt means, while the AI platform team owns the evaluation suite and the test gates. In his summary, the PM edits the prompt and the CI/CD pipeline decides whether that version ships.

Prompt management tools already support this. Langfuse lets project admins and owners lock labels such as production so that others cannot edit or delete them; according to its changelog, the feature is available on the Team (Cloud) and Enterprise plans. The CX lead edits on the staging label, the evals run, and only then does someone with the right permissions promote that version to production.

The last checkpoint is traceability. Daniel Usvyat of USQRD advises attaching to every request the prompt version that produced it. When the escalation rate spikes on Monday, you know at once whether it was Friday's policy edit or something else.

## The mistakes that wreck a handover

The first mistake is handing over the whole prompt file with the instruction "don't touch the top part". Without a technical boundary, that warning fades quickly once someone new joins the team. The second is leaving permission rules in the prompt because it was the quickest place to put them, then forgetting to move them into code before handing over the keys.

The third is harder to spot: promising the client that the agent will say exactly what they wrote, word for word. HubSpot warns, in the guidelines section of its customer agent, that AI-generated answers will not always match the specified format or wording.

Any text that must appear verbatim, such as legal terms, should go into a fixed template that the code inserts.

The last mistake is keys with no name attached. "The CX team will handle it" means nobody will. Put one person's name in the business layer's comment line and in the handover documents.

## What this skill says about you in a job search

On a CV, describe something that kept running after you left the client, for example "designed a three-layer prompt structure and eval process so the client's CX team could update policies themselves". In an agent design interview, if asked "how is this agent protected?", draw the line between prompt and code before you mention prompt injection.

A well-handed-over prompt has an easy tell: six months later, the client is still editing it regularly and has never once had to call you.

**Try this week:**

- Take a system prompt in production and add a comment line to each section: who owns it, why it was added, and how it gets changed.
- Scan that prompt for every phrase like 'only allowed to', 'never' or 'at most'; turn each one that is really an access control into a check function in code.
- Check your logs for a prompt version field on every request; if it is missing, add it before the next handover.

## Sources

- [OpenAI Model Spec](https://model-spec.openai.com/2026-10-29.html)

- [Prompt engineering | OpenAI API](https://developers.openai.com/api/docs/guides/prompt-engineering)

- [Prompting best practices](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices)

- [LLM07:2025 System Prompt Leakage (OWASP Gen AI Security Project)](https://genai.owasp.org/llmrisk/llm072025-system-prompt-leakage/)

- [Serving customer experience and engineering teams—all from one platform](https://sierra.ai/blog/serving-customer-experience-and-engineering-teams-all-from-one-platform)

- [Agent Operating Procedures (AOPs) | Decagon](https://decagon.ai/product/aop)

- [Using instructions to influence AI agent responses](https://support.zendesk.com/hc/en-us/articles/8357749291290-Using-instructions-to-influence-AI-agent-responses)

- [Set guidelines for the customer agent (HubSpot Knowledge Base)](https://knowledge.hubspot.com/customer-agent/set-guidelines-for-the-customer-agent)

- [Protected Prompt Labels - Langfuse Changelog](https://langfuse.com/changelog/2025-04-02-protected-prompt-labels)

- [Prompt Versioning and Change Management in Production AI Systems](https://tianpan.co/blog/2026/03/13/prompt-versioning-change-management-production)

- [The Frozen Prompt: When Your Team Is Afraid to Edit a System Prompt That Works](https://tianpan.co/blog/2026-05-09-frozen-prompt-afraid-to-edit-system-prompt)

- [Prompts Are Artifacts, Not Dashboard Config: How We Version Them](https://usqrd.com/insights/versioning-testing-rolling-back-prompts-production)

- [Who owns the customer after a forward deployed engineer leaves?](https://falkster.com/answers/who-owns-the-customer-after-a-forward-deployed-engineer-leaves)
