Module 02 Activity
Scenario
Your crew's agents are defined with role names and adjectives. This activity converts them into constraints that change what the agents will do.
What you build
Rewritten agents whose backstories are testable rules, and tasks split so each has an executable contract.
Steps
- Take each agent and count the lines in its backstory that rule an output out. Delete every line that does not.
- Rewrite each goal so you can name the output that means it is finished. Anything unfinishable gets narrowed.
- Pick your vaguest task and write the checking function for its output first, before touching
expected_output. - Rewrite
expected_outputto describe exactly what that function accepts. - Split any task whose output changes shape partway through, and declare the dependency with
context. - Run the checker against three deliberately bad outputs, including one that is valid JSON with a disallowed value.
Evidence to hand in
- Before-and-after backstories with the constraint count for each.
- Each goal with the output that means it is finished.
- The checking function, written before the contract.
- The task split with its
contextdependency. - The checker's results on three bad outputs.
Review checklist
- Every backstory line rules some output out - no credentials, no adjectives.
- Every goal names a finishing output.
- The checking function was written before
expected_output. - One test case is valid JSON with a value outside the allowed set.
- Split tasks pass structured data, not prose, across the boundary.
