Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Final drill. Reuse score_image_prompt and write
rank_prompts(prompts) that takes a dict of {id: prompt_string}
and returns a list of (id, score) tuples sorted by score
DESCENDING, ties broken by id ASCENDING (so the result is
deterministic).
Five prompts run, ranging from "a girl with red hair" (zero knobs) to a full 8-knob prompt. Expected output:
P5: score=8
P4: score=7
P3: score=5
P2: score=3
P1: score=0