Français
Agent Chart
Un Agent Chart est ce que tu ajoutes à ton monde, depuis ton propre dossier ou depuis un dépôt de charts : un agent, une équipe, un module, une compétence, un pack de quêtes ou un univers. Un chart est un dossier : chart.json et les fichiers qu'il nomme. Il dit ce qu'il est et qui l'a fait, où il tourne, les parties qu'il ajoute (chacune un exécuteur d'une liste fermée, lancé après ton accord, avec la vérification en lecture seule qui la prouve), comment chaque partie se défait, et comment le jeu voit qu'il est en vie. Il ne contient jamais de code exécuté.
| Standard | alta.chart/0.1 (l'index d'un dépôt : alta.index/0.1 ; la liste depuis laquelle une machine installe : alta.catalog/0.2 ; le droit d'utiliser un chart payant : alta.license/0.2) |
| Fichier | chart.json, dans un dossier qui porte l'id du chart |
| Le créer | alta chart new my-chart --kind quest-pack |
| Le vérifier | alta lint my-chart |
| Le partager | alta package my-chart (une archive et son empreinte) · alta publish my-chart (le bloc source, depuis git) |
| Schéma JSON | alta.chart.schema.json |
| Spécification complète | alta.chart/0.1 |
Exemple minimal
Le plus petit chart qui passe alta lint : un pack de quêtes, des données seulement, qui ajoute une quête à la branche core et n'installe rien sur la machine.
my-chart/chart.json
json
{
"schema": "alta.chart/0.1",
"id": "my-chart",
"version": "0.1.0",
"kind": "quest-pack",
"title": { "en": "My first chart", "fr": "Ma première chart" },
"summary": {
"en": "One quest that adds to the core branch: the smallest chart that passes alta lint.",
"fr": "Une quête qui s'ajoute à la branche core : la plus petite chart qui passe alta lint."
},
"author": "you",
"license": "MIT",
"price": "free",
"origin": "alta",
"support": {
"platforms": [
{ "os": "macos" },
{ "os": "linux" },
{ "os": "windows" }
],
"hosted": "ok"
},
"capabilities": [],
"package": { "type": "data" },
"parts": [{ "id": "add", "do": "item.data", "proof": [] }],
"proofs": { "ready": [{ "type": "chart", "id": "my-chart" }] },
"branch": {
"schema": "alta.quests/0.3",
"branch": "core",
"quests": [
{
"id": "my-chart-welcome",
"uid": "core.my-chart.welcome",
"act": 1,
"giver": "daemon",
"main": false,
"title": {
"en": "My first chart: first steps",
"fr": "Ma première chart : premiers pas"
},
"summary": {
"en": "Read what this chart adds, then say it is done.",
"fr": "Lis ce que cette chart ajoute, puis dis que c'est fait."
},
"reward": { "xp": 30 },
"steps": [
{
"id": "read",
"kind": "manual",
"human": "judge",
"title": {
"en": "Read what this pack is about",
"fr": "Lire de quoi parle ce pack"
}
}
]
}
]
}
}examples/minimal/my-chart/chart.json
Champs
Chart
kind et package vont ensemble : un quest-pack ou un universe n'est que des données (package.type: "data", des parties item.data seulement, aucune capacité) ; un agent, une team, un module ou un skill ajoute des choses à la machine par ses parties. Un chart origin: "community" vient de n'importe quel dépôt git, a besoin de sa source, et n'est jamais verified.
$commentstringfacultatifA note for people; ignored and never shown.
schema"alta.chart/0.1"requisThe standard:
alta.chart/0.1.idstringrequisThe chart id, also the folder's name.
matches
^[a-z][a-z0-9-]{1,40}$versionstringrequisIts version, semver.
matches
^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$kindenumrequisWhat it installs: agent, team, module, package, skill, system, quest-pack, universe, cosmetic.
Valeurs
agentteammodulepackageskillsystemquest-packuniversecosmeticstatusenumfacultatifready(default) ordraft(refused at install).Valeurs
readydraftauthorstringrequisWho made it.
licensestringrequisIts license, e.g.
MIT.priceenumrequisfreeorpaid; the amount lives in the catalog.Valeurs
freepaidoriginenumrequisalta(made by Alta) orcommunity(from any git repository).Valeurs
altacommunityverifiedbooleanfacultatifSet by Alta's review only; never on a community chart.
privacyenumfacultatifpersonal(default: the owner's own, kept private, never published) orshareable(may be published: no secret, token, home path, e-mail or private keyword in it). Agent, team, module, package and skill charts only.Valeurs
personalshareablesourcechartSourcefacultatifWhere a community chart comes from. Required on a community chart.
localityenumfacultatifWhat it needs of the network at run time: local, local-first, cloud. local: works with the network off; local-first: works offline, some extras go online; cloud: needs the services listed. Absent: not declared. Never on a data chart.
Valeurs
locallocal-firstcloudexternalobjectfacultatifThe online services it talks to, each with its hosts, phase, account and the data that leaves the machine.
external.$commentstringfacultatifA note for people; ignored and never shown.
external.servicesobject[]requisThe services, 24 at most.
at most 24 items
external.services.$commentstringfacultatifA note for people; ignored and never shown.
external.services.idstringrequisThe service id, unique in the chart.
matches
^[a-z][a-z0-9-]{1,31}$external.services.namestringrequisIts name, the brand (not translated), 1 to 60 characters.
at most 60 characters
external.services.purposetext2requisWhy the chart talks to it, one sentence, in English and French: { "en": …, "fr": … }.
external.services.homepagestringfacultatifIts web page, an
https://address without credentials.matches
^https://external.services.hostsstring[]requisThe host names it reaches, lower case; one leading "*." allowed; no IP, port or path (https is implied). 1 to 16.
1 to 16 items
external.services.phaseenum[]requisWhen it is reached: install, run (install: a download once; run: while the chart works).
Valeurs
installrunat least 1 items
external.services.requiredbooleanfacultatifFalse: an optional extra; the chart works without it. Default true.
external.services.accountenumfacultatifDoes the owner need an account there: none, free, paid (default none).
Valeurs
nonefreepaidexternal.services.signinstringfacultatifThe sign-in of this chart that connects this account.
matches
^[a-z][a-z0-9-]{0,31}$external.services.dataenum[]facultatifWhat leaves the machine at run time: none, prompts, files, messages, contacts, calendar, audio, images, location, identifiers, usage.
Valeurs
nonepromptsfilesmessagescontactscalendaraudioimageslocationidentifiersusageexternal.services.whenwhenfacultatifOnly when a value is one of a list.
publisherobjectfacultatifWho publishes the chart; never an e-mail.
publisher.$commentstringfacultatifA note for people; ignored and never shown.
publisher.idstringrequisThe publisher id.
matches
^[a-z0-9][a-z0-9-]{1,38}$publisher.namestringrequisIts name, 1 to 60 characters.
at most 60 characters
publisher.urlstringfacultatifIts web page, an
https://address.matches
^https://homepagestringfacultatifIts web page, an
https://address without credentials.matches
^https://keywordsstring[]facultatifWords to find it, 8 at most.
at most 8 items
categoriesenum[]facultatifWhere it is listed, 1 to 3 of: assistant, writing, research, media, home, work, developer, system, game.
Valeurs
assistantwritingresearchmediahomeworkdevelopersystemgame1 to 3 items
iconstringfacultatifA .png or .webp file of the chart, 256 KB at most (never SVG).
matches
^[^/].*\.(png|webp)$changestext2facultatifWhat changed in this version, in plain words, in English and French: { "en": …, "fr": … }.
requiresobjectfacultatifWhat must be there first.
requires.$commentstringfacultatifA note for people; ignored and never shown.
requires.altastringfacultatifThe Alta OS version range.
requires.openclawstringfacultatifThe OpenClaw version range.
requires.chartsobject[]facultatifOther charts, each with a version range.
requires.charts.$commentstringfacultatifA note for people; ignored and never shown.
requires.charts.idstringrequisThe chart id.
matches
^[a-z][a-z0-9-]{1,40}$requires.charts.versionstringrequisA range: >=, >, <=, <, =, ^, ~.
requires.charts.optionalbooleanfacultatifTrue: installed only when the owner wants it.
requires.skillsstring[]facultatifQuest skills of the game the player must have.
capabilitiesenum[]requisWhat the server must be allowed to do: exactly those of the executors the chart names.
Valeurs
asksetupinstallneedsmap of needfacultatifWhat it needs (a mind, a channel), by id; the kind comes from the id (
mind,channel,<kind>-<name>).valuesmap of valuefacultatifWhat the owner chooses at install, by id.
signinsmap of signinfacultatifThe accounts and devices the chart connects, by id.
skillsobject[]facultatifSkills shipped with the chart ({ slug, path }) or pinned ({ ref, version, sha256 }).
automationsautomation[]facultatifIts automations, all created off.
usesstring[]facultatifServices another chart owns, as "service:<id>".
modelsstring[]facultatifLocal models it pulls (the targets of its model.pull repairs).
hooksmap of hookfacultatifThe points where the owner plugs their own commands or text, by id.
packageobjectfacultatifWhere its files come from:
chart(default), alta-module (Alta's own scripts), openclaw-skill, or data.package.typeenumrequisThe package type.
Valeurs
chartalta-moduleopenclaw-skilldataproofsobjectrequisHow it is proven: installed, ready, alive.
proofs.$commentstringfacultatifA note for people; ignored and never shown.
proofs.installedcheck[]facultatifThe checks that say its files and programs are there.
proofs.readycheck[]requisThe checks that say it works once, end to end.
proofs.alivealive[]facultatifThe checks that say it still works, read by the guard loop.
spawnobjectfacultatifWhat appears on the map once it is installed.
branchobjectfacultatifQuests it brings (a quest-pack chart).
universeobjectfacultatifThe universe pack it carries (a universe chart).
sceneobjectfacultatifThe scene played when it is installed.
reviewobjectfacultatifAlta's review notes.
Services en ligne
Ce dont le chart a besoin hors de la machine, en deux clés : locality, un mot sur lequel on filtre (local, local-first ou cloud), et external.services, les services en ligne derrière ce mot : pourquoi le chart parle à chacun, ses hôtes, quand (install, run), s'il faut un compte, et ce qui sort de la machine. alta lint calcule le plancher d'après ce que le chart nomme, et refuse un chart qui se dit plus local que ça, ou un usage du réseau qu'aucun service ne couvre. Les charts de données (quest-pack, universe, cosmetic) ne disent ni l'une ni l'autre.
json
{
"id": "telegram",
"name": "Telegram",
"purpose": {
"en": "The agent writes to you on Telegram.",
"fr": "L'agent t'écrit sur Telegram."
},
"hosts": [
"api.telegram.org"
],
"phase": [
"run"
],
"account": "free",
"data": [
"messages"
]
}Les niveaux, le plancher et ce qui n'est pas vérifié : Localité et services en ligne. Pas à pas : Dire ce que ton chart utilise en ligne.
Éditeur
Qui publie le chart, tel qu'un dépôt de charts le liste : publisher.id (lettres minuscules, chiffres et tirets), un name et une url en https, jamais une adresse e-mail. L'index donne à chaque éditeur un niveau (official, verified, community), qui devient le badge du chart ; un chart ne déclare jamais son propre niveau. Sans publisher, l'index prend author. homepage, keywords, categories (une liste fermée), icon et changes aident à trouver un chart et à juger une nouvelle version ; tous sont facultatifs.
chart.json : publisher
json
{
"id": "example-author",
"name": "Example Author",
"url": "https://example.com"
}examples/chart-agent/morning-brief/chart.json#/publisher
Source
$commentstringfacultatifA note for people; ignored and never shown.
gitstringrequisThe repository, an
https://address without credentials.matches
^https://[a-zA-Z0-9.-]+(:\d+)?/\S+$refstringfacultatifThe branch or tag it was read from.
matches
^[A-Za-z0-9._/-]{1,100}$commitstringrequisThe full commit (40 hexadecimal characters).
matches
^[0-9a-f]{40}$sha256stringrequisThe digest of the chart tree, printed by
alta package(64 hexadecimal characters).matches
^[0-9a-f]{64}$
Partie
$commentstringfacultatifA note for people; ignored and never shown.
idstringrequisThe part id, unique in the chart.
matches
^[a-z][a-z0-9-]{0,31}$doenumrequisThe executor, from the closed list.
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.readargsmap of string | number | booleanfacultatifIts arguments: literals, or "$<value>".
requiresstring[]facultatifParts, sign-ins ("signin:<id>") and needs ("need:<id>": its provider connected) that come first.
undoenumfacultatifHow it is undone:
auto,command,archiveornone.Valeurs
autocommandarchivenone
Agent
$commentstringfacultatifA note for people; ignored and never shown.
idstringrequisThe agent's id, unique in the chart.
matches
^[a-z][a-z0-9-]{0,31}$emojistringfacultatifIts emoji.
at most 8 characters
roleenumfacultatifIts role: daemon, architect, operator, reviewer, guardian.
Valeurs
daemonarchitectoperatorreviewerguardiandomainstringfacultatifWhat it takes care of, in a few words.
at most 120 characters
filesstring[]requisThe text files given to the agent, under agents/<id>/ (SOUL.md, AGENTS.md…); never run.
at least 1 items
modelstring | objectrequisIts mind: "need:<id>" (a mind need), or pinned: { "from": "$<value>" }, { "decision": "<id>" } or { "id": "provider/model" }.
matches
^need:[a-z][a-z0-9-]{0,31}$model.fromstringfacultatifA value reference.
model.decisionstringfacultatifA decision of the engine.
model.idstringfacultatifA model id, provider/model.
fallbacksstring[]facultatifModels tried when the first one fails, provider/model.
channelstring | objectfacultatifWhere it talks to the owner: "need:<id>" (a channel need), or pinned.
matches
^need:[a-z][a-z0-9-]{0,31}$channel.$commentstringfacultatifA note for people; ignored and never shown.
channel.kindenumrequistelegram,whatsappornone.Valeurs
telegramwhatsappnonechannel.sessionstringfacultatifThe session it uses on that channel.
permissionsobjectrequisWhat it may do: tools allowed and denied (deny wins), programs, channels.
permissions.$commentstringfacultatifA note for people; ignored and never shown.
permissions.toolsobjectrequisTools it may and may not use.
permissions.tools.$commentstringfacultatifA note for people; ignored and never shown.
permissions.tools.allowstring[]requisAllowed tools.
permissions.tools.denystring[]requisDenied tools; deny always wins.
permissions.execobjectfacultatifPrograms it may run:
deny(default), or an allowlist of files of its own folder (Alta's charts only).permissions.exec.$commentstringfacultatifA note for people; ignored and never shown.
permissions.exec.modeenumrequisdenyorallowlist.Valeurs
denyallowlistpermissions.exec.allowobject[]facultatifThe programs, each a file of the agent's folder.
permissions.exec.allow.$commentstringfacultatifA note for people; ignored and never shown.
permissions.exec.allow.binstringrequisThe program's path in the agent's folder.
permissions.channelsenum | string[]facultatifChannels it may write to: "need:<id>" (a channel need), or pinned (telegram, whatsapp).
wakestring[]facultatifKeys of the chart's automations that wake it.
watchobjectfacultatifAlta's five-function wiring (Alta's charts only).
instancestring[]facultatifPaths that are the owner's data, never shipped.
Valeur
Une valeur que tu donnes à l'installation (un choix, un texte, un nombre), utilisée par les parties sous la forme $nom.
$commentstringfacultatifA note for people; ignored and never shown.
kindenumrequisThe kind of the value: text, choice, email, path, number, boolean.
Valeurs
textchoiceemailpathnumberbooleanrequiredbooleanfacultatifFalse: the owner may leave it empty. Default true.
defaultstring | number | booleanfacultatifThe value when the owner changes nothing.
fromstringfacultatifPrefilled from the owner's answers or profile:
answers.<key>orowner.<key>(owner.mind,owner.channel: the player's default provider).matches
^(answers|owner)\.[a-z_]+$minnumberfacultatifText: shortest length; number: lowest value.
maxnumberfacultatifText: longest length; number: highest value.
patternstringfacultatifText: an anchored pattern (
^…$), 200 characters at most.at most 200 characters, matches
^\^.*\$$choicesobject[]facultatifA choice value: its choices, the shape of a choice step's.
at least 1 items
choices.idstringrequisThe choice id.
Besoin
Ce dont le chart a besoin, un esprit ou un canal, lié par le propriétaire à un fournisseur ; nommé ailleurs "need:<id>". La sorte vient de l'id (mind, channel, <sorte>-<nom>) ; {} ou true prend n'importe quel fournisseur et le choix du propriétaire. Vois Besoins.
$commentstringfacultatifA note for people; ignored and never shown.
kindenumfacultatifThe kind (mind, channel). Only when the id does not say it: "mind", "channel" and "<kind>-<name>" do.
Valeurs
mindchannelwhytext2facultatifWhy it needs it, shown on the consent screen (absent: the default sentence of its kind), in English and French: { "en": …, "fr": … }.
acceptenum[]facultatifThe providers allowed (absent: all of its kind): claude, codex, local, telegram, world.
Valeurs
claudecodexlocaltelegramworldat least 1 items
modelstringfacultatifAn exact model, provider/model (a mind only); excludes accept.
matches
^[a-z0-9][a-z0-9-]*/[A-Za-z0-9._:-]+$featuresenum[]facultatifWhat the provider must offer: a mind tools, vision, long-context, json; a channel push, reply, files, voice, buttons.
Valeurs
toolsvisionlong-contextjsonpushreplyfilesvoicebuttonspreferenum[]facultatifThe recommendation order when the player must choose.
Valeurs
claudecodexlocaltelegramworldat least 1 items
reuseenumfacultatifask: always ask the player. Absent: reuse the player's own choice.Valeurs
owneraskoptionalbooleanfacultatifTrue: the chart works without it.
Connexion
Une connexion dont le chart a besoin, faite par un exécuteur de connexion ; jamais un secret dans le chart.
$commentstringfacultatifA note for people; ignored and never shown.
useenumrequisThe connection executor: signin.cli, setup.other-signin, channel.connect, channel.pair-approve, connector.connect, tablet.pair.
Valeurs
signin.clisetup.other-signinchannel.connectchannel.pair-approveconnector.connecttablet.pairargsmap of string | number | booleanfacultatifThe executor's arguments, never a secret; a value is used as "$<id>".
proofcheckrequisThe read-only check that proves it;
signin.cliis proven by { "type": "signin", "tool": … }.optionalbooleanfacultatifTrue: the owner may skip it.
requiresstring[]facultatifAnother sign-in first, as "signin:<id>".
Automatisation
Ce qui réveille un agent du chart : un horaire et un message tiré d'un fichier du chart.
$commentstringfacultatifA note for people; ignored and never shown.
keystringrequisIts key, unique on the machine.
matches
^[a-z0-9][a-z0-9._-]{0,63}$agentstringrequisThe agent it wakes: an agent of the chart, or main.
scheduleobjectrequisWhen: { cron, tz }, { daily: "HH:MM" }, { every: "1h" } or { trigger } (Alta's charts only).
schedule.cronstringfacultatifFive cron fields.
schedule.tzstringfacultatifowner, or an IANA time zone.schedule.dailystringfacultatifHH:MM, or a value reference.
schedule.everystringfacultatifA duration of 5m or more.
matches
^\d{1,4}(s|m|h|d)$schedule.triggerstringfacultatifThe file
automations/<key>.trigger.js.messagestringrequisThe message file: automations/<key>.message.md.
spendsenumrequisnone, ormodel: a run may cost a model call.Valeurs
nonemodel
Service
Un programme du chart qui tourne en continu, et comment le jeu le voit tourner.
Point d'accroche
Un endroit où un autre chart, ou toi, peut ajouter quelque chose à celui-ci.
$commentstringfacultatifA note for people; ignored and never shown.
kindenumrequisIts kind: value, section, record, addendum, extend.
Valeurs
valuesectionrecordaddendumextendcontract1requisThe contract version: 1.
docstringrequisWhat the owner may put there.
argsobjectfacultatifIts arguments.
patternstringfacultatifA pattern the filler matches.
defaultobjectfacultatifIts default.
targetstringfacultatifWhat it fills.
fieldstringfacultatifThe field it fills.
maxLinesintegerfacultatifAt most this many lines.
timeoutSintegerfacultatifA command's time limit, in seconds.
Preuve de vie
Une vérification peu coûteuse, répétée, qui dit que le chart marche encore.
$commentstringfacultatifA note for people; ignored and never shown.
idstringrequisThe proof id.
matches
^[a-z][a-z0-9-]{0,31}$everystringfacultatifIts period, 5m at least (default 15m).
matches
^\d{1,4}(s|m|h|d)$graceintegerfacultatifFailures in a row before it counts (default 2).
1 to 20
repairstring[]facultatifThe repairs that may be tried, in order.
Réparation
Une réparation d'une liste fermée que le jeu peut proposer quand une preuve de vie échoue.
$commentstringfacultatifA note for people; ignored and never shown.
idstringrequisThe repair id.
matches
^[a-z][a-z0-9-]{0,31}$kindenumrequisIts kind: service.restart, model.pull, gateway.recover, signin.refresh, channel.reconnect, automation.rerun, part.reapply, signin.again, channel.pair.
Valeurs
service.restartmodel.pullgateway.recoversignin.refreshchannel.reconnectautomation.rerunpart.reapplysignin.againchannel.pairargsmap of string | number | booleanfacultatifIts arguments: literals only.
suggestbooleanfacultatifThe author suggests allowing it; the box stays unticked.
Vérification
Une vérification en lecture seule de la liste fermée, utilisée par les preuves.
typestringrequisThe check type.
Condition
Quand une part, une connexion ou une valeur s'applique, selon tes réponses.
$commentstringfacultatifA note for people; ignored and never shown.
valuestringrequisThe id of a choice or boolean value.
matches
^[a-z][a-z0-9-]{0,31}$isstring | boolean[] | enum[]requisThe choice ids (or true, false) for which it holds.
Valeurs
claudecodexlocaltelegramworldat least 1 items
needstringrequisThe id of a need of the chart.
matches
^[a-z][a-z0-9-]{0,31}$
Texte
Un texte en anglais et en français.
Catalogue
La liste des charts qu'une machine peut installer, telle que le jeu la lit. Les prix sont ici, jamais dans le chart.
schema"alta.catalog/0.2"requisThe standard:
alta.catalog/0.2.generatedAtstringrequisWhen it was made, as an ISO date and time.
matches
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$signaturestringfacultatifIts signature. Required on a catalog read from the network.
chartsobject[]requisThe charts.
charts.idstringrequisThe chart's id.
matches
^[a-z][a-z0-9-]{1,40}$charts.versionstringrequisIts version.
matches
^\d+\.\d+\.\d+([-+][0-9a-zA-Z.-]+)?$charts.kindenumrequisIts kind.
Valeurs
agentteammodulepackageskillsystemquest-packuniversecosmeticcharts.priceenumrequisfreeorpaid.Valeurs
freepaidcharts.amountnumberfacultatifThe price of a paid chart.
more than 0
charts.currencystringfacultatifIts currency, three capital letters, e.g.
EUR.matches
^[A-Z]{3}$charts.sha256stringrequisThe digest of the chart folder (
alta package).matches
^[0-9a-f]{64}$charts.pathstringrequisWhere the chart folder is, relative to the catalog.
matches
^[a-z0-9][a-z0-9/._-]*$charts.defaultbooleanfacultatiftrue: added to every new world. Never on a community chart.charts.originenumfacultatifaltaorcommunity.Valeurs
altacommunitycharts.sourceobjectfacultatifWhere a community chart comes from: its git repository, pinned on a full commit, with the digest of the chart folder.
charts.source.gitstringrequisThe repository, an
https://address without credentials.matches
^https://[a-zA-Z0-9.-]+(:d+)?/S+$charts.source.refstringfacultatifThe tag or branch it was taken from.
matches
^[A-Za-z0-9._/-]{1,100}$charts.source.commitstringrequisThe full commit (40 hexadecimal characters).
matches
^[0-9a-f]{40}$charts.source.sha256stringrequisThe digest of the chart folder at that commit.
matches
^[0-9a-f]{64}$
Licence
schema"alta.license/0.2"requisThe standard:
alta.license/0.2.chartstringrequisThe chart, by id.
matches
^[a-z][a-z0-9-]{1,40}$versionstringrequisThe chart's version.
holderstringrequisWho holds it (an opaque id).
matches
^[A-Za-z0-9_-]{8,128}$issuedAtstringrequisWhen it was issued, as an ISO date and time.
matches
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$signaturestringrequisIts signature.
matches
^[A-Za-z0-9_-]{40,200}={0,2}$
Les quêtes d'un chart suivent le standard des quêtes ; son univers, le standard des univers ; sa scène, le standard des cinématiques. Les règles derrière chacun sont dans la spécification complète.
Règles et erreurs
Chaque règle qu'alta lint applique aux charts, avec sa section sur la page des erreurs.
chart.schemaAn Agent Chart must sayalta.chart/0.1.chart.unknown-keyA key the object does not have (a typo is never ignored).chart.idThe chart id is malformed, reserved, or differs from the folder name.chart.versionThe version is not semver.chart.kindThe kind is unknown, or the chart lacks a section its kind must have (or has one it must not).chart.statusstatusis not ready or draft.chart.textsA text is missing its English or its French.chart.authorThe chart needs an author.chart.licenseThe chart needs a license.chart.priceThe price is malformed, or the chart carries its amount.chart.originThe origin is unknown.chart.community-sourceA community chart needs a pinned source.chart.community-verifiedA community chart cannot say it is verified.chart.sourceThe source is malformed.chart.source-placeholderThe source still holds placeholders (zeros).chart.privacyprivacyis notpersonalorshareable, or this kind of chart has no privacy.chart.privacy-secretA shareable chart holds something that looks like a secret (a key, a password, a token).chart.privacy-tokenA shareable chart holds a long token-shaped string (letters and digits mixed, 32 characters or more).chart.privacy-home-pathA shareable chart holds an absolute path in someone's home folder (/Users/<name>,/home/<name>).chart.privacy-emailA shareable chart holds an e-mail address.chart.privacy-keywordA shareable chart holds a word of your private keyword list (~/.config/alta/privacy-keywords.txt).chart.localitylocalityis notlocal,local-firstorcloud, or a data chart says it (or lists online services).chart.locality-requiredThe chart does not say what it needs of the network (an error on a community or shareable chart, a warning otherwise).chart.locality-floorThe chart says it is more local than what it names allows: an executor, a sign-in, a model or a channel reaches the network.chart.locality-locallocal, but a service is used at run time.chart.locality-firstlocal-first, but a service is required at run time, or nothing uses the network at run time.chart.locality-cloudcloud, but no service is required at run time (a warning).external.serviceAn online service is malformed: its id, name, purpose (English and French), phase or account; an id used twice; more than 24 services.external.hostsA host of a service is not a lower-case host name, or has a port, a path, an IP address, a second wildcard, or a wildcard on a public suffix.external.homepageA service's homepage is not an https address, or carries credentials.external.signinA service names no sign-in of this chart, or a sign-in reaches hosts no service covers.external.undeclaredSomething the chart names reaches the network (a part, a repair, a model, a channel, a skill download) and no service covers its phase and hosts.external.dataA run-time service does not say what leaves the machine, ordatais malformed.external.whenA service'swhennames an unknown value or a choice that value does not have.chart.publisherpublisheris malformed, or holds an e-mail address.chart.homepagehomepageis not an https address, or carries credentials.chart.keywordskeywordshas more than 8 words, a malformed word, or a word twice.chart.categoriescategoriesis empty, has more than 3, a duplicate, or a word outside the list.chart.iconiconis not a .png or .webp file of the chart, or is larger than 256 KB.chart.changeschangesis missing its English or its French.chart.license-spdxlicenseis not an SPDX identifier or expression (a warning).chart.pathA path is absolute, has.., leaves the folder, or names a file the folder does not have.chart.sizeA file or the whole chart is too large.chart.no-templatechart.json holds a template mark (double braces, a dollar brace or an angle percent): a chart has no templating.chart.render-nameAn agent file holds a render mark (a name between double braces) that is not a render name.chart.value-kindA value has an unknown kind, is a secret, or is malformed.chart.value-secretA value's default looks like a secret.chart.value-fromfromnames an unknown key.chart.need-kindA need has no kind the game knows, a kind that contradicts its id, or a reference names a need of another kind; a warning whenkindrepeats what the id already says.chart.need-acceptacceptorprefernames a provider that is not of the need's kind.chart.need-featurefeaturesnames something no provider of that kind can offer.chart.need-pinmodelis on a channel, is not provider/model of a known provider, or comes withaccept.chart.need-unreachableNo provider has everything the need asks (an error); or none fits a reference machine the chart supports (a warning).chart.need-instead(warning) A choice value picks a provider (claude, codex, local; telegram, none), or is prefilled fromanswers.default_modeloranswers.channel: it replays a need by hand.chart.need-default(warning) A need writes a default:reuse: "owner"oroptional: false.chart.value-defaultA default does not fit its own kind, pattern or bounds.chart.ref-unknown$nameis not a value of the chart, orneed:<id>is not one of its needs.chart.ref-kindThe value's kind does not fit the argument it feeds.chart.whenwhennames an unknown value or a choice it does not have, or a need and a provider not of its kind.chart.rangeA version range is not in the grammar.chart.requires-cycleCharts require each other, or a chart requires itself.chart.capabilitiescapabilitiesdiffers from what the named executors need, or holds forge or pay.chart.tools-floorA community agent is allowed a tool of the floor list.chart.exec-altaAn exec allowlist outside Alta's own charts, or a program outside the agent's folder.chart.signin-useA sign-in does not use a connection executor.chart.signin-secretA sign-in writes a secret argument.chart.signin-hostedA required sign-in cannot be done hosted, though the chart says it works hosted.chart.agentAn agent lacks files, a model or permissions, or names a missing file.chart.automationAn automation has a bad key, schedule or message, or names an agent the chart does not have.chart.automation-enabledAn automation asks to be created on.chart.trigger-altaA trigger file outside Alta's own charts.service.ownerA service, label or port is owned twice, orusesnames a service nothing owns.chart.hookA hook point has an unknown kind, or no doc.chart.scripts-altaScripts that are run, outside Alta's own charts.chart.data-onlyA data chart runs something other thanitem.data, or asks for a capability.chart.part-idA part id is missing or used twice.chart.part-executorA part runs an executor that is not in the closed list.chart.part-osThe executor does not run on a listed system, or not hosted where the chart says ok.chart.part-argsArguments the executor refuses.chart.part-secretA part writes a secret argument.chart.part-requiresrequiresnames an unknown part or sign-in.chart.part-cycleParts require each other.chart.part-proofA part that writes has no proof.chart.part-undoundopromises more than the executor can undo.chart.proof-readyproofs.readyis missing or empty for an agent, a team or a module.chart.proof-checkA proof is not a check of the closed list, or a check that reads the game instead of the machine.chart.alive-everyAn alive period under 5 minutes, a bad duration, or a bad grace.chart.alive-costAn alive check of a type that is not cheap.chart.quest-uidA quest of the chart does not carry the chart id in its uid, or is already in the game.chart.quest-overrideThe chart's quests do not fit the game, or a fragment removes or adds a step.chart.spawnThe entity the chart adds to the world is malformed.chart.resources-unreachableNo reference machine the chart supports can meet its resources.repair.kindUnknown repair kind, or a malformed repair.repair.targetThe repair's target is not declared by this chart.repair.ownerA restart of a service the chart only uses.repair.argsA repair holds a value reference, a secret, or an argument its kind does not take.repair.proofAn alive proof names a repair the chart does not have.catalog.schemaA catalog must sayalta.catalog/0.2.catalog.dategeneratedAtis malformed.catalog.chartsThe catalog needs achartslist.catalog.signatureA remote catalog must be signed.catalog.entry-idAn entry id is malformed or listed twice.catalog.entry-versionAn entry version is not semver.catalog.entry-kindAn entry kind is unknown.catalog.entry-sha256An entry digest is malformed.catalog.entry-pathAn entry path is not the relative path of a chart folder.catalog.entry-amountA paid entry needs an amount and a currency; a free one has none.catalog.entry-priceAn entry price is malformed.catalog.entry-defaultdefaultis malformed, or a community chart is installed by default.catalog.entry-sourceA community entry has no pinned source, or its source is malformed.catalog.entry-shapeAn entry is malformed.license.schemaA license must sayalta.license/0.2.license.chartThe license names no chart, or a malformed one.license.versionThe license version is malformed.license.holderThe license has no holder.license.issuedAtThe issue date is malformed.license.signatureThe license is not signed.license.matchThe license is for another chart or another major version.index.schemaAn index must sayalta.index/0.1.index.dategeneratedAtis not an ISO date.index.repoTherepoblock is missing or malformed: id, title in English and French, https url and report address, tier official or community.index.publisherA publisher is malformed: its id, name, url or tier (an official publisher only in an official repository).index.publisher-keyA publisher key is not{ id, alg: "ed25519", public: base64 }, or itsrevokeddate is malformed.index.chartsThe index has nochartsobject.index.chartA chart entry is malformed: its id, kind, title and summary in English and French, its lists of words,replacedBy, or it has no versions.index.chart-publisherA chart names a publisher the index does not list.index.versionA version is not semver, is listed twice, is out of order (newest first), has nocreateddate, or a later version has nochangesin English and French.index.digestA version'sdigestis not a 64-character sha256.index.archiveA version's archive is malformed: its https url, its 64-character sha256, its size in bytes.index.sourceA version's source is missing or malformed: https git address, full 40-character commit, ref, relative path.index.priceThe price is malformed, or a community repository lists a paid chart (paid charts are not open yet).index.localitylocality,localityRangeorlocalityCheckhas a value outside its closed list.index.servicesA service of a version is malformed: id and name, host names, phase install or run, required true or false, account none, free or paid.index.riskriskis not low, medium or high.index.auditA version'saudit.statusis outside its closed list, oraudit.atis not an ISO date.index.attestationsAn attestation is not{ type: publish, review or provenance, url: https }.index.withdrawnwithdrawnis not{ at: ISO date, reason: en and fr }.index.version-shapeA version is malformed: its license, capabilities or support (copied from the chart).repos.schemaA repositories file must sayalta.repos/0.1.repos.listThe repositories file has noreposlist.repos.entryA repository is malformed: its name (reserved, taken, malformed), itsaddeddate,unsigned, or a key it does not take.repos.urlA repository address is not https, or carries a user name or password.repos.keyA repository key is not{ alg: "ed25519", public: the 32-byte key in base64 }.attest.envelopeThe attestation is not a DSSE envelope: its payloadType, payload or signatures are missing or malformed.attest.statementThe payload is not an in-toto Statement v1 with a subject, a known predicateType and a predicate.attest.subjectThe attestation is about another chart, another version or of another type.attest.digestThe files' tree digest is not the one the attestation signed: a file changed, or was added or removed.attest.keyThere is no key to check the signature against.attest.signatureNo trusted key verifies the signature.attest.revokedThe signature was made by a key its publisher revoked.
Exemple complet
Un chart de la communauté venu d'un dépôt git, épinglé sur un commit
reading-log/chart.json
json
{
"schema": "alta.chart/0.1",
"id": "reading-log",
"version": "0.2.0",
"kind": "quest-pack",
"title": { "en": "Reading log", "fr": "Carnet de lecture" },
"summary": {
"en": "Note one book a week; your assistant keeps the list.",
"fr": "Note un livre par semaine ; ton assistant tient la liste."
},
"author": "someone",
"license": "MIT",
"price": "free",
"origin": "community",
"source": {
"git": "https://git.example.org/someone/alta-reading-log",
"ref": "v0.2.0",
"commit": "3f2c9a1e8b7d6c5f4e3d2c1b0a9f8e7d6c5b4a39",
"sha256": "9c1e2a7f0b3d4e5f60718293a4b5c6d7e8f90112233445566778899aabbccdd0"
},
"support": { "platforms": [{ "os": "macos" }, { "os": "linux" }] },
"capabilities": [],
"package": { "type": "data" },
"parts": [{ "id": "add", "do": "item.data", "undo": "none", "proof": [] }],
"proofs": { "ready": [] },
"branch": {
"schema": "alta.quests/0.2",
"branch": "core",
"quests": [
{
"id": "reading-log-week",
"uid": "core.reading-log.week",
"act": 2,
"giver": "daemon",
"type": "daily",
"reset": {
"every": "week",
"at": "10:00",
"weekday": 7
},
"title": {
"en": "This week's book",
"fr": "Le livre de la semaine"
},
"reward": { "xp": 20 },
"steps": [
{
"id": "note",
"kind": "check",
"title": {
"en": "Add a line to your reading log",
"fr": "Ajoute une ligne à ton carnet de lecture"
},
"check": {
"type": "file",
"path": "~/Documents/reading-log.md"
}
}
]
}
]
}
}Versions
| Version | Ce qu'elle ajoute | Lue par le jeu |
|---|---|---|
alta.chart/0.1, alta.catalog/0.2, alta.license/0.2 | Les charts comme dossiers, la provenance (origin, source), les parties avec leur preuve et leur annulation, les valeurs, les connexions, les réparations ; le catalogue par dossier de chart et le droit d'utilisation. Ajoutés depuis, facultatifs : locality, external, publisher, homepage, keywords, categories, icon, changes | actuelle |