Agent Instructions as Executable Constraints

Instructions written as prose are wishes. Instructions written as constraints are tests. The workbench turns each rule into something an agent can check at runtime and a reviewer can verify after the fact.

Build 50 min Python (stdlib)

Prerequisites: Phase 14 · 32 (Minimal Workbench)

#Learning Objectives

  • Separate routing prose from operational rules.
  • Express startup rules, forbidden actions, definition of done, uncertainty handling, and approval boundaries as machine-checkable constraints.
  • Implement a rule checker that scores a run against the rule set.
  • Make the rule set diff-friendly so review can see what changed.
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.