Skip to content

Quests ​

A quest pack adds quests to a branch of the game: each quest has steps, and each step is done by the player, chosen, or done by the game and proven by the machine. A whole game file has the same quests, grouped in branches.

Standardalta.quests/0.3 (a pack) · alta.game/0.3 (a whole game)
Fileany .json file of a pack folder, e.g. quests.json
Create italta new quest-pack my-pack
Check italta lint my-pack
JSON Schemaalta.quests.schema.json · alta.game.schema.json

Minimal example ​

The smallest pack that passes alta lint: one quest, one step, proven by the machine when Codex is installed.

quests.json
json
{
  "schema": "alta.quests/0.3",
  "branch": "core",
  "quests": [
    {
      "id": "minimal-codex",
      "uid": "core.minimal-codex",
      "act": 2,
      "giver": "operator",
      "title": { "en": "Install Codex", "fr": "Installe Codex" },
      "reward": { "xp": 20 },
      "steps": [
        {
          "id": "codex",
          "kind": "check",
          "title": {
            "en": "Codex is on your machine",
            "fr": "Codex est sur ta machine"
          },
          "check": { "type": "bin", "name": "codex" }
        }
      ]
    }
  ]
}

examples/minimal/quests.fragment.json

Fields ​

Quest pack ​

The file itself.

schemaenumrequired

The standard: alta.quests/0.3 (or alta.quests/0.2, still read).

Valuesalta.quests/0.2alta.quests/0.3

branchstringrequired

The branch the quests join, e.g. core.

actsact[]optional

Acts added to the branch.

skillsskill[]optional

Skills added to the branch.

questsquest[]required

The quests added.

Quest ​

idstringoptional

The quest's short id, unique in its branch.

uidstringrequired

The quest's unique id, <branch>.<id>, e.g. core.first-steps. Progress and links use it.

actintegeroptional

The act it belongs to, by number.

giverstringoptional

The agent who gives the quest, by role (daemon, architect, operator, reviewer, guardian).

mainbooleanoptional

true: a quest of the main story.

titletextoptional

The quest's title.

summarytextoptional

One or two sentences: what the player gets from it.

quotetextoptional

A line the giver says when offering it.

whytextoptional

Why it matters, shown in the quest's details.

asktextoptional

The question the giver asks when offering the quest.

requiresstring[], or nulloptional

The uids of the quests that must be done first.

levelintegeroptional

The level the player must have reached.

rewardobjectrequired

What the player wins when the quest is done.

reward.xpnumberrequired

The experience it gives. Capped by type: instant 10 to 30, repeatable 30, personal 5.

at least 0

reward.skillsstring[]optional

The skills it unlocks, by id.

stepsstep[]required

The steps, in the order the player sees them.

typeenumoptional

When it can be played: campaign (once, the default), daily, repeatable, instant, repair, system or personal.

Valuescampaigndailyrepeatableinstantrepairsystempersonal

Default campaign

resetobjectoptional

When a daily quest comes back. Required on daily quests, absent elsewhere.

reset.everyenumrequired

day or week.

Valuesdayweek

reset.atstringoptional

The local time it comes back, HH:MM (default 04:00).

matches ^\d{2}:\d{2}$

Default 04:00

reset.weekdayintegeroptional

For a weekly reset: the day, 1 (Monday) to 7 (Sunday).

1 to 7

repeatobjectoptional

The rhythm of a repeatable quest. Only on repeatable quests.

repeat.cooldownSnumberoptional

Seconds to wait between two rounds.

at least 0

repeat.maxintegeroptional

How many rounds at most.

at least 1

originobjectoptional

What a repair or personal quest was born from. Required on those.

origin.kindenumrequired

item, entity, probe or task.

Valuesitementityprobetask

origin.refstringrequired

Its id.

origin.sincestringoptional

When it started, as an ISO date.

targetstringoptional

The entity the quest is about, by id.

expiresstringoptional

When the quest leaves the game, as an ISO date.

supportsupportoptional

Where the quest can be played. Absent: as its branch says.

Step ​

kind says what the step is; the other fields depend on it. A step the game does has run, inputs and check; a manual step says why with human. The closed lists give every kind, the executors every run.do, and the check types every check.type.

idstringrequired

The step's id, unique in its quest: lowercase letters, digits and dashes. The progress is saved under <quest uid>/<step id>.

matches ^[a-z0-9][a-z0-9-]{0,79}$

kindenumrequired

What the step is: action (the game does it), check (proven by the machine), choice, manual (the player does it), command, link or mission. See the closed lists.

Valuesmanualchoicecheckactioncommandlinkmission

titletextoptional

The step's title, as the player reads it in the quest.

hinttextoptional

One line under the title: what to do, or why.

asktextoptional

The question a choice step asks.

osenum[], or nulloptional

The systems the step is shown on. Absent: all. Use it for a step that differs from one system to another.

Valuesmacoslinuxwindows

archenum[], or nulloptional

The processors the step is shown on (arm64, x64). Absent: all.

Valuesarm64x64

optionalbooleanoptional

An optional step does not block the quest: it is done when the required steps are.

Default false

checkobject, or nulloptional

The proof: a read-only check that completes the step when it passes. Its type comes from the closed list of check types.

check.typeenumrequired

The check type, from the closed list (bin, permission, channel, entity, world, signin…).

Valuesanswerentityworldmissionseenitemhostidentitymoduleautomationconfigfileskillservicetasksigninmodelbinpermissionchannelaccountbackuppartprobescriptagentchartneed

check.toolenumrequired

when type is signin

The sign-in tool whose sign-in the player has on this machine (signin: claude, codex, gh, practice), read only by the tool's own status command.

Valuesclaudecodexghpractice

check.mindenumrequired

when type is signin or model

The mind the player is signed in to (signin: claude, codex) or that the agents think with (model: claude, codex, local).

Valuesclaudecodexlocal

check.keystringrequired

when type is seen

What was seen: a scene id, or trailer for the trailer of any world.

matches ^(trailer|[a-z]{1,16}:[a-z0-9.\-_]{1,80})$

check.namestring | enumrequired

when type is bin or permission

The program that must be on the machine (bin), or the permission the system must grant (permission: microphone, accessibility…).

Valuesmicrophonespeechaccessibilityscreennotificationscameralocation

matches ^[a-z0-9][a-z0-9._+-]{0,63}$

check.idstring | enumrequired

when type is channel or part

The chat channel, e.g. telegram or whatsapp.

Valuesmachinemindmemoryagentsmapmodules

matches ^[a-z][a-z0-9-]{1,31}$

check.stateenumoptional

when type is channel

What the channel must have: configured (it has an account, the default) or paired (no pairing request waits).

Valuesconfiguredpaired

Default configured

check.serviceenumrequired

when type is account

The account's service, e.g. google.

Valuesgoogle

check.scopeenumoptional

when type is account

What the account must allow, e.g. gmail or calendar.

Valuesgmailcalendar

check.maxAgeHoursnumberoptional

when type is backup

How recent the last backup must be, in hours (at most a year).

more than 0 to 8784

check.restoreTestedtrueoptional

when type is backup

true: a restore of the backup must also have been tested.

check.modeenumrequired

when type is host

Where the world runs: local (the player's machine) or hosted.

Valueslocalhosted

choicesobject[], or nulloptional

The options of a choice step. The answer is kept under saves.

choices.idstringrequired

The option's id: the value saved when the player picks it.

choices.labeltextoptional

The option as the player reads it.

choices.hinttextoptional

One sentence under the label: what this option promises.

choices.hostenumoptional

Shows the option only on this host: local, hosted, hosted-free or hosted-paid.

Valueslocalhostedhosted-freehosted-paid

choices.offobjectoptional

Shows the option greyed on this host, with its reason: it cannot be picked there.

choices.off.hostenumrequired

The host where the option is greyed.

Valueslocalhostedhosted-freehosted-paid

choices.off.whytextrequired

The reason the player reads under the greyed option.

choices.resourcesresourcesoptional

What the option needs of the machine (any of cpu, memory, disk, gpu, arch): greyed where the machine has less, with a line that names what is missing. A resource the game did not measure is never refused.

savesstring, or nulloptional

Where the answer is kept, answers.<key>: a later step reads it (when, from, { answer }).

cmdstring, or one per system, or nulloptional

A command the player copies and runs themselves (command step), or one per system.

openstring, or one per system, or nulloptional

An https:// page the step opens (link step), or one per system.

whenobject, or nulloptional

Show the step only when an earlier answer has a value.

when.answerstringrequired

The answer to read, answers.<key>.

when.equalsstringrequired

The value it must have.

agentstring, or nulloptional

The agent who speaks on this step, by role. Default: the quest's giver.

missionobject, or nulloptional

What a mission step sends to an agent, and to whom. Required on a mission step, absent elsewhere.

mission.agentenumoptional

The agent sent: daemon (the default), architect, operator, reviewer or guardian.

Valuesdaemonarchitectoperatorreviewerguardian

Default daemon

mission.brieftextrequired

The instructions the agent receives, in each language (up to 4000 characters).

mission.editablebooleanoptional

true: the player can edit the brief before sending it.

mission.targetstringoptional

The entity the mission is about, by id.

runobject, or one per system, or nulloptional

What the game does on the player's machine, after the player agrees on the plan card: an executor of the closed list and its arguments, or one per system.

run.doenumrequired

The executor, from the closed list (e.g. setup.daemon-name, channel.connect). The game knows its exact command.

Valuesagent.messageitem.dataworkflow.installautomation.enableautomation.disableskill.installsetup.basesetup.brewsetup.alta-ossetup.machinesetup.claude-signinsetup.openai-signinsetup.other-signinsetup.daemon-namesetup.alta-plansetup.alta-applysetup.alta-checkllm.signinsignin.clipkg.installopenclaw.config-setmac.open-paneapp.openchannel.connectchannel.pair-approveconnector.connectautomation.runprefs.setbackup.initbackup.runbackup.restore-testtablet.pairvoice.hearvoice.makevoice.saymemory.importagent.createagent.archiveservice.restartmodel.pullsignin.refreshchannel.reconnectgateway.recoveropenclaw.read

run.argsmap of argValueoptional

The executor's arguments: only those it declares, each a literal, { "input": "<id>" } or { "answer": "answers.<key>" }.

inputsinput[], or nulloptional

The form of the plan card: what the step asks the player before it runs.

resourcesresources, or nulloptional

What the step needs of the machine (any of cpu, memory, disk, gpu, arch), with what its executor needs: where the machine has less, the step says what is missing instead of its "Do it".

humanenum, or nulloptional

Why a manual step stays with the player: speak, approve, device, external, judge or before. Required on manual steps since alta.quests/0.3.

Valuesspeakapprovedeviceexternaljudgebefore

provenBystring, or nulloptional

The id of a step of the same quest whose check also proves this one, for a step that has no proof of its own.

matches ^[a-z0-9][a-z0-9-]{0,79}$

Input ​

A field of the plan card, asked before the step runs. See Make a step that does it.

idstringrequired

The input's id, unique in its step; run.args reads it with { "input": "<id>" }.

matches ^[a-z][a-z0-9-]{0,31}$

kindenumrequired

What the field takes: text, choice, email, path, number, boolean or secret.

Valuestextchoiceemailpathnumberbooleansecret

labeltextrequired

The field's label, in each language.

hinttextoptional

One line under the field.

requiredbooleanoptional

false: the player may leave it empty. Default: required.

Default true

defaultstring | number | booleanoptional

The value the field starts with. Never on a secret.

fromstringoptional

Prefill the field from an earlier answer, answers.<key>. Never on a secret.

matches ^answers\.[a-z0-9][a-z0-9.\-_/@]{0,119}$

savesstringoptional

Keep the value as an answer, answers.<key>, for a later step. Never on a secret.

matches ^answers\.[a-z0-9][a-z0-9.\-_/@]{0,119}$

choicesobject[]optional

The options of a choice field.

at least 1 items

choices.idstringrequired

The option's id: the value the field takes.

choices.labeltextoptional

The option as the player reads it.

maxnumberoptional

The largest number (number), or the most characters (text: 200 by default, at most 2000).

minnumberoptional

The smallest number (number).

patternstringoptional

A regular expression a text value must match, anchored with ^ and $.

at most 200 characters, matches ^\^.*\$$

mustenumoptional

For a path: it must exist, or be a dir or a file.

Valuesexistdirfile

notobjectoptional

For a text: values the field refuses although they fit (names kept for something else), compared without case, and the sentence it says then.

not.valuesstring[]required

The refused values, 1 to 64.

1 to 64 items

not.whytextrequired

What the field says when one of them is typed, in each language: why, and what to type instead.

Resources ​

What a step or a choice needs of the machine, written like Kubernetes resources. See What a step needs of the machine.

cpunumber | stringoptional

Cores: 4, "4", or "500m" for half a core.

more than 0 to 1024

memorynumber | stringoptional

Total memory, a quantity like Kubernetes: "16Gi", "512Mi", or decimal "16G".

more than 0

disknumber | stringoptional

Free space on the volume of the player's home, a quantity like "20Gi".

more than 0

gputrueoptional

true: a GPU the models can use (Apple Silicon's unified memory counts).

archenum[]optional

The processor families it runs on: arm64, x64.

Valuesarm64x64

at least 1 items

Argument value ​

inputstringrequired

The id of an input of this step.

matches ^[a-z][a-z0-9-]{0,31}$

answerstringrequired

An answer saved by an earlier step, answers.<key>.

matches ^answers\.[a-z0-9][a-z0-9.\-_/@]{0,119}$

Act ​

idintegerrequired

The act's number.

titletextoptional

The act's title.

subtextoptional

A subtitle.

levelintegeroptional

The level the player must have reached to open it.

optionalbooleanoptional

true: the act does not block the story when its quests cannot be played here.

Default false

Skill ​

idstringrequired

The skill's id.

titletextoptional

The skill's name.

desctextoptional

What it lets the player do.

agentstringoptional

The agent it belongs to, by role.

afterstringoptional

The id of the skill that comes before it.

Branch ​

A whole branch, in a game file or a store item.

idstringrequired

The branch's id; quest uids start with it. Ids that start with _ are reserved for the game.

versionstringoptional

The branch's version.

titletextoptional

The branch's title.

summarytextoptional

What the branch is about.

whytextoptional

Why a player would take it.

actsact[]optional

Its acts.

skillsskill[]optional

Its skills.

questsquest[]optional

Its quests.

itemstringoptional

The chart that brought it, by id.

generatedbooleanoptional

true: made by the game, not written in a file.

supportsupportoptional

Where the branch can be played; a quest may narrow it.

Game file ​

schemaenumrequired

The standard: alta.game/0.3 (0.2 and 0.1 are still read).

Valuesalta.game/0.1alta.game/0.2alta.game/0.3

langsenum[]optional

The languages of the texts: en, fr.

Valuesenfr

branchesbranch[]required

The branches of the game.

Rules and errors ​

Each rule alta lint applies to quests, with its section on the errors page.

  • game.schemaA whole game file must say alta.game/0.3 (0.2 and 0.1 are still read).
  • quests.schemaA quest file must say alta.quests/0.3 (0.2 is still read).
  • game.v3-fieldinputs, human, provenBy and references in run.args need version 0.3 of the standard.
  • game.branchesA game file needs a branches list.
  • quests.branchThe quests are added to a branch the game does not have.
  • branch.idA branch id is missing or used twice.
  • branch.reserved-idIds that start with _ are reserved for the game.
  • branch.daily-xp-capThe daily quests of one branch give too much experience in total.
  • quest.uidA quest uid is missing or used twice.
  • quest.uid-prefixA quest uid must start with the id of its branch.
  • quest.uid-takenThis quest uid is already used by the game.
  • quest.typeThe quest type is not one the game knows.
  • quest.stepsA quest needs at least one step.
  • quest.rewardA quest needs a reward in experience.
  • quest.daily-resetA daily quest must say when it resets, and only a daily quest has a reset.
  • quest.resetThe reset is malformed: every is day or week, at is written HH:MM, and weekday (1 to 7) goes only with week.
  • quest.repeatrepeat only belongs on a repeatable quest.
  • quest.machine-proofThis kind of quest must be proven by the machine, not only declared.
  • quest.repeatable-xpA repeatable quest gives too much experience.
  • quest.instantAn instant quest has exactly one step and a small reward.
  • quest.originA repair or personal quest must say where it comes from.
  • quest.repair-proofA repair quest is proven by a check of the entity it repairs.
  • quest.personal-xpA personal quest gives too much experience.
  • step.idA step id is missing or malformed.
  • step.kindThe step's kind is missing or misspelled.
  • step.per-osA per-system table (cmd, open, run) misses a system the quest supports.
  • step.osThe step names a system the game does not know.
  • step.open-httpsA link step opens something other than an https address.
  • step.run-executorThe step runs an executor that is not in the closed list.
  • step.run-osThe executor does not run on one of the systems of the step.
  • step.mission-briefA mission step needs written instructions.
  • step.mission-kindmission only belongs on a step of kind mission.
  • check.typeThe check names a type the game does not know, so the step could never be proven.
  • check.entityAn entity check is malformed.
  • check.worldA world check names an unknown kind of entity.
  • check.signinA signin check must name the sign-in tool it proves: tool (claude, codex, gh, practice), or mind (claude or codex), not both.
  • signin.toolsignin.cli names a tool that is not in the closed table of sign-in tools of this version.
  • signin.flowThe tool does not offer this flow (link-code, device-code, email-link, secret, tool-browser).
  • signin.hostsA flow that shows a link must declare the hosts its link may point at, each one a host the tool itself uses; a flow without a link takes no hosts.
  • signin.tokenThe secret flow takes the token from a secret input of the step, and only that flow takes a token.
  • signin.proofA sign-in step is proven by a signin check of the same tool, never by the run alone.
  • check.modelA model check must name the mind OpenClaw should think with.
  • check.seenA seen check must name a scene key.
  • step.manual-reasonIn 0.3 a manual step says why only the player can do it, so "I did it" never stays on a step the machine could do.
  • step.humanhuman is not one of the reasons the standard knows.
  • step.proven-byprovenBy names a step that is not in this quest, makes a loop, ends on a step without a proof, or sits on a step that has its own check.
  • step.run-cardA manual step may carry a helper run only if it changes nothing (an executor without a plan card).
  • step.inputsinputs is malformed: not a list, an input id malformed or repeated, a label without English, or inputs on a step that runs nothing.
  • step.input-kindAn input has an unknown kind, a field its kind does not take, a default of another kind, or does not fit the executor argument it feeds.
  • step.input-refA reference in run.args names an input the step does not have, an answer is not written answers.<key>, or an input is neither used nor saved.
  • step.input-notnot lists values a text field refuses although they fit (names kept for something else): a list of texts and the sentence the field says, on a text input only.
  • step.input-secretA secret stays between the player and their machine: never prefilled, kept, shown or written in a file, and it only feeds an argument the executor declares secret.
  • check.binA bin check must name a program.
  • check.permissionA permission check must name a permission of the OpenClaw app.
  • check.channelA channel check must name a channel, and its state is configured or paired.
  • check.accountAn account check must name a service it knows, and a scope of that service.
  • check.backupA backup check takes maxAgeHours (a number of hours) and restoreTested (true).
  • check.hostA host check must say the mode: local or hosted.
  • check.partA part check must name a part of the Alta install.
  • choice.recommendedA choice step shows "Recommended" on more than one of its choices on a host, or on a choice that cannot be picked there (greyed by off, or by resources on the smallest machine).
  • choice.hostA choice names a host the game does not know.
  • choice.offA choice's off names an unknown host, or gives its reason without English and French.
  • resources.fieldresources is not an object of known resources, or is empty.
  • resources.cpuresources.cpu is not a number of cores.
  • resources.memoryresources.memory is not a quantity of memory.
  • resources.diskresources.disk is not a quantity of free disk.
  • resources.gpuresources.gpu only takes true.
  • resources.archresources.arch is not a list of processor families.
  • choice.none-on-hostOn a host, or on the smallest machine, every choice of the step is greyed: the player could not go on.
  • step.run-argsThe step gives its executor an argument it does not take, or a value outside its list.

Full example ​

A pack with a check step, a choice, a command and a daily quest
quests.json
json
{
  "schema": "alta.quests/0.2",
  "branch": "core",
  "skills": [
    {
      "id": "core.tidy",
      "title": { "en": "Tidy machine", "fr": "Machine rangée" },
      "agent": "guardian"
    }
  ],
  "quests": [
    {
      "id": "tidy-downloads",
      "uid": "core.tidy-downloads",
      "act": 2,
      "giver": "guardian",
      "title": {
        "en": "Tidy the downloads",
        "fr": "Range les téléchargements"
      },
      "summary": {
        "en": "Choose a rule for old downloads and let it run each week.",
        "fr": "Choisis une règle pour les vieux téléchargements et laisse-la tourner chaque semaine."
      },
      "requires": ["core.backup"],
      "reward": { "xp": 50, "skills": ["core.tidy"] },
      "support": {
        "platforms": [
          { "os": "macos", "min": "14" },
          { "os": "linux" }
        ],
        "hosted": "limited",
        "notes": {
          "linux": {
            "en": "In a hosted world there is no downloads folder to tidy.",
            "fr": "Dans un monde hébergé, il n'y a pas de dossier de téléchargements à ranger."
          }
        }
      },
      "steps": [
        {
          "id": "rule",
          "kind": "choice",
          "title": {
            "en": "What happens to downloads older than 30 days?",
            "fr": "Que deviennent les téléchargements de plus de 30 jours ?"
          },
          "choices": [
            {
              "id": "archive",
              "label": {
                "en": "Move them to an archive folder",
                "fr": "Les ranger dans un dossier d'archives"
              }
            },
            {
              "id": "ask",
              "label": {
                "en": "Ask me each week",
                "fr": "Me demander chaque semaine"
              }
            }
          ],
          "saves": "answers.tidy.rule"
        },
        {
          "id": "archive-folder",
          "kind": "check",
          "title": {
            "en": "The archive folder exists",
            "fr": "Le dossier d'archives existe"
          },
          "when": {
            "answer": "answers.tidy.rule",
            "equals": "archive"
          },
          "check": {
            "type": "file",
            "path": "~/Downloads/Archive"
          }
        },
        {
          "id": "read-more",
          "kind": "link",
          "title": {
            "en": "Read how the rule works",
            "fr": "Lis comment marche la règle"
          },
          "open": {
            "macos": "https://docs.example.org/tidy/macos",
            "linux": "https://docs.example.org/tidy/linux"
          },
          "optional": true
        },
        {
          "id": "weekly",
          "kind": "action",
          "title": {
            "en": "Turn on the weekly tidy",
            "fr": "Active le rangement hebdomadaire"
          },
          "run": {
            "macos": {
              "do": "automation.enable",
              "args": {
                "key": "tidy-downloads"
              }
            },
            "linux": {
              "do": "automation.enable",
              "args": {
                "key": "tidy-downloads"
              }
            }
          },
          "check": {
            "type": "automation",
            "key": "tidy-downloads",
            "enabled": true
          }
        }
      ]
    }
  ]
}

examples/quest-pack/core.fragment.json

Versions ​

VersionWhat it addsRead by the game
alta.quests/0.3, alta.game/0.3Steps that do it: inputs, secrets, human, provenBy; a manual step must say whycurrent
alta.quests/0.2, alta.game/0.2Quest types and cycles (daily, repeatable…), run, support, per-system stepsyes, as written
alta.game/0.1Branches, acts, quests and stepsyes, as written

A file declares its version in schema; a field of a later version in an earlier file is refused (game.v3-field).

Guides that use it ​

Alta OS is open source (MIT).