Aller au contenu
En Markdown

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é.

Standardalta.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)
Fichierchart.json, dans un dossier qui porte l'id du chart
Le créeralta chart new my-chart --kind quest-pack
Le vérifieralta lint my-chart
Le partageralta package my-chart (une archive et son empreinte) · alta publish my-chart (le bloc source, depuis git)
Schéma JSONalta.chart.schema.json
Spécification complètealta.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.

$commentstringfacultatif

A note for people; ignored and never shown.

schema"alta.chart/0.1"requis

The standard: alta.chart/0.1.

idstringrequis

The chart id, also the folder's name.

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

versionstringrequis

Its version, semver.

matches ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$

kindenumrequis

What it installs: agent, team, module, package, skill, system, quest-pack, universe, cosmetic.

Valeursagentteammodulepackageskillsystemquest-packuniversecosmetic

statusenumfacultatif

ready (default) or draft (refused at install).

Valeursreadydraft

titletext2requis

Its name, in English and French: { "en": …, "fr": … }.

summarytext2requis

What it does, in a sentence, in English and French: { "en": …, "fr": … }.

whytext2facultatif

Why someone would install it, in English and French: { "en": …, "fr": … }.

authorstringrequis

Who made it.

licensestringrequis

Its license, e.g. MIT.

priceenumrequis

free or paid; the amount lives in the catalog.

Valeursfreepaid

originenumrequis

alta (made by Alta) or community (from any git repository).

Valeursaltacommunity

verifiedbooleanfacultatif

Set by Alta's review only; never on a community chart.

privacyenumfacultatif

personal (default: the owner's own, kept private, never published) or shareable (may be published: no secret, token, home path, e-mail or private keyword in it). Agent, team, module, package and skill charts only.

Valeurspersonalshareable

sourcechartSourcefacultatif

Where a community chart comes from. Required on a community chart.

localityenumfacultatif

What 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.

Valeurslocallocal-firstcloud

externalobjectfacultatif

The online services it talks to, each with its hosts, phase, account and the data that leaves the machine.

external.$commentstringfacultatif

A note for people; ignored and never shown.

external.servicesobject[]requis

The services, 24 at most.

at most 24 items

external.services.$commentstringfacultatif

A note for people; ignored and never shown.

external.services.idstringrequis

The service id, unique in the chart.

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

external.services.namestringrequis

Its name, the brand (not translated), 1 to 60 characters.

at most 60 characters

external.services.purposetext2requis

Why the chart talks to it, one sentence, in English and French: { "en": …, "fr": … }.

external.services.homepagestringfacultatif

Its web page, an https:// address without credentials.

matches ^https://

external.services.hostsstring[]requis

The 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[]requis

When it is reached: install, run (install: a download once; run: while the chart works).

Valeursinstallrun

at least 1 items

external.services.requiredbooleanfacultatif

False: an optional extra; the chart works without it. Default true.

external.services.accountenumfacultatif

Does the owner need an account there: none, free, paid (default none).

Valeursnonefreepaid

external.services.signinstringfacultatif

The sign-in of this chart that connects this account.

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

external.services.dataenum[]facultatif

What leaves the machine at run time: none, prompts, files, messages, contacts, calendar, audio, images, location, identifiers, usage.

Valeursnonepromptsfilesmessagescontactscalendaraudioimageslocationidentifiersusage

external.services.whenwhenfacultatif

Only when a value is one of a list.

publisherobjectfacultatif

Who publishes the chart; never an e-mail.

publisher.$commentstringfacultatif

A note for people; ignored and never shown.

publisher.idstringrequis

The publisher id.

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

publisher.namestringrequis

Its name, 1 to 60 characters.

at most 60 characters

publisher.urlstringfacultatif

Its web page, an https:// address.

matches ^https://

homepagestringfacultatif

Its web page, an https:// address without credentials.

matches ^https://

keywordsstring[]facultatif

Words to find it, 8 at most.

at most 8 items

categoriesenum[]facultatif

Where it is listed, 1 to 3 of: assistant, writing, research, media, home, work, developer, system, game.

Valeursassistantwritingresearchmediahomeworkdevelopersystemgame

1 to 3 items

iconstringfacultatif

A .png or .webp file of the chart, 256 KB at most (never SVG).

matches ^[^/].*\.(png|webp)$

changestext2facultatif

What changed in this version, in plain words, in English and French: { "en": …, "fr": … }.

supportsupportrequis

Where it runs: systems, hosted, needs.

resourcesresourcesfacultatif

What it needs of the machine, like Kubernetes requests.

requiresobjectfacultatif

What must be there first.

requires.$commentstringfacultatif

A note for people; ignored and never shown.

requires.altastringfacultatif

The Alta OS version range.

requires.openclawstringfacultatif

The OpenClaw version range.

requires.chartsobject[]facultatif

Other charts, each with a version range.

requires.charts.$commentstringfacultatif

A note for people; ignored and never shown.

requires.charts.idstringrequis

The chart id.

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

requires.charts.versionstringrequis

A range: >=, >, <=, <, =, ^, ~.

requires.charts.optionalbooleanfacultatif

True: installed only when the owner wants it.

requires.skillsstring[]facultatif

Quest skills of the game the player must have.

capabilitiesenum[]requis

What the server must be allowed to do: exactly those of the executors the chart names.

Valeursasksetupinstall

needsmap of needfacultatif

What it needs (a mind, a channel), by id; the kind comes from the id (mind, channel, <kind>-<name>).

valuesmap of valuefacultatif

What the owner chooses at install, by id.

signinsmap of signinfacultatif

The accounts and devices the chart connects, by id.

agentsagent[]facultatif

The agents it creates.

skillsobject[]facultatif

Skills shipped with the chart ({ slug, path }) or pinned ({ ref, version, sha256 }).

automationsautomation[]facultatif

Its automations, all created off.

servicesservice[]facultatif

Services it owns.

usesstring[]facultatif

Services another chart owns, as "service:<id>".

modelsstring[]facultatif

Local models it pulls (the targets of its model.pull repairs).

hooksmap of hookfacultatif

The points where the owner plugs their own commands or text, by id.

packageobjectfacultatif

Where its files come from: chart (default), alta-module (Alta's own scripts), openclaw-skill, or data.

package.typeenumrequis

The package type.

Valeurschartalta-moduleopenclaw-skilldata

partspart[]requis

Its units of work, each with plan, apply and check.

proofsobjectrequis

How it is proven: installed, ready, alive.

proofs.$commentstringfacultatif

A note for people; ignored and never shown.

proofs.installedcheck[]facultatif

The checks that say its files and programs are there.

proofs.readycheck[]requis

The checks that say it works once, end to end.

proofs.alivealive[]facultatif

The checks that say it still works, read by the guard loop.

repairsrepair[]facultatif

How some failures can be fixed; each may be allowed by the owner.

spawnobjectfacultatif

What appears on the map once it is installed.

branchobjectfacultatif

Quests it brings (a quest-pack chart).

universeobjectfacultatif

The universe pack it carries (a universe chart).

sceneobjectfacultatif

The scene played when it is installed.

reviewobjectfacultatif

Alta'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 ​

$commentstringfacultatif

A note for people; ignored and never shown.

gitstringrequis

The repository, an https:// address without credentials.

matches ^https://[a-zA-Z0-9.-]+(:\d+)?/\S+$

refstringfacultatif

The branch or tag it was read from.

matches ^[A-Za-z0-9._/-]{1,100}$

commitstringrequis

The full commit (40 hexadecimal characters).

matches ^[0-9a-f]{40}$

sha256stringrequis

The digest of the chart tree, printed by alta package (64 hexadecimal characters).

matches ^[0-9a-f]{64}$

Partie ​

$commentstringfacultatif

A note for people; ignored and never shown.

idstringrequis

The part id, unique in the chart.

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

titletext2facultatif

Its title on the plan card, in English and French: { "en": …, "fr": … }.

doenumrequis

The executor, from the closed list.

Valeursagent.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

argsmap of string | number | booleanfacultatif

Its arguments: literals, or "$<value>".

requiresstring[]facultatif

Parts, sign-ins ("signin:<id>") and needs ("need:<id>": its provider connected) that come first.

whenwhenfacultatif

Only when a value is one of a list.

resourcesresourcesfacultatif

What it needs of the machine.

undoenumfacultatif

How it is undone: auto, command, archive or none.

Valeursautocommandarchivenone

proofcheck[]requis

The read-only checks that prove it.

Agent ​

$commentstringfacultatif

A note for people; ignored and never shown.

idstringrequis

The agent's id, unique in the chart.

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

nametext2requis

Its name, in English and French: { "en": …, "fr": … }.

emojistringfacultatif

Its emoji.

at most 8 characters

roleenumfacultatif

Its role: daemon, architect, operator, reviewer, guardian.

Valeursdaemonarchitectoperatorreviewerguardian

domainstringfacultatif

What it takes care of, in a few words.

at most 120 characters

filesstring[]requis

The text files given to the agent, under agents/<id>/ (SOUL.md, AGENTS.md…); never run.

at least 1 items

modelstring | objectrequis

Its 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.fromstringfacultatif

A value reference.

model.decisionstringfacultatif

A decision of the engine.

model.idstringfacultatif

A model id, provider/model.

fallbacksstring[]facultatif

Models tried when the first one fails, provider/model.

channelstring | objectfacultatif

Where it talks to the owner: "need:<id>" (a channel need), or pinned.

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

channel.$commentstringfacultatif

A note for people; ignored and never shown.

channel.kindenumrequis

telegram, whatsapp or none.

Valeurstelegramwhatsappnone

channel.sessionstringfacultatif

The session it uses on that channel.

permissionsobjectrequis

What it may do: tools allowed and denied (deny wins), programs, channels.

permissions.$commentstringfacultatif

A note for people; ignored and never shown.

permissions.toolsobjectrequis

Tools it may and may not use.

permissions.tools.$commentstringfacultatif

A note for people; ignored and never shown.

permissions.tools.allowstring[]requis

Allowed tools.

permissions.tools.denystring[]requis

Denied tools; deny always wins.

permissions.execobjectfacultatif

Programs it may run: deny (default), or an allowlist of files of its own folder (Alta's charts only).

permissions.exec.$commentstringfacultatif

A note for people; ignored and never shown.

permissions.exec.modeenumrequis

deny or allowlist.

Valeursdenyallowlist

permissions.exec.allowobject[]facultatif

The programs, each a file of the agent's folder.

permissions.exec.allow.$commentstringfacultatif

A note for people; ignored and never shown.

permissions.exec.allow.binstringrequis

The program's path in the agent's folder.

permissions.channelsenum | string[]facultatif

Channels it may write to: "need:<id>" (a channel need), or pinned (telegram, whatsapp).

wakestring[]facultatif

Keys of the chart's automations that wake it.

watchobjectfacultatif

Alta's five-function wiring (Alta's charts only).

instancestring[]facultatif

Paths that are the owner's data, never shipped.

whenwhenfacultatif

Only when a value is one of a list.

Valeur ​

Une valeur que tu donnes à l'installation (un choix, un texte, un nombre), utilisée par les parties sous la forme $nom.

$commentstringfacultatif

A note for people; ignored and never shown.

kindenumrequis

The kind of the value: text, choice, email, path, number, boolean.

Valeurstextchoiceemailpathnumberboolean

labeltext2requis

The question the owner sees, in English and French: { "en": …, "fr": … }.

hinttext2facultatif

One sentence under the question, in English and French: { "en": …, "fr": … }.

requiredbooleanfacultatif

False: the owner may leave it empty. Default true.

defaultstring | number | booleanfacultatif

The value when the owner changes nothing.

fromstringfacultatif

Prefilled from the owner's answers or profile: answers.<key> or owner.<key> (owner.mind, owner.channel: the player's default provider).

matches ^(answers|owner)\.[a-z_]+$

minnumberfacultatif

Text: shortest length; number: lowest value.

maxnumberfacultatif

Text: longest length; number: highest value.

patternstringfacultatif

Text: an anchored pattern (^…$), 200 characters at most.

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

choicesobject[]facultatif

A choice value: its choices, the shape of a choice step's.

at least 1 items

choices.idstringrequis

The 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.

$commentstringfacultatif

A note for people; ignored and never shown.

kindenumfacultatif

The kind (mind, channel). Only when the id does not say it: "mind", "channel" and "<kind>-<name>" do.

Valeursmindchannel

whytext2facultatif

Why it needs it, shown on the consent screen (absent: the default sentence of its kind), in English and French: { "en": …, "fr": … }.

acceptenum[]facultatif

The providers allowed (absent: all of its kind): claude, codex, local, telegram, world.

Valeursclaudecodexlocaltelegramworld

at least 1 items

modelstringfacultatif

An exact model, provider/model (a mind only); excludes accept.

matches ^[a-z0-9][a-z0-9-]*/[A-Za-z0-9._:-]+$

featuresenum[]facultatif

What the provider must offer: a mind tools, vision, long-context, json; a channel push, reply, files, voice, buttons.

Valeurstoolsvisionlong-contextjsonpushreplyfilesvoicebuttons

preferenum[]facultatif

The recommendation order when the player must choose.

Valeursclaudecodexlocaltelegramworld

at least 1 items

reuseenumfacultatif

ask: always ask the player. Absent: reuse the player's own choice.

Valeursownerask

optionalbooleanfacultatif

True: 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.

$commentstringfacultatif

A note for people; ignored and never shown.

useenumrequis

The connection executor: signin.cli, setup.other-signin, channel.connect, channel.pair-approve, connector.connect, tablet.pair.

Valeurssignin.clisetup.other-signinchannel.connectchannel.pair-approveconnector.connecttablet.pair

argsmap of string | number | booleanfacultatif

The executor's arguments, never a secret; a value is used as "$<id>".

proofcheckrequis

The read-only check that proves it; signin.cli is proven by { "type": "signin", "tool": … }.

whytext2requis

One sentence the consent screen shows, in English and French: { "en": …, "fr": … }.

optionalbooleanfacultatif

True: the owner may skip it.

whenwhenfacultatif

Only when a value is one of a list.

requiresstring[]facultatif

Another 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.

$commentstringfacultatif

A note for people; ignored and never shown.

keystringrequis

Its key, unique on the machine.

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

titletext2requis

Its name, in English and French: { "en": …, "fr": … }.

agentstringrequis

The agent it wakes: an agent of the chart, or main.

scheduleobjectrequis

When: { cron, tz }, { daily: "HH:MM" }, { every: "1h" } or { trigger } (Alta's charts only).

schedule.cronstringfacultatif

Five cron fields.

schedule.tzstringfacultatif

owner, or an IANA time zone.

schedule.dailystringfacultatif

HH:MM, or a value reference.

schedule.everystringfacultatif

A duration of 5m or more.

matches ^\d{1,4}(s|m|h|d)$

schedule.triggerstringfacultatif

The file automations/<key>.trigger.js.

messagestringrequis

The message file: automations/<key>.message.md.

spendsenumrequis

none, or model: a run may cost a model call.

Valeursnonemodel

whenwhenfacultatif

Only when a value is one of a list.

Service ​

Un programme du chart qui tourne en continu, et comment le jeu le voit tourner.

$commentstringfacultatif

A note for people; ignored and never shown.

idstringrequis

The service id.

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

labelstring | map of stringrequis

The launchd label or the systemd unit, or one per system.

portintegerfacultatif

Its port on 127.0.0.1.

1 to 65535

healthcheckfacultatif

How it is proven up; default { "type": "service", "id": … }.

whenwhenfacultatif

Only when a value is one of a list.

Point d'accroche ​

Un endroit où un autre chart, ou toi, peut ajouter quelque chose à celui-ci.

$commentstringfacultatif

A note for people; ignored and never shown.

kindenumrequis

Its kind: value, section, record, addendum, extend.

Valeursvaluesectionrecordaddendumextend

contract1requis

The contract version: 1.

docstringrequis

What the owner may put there.

argsobjectfacultatif

Its arguments.

patternstringfacultatif

A pattern the filler matches.

defaultobjectfacultatif

Its default.

targetstringfacultatif

What it fills.

fieldstringfacultatif

The field it fills.

maxLinesintegerfacultatif

At most this many lines.

timeoutSintegerfacultatif

A 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.

$commentstringfacultatif

A note for people; ignored and never shown.

idstringrequis

The proof id.

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

checkcheckrequis

A cheap read-only check.

everystringfacultatif

Its period, 5m at least (default 15m).

matches ^\d{1,4}(s|m|h|d)$

graceintegerfacultatif

Failures in a row before it counts (default 2).

1 to 20

whenwhenfacultatif

Only when a value is one of a list.

repairstring[]facultatif

The 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.

$commentstringfacultatif

A note for people; ignored and never shown.

idstringrequis

The repair id.

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

kindenumrequis

Its kind: service.restart, model.pull, gateway.recover, signin.refresh, channel.reconnect, automation.rerun, part.reapply, signin.again, channel.pair.

Valeursservice.restartmodel.pullgateway.recoversignin.refreshchannel.reconnectautomation.rerunpart.reapplysignin.againchannel.pair

argsmap of string | number | booleanfacultatif

Its arguments: literals only.

titletext2facultatif

Its title, in English and French: { "en": …, "fr": … }.

suggestbooleanfacultatif

The 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.

typestringrequis

The check type.

Condition ​

Quand une part, une connexion ou une valeur s'applique, selon tes réponses.

$commentstringfacultatif

A note for people; ignored and never shown.

valuestringrequis

The id of a choice or boolean value.

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

isstring | boolean[] | enum[]requis

The choice ids (or true, false) for which it holds.

Valeursclaudecodexlocaltelegramworld

at least 1 items

needstringrequis

The id of a need of the chart.

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

Texte ​

Un texte en anglais et en français.

enstringrequis

The English text.

frstringrequis

The French text.

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"requis

The standard: alta.catalog/0.2.

generatedAtstringrequis

When 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})$

signaturestringfacultatif

Its signature. Required on a catalog read from the network.

chartsobject[]requis

The charts.

charts.idstringrequis

The chart's id.

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

charts.versionstringrequis

Its version.

matches ^\d+\.\d+\.\d+([-+][0-9a-zA-Z.-]+)?$

charts.kindenumrequis

Its kind.

Valeursagentteammodulepackageskillsystemquest-packuniversecosmetic

charts.priceenumrequis

free or paid.

Valeursfreepaid

charts.amountnumberfacultatif

The price of a paid chart.

more than 0

charts.currencystringfacultatif

Its currency, three capital letters, e.g. EUR.

matches ^[A-Z]{3}$

charts.sha256stringrequis

The digest of the chart folder (alta package).

matches ^[0-9a-f]{64}$

charts.pathstringrequis

Where the chart folder is, relative to the catalog.

matches ^[a-z0-9][a-z0-9/._-]*$

charts.defaultbooleanfacultatif

true: added to every new world. Never on a community chart.

charts.originenumfacultatif

alta or community.

Valeursaltacommunity

charts.sourceobjectfacultatif

Where a community chart comes from: its git repository, pinned on a full commit, with the digest of the chart folder.

charts.source.gitstringrequis

The repository, an https:// address without credentials.

matches ^https://[a-zA-Z0-9.-]+(:d+)?/S+$

charts.source.refstringfacultatif

The tag or branch it was taken from.

matches ^[A-Za-z0-9._/-]{1,100}$

charts.source.commitstringrequis

The full commit (40 hexadecimal characters).

matches ^[0-9a-f]{40}$

charts.source.sha256stringrequis

The digest of the chart folder at that commit.

matches ^[0-9a-f]{64}$

Licence ​

schema"alta.license/0.2"requis

The standard: alta.license/0.2.

chartstringrequis

The chart, by id.

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

versionstringrequis

The chart's version.

holderstringrequis

Who holds it (an opaque id).

matches ^[A-Za-z0-9_-]{8,128}$

issuedAtstringrequis

When 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})$

signaturestringrequis

Its 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 say alta.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.statusstatus is 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.privacyprivacy is not personal or shareable, 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.localitylocality is not local, local-first or cloud, 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, or data is malformed.
  • external.whenA service's when names an unknown value or a choice that value does not have.
  • chart.publisherpublisher is malformed, or holds an e-mail address.
  • chart.homepagehomepage is not an https address, or carries credentials.
  • chart.keywordskeywords has more than 8 words, a malformed word, or a word twice.
  • chart.categoriescategories is empty, has more than 3, a duplicate, or a word outside the list.
  • chart.iconicon is not a .png or .webp file of the chart, or is larger than 256 KB.
  • chart.changeschanges is missing its English or its French.
  • chart.license-spdxlicense is 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-fromfrom names 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 when kind repeats what the id already says.
  • chart.need-acceptaccept or prefer names a provider that is not of the need's kind.
  • chart.need-featurefeatures names something no provider of that kind can offer.
  • chart.need-pinmodel is on a channel, is not provider/model of a known provider, or comes with accept.
  • 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 from answers.default_model or answers.channel: it replays a need by hand.
  • chart.need-default(warning) A need writes a default: reuse: "owner" or optional: false.
  • chart.value-defaultA default does not fit its own kind, pattern or bounds.
  • chart.ref-unknown$name is not a value of the chart, or need:<id> is not one of its needs.
  • chart.ref-kindThe value's kind does not fit the argument it feeds.
  • chart.whenwhen names 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.capabilitiescapabilities differs 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, or uses names 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 than item.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-requiresrequires names an unknown part or sign-in.
  • chart.part-cycleParts require each other.
  • chart.part-proofA part that writes has no proof.
  • chart.part-undoundo promises more than the executor can undo.
  • chart.proof-readyproofs.ready is 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 say alta.catalog/0.2.
  • catalog.dategeneratedAt is malformed.
  • catalog.chartsThe catalog needs a charts list.
  • 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-defaultdefault is 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 say alta.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 say alta.index/0.1.
  • index.dategeneratedAt is not an ISO date.
  • index.repoThe repo block 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 its revoked date is malformed.
  • index.chartsThe index has no charts object.
  • 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 no created date, or a later version has no changes in English and French.
  • index.digestA version's digest is 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, localityRange or localityCheck has 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.riskrisk is not low, medium or high.
  • index.auditA version's audit.status is outside its closed list, or audit.at is not an ISO date.
  • index.attestationsAn attestation is not { type: publish, review or provenance, url: https }.
  • index.withdrawnwithdrawn is 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 say alta.repos/0.1.
  • repos.listThe repositories file has no repos list.
  • repos.entryA repository is malformed: its name (reserved, taken, malformed), its added date, 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"
            }
          }
        ]
      }
    ]
  }
}

examples/chart-community/reading-log/chart.json

Versions ​

VersionCe qu'elle ajouteLue par le jeu
alta.chart/0.1, alta.catalog/0.2, alta.license/0.2Les 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, changesactuelle

Guides qui l'utilisent ​

Le standard, le SDK et la CLI sont sous Apache-2.0 ; Alta System OS et Alta World sous FSL-1.1-ALv2.