Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Multi-Agent Systems / Week 16

Self-Improving AI Systems

Build a controlled improvement loop. Generate at least five candidates, select with development evidence, and evaluate the chosen version on reserved cases.

Your lessons

  1. 01

    Turning failures into candidate improvements

    60 minutes planned · 7 sections
    Start →
  2. 02

    Measuring whether a change helps

    60 minutes planned · 7 sections
    Start →
  3. 03

    Promoting and reversing an automated change

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A controlled improvement loop

  1. Download week16.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Generate at least five versioned candidates from a development failure set.
  3. Lesson 2: Select candidates using development evidence, then evaluate the selected version on reserved cases.
  4. Lesson 3: Reject a candidate that edits its evaluator and roll back a promoted candidate after a simulated alert.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 16 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W16-LAB

Week 16: A controlled improvement loop

Generate at least five candidates, select with development evidence, and evaluate the chosen version on reserved cases.

Extend the guided artifact rather than start a second project. No evaluator editing, critical regression, or budget violation can be promoted; rollback is demonstrated.

What to produce

  • A controlled improvement loop
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • No evaluator editing, critical regression, or budget violation can be promoted; rollback is demonstrated.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Phase milestone

M04

Verified Multi-Agent Development Team

Build a coordinated autonomous software-development team with durable task state, independent verification, and measured improvement.

Independent verification is evidenced, failures recover without duplicate effects, and improvement claims use held-out tests.

What to produce

  • Planner/implementer/reviewer workflow with artifact contracts
  • Persistent state and recovery evidence
  • Held-out evaluation comparing at least five candidate configurations

Check your work

  • Independent verification is evidenced, failures recover without duplicate effects, and improvement claims use held-out tests.
  • Setup and reproduction steps are complete.
  • Known limitations are explicit; no unsupported security or quality claims.
Self-assessment rubric
Functional integration · 30 points
Required components work together in a reproducible end-to-end workflow.
Security and reliability · 25 points
Boundaries, failure handling, and recovery are demonstrated with evidence.
Evaluation evidence · 25 points
Appropriate test set, clear measures, honest interpretation, and traceability.
Documentation and explanation · 20 points
Architecture, setup, tradeoffs, and limitations are understandable.

// Retrieve before you reread

Week 16 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. An optimizer proposes seven prompt versions with hypotheses but has not tested them. What exists?
2. A configuration search mutates a retry limit and ranks fixed-case scores. Which claim is accurate?
3. Candidate fixes three cases and breaks two previously correct cases on a paired evaluation. Report?
4. Reserved evaluation failures guide the next candidate choice. Can the same cases remain untouched evidence?
5. A candidate improves routine answers but edits the evaluator to ignore missing citations. Promotion?
6. Rollback target uses schema 2 but current state requires schema 3. Is a pointer reversal enough?

Next: week 17 →