# Deploys

Tuesday, November 3

---

# 📆 Today

- This week in AI: the AI stock selloff
- [First slice](../../build/first-slice.milestone.md) due at 2:30
- What your tests found
- Deploys
- Work time: [the hard part](../../build/hard-part.milestone.md), due next Tuesday

---

<!-- 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 AI stocks and the rest of the market](https://x.com/KobeissiLetter/status/2116567209367445876)

^ October 31, The Kobeissi Letter. Read the chart's actual labels: “excluding AI” means excluding information technology and communication services, and the Nasdaq 100 is not an AI-only index. The headline and chart use different periods and measures.

---

[@embed OpenAI's fundraising target falls amid the tech selloff](https://x.com/KobeissiLetter/status/2116357848464601125)

[Context: Reuters on the reported fundraising cut](https://www.investing.com/news/economy-news/openai-cuts-funding-target-by-10-billion-ft-reports-4988969)

^ October 30. The post summarizes FT reporting about a proposed funding round, not a completed deal. Connect the public stock market to the money available to private AI companies.

---

# Can AI succeed while investors lose money?

What has to happen for spending on chips and data centers to pay off?

^ Separate what the technology can do from what customers will pay and what it costs to deliver. Falling share prices tell us about investor expectations; they don't measure model capability.

---

[@embed](https://x.com/AarushYadav47/status/2116198463847408066?a=7iWMlONJEXsEDzuFvXE&s=20)

---

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

# Test findings

---

# A "result"

| Not a result     | A result                                                                       |
| ---------------- | ------------------------------------------------------------------------------ |
| "They liked it." | "She stopped after the last clue and asked what to do."                        |
| "Easy to use."   | "He easily navigated the app to accomplish his goal."                         |
| "No problems."   | "The user didn't make any mistakes in the play test or struggle with the game" |

^ Praise feels good but doesn't lead to any improvements in the app itself.

---

# Three testers, one problem

1. Three testers hit the same wall
2. Write the change in `docs/decisions.md` and let your agent build it
3. Deploy the change and test again

^ When three people hit the same wall, you don't need a fourth to know what to build next. Decisions come before code, so your agent builds from them. Then a new tester tells you whether the change worked.

---

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

# Deploys

---

# A **deploy** puts a **commit** online

- Your app's address: `csc105-<your id>.onpaths.net`
- **Put it online** sends your latest **commit** to the host
- Testers open that **address** on their own phones

^ The App tab in the Studio is for you, and your address is for everyone else. A change you haven't deployed isn't there for your next tester, so deploy before each test. Your agent can do it: ask it to put your app online.

---

# Files or a server

| Your repo has                   | The host                                |
| ------------------------------- | --------------------------------------- |
| `index.html`, no `package.json` | serves your files                       |
| a `package.json`                | installs, then runs your `start` script |

---

# Preview and production

|             | Preview                    | Production               |
| ----------- | -------------------------- | ------------------------ |
| Runs        | your files as they are now | your last deploy         |
| Who sees it | you, in the App tab        | anyone with your address |
| Data        | its own                    | your real users'         |

^ New this week: a server app runs in the App tab from its own preview on the host, so you and your agent can try it before you deploy. Production keeps its data between deploys. These words are in the [Deploys](../../badges/web/deploys.badge.md) badge.

---

# Check your agent's work

- Try every change yourself, on a phone when you can
- Ask your agent to try it too: _"Play a fight, get blocked twice, then tell me what happened."_
- When it says _"I haven't tried it,"_ you're the tester

^ Your agent can click, type and press keys in your app, but it doesn't always. Give it the steps a person would take. If its reply says it couldn't check, try the change before you ask for the next one.

---

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

# Next: the hard part

---

# The hard part

- Make the prototype actually work
  - Decide what "actually works" looks like in `docs/project.md`, then build it
- Examples: auth, profiles, image uploads, databases, AI features etc.
- More on this Thursday

^ Due next Tuesday at 2:30. If it has to understand, write, judge or see what people give it, read [AI in your app](../../project/guides/ai.guide.md). If rules can do it, use rules. See [The hard part](../../build/hard-part.milestone.md).

---

# Work time

- Finish your first slice by 2:30
- Name your hard part in `docs/project.md`
- Check-ins while you work
