English
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.
| Standard | alta.quests/0.3 (a pack) · alta.game/0.3 (a whole game) |
| File | any .json file of a pack folder, e.g. quests.json |
| Create it | alta new quest-pack my-pack |
| Check it | alta lint my-pack |
| JSON Schema | alta.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.
Quest
idstringoptionalThe quest's short id, unique in its branch.
uidstringrequiredThe quest's unique id,
<branch>.<id>, e.g.core.first-steps. Progress and links use it.actintegeroptionalThe act it belongs to, by number.
giverstringoptionalThe agent who gives the quest, by role (daemon, architect, operator, reviewer, guardian).
mainbooleanoptionaltrue: a quest of the main story.titletextoptionalThe quest's title.
summarytextoptionalOne or two sentences: what the player gets from it.
quotetextoptionalA line the giver says when offering it.
whytextoptionalWhy it matters, shown in the quest's details.
asktextoptionalThe question the giver asks when offering the quest.
requiresstring[], or nulloptionalThe uids of the quests that must be done first.
levelintegeroptionalThe level the player must have reached.
rewardobjectrequiredWhat the player wins when the quest is done.
reward.xpnumberrequiredThe experience it gives. Capped by type: instant 10 to 30, repeatable 30, personal 5.
at least 0
reward.skillsstring[]optionalThe skills it unlocks, by id.
typeenumoptionalWhen it can be played:
campaign(once, the default),daily,repeatable,instant,repair,systemorpersonal.Values
campaigndailyrepeatableinstantrepairsystempersonalDefault
campaignresetobjectoptionalWhen a
dailyquest comes back. Required on daily quests, absent elsewhere.reset.everyenumrequireddayorweek.Values
dayweekreset.atstringoptionalThe local time it comes back,
HH:MM(default 04:00).matches
^\d{2}:\d{2}$Default
04:00reset.weekdayintegeroptionalFor a weekly reset: the day, 1 (Monday) to 7 (Sunday).
1 to 7
repeatobjectoptionalThe rhythm of a
repeatablequest. Only on repeatable quests.repeat.cooldownSnumberoptionalSeconds to wait between two rounds.
at least 0
repeat.maxintegeroptionalHow many rounds at most.
at least 1
originobjectoptionalWhat a
repairorpersonalquest was born from. Required on those.origin.kindenumrequireditem,entity,probeortask.Values
itementityprobetaskorigin.refstringrequiredIts id.
origin.sincestringoptionalWhen it started, as an ISO date.
targetstringoptionalThe entity the quest is about, by id.
expiresstringoptionalWhen the quest leaves the game, as an ISO date.
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.
idstringrequiredThe 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}$kindenumrequiredWhat the step is:
action(the game does it),check(proven by the machine),choice,manual(the player does it),command,linkormission. See the closed lists.Values
manualchoicecheckactioncommandlinkmissiontitletextoptionalThe step's title, as the player reads it in the quest.
hinttextoptionalOne line under the title: what to do, or why.
asktextoptionalThe question a
choicestep asks.osenum[], or nulloptionalThe systems the step is shown on. Absent: all. Use it for a step that differs from one system to another.
Values
macoslinuxwindowsarchenum[], or nulloptionalThe processors the step is shown on (
arm64,x64). Absent: all.Values
arm64x64optionalbooleanoptionalAn optional step does not block the quest: it is done when the required steps are.
Default
falsecheckobject, or nulloptionalThe proof: a read-only check that completes the step when it passes. Its
typecomes from the closed list of check types.check.typeenumrequiredThe check type, from the closed list (bin, permission, channel, entity, world, signin…).
Values
answerentityworldmissionseenitemhostidentitymoduleautomationconfigfileskillservicetasksigninmodelbinpermissionchannelaccountbackuppartprobescriptagentchartneedcheck.toolenumrequiredwhen
typeissigninThe 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.Values
claudecodexghpracticecheck.mindenumrequiredwhen
typeissigninormodelThe mind the player is signed in to (
signin: claude, codex) or that the agents think with (model: claude, codex, local).Values
claudecodexlocalcheck.keystringrequiredwhen
typeisseenWhat was seen: a scene id, or
trailerfor the trailer of any world.matches
^(trailer|[a-z]{1,16}:[a-z0-9.\-_]{1,80})$check.namestring | enumrequiredwhen
typeisbinorpermissionThe program that must be on the machine (
bin), or the permission the system must grant (permission: microphone, accessibility…).Values
microphonespeechaccessibilityscreennotificationscameralocationmatches
^[a-z0-9][a-z0-9._+-]{0,63}$check.idstring | enumrequiredwhen
typeischannelorpartThe chat channel, e.g.
telegramorwhatsapp.Values
machinemindmemoryagentsmapmodulesmatches
^[a-z][a-z0-9-]{1,31}$check.stateenumoptionalwhen
typeischannelWhat the channel must have:
configured(it has an account, the default) orpaired(no pairing request waits).Values
configuredpairedDefault
configuredcheck.serviceenumrequiredwhen
typeisaccountThe account's service, e.g.
google.Values
googlecheck.scopeenumoptionalwhen
typeisaccountWhat the account must allow, e.g.
gmailorcalendar.Values
gmailcalendarcheck.maxAgeHoursnumberoptionalwhen
typeisbackupHow recent the last backup must be, in hours (at most a year).
more than 0 to 8784
check.restoreTestedtrueoptionalwhen
typeisbackuptrue: a restore of the backup must also have been tested.check.modeenumrequiredwhen
typeishostWhere the world runs:
local(the player's machine) orhosted.Values
localhostedchoicesobject[], or nulloptionalThe options of a
choicestep. The answer is kept undersaves.choices.idstringrequiredThe option's id: the value saved when the player picks it.
choices.labeltextoptionalThe option as the player reads it.
choices.hinttextoptionalOne sentence under the label: what this option promises.
choices.recommendedbooleanoptionalShows a "Recommended" tag. One option at most, never one that can be greyed.
choices.hostenumoptionalShows the option only on this host: local, hosted, hosted-free or hosted-paid.
Values
localhostedhosted-freehosted-paidchoices.offobjectoptionalShows the option greyed on this host, with its reason: it cannot be picked there.
choices.off.hostenumrequiredThe host where the option is greyed.
Values
localhostedhosted-freehosted-paidchoices.off.whytextrequiredThe reason the player reads under the greyed option.
choices.resourcesresourcesoptionalWhat 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 nulloptionalWhere the answer is kept,
answers.<key>: a later step reads it (when,from,{ answer }).cmdstring, or one per system, or nulloptionalA command the player copies and runs themselves (
commandstep), or one per system.openstring, or one per system, or nulloptionalAn
https://page the step opens (linkstep), or one per system.whenobject, or nulloptionalShow the step only when an earlier answer has a value.
when.answerstringrequiredThe answer to read,
answers.<key>.when.equalsstringrequiredThe value it must have.
agentstring, or nulloptionalThe agent who speaks on this step, by role. Default: the quest's giver.
missionobject, or nulloptionalWhat a
missionstep sends to an agent, and to whom. Required on amissionstep, absent elsewhere.mission.agentenumoptionalThe agent sent: daemon (the default), architect, operator, reviewer or guardian.
Values
daemonarchitectoperatorreviewerguardianDefault
daemonmission.brieftextrequiredThe instructions the agent receives, in each language (up to 4000 characters).
mission.editablebooleanoptionaltrue: the player can edit the brief before sending it.mission.targetstringoptionalThe entity the mission is about, by id.
runobject, or one per system, or nulloptionalWhat 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.doenumrequiredThe executor, from the closed list (e.g.
setup.daemon-name,channel.connect). The game knows its exact command.Values
agent.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.readrun.argsmap of argValueoptionalThe executor's arguments: only those it declares, each a literal,
{ "input": "<id>" }or{ "answer": "answers.<key>" }.inputsinput[], or nulloptionalThe form of the plan card: what the step asks the player before it runs.
resourcesresources, or nulloptionalWhat 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 nulloptionalWhy a
manualstep stays with the player:speak,approve,device,external,judgeorbefore. Required on manual steps sincealta.quests/0.3.Values
speakapprovedeviceexternaljudgebeforeprovenBystring, or nulloptionalThe 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.
idstringrequiredThe input's id, unique in its step;
run.argsreads it with{ "input": "<id>" }.matches
^[a-z][a-z0-9-]{0,31}$kindenumrequiredWhat the field takes:
text,choice,email,path,number,booleanorsecret.Values
textchoiceemailpathnumberbooleansecretlabeltextrequiredThe field's label, in each language.
hinttextoptionalOne line under the field.
requiredbooleanoptionalfalse: the player may leave it empty. Default: required.Default
truedefaultstring | number | booleanoptionalThe value the field starts with. Never on a secret.
fromstringoptionalPrefill the field from an earlier answer,
answers.<key>. Never on a secret.matches
^answers\.[a-z0-9][a-z0-9.\-_/@]{0,119}$savesstringoptionalKeep 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[]optionalThe options of a
choicefield.at least 1 items
choices.idstringrequiredThe option's id: the value the field takes.
choices.labeltextoptionalThe option as the player reads it.
maxnumberoptionalThe largest number (
number), or the most characters (text: 200 by default, at most 2000).minnumberoptionalThe smallest number (
number).patternstringoptionalA regular expression a
textvalue must match, anchored with^and$.at most 200 characters, matches
^\^.*\$$mustenumoptionalFor a
path: it mustexist, or be adiror afile.Values
existdirfilenotobjectoptionalFor 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[]requiredThe refused values, 1 to 64.
1 to 64 items
not.whytextrequiredWhat 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 | stringoptionalCores:
4,"4", or"500m"for half a core.more than 0 to 1024
memorynumber | stringoptionalTotal memory, a quantity like Kubernetes:
"16Gi","512Mi", or decimal"16G".more than 0
disknumber | stringoptionalFree space on the volume of the player's home, a quantity like
"20Gi".more than 0
gputrueoptionaltrue: a GPU the models can use (Apple Silicon's unified memory counts).archenum[]optionalThe processor families it runs on:
arm64,x64.Values
arm64x64at least 1 items
Argument value
Act
Skill
Branch
A whole branch, in a game file or a store item.
idstringrequiredThe branch's id; quest uids start with it. Ids that start with
_are reserved for the game.versionstringoptionalThe branch's version.
titletextoptionalThe branch's title.
summarytextoptionalWhat the branch is about.
whytextoptionalWhy a player would take it.
itemstringoptionalThe chart that brought it, by id.
generatedbooleanoptionaltrue: made by the game, not written in a file.
Game file
Rules and errors
Each rule alta lint applies to quests, with its section on the errors page.
game.schemaA whole game file must sayalta.game/0.3(0.2 and 0.1 are still read).quests.schemaA quest file must sayalta.quests/0.3(0.2 is still read).game.v3-fieldinputs,human,provenByand references inrun.argsneed version 0.3 of the standard.game.branchesA game file needs abrancheslist.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 questuidis missing or used twice.quest.uid-prefixA questuidmust start with the id of its branch.quest.uid-takenThis questuidis already used by the game.quest.typeThe questtypeis 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 areset.quest.resetTheresetis malformed:everyisdayorweek,atis writtenHH:MM, andweekday(1 to 7) goes only withweek.quest.repeatrepeatonly 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 stepidis missing or malformed.step.kindThe step'skindis 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-kindmissiononly belongs on a step of kindmission.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.signinAsignincheck must name the sign-in tool it proves:tool(claude, codex, gh, practice), ormind(claude or codex), not both.signin.toolsignin.clinames 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.tokenThesecretflow 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 asignincheck of the same tool, never by the run alone.check.modelAmodelcheck must name the mind OpenClaw should think with.check.seenAseencheck 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.humanhumanis not one of the reasons the standard knows.step.proven-byprovenBynames 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 helperrunonly if it changes nothing (an executor without a plan card).step.inputsinputsis 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 inrun.argsnames an input the step does not have, an answer is not writtenanswers.<key>, or an input is neither used nor saved.step.input-notnotlists 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.binAbincheck must name a program.check.permissionApermissioncheck must name a permission of the OpenClaw app.check.channelAchannelcheck must name a channel, and itsstateis configured or paired.check.accountAnaccountcheck must name a service it knows, and a scope of that service.check.backupAbackupcheck takesmaxAgeHours(a number of hours) andrestoreTested(true).check.hostAhostcheck must say the mode: local or hosted.check.partApartcheck 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 byoff, or byresourceson the smallest machine).choice.hostA choice names a host the game does not know.choice.offA choice'soffnames an unknown host, or gives its reason without English and French.resources.fieldresourcesis not an object of known resources, or is empty.resources.cpuresources.cpuis not a number of cores.resources.memoryresources.memoryis not a quantity of memory.resources.diskresources.diskis not a quantity of free disk.resources.gpuresources.gpuonly takestrue.resources.archresources.archis 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
}
}
]
}
]
}Versions
| Version | What it adds | Read by the game |
|---|---|---|
alta.quests/0.3, alta.game/0.3 | Steps that do it: inputs, secrets, human, provenBy; a manual step must say why | current |
alta.quests/0.2, alta.game/0.2 | Quest types and cycles (daily, repeatable…), run, support, per-system steps | yes, as written |
alta.game/0.1 | Branches, acts, quests and steps | yes, as written |
A file declares its version in schema; a field of a later version in an earlier file is refused (game.v3-field).