Français
Quêtes
Un pack de quêtes ajoute des quêtes à une branche du jeu : chaque quête a des étapes, et chaque étape est faite par le joueur, choisie, ou faite par le jeu et prouvée par la machine. Un fichier de jeu complet contient les mêmes quêtes, rangées en branches.
| Standard | alta.quests/0.3 (un pack) · alta.game/0.3 (un jeu entier) |
| Fichier | n'importe quel .json d'un dossier de pack, par exemple quests.json |
| Le créer | alta new quest-pack my-pack |
| Le vérifier | alta lint my-pack |
| Schéma JSON | alta.quests.schema.json · alta.game.schema.json |
Exemple minimal
Le plus petit pack qui passe alta lint : une quête, une étape, prouvée par la machine quand Codex est installé.
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
Champs
Référence en anglais : les descriptions des champs sont celles du schéma JSON, que ton éditeur affiche aussi.
Pack de quêtes
Le fichier lui-même.
Quête
idstringfacultatifThe quest's short id, unique in its branch.
uidstringrequisThe quest's unique id,
<branch>.<id>, e.g.core.first-steps. Progress and links use it.actintegerfacultatifThe act it belongs to, by number.
giverstringfacultatifThe agent who gives the quest, by role (daemon, architect, operator, reviewer, guardian).
mainbooleanfacultatiftrue: a quest of the main story.titletextfacultatifThe quest's title.
summarytextfacultatifOne or two sentences: what the player gets from it.
quotetextfacultatifA line the giver says when offering it.
whytextfacultatifWhy it matters, shown in the quest's details.
asktextfacultatifThe question the giver asks when offering the quest.
requiresstring[], ou nullfacultatifThe uids of the quests that must be done first.
levelintegerfacultatifThe level the player must have reached.
rewardobjectrequisWhat the player wins when the quest is done.
reward.xpnumberrequisThe experience it gives. Capped by type: instant 10 to 30, repeatable 30, personal 5.
at least 0
reward.skillsstring[]facultatifThe skills it unlocks, by id.
typeenumfacultatifWhen it can be played:
campaign(once, the default),daily,repeatable,instant,repair,systemorpersonal.Valeurs
campaigndailyrepeatableinstantrepairsystempersonalDéfaut
campaignresetobjectfacultatifWhen a
dailyquest comes back. Required on daily quests, absent elsewhere.reset.everyenumrequisdayorweek.Valeurs
dayweekreset.atstringfacultatifThe local time it comes back,
HH:MM(default 04:00).matches
^\d{2}:\d{2}$Défaut
04:00reset.weekdayintegerfacultatifFor a weekly reset: the day, 1 (Monday) to 7 (Sunday).
1 to 7
repeatobjectfacultatifThe rhythm of a
repeatablequest. Only on repeatable quests.repeat.cooldownSnumberfacultatifSeconds to wait between two rounds.
at least 0
repeat.maxintegerfacultatifHow many rounds at most.
at least 1
originobjectfacultatifWhat a
repairorpersonalquest was born from. Required on those.origin.kindenumrequisitem,entity,probeortask.Valeurs
itementityprobetaskorigin.refstringrequisIts id.
origin.sincestringfacultatifWhen it started, as an ISO date.
targetstringfacultatifThe entity the quest is about, by id.
expiresstringfacultatifWhen the quest leaves the game, as an ISO date.
Étape
kind dit ce qu'est l'étape ; les autres champs en dépendent. Une étape que le jeu fait a run, inputs et check ; une étape manuelle dit pourquoi avec human. Les listes fermées donnent chaque sorte, les exécuteurs chaque run.do, et les types de vérification chaque check.type.
idstringrequisThe 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}$kindenumrequisWhat 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.Valeurs
manualchoicecheckactioncommandlinkmissiontitletextfacultatifThe step's title, as the player reads it in the quest.
hinttextfacultatifOne line under the title: what to do, or why.
asktextfacultatifThe question a
choicestep asks.osenum[], ou nullfacultatifThe systems the step is shown on. Absent: all. Use it for a step that differs from one system to another.
Valeurs
macoslinuxwindowsarchenum[], ou nullfacultatifThe processors the step is shown on (
arm64,x64). Absent: all.Valeurs
arm64x64optionalbooleanfacultatifAn optional step does not block the quest: it is done when the required steps are.
Défaut
falsecheckobject, ou nullfacultatifThe proof: a read-only check that completes the step when it passes. Its
typecomes from the closed list of check types.check.typeenumrequisThe check type, from the closed list (bin, permission, channel, entity, world, signin…).
Valeurs
answerentityworldmissionseenitemhostidentitymoduleautomationconfigfileskillservicetasksigninmodelbinpermissionchannelaccountbackuppartprobescriptagentchartneedcheck.toolenumrequissi
typevautsigninThe 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.Valeurs
claudecodexghpracticecheck.mindenumrequissi
typevautsigninoumodelThe mind the player is signed in to (
signin: claude, codex) or that the agents think with (model: claude, codex, local).Valeurs
claudecodexlocalcheck.keystringrequissi
typevautseenWhat 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 | enumrequissi
typevautbinoupermissionThe program that must be on the machine (
bin), or the permission the system must grant (permission: microphone, accessibility…).Valeurs
microphonespeechaccessibilityscreennotificationscameralocationmatches
^[a-z0-9][a-z0-9._+-]{0,63}$check.idstring | enumrequissi
typevautchanneloupartThe chat channel, e.g.
telegramorwhatsapp.Valeurs
machinemindmemoryagentsmapmodulesmatches
^[a-z][a-z0-9-]{1,31}$check.stateenumfacultatifsi
typevautchannelWhat the channel must have:
configured(it has an account, the default) orpaired(no pairing request waits).Valeurs
configuredpairedDéfaut
configuredcheck.serviceenumrequissi
typevautaccountThe account's service, e.g.
google.Valeurs
googlecheck.scopeenumfacultatifsi
typevautaccountWhat the account must allow, e.g.
gmailorcalendar.Valeurs
gmailcalendarcheck.maxAgeHoursnumberfacultatifsi
typevautbackupHow recent the last backup must be, in hours (at most a year).
more than 0 to 8784
check.restoreTestedtruefacultatifsi
typevautbackuptrue: a restore of the backup must also have been tested.check.modeenumrequissi
typevauthostWhere the world runs:
local(the player's machine) orhosted.Valeurs
localhostedchoicesobject[], ou nullfacultatifThe options of a
choicestep. The answer is kept undersaves.choices.idstringrequisThe option's id: the value saved when the player picks it.
choices.labeltextfacultatifThe option as the player reads it.
choices.hinttextfacultatifOne sentence under the label: what this option promises.
choices.recommendedbooleanfacultatifShows a "Recommended" tag. One option at most, never one that can be greyed.
choices.hostenumfacultatifShows the option only on this host: local, hosted, hosted-free or hosted-paid.
Valeurs
localhostedhosted-freehosted-paidchoices.offobjectfacultatifShows the option greyed on this host, with its reason: it cannot be picked there.
choices.off.hostenumrequisThe host where the option is greyed.
Valeurs
localhostedhosted-freehosted-paidchoices.off.whytextrequisThe reason the player reads under the greyed option.
choices.resourcesresourcesfacultatifWhat 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, ou nullfacultatifWhere the answer is kept,
answers.<key>: a later step reads it (when,from,{ answer }).cmdstring, ou un par système, ou nullfacultatifA command the player copies and runs themselves (
commandstep), or one per system.openstring, ou un par système, ou nullfacultatifAn
https://page the step opens (linkstep), or one per system.whenobject, ou nullfacultatifShow the step only when an earlier answer has a value.
when.answerstringrequisThe answer to read,
answers.<key>.when.equalsstringrequisThe value it must have.
agentstring, ou nullfacultatifThe agent who speaks on this step, by role. Default: the quest's giver.
missionobject, ou nullfacultatifWhat a
missionstep sends to an agent, and to whom. Required on amissionstep, absent elsewhere.mission.agentenumfacultatifThe agent sent: daemon (the default), architect, operator, reviewer or guardian.
Valeurs
daemonarchitectoperatorreviewerguardianDéfaut
daemonmission.brieftextrequisThe instructions the agent receives, in each language (up to 4000 characters).
mission.editablebooleanfacultatiftrue: the player can edit the brief before sending it.mission.targetstringfacultatifThe entity the mission is about, by id.
runobject, ou un par système, ou nullfacultatifWhat 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.doenumrequisThe executor, from the closed list (e.g.
setup.daemon-name,channel.connect). The game knows its exact command.Valeurs
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 argValuefacultatifThe executor's arguments: only those it declares, each a literal,
{ "input": "<id>" }or{ "answer": "answers.<key>" }.inputsinput[], ou nullfacultatifThe form of the plan card: what the step asks the player before it runs.
resourcesresources, ou nullfacultatifWhat 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, ou nullfacultatifWhy a
manualstep stays with the player:speak,approve,device,external,judgeorbefore. Required on manual steps sincealta.quests/0.3.Valeurs
speakapprovedeviceexternaljudgebeforeprovenBystring, ou nullfacultatifThe 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}$
Champ
Un champ de la carte de plan, demandé avant que l'étape tourne. Voir Faire une étape qui le fait.
idstringrequisThe input's id, unique in its step;
run.argsreads it with{ "input": "<id>" }.matches
^[a-z][a-z0-9-]{0,31}$kindenumrequisWhat the field takes:
text,choice,email,path,number,booleanorsecret.Valeurs
textchoiceemailpathnumberbooleansecretlabeltextrequisThe field's label, in each language.
hinttextfacultatifOne line under the field.
requiredbooleanfacultatiffalse: the player may leave it empty. Default: required.Défaut
truedefaultstring | number | booleanfacultatifThe value the field starts with. Never on a secret.
fromstringfacultatifPrefill the field from an earlier answer,
answers.<key>. Never on a secret.matches
^answers\.[a-z0-9][a-z0-9.\-_/@]{0,119}$savesstringfacultatifKeep 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[]facultatifThe options of a
choicefield.at least 1 items
choices.idstringrequisThe option's id: the value the field takes.
choices.labeltextfacultatifThe option as the player reads it.
maxnumberfacultatifThe largest number (
number), or the most characters (text: 200 by default, at most 2000).minnumberfacultatifThe smallest number (
number).patternstringfacultatifA regular expression a
textvalue must match, anchored with^and$.at most 200 characters, matches
^\^.*\$$mustenumfacultatifFor a
path: it mustexist, or be adiror afile.Valeurs
existdirfilenotobjectfacultatifFor 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[]requisThe refused values, 1 to 64.
1 to 64 items
not.whytextrequisWhat the field says when one of them is typed, in each language: why, and what to type instead.
Ressources
Ce qu'une étape ou un choix demande à la machine, écrit comme les ressources de Kubernetes. Voir Ce qu'une étape demande à la machine.
cpunumber | stringfacultatifCores:
4,"4", or"500m"for half a core.more than 0 to 1024
memorynumber | stringfacultatifTotal memory, a quantity like Kubernetes:
"16Gi","512Mi", or decimal"16G".more than 0
disknumber | stringfacultatifFree space on the volume of the player's home, a quantity like
"20Gi".more than 0
gputruefacultatiftrue: a GPU the models can use (Apple Silicon's unified memory counts).archenum[]facultatifThe processor families it runs on:
arm64,x64.Valeurs
arm64x64at least 1 items
Valeur d'argument
Acte
Compétence
Branche
Une branche entière, dans un fichier de jeu ou un article du store.
idstringrequisThe branch's id; quest uids start with it. Ids that start with
_are reserved for the game.versionstringfacultatifThe branch's version.
titletextfacultatifThe branch's title.
summarytextfacultatifWhat the branch is about.
whytextfacultatifWhy a player would take it.
itemstringfacultatifThe chart that brought it, by id.
generatedbooleanfacultatiftrue: made by the game, not written in a file.
Fichier de jeu
Règles et erreurs
Chaque règle que alta lint applique aux quêtes, avec sa section sur la page des erreurs.
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.
Exemple complet
Un pack avec une vérification, un choix, une commande et une quête quotidienne
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 | Ce qu'elle ajoute | Lue par le jeu |
|---|---|---|
alta.quests/0.3, alta.game/0.3 | Les étapes qui le font : inputs, secrets, human, provenBy ; une étape manuelle doit dire pourquoi | actuelle |
alta.quests/0.2, alta.game/0.2 | Types et cycles de quête (daily, repeatable…), run, support, étapes par système | oui, telle quelle |
alta.game/0.1 | Branches, actes, quêtes et étapes | oui, telle quelle |
Un fichier dit sa version dans schema ; un champ d'une version plus récente dans un fichier plus ancien est refusé (game.v3-field).