FDE Times dataFDE jobs open 950▲11 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 65Companies hiring 200Remote-friendly 24%Median US pay $200kTop hirer Databricks 109
中文VI

The newspaper of the Forward Deployed Engineer

Guides

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.

ShareLinkedInFacebookX

In brief

  • The parts that change with the business, such as the returns policy, should be edited by the client's operations team; engineers keep the core.
  • Permissions and threshold checks must not be delegated to the LLM, so they belong in code, not in any prompt layer.
  • Every change should go through evals, the production label should be locked, and every request should carry the prompt version that produced it.
Table of four layers: the core layer is owned by the FDE team and changed through pull requests and evals; the business layer is edited by the CX team lead on a staging label; the input layer is not edited by hand by anyone and is filled at runtime. Below a boundary line is the tool code, which engineers hold and which cannot be changed through the prompt; this row is highlighted.
Within the prompt, each layer has one owner and its own route for changes. Permission controls such as refund limits sit in the tool code. Source: the returns prompt example in the article, following OWASP LLM07:2025.

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.

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 <instructions>, <context> and <input>, 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.

<!-- 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:

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.

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.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
13 sources
Read next on the roadmap · Stage 7: LeadershipAsked how many jobs AI will cut? Answer in hoursIn a worked example, the same demo yields 27 people or fewer than three, depending on which minutes you count.