— AI & agents

A production prompt needs a testable contract.

Specify inputs, allowed tools and expected outputs, then test the complete task instead of judging a prompt from one convincing answer.

1 min readUpdated 2026-10-28By Aryan Singh Pokharia, Founding Member & Lead Developer
Abstract glowing AI visualisation, representing production prompt engineeringAptixLabs · 2026-05-29

A prompt is one component of an application boundary. The product also determines what context is supplied, which tools exist and what happens when a response cannot be used. Write that contract before tuning the wording.

Define an observable success condition

For a reporting assistant, success might mean returning the requested account’s permitted records with the correct date range. A fluent answer that uses the wrong account is a failure. Include those distinctions in the evaluation set.

Keep untrusted content separate from authority

Retrieved text and user documents can contain instructions. Treat them as task data. Authorise tool operations in application code, validate structured output and give the model a clear path for reporting missing information.

Version the whole setup

Record the prompt, model configuration, tool definitions and evaluation inputs. Re-run meaningful cases after changing any of them. Keep examples of failures so a wording improvement in one area does not quietly weaken another.

How should production prompts be versioned and evaluated?

A prompt is one component of an application boundary. The product also determines what context is supplied, which tools exist and what happens when a response cannot be used. Write that contract before tuning the wording.

Need help with ai agent & automation development?

Tell us about your product, existing stack and the problem you need to solve. We can discuss integration scope, implementation tradeoffs and a practical first milestone.

Start a conversation