<< Home | Prompting craft
Model adheres to strict constraints via a contract
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2026-04-19 |
The move
Establish a brief contract at the start of the session outlining objectives, limitations, and forbidden behaviors.Steps
- Draft a brief contract defining the objective and limitations.
- Explicitly list what constitutes poor output or forbidden actions.
- Reference this contract at each stage of the workflow.
- 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.