# A quest is done when the machine proves it

> Quests are made of steps; a step is done when a check reads the machine and passes, not when the player clicks.

A quest is a goal on the player's real machine, cut into steps. A step is done when its check reads the machine and passes: the player's word, or the end of a command, is never the proof.

*Diagram: Anatomy of a quest: a branch holds acts, an act holds quests, a quest holds steps. A step may run an action, after the player agrees, and is proven by a check that only reads.*

## Branches, acts, quests, steps

A **branch** is a storyline, like the one that brings a new machine to life. It is cut into **acts**, and each act holds **quests**: "Give your agent a name", "Talk from your phone". A quest has a few **steps**, each one small thing: choose a name, connect a channel, say hello. Your quest pack adds quests to a branch, or brings a branch of its own.

## The check is the proof

Each step that the machine can see carries a `check`: is this program installed, does the agent have a name, is the channel connected. A check only reads, and never returns what it read. When it passes, the step is done; if the thing it checks goes away later, the quest shows as reopened, and the experience points stay.

The step may also carry a `run`: an action of a closed list that the game does for the player, after they agree on a plan card. The run is how the step gets done; the check is how the game knows. Take "Give your agent a name": the step asks for the name, runs the naming action once the player says yes, and is proven when the machine reports an agent with a name.

## Types and cycles

Most quests are done once (`campaign`). Some come back: a `daily` quest resets at a time of day, without streaks or penalties; a `repeatable` one is turned in and can be done again after a cooldown. Others are made by the game itself: a `repair` quest appears when something on the machine breaks, and disappears when it is fixed.

## When only the player can do it

Speaking aloud, accepting a system window or creating an account on another site cannot be done by the machine. Such a step is `manual` and says why (`human`). Even then the game helps, opening the right setting, and proves the result when it can, so "I did it" stays a last resort.

## What it means for you

- Give every step the machine can see a check; it is what finishes the step.
- Add a `run` when the game can do the work, and leave to the player only what is theirs.
- Pick the quest type for the rhythm you want; the game handles the clock and the rewards.

**Next:**

- [Prove a step with a check](https://docs.altasystem.ai/guides/quests/prove-with-checks)
- [Make a step that does it](https://docs.altasystem.ai/guides/quests/do-it-step)
- [Daily and repeatable quests](https://docs.altasystem.ai/guides/quests/daily-repeatable)
