How They Use AI  |  Newest

<< Home  |  Prompting craft

Model adheres to strict constraints via a contract

AreaPrompting craft
AI usedAny
SourceReddit thread
Posted2026-04-19

The move

Establish a brief contract at the start of the session outlining objectives, limitations, and forbidden behaviors.

Steps

  1. Draft a brief contract defining the objective and limitations.
  2. Explicitly list what constitutes poor output or forbidden actions.
  3. Reference this contract at each stage of the workflow.
  4. Use structured formats like JSON or labeled markdown for outputs.

Prompt for your AI

Establish a brief contract at the beginning: outline the objective, the limitations, and what constitutes poor output—specifically, what to avoid. For instance, specify 'don't do X, steer clear of Y.'

What happened

The user struggled with context drift during long workflows, finding that reinforcing unclear instructions only repeated the ambiguity. They implemented a 'contract' approach that explicitly defines what to avoid and uses structured outputs instead of freeform prose. This method provided a consistent standard for the model to measure against throughout the process.

Who confirmed it

A technique that has been particularly beneficial for me is to establish a brief 'contract' at the beginning.

Watch out

If the initial instructions in the contract are unclear, the model will continue to exhibit ambiguity.

Give it to your agent

Read https://howtheyuse.ai/p/model-adheres-to-strict-constraints-via-a-contract.md and help me do this.

Sources



Last updated November 26, 2026.