# Prompt evaluation as a limited contract check

Before adopting an AI assistant, define what an acceptable response means and which parts can be checked automatically. This fixture checks supplied response strings against a small JSON contract. The response must be an object with exactly order_id and action; the identifier must equal the supplied expected identifier and the action must be review or escalate. The sample {"order_id":"O1","action":"review"} passes for expected identifierO1.

No language model is called and no prompt is sent. You can write several candidate prompts and manually supply imagined responses, but the result is a mechanical response-contract test, not evidence of a model’s reliability. The checker cannot establish that review was the right action, that the response is factual, that a model followed instructions or that a business decision is safe. A schema-valid response can still be substantively wrong.

Try malformed JSON, a list instead of an object, an extra key, the wrong identifier and an unsupported action such as refund. These fail for different reasons. Compare an automatic format check with a human rubric addressing correctness, source fidelity, uncertainty, privacy and escalation. If later evaluating a real model, preserve a versioned test set, model configuration, response evidence and a held-out evaluation set. Do not tune prompts on the final held-out cases and then describe the score as independent validation.

The business owner defines the decision boundary; IT defines the contract; reviewers judge meaning and consequences. Ask Who may authorise an action, Whom an incorrect identifier affects, Which checks are automatic and How a questionable response is escalated. Foundation: distinguish syntax from meaning. Undergraduate: reproduce accepted and rejected cases. Postgraduate: develop a blinded rubric and analyse reviewer disagreement. Research: propose a controlled evaluation with a baseline and defensible sampling. Submit candidate prompts, supplied response strings, contract results and a separately completed human rubric. A pass remains advisory evidence, and this package supplies no AI integration, automatic transaction execution or semantic judge.

## Expected baseline

Valid sample passes mechanical contract;malformed/wrong-key/wrong-ID/wrong-action examples fail;semantic review remains.

## Evidence

1. Write hand predictions before running the fixture.

Response:

2. Run the implementation and tests;compare expected output.

Response:

3. Complete the specific changed and failure cases described above.

Response:

4. Submit the four-level study evidence and departmental decision memo.

Response:
