By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
The Helios chat prompt started as eleven lines. Two years later it runs to 1,800 words and six people have edited it. Reviewers log three symptoms: payroll answers it should refuse, an invented fourteen-day refund window, and a format that changes with the day.
Last quarter's fix added 300 words of rules, one per bad transcript. The prompt grew, latency rose a little, and the symptoms stayed. That pattern is a prompt being debugged by addition.
A clause is one instruction in the system prompt that governs one kind of decision. The symptoms look unrelated, because they surface in different conversations, but each traces to a clause nobody wrote.
| Symptom | The question the prompt never answers | Clause to add |
|---|---|---|
| Answers out-of-scope questions | Where does my job end, and what do I say at the boundary? | Scope boundary plus a named fallback answer |
| Invents a refund window | When two sources disagree, which one wins? | Fact precedence: tool result beats retrieved text, which beats memory |
| Format changes between answers | What shape must every answer have? | Output contract with named fields |
The missing scope clause explains the first symptom. Without it, the model judges what counts as insurance, so payroll sits one step from claims. A prohibition moves the boundary but gives the model nothing to say, so a legitimate tax question gets a bare refusal. A boundary needs a fallback.
A checklist, not a template. Five plain sentences beat forty formatting rules with no precedence. The test: could a new engineer answer each of the five by reading the prompt once?
A probe set is a fixed set of labelled cases you run after every change. Twenty-four cases is enough: eight in scope, six at the boundary, six clearly out, and four impossible.
Tag each failure with the clause it violates, then count. If most failures share one tag, one clause is missing and the fix is small. If a case fails two tags, you have a precedence problem, and another rule will make it worse.
A revision constrains what must be true of an answer, not how it is worded. Two correct answers that differ in phrasing are legitimate variation. A rule that removes it buys consistency and loses accuracy on the cases that do not fit.
Compare two instructions. Always answer in exactly three sentences is a phrasing rule, and it breaks when the answer is a single date. Use the refund window from lookup_policy, and if the tool returns none, say you will check and escalate, is a behaviour rule that holds on every case.
BEFORE (rules 1-38, abridged)
- Be helpful, accurate and professional.
- Never discuss anything outside insurance.
- Always be concise.
- Do not invent policy details.
- Always confirm identity before discussing a claim.
- Never ask for data the customer already gave you.
(32 further rules, one per past incident)
AFTER (five clauses)
JOB: Answer a claimant's question about an existing claim, in chat, so they know
the next step. You do not sell policies.
SCOPE: Refunds, payouts, claim status and policy wording. If the question is
about employment or tax filing, reply: "That is outside what I can advise on. I
can pass you to a licensed adviser." and offer the handoff.
PRECEDENCE: A lookup_policy result beats retrieved wording, which beats anything
you remember. Never state a number that no tool returned.
OUTPUT: claim_id, answer (120 words maximum), next_step, needs_human (true or false).
FAILURE: If claim_id is missing, ask for it once. If the tool returns nothing, set
needs_human to true and say a human will follow up.Three more costs. Long negative lists widen the refusal boundary until legitimate questions are refused. Rule bloat dilutes attention: 2,000 tokens of rules compete with 700 tokens of retrieved policy. And every rule is a maintenance contract for a product that changes.
The repair is subtraction. Delete a rule when no probe case depends on it, merge duplicates, and replace several negative rules with one precedence rule.
Here are four failures from last week. Tag each one, then write the smallest revision. Before you re-run, predict which cases will change and which will stay wrong.
Write your tags and the one clause you would add first. Then list the cases you expect to flip and the cases you expect to stay wrong. The second list is the honest one, and a reviewer will ask about it.
Key takeaways
Symptoms look separate; each usually traces to one missing clause.
Five clauses cover a support prompt: job, scope, precedence, output contract, failure path.
Tag failures against a fixed probe set; measure, do not argue.
Constrain behaviour, not phrasing; variation is not a defect.
Subtract rules that no probe case depends on.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.