# The Hard Part

Thursday, November 5

---

# 📆 Today

- The "hard part"
- Work time: [the hard part](../../build/hard-part.milestone.md), due Tuesday at 2:30

---

<!-- id: this-week-in-ai -->

<x-sfx-cue src="../assets/this-week-in-ai-theme.mp3" on="player:block-enter" />

![@image(fit=contain).background](../assets/this-week-in-ai.png)

---

[@embed Ethan Mollick on Weight-Space Programming](https://x.com/emollick/status/2117338841749029221)

^ November 2. Mollick is quoting Rikiya Takehi, one of four MIT researchers behind the [blog post](https://rikiyat.github.io/blog/weight-space-programming/). "Waiting for replication" is the part to notice.

---

# A model edits another model

- **The patient:** Qwen3.5-0.8B, a small open model with 0.8 billion weights
- **The problem:** on math, it gets stuck repeating itself until it runs out of room
- **The surgeon:** GPT-6 Astra reads the weights as numbers and changes **0.016%** of them
- **No training:** no retraining necessary

^ Recall Introduction to LLMs: parameters, or weights, are the dials a model learns in training. Training turns all of them a little at a time. Astra found one direction in two layers that drove the looping and subtracted it from 131,072 weights, on purpose.

---

# Before and after

| Test                            | Before | After |
| ------------------------------- | ------ | ----- |
| Competition math (MATH-500)     | 7.9%   | 48.1% |
| Grade-school math (GSM8K)       | 13.8%  | 67.1% |
| Following instructions (IFEval) | 21.0%  | 62.3% |

^ "After" is the edit Astra made with 50 runs; with 10 or 25, the looping barely changed. Before the edit, 93% of math answers ran out of room. After, 33% did.

---

<!--
play:
  variant: quote
-->

> “Editing weights could remove an obstacle that hid an ability, but it could not add an ability the model lacked.”

^ The same approach didn't help Gemma 3 270M, a smaller model: 6.8% before, about 7% after. Qwen could already do the math; the loop was in its way.

---

[@embed Kory Mathewson on the loop](https://x.com/korymath/status/2117038665226485919)

^ November 1. Each line is a step further from the work: doing it, watching it, near it, copied on it, and finally just responsible for it.

---

# Where are you in your agent's loop?

---

<!--
play:
  variant: section
-->

# The hard part

---

# Examples

| Your app has to…           | For example                      | Reach for                    |
| -------------------------- | -------------------------------- | ---------------------------- |
| **See** or **judge**       | Read a meal from a photo         | The course AI                |
| **Know** what's true today | This season's stats, open jobs   | A real data source           |
| **Hear** it, right now     | Catch a flute player's beat      | The microphone               |
| **Play** start to finish   | A full run to the boss, balanced | Rules, and lots of playtests |

---

# Observing what **works**

| Not watchable          | Obserable                                                                    |
| ---------------------- | ---------------------------------------------------------------------------- |
| "Accurate nutrition."  | "Three people photograph their own lunch and say the numbers seem accurate." |
| "Good matches."        | "A graduating senior would acapply to two of her top three."                 |
| "The diagnosis helps." | "A team enters its real project and names a problem it hadn't noticed."      |

^ Write yours at the top of the hard part in `docs/project.md`, before you build. Your agent builds from it, and your testers check it.

---

# Build it from your docs

1. **Write it down** in `docs/project.md`, with what "works" looks like
2. **Try it yourself** in the App tab, with your own photo, résumé or project
3. **Put it online** and test with three people who have the problem

---

# Briefs for the hard part

| Vague                      | Moves it forward                                                                                            |
| -------------------------- | ----------------------------------------------------------------------------------------------------------- |
| "Add AI."                  | "Replace the sample nutrition with the course AI reading the photo. Keep the sliders so people can fix it." |
| "Make the matches better." | "Testers said the matches were too niche. Rank by fit with their major, and say why in one line."           |
| "It doesn't work."         | "I photographed a sandwich and got an error that the answer was too long. Ask for less."                    |

^ One change per brief, and try each one yourself before the next.

---

# Keep your user in the loop

- **Show it's working:** _"Looking at your photo…"_
- **Show why:** _"Matched on Python, design and Greenville"_
- **Let them fix it:** an estimate with sliders beats a number to trust
- **Say what went wrong** in plain words, and offer Try again

^ A model is slower than a rule and sometimes wrong, so the experience around the answer matters as much as the answer. See [Design for a model](../../project/guides/ai.guide.md#design). Kory's last line is where your user ends up when they can't see or fix what the model did.

---

# Watch for trust

| They…         | You'll see                             |
| ------------- | -------------------------------------- |
| **Trust it**  | They act on it without checking        |
| **Check it**  | They look elsewhere, or fix the number |
| **Ignore it** | They skip it and do it themselves      |

^ Watch first, then ask: "Would you act on this?" Write what each tester did in `docs/tests.md`. Too much trust is a finding too: one tester thought a prototype's sample numbers were real.

---

<!--
play:
  variant: section
-->

# Work time

The hard part, due Tuesday at 2:30

---

<!--
play:
  variant: fact
-->

# Leave with one real answer

Your hard part is named in `docs/project.md`, and it gives one real answer on your phone.

^ Not the whole feature. One real answer, from a real photo, résumé, recording or game, where the sample used to be.

---

# The next hour

| Time | Do                                                                    |
| ---- | --------------------------------------------------------------------- |
| 3:00 | Write your hard part and what "works" looks like in `docs/project.md` |
| 3:10 | Brief your agent from it, and build until one real answer comes back  |
| 3:30 | Try it on your phone with your own data, and fix what broke           |
| 3:40 | Book three testers who have the problem                               |

^ I'll come around. Have `docs/project.md` and your app open when I get to you.

---

# When you're stuck

- **The answer is wrong?** Change the `instructions`, then try the same input again
- **Your app can't use the answer?** Ask for a `schema`, and use the `data` that comes back
- **Out of calls?** Test the other parts on sample data until tomorrow
- **Ten minutes on one thing?** Undo, and ask for a smaller step
- **Still stuck?** Raise your hand

---

# Tuesday

- **2:30:** [The hard part](../../build/hard-part.milestone.md) due: named, built for real, tested with three people, and changed from what you learned
- **In class:** User testing

[AI in your app](../../project/guides/ai.guide.md) · [Testing with users](../../project/guides/user-tests.guide.md) · [The Studio](../../project/index.md)
