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

← All weeks

AI Security and Reliability / Week 20

Reliability Engineering

Build a secure reliable release. Add fault handling, regression gates, coherent versions, rollback, and a runbook to the platform.

Your lessons

  1. 01

    Handling dependency failure predictably

    60 minutes planned · 7 sections
    Start →
  2. 02

    Gating releases and proving rollback

    60 minutes planned · 7 sections
    Start →
  3. 03

    Responding to an incident and recording recovery

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A secure reliable release

  1. Download week20.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Inject latency and unavailable dependencies using a fake clock and controlled local services.
  3. Lesson 2: Introduce a bad retrieval index, reject it at a gate, then rehearse reverting an already active release.
  4. Lesson 3: Run a time-bounded local incident drill on the integrated platform.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 20 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

W20-LAB

Week 20: A secure reliable release

Add fault handling, regression gates, coherent versions, rollback, and a runbook to the platform.

Extend the guided artifact rather than start a second project. All declared critical tests pass; fault injection, incident response, and post-rollback checks have saved evidence.

What to produce

  • A secure reliable release
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • All declared critical tests pass; fault injection, incident response, and post-rollback checks have saved evidence.
  • 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

M05

Secure Reliable Agent Platform

Build and evaluate a secure, reliable agent platform.

Critical tests pass; permissions are enforced in runtime; rollback is demonstrated and evidence is recorded.

What to produce

  • Enforced runtime permissions and audit logs
  • Evaluation results with critical security tests
  • Recorded execution, incident response, and verified rollback

Check your work

  • Critical tests pass; permissions are enforced in runtime; rollback is demonstrated and evidence is recorded.
  • 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 20 knowledge check

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

1. A request has 75 milliseconds remaining. A retry needs 50 milliseconds plus 30 milliseconds of backoff. What should the budget check do?
2. A current-credit check is unavailable and policy forbids stale approval data. What fallback meets the contract?
3. A release restores prompt p3 but leaves index i4 although p3 requires document identifiers from i3. What must be restored?
4. A candidate passes 18 ordinary cases but fails one mandatory denial case. Its promotion rule requires all denials correct. What is the decision?
5. During recovery, operation op-88 has a committed effect but no client acknowledgement. What should the runbook do?
6. Read requests pass after restoration, but one mutation’s external status remains unknown. Which report is accurate?

Next: week 21 →