CS 319 · Meeting 6 of 10 · lab
A loop you can run today beats a perfect loop you'll run next quarter.
Lab rules
Reading: chapters 12–13
Core concept · ch 12
The classic mistake is jumping from idea straight to phase 4 — tuning prompts for a loop that has no baseline, no verifier, and no breaker. That's automation theater with better vocabulary.
Worksheet · step 1 of the scaffold
The four filters
Good first loops (from the field)
Bad first loops: anything touching money, credentials, or production deploys.
Worksheet · the full scaffold
1 name the workflow (one line) 10' 2 define DONE in ≤4 numbered pass/fail criteria 15' ← the real work 3 build the context bundle (spec + 2 examples) 15' 4 pick the trigger: cron / webhook / you-run-it 5' 5 write the executor prompt (roles out, boundary in) 10' 6 write the verifier: deterministic checks first 15' 7 add the breaker (identical-output-x2 → escalate) 10' 8 run once. under your approval. log everything. 10'
Steps 2, 6, 7 are the course so far in miniature. Steps 1, 3, 4, 5, 8 are tonight's lab.
Core concept · ch 13
Checkpoint
A pause. The loop surfaces state so a human can look. Cheap. Can be many.
Gate
A decision. The loop cannot proceed without human judgment. Expensive. Should be few.
The four high-leverage gates
Rule: human review at every stage, human approval only at the gates. Interrupt too often and you kill throughput; too rarely and you ship garbage.
The standing rule · from fleet operations
The binding constraint on a loop fleet is never production — it's the human gate. When 40 drafts are waiting on you, the answer is:
Never: add another producer.
If your instinct when output stalls is to stand up one more loop, you are doing the thing the skeptics correctly mock.
Case study · part 6 of 10
| Pause | Type | Changed the outcome? |
|---|---|---|
| ticket #482 labeled wrong | checkpoint | yes — relabel blocked a wrong auto-route |
| "review 12 drafts" | checkpoint | no — theater; all 12 passed every check twice |
| refund over Rp 5M | gate | yes — policy ambiguity only a human could settle |
| "confirm schedule" | checkpoint | no — deleted; the cron doesn't need permission |
Result: 4 pauses → 1 gate + 1 useful checkpoint. Kirana learned the vocabulary of theater: pauses that exist so the human feels in control, not because judgment was needed.
Lab · 60 minutes · build now
Instructors circulate. The most common stall is step 2 — your criteria aren't binary yet. Make them binary.
Assignment A6 · due before Meeting 8 (two weeks)
Task
Run your lab loop for 5 working days, draft-only. Every run: log date, trigger, checks passed, and every pause. Classify each pause: gate / useful checkpoint / theater. Track landed outcomes separately from produced ones.
Deliverables
Run log (5 days) · pause classification table (à la Kirana) · landed-vs-produced column · one paragraph: what you'd kill, defer, or ship.
Rubric
Log completeness 30% · honest theater-finding 40% · landed/produced separation 30%.
Next week: observability and hardening — what to do when your loop misbehaves at 3am and you weren't there. Read ch 14–15.