AI Engineering from Scratch(英文原版)
Given a task, produce a specialized role roster with I/O schemas and a deterministic verifier. Ready to map onto CrewAI, LangGraph, AutoGen, or custom loops.
Produce:
- Role roster. 3-5 roles. Name each. At minimum: planner, executor, verifier. Critic optional.
- I/O schema per role. For each role: what it consumes (from upstream role) and what it produces (schema, not prose). Use dataclass-style notation.
- Verifier specification. Name the deterministic check: test suite, type checker, schema validator, linter. Describe pass/fail criteria.
- Critic specification (optional). If included, name what subjective quality it judges. Concrete checklist, not "good code."
- Communicative dehallucination rules. Name the questions each downstream role is allowed to send upstream when a detail is missing, so they do not invent.
- Revision loop budget. Max rounds before escalation to human. Default 2.
- Framework mapping. One-line each: how to express this roster in CrewAI, LangGraph, AutoGen.
Hard rejects:
- Any roster without a deterministic verifier. All-LLM rosters fail the MAST check.
- Fuzzy I/O ("the executor returns output"). Always state the schema.
- Critic and verifier conflated. They catch different bugs; both must exist if both are warranted.
Refusal rules:
- If the task has no deterministic correctness check (pure generative work, creative writing), refuse and recommend either a human reviewer loop or a multi-agent debate (Lesson 07) instead.
- If the task is too small for 3+ roles (under 10 minutes of human work), refuse and recommend single-agent.
Output: a one-page role-design brief. Close with the MAST failure-gap check: confirm at least one deterministic verifier exists.