# Curriculum

The course has two outcomes for every lab: learn an agentic AI mechanism and review and apply a related software architecture concept, including microservices and DDD decisions. Each notebook starts with a concrete problem and explains how its technique helps, then provides context and questions before the code.

## Three introductory lectures

| Lecture | Labs | Agentic mechanisms | Architecture revision |
| --- | --- | --- | --- |
| 1 · Ask, check, retrieve | 00–02 | Rule versus LLM; zero-shot, one-shot, few-shot and persona prompting; optional SDK, LangChain and Harness examples; structured output, evaluation, RAG | Safe retries, bulkheads, gateways and BFFs; prompting with gateway/BFF choices; private service data, CQRS and API composition |
| 2 · Chain, call tools, act | 03–05 | Prompt chains, validated tools, bounded ReAct | Business capabilities and bounded contexts; service-owned data; resilience and safe retries |
| 3 · Debate, trace, decide | 06–08 | Independent proposals, bounded debate, logging, swappable agents, human feedback, memory | Park-or-museum votes; tracing an outing decision; scoped umbrella advice |

Nine self-study labs extend the same revision: evaluation (09), routing (10), MCP and owner APIs (11), skills and Saga compensation (12), A2A and anti-corruption layers (13), LangGraph and additive contracts (14), measurable checkout quality goals (15), feedback/test separation and retry judgements (16), and weighted queue/log decisions with optional typed model scoring (17).

## Keep examples small and checkable

Each lab has two to five core code steps, at most 30 lines each and 100 in total. Most labs also begin with a short everyday warm-up; Lab 03 includes its warm-up as a core step. Lab 00 also includes three optional SDK and framework examples, including a tools-disabled Harness preview. The examples are deliberately reduced models; Python state changes stand in for services, and no Kafka, Kubernetes, or payment deployment is required. Official MCP, A2A, and LangGraph SDKs demonstrate the agentic interfaces themselves.

Lab 01 compares system and user prompts, temporary context, validation, and reasoning modes. Optional examples include an interactive sampling simulator and experiments with temperature and top-k. Its older-model questions are small demonstrations, not a benchmark.

## Learning outcomes

Students should be able to:

- Supply relevant domain evidence to an LLM, parse its output, and distinguish code checks from semantic correctness.
- Retrieve a lecture note and verify that it actually supports a claim, rather than merely accepting a source ID.
- Chain checkable steps and build a bounded action/observation loop with allowed tools and successful-read guards.
- Explain bounded contexts, aggregate roots, private data ownership, local saga transactions, and compensating actions using the executable examples.
- Contrast CQRS/composition, safe retry/no blind charge retry, additive/breaking events, and task queues/retained logs with an explicit cost.
- Coordinate independent peer proposals, keep dissent, escalate a deadlock, and retain human authority.
- Trace an agent decision, scope reused memories, separate feedback from held-out cases, and evaluate against a single-model baseline.

## Transfer to the architecture council project

The examples teach mechanisms, not a finished solution to the assignment. Students choose their own scenarios, knowledge base, stances, chair policy, evaluation rubric, and implementation. The live council still requires three model families; personas on one model do not satisfy that requirement.

Start the project by adapting one notebook with a changed scenario and a justified expected result. Build independent proposals, critiques, a stopping rule and dissent, human review, and feedback reuse. Compare actual logged council runs with each model alone on the same scenarios, then evaluate learning on cases never used for feedback. Synthetic demo timings and model-labelled fixtures are not project evidence.

## Assess both outcomes

Ask for one changed input, the observed action or answer, the relevant architecture concept, and a short explanation of the architecture trade-off. Reward a detected unsupported claim or a negative learning result. An exact output match alone does not establish sound architecture.
