Answer these from memory — no peeking at Lesson 1. Say your answers out loud (or to me) before clicking.
Install SkillOpt and run its deterministic validation experiment — the
acceptance test the authors ship for the whole sleep-cycle idea. It uses a
MockBackend: no API key, no cost, fully reproducible. According to the
experiment source,
one run proves three things:
Create a clean virtualenv in the workspace (SkillOpt needs Python ≥ 3.10):
cd ~/learn-skillopt-harness
python3 -m venv .venv
source .venv/bin/activate
pip install skillopt
skillopt-sleep --help
If skillopt-sleep --help prints a usage banner, you're installed.
There are two built-in personas — a researcher (wants arXiv ids in
<answer> tags) and a programmer (wants imperative-mood
commit subjects). Given your mission, run the programmer:
python -m skillopt_sleep.experiments.run_experiment --persona programmer --assert-improves
The --assert-improves flag makes it exit non-zero if the lift doesn't
materialize — so a clean exit is the proof.
Don't just check the exit code. In the output, find and note down:
holdout_score, a gate action, whether the proposal was accepted, and the actual text of applied edits. Read the edits: they are the rules being learned.n_rejected > 0. The gate at work.Everything in this trace maps to Lesson 1: the mock backend is the harness, the persona's task list is the env, and the document being grown night-by-night is the skill. Same three roles, all the way up to the paper's 52-cell benchmark grid.
Change one variable and predict the outcome before running:
python -m skillopt_sleep.experiments.run_experiment --persona programmer --nights 1
Prediction first: with only one night, will the held-out score reach the same level as the multi-night run? Why or why not? (Hint: think about the edit budget per night — the textual learning rate.) Run it, then check.
MockBackend responds deterministically and carries a known-bad rule specifically so the gate-safety probe can prove rejection. Reproducible science, zero spend.MockBackend with known rules (including one known-bad rule for the gate-safety probe). That's what makes the run reproducible and free.Lesson 3 harvests your real Claude Code / Codex session transcripts. The more sessions you have between now and then, the better the mining. Just use your agents normally — that is the homework.
SkillOpt-Sleep README — Microsoft Research. How one "night" works, the dream-train / real-val / real-test split, and honest scope notes on when gains appear (~10 minutes). Skip the results tables for now.