# Agent Chart

> Le standard des Agent Charts : ce qu'est un chart, qui l'a fait, ce qu'il ajoute à un monde, comment chaque partie est prouvée et défaite ; le catalogue et le droit d'utilisation ; chaque champ, chaque règle, chaque version.

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](https://github.com/altasystem-ai/alta/blob/main/docs/standards/schemas/alta.chart.schema.json) |
| **Spécification complète** | [alta.chart/0.1](https://docs.altasystem.ai/reference/advanced/specs/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.

```json [my-chart/chart.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"
            }
          }
        ]
      }
    ]
  }
}
```

## 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`.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `schema` | "alta.chart/0.1" | yes | The standard: `alta.chart/0.1`. |
| `id` | string | yes | The chart id, also the folder's name. |
| `version` | string | yes | Its version, semver. |
| `kind` | enum | yes | What it installs: agent, team, module, package, skill, system, quest-pack, universe, cosmetic. |
| `status` | enum | no | `ready` (default) or `draft` (refused at install). |
| `title` | text2 | yes | Its name, in English and French: { "en": …, "fr": … }. |
| `summary` | text2 | yes | What it does, in a sentence, in English and French: { "en": …, "fr": … }. |
| `why` | text2 | no | Why someone would install it, in English and French: { "en": …, "fr": … }. |
| `author` | string | yes | Who made it. |
| `license` | string | yes | Its license, e.g. `MIT`. |
| `price` | enum | yes | `free` or `paid`; the amount lives in the catalog. |
| `origin` | enum | yes | `alta` (made by Alta) or `community` (from any git repository). |
| `verified` | boolean | no | Set by Alta's review only; never on a community chart. |
| `privacy` | enum | no | `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. |
| `source` | chartSource | no | Where a community chart comes from. Required on a community chart. |
| `locality` | enum | no | 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. |
| `external` | object | no | The online services it talks to, each with its hosts, phase, account and the data that leaves the machine. |
| `external.$comment` | string | no | A note for people; ignored and never shown. |
| `external.services` | object[] | yes | The services, 24 at most. |
| `external.services.$comment` | string | no | A note for people; ignored and never shown. |
| `external.services.id` | string | yes | The service id, unique in the chart. |
| `external.services.name` | string | yes | Its name, the brand (not translated), 1 to 60 characters. |
| `external.services.purpose` | text2 | yes | Why the chart talks to it, one sentence, in English and French: { "en": …, "fr": … }. |
| `external.services.homepage` | string | no | Its web page, an `https://` address without credentials. |
| `external.services.hosts` | string[] | yes | The host names it reaches, lower case; one leading "*." allowed; no IP, port or path (https is implied). 1 to 16. |
| `external.services.phase` | enum[] | yes | When it is reached: install, run (install: a download once; run: while the chart works). |
| `external.services.required` | boolean | no | False: an optional extra; the chart works without it. Default true. |
| `external.services.account` | enum | no | Does the owner need an account there: none, free, paid (default none). |
| `external.services.signin` | string | no | The sign-in of this chart that connects this account. |
| `external.services.data` | enum[] | no | What leaves the machine at run time: none, prompts, files, messages, contacts, calendar, audio, images, location, identifiers, usage. |
| `external.services.when` | when | no | Only when a value is one of a list. |
| `publisher` | object | no | Who publishes the chart; never an e-mail. |
| `publisher.$comment` | string | no | A note for people; ignored and never shown. |
| `publisher.id` | string | yes | The publisher id. |
| `publisher.name` | string | yes | Its name, 1 to 60 characters. |
| `publisher.url` | string | no | Its web page, an `https://` address. |
| `homepage` | string | no | Its web page, an `https://` address without credentials. |
| `keywords` | string[] | no | Words to find it, 8 at most. |
| `categories` | enum[] | no | Where it is listed, 1 to 3 of: assistant, writing, research, media, home, work, developer, system, game. |
| `icon` | string | no | A .png or .webp file of the chart, 256 KB at most (never SVG). |
| `changes` | text2 | no | What changed in this version, in plain words, in English and French: { "en": …, "fr": … }. |
| `support` | support | yes | Where it runs: systems, hosted, needs. |
| `resources` | resources | no | What it needs of the machine, like Kubernetes requests. |
| `requires` | object | no | What must be there first. |
| `requires.$comment` | string | no | A note for people; ignored and never shown. |
| `requires.alta` | string | no | The Alta OS version range. |
| `requires.openclaw` | string | no | The OpenClaw version range. |
| `requires.charts` | object[] | no | Other charts, each with a version range. |
| `requires.charts.$comment` | string | no | A note for people; ignored and never shown. |
| `requires.charts.id` | string | yes | The chart id. |
| `requires.charts.version` | string | yes | A range: >=, >, <=, <, =, ^, ~. |
| `requires.charts.optional` | boolean | no | True: installed only when the owner wants it. |
| `requires.skills` | string[] | no | Quest skills of the game the player must have. |
| `capabilities` | enum[] | yes | What the server must be allowed to do: exactly those of the executors the chart names. |
| `needs` | map of need | no | What it needs (a mind, a channel), by id; the kind comes from the id (`mind`, `channel`, `<kind>-<name>`). |
| `values` | map of value | no | What the owner chooses at install, by id. |
| `signins` | map of signin | no | The accounts and devices the chart connects, by id. |
| `agents` | agent[] | no | The agents it creates. |
| `skills` | object[] | no | Skills shipped with the chart ({ slug, path }) or pinned ({ ref, version, sha256 }). |
| `automations` | automation[] | no | Its automations, all created off. |
| `services` | service[] | no | Services it owns. |
| `uses` | string[] | no | Services another chart owns, as "service:<id>". |
| `models` | string[] | no | Local models it pulls (the targets of its model.pull repairs). |
| `hooks` | map of hook | no | The points where the owner plugs their own commands or text, by id. |
| `package` | object | no | Where its files come from: `chart` (default), alta-module (Alta's own scripts), openclaw-skill, or data. |
| `package.type` | enum | yes | The package type. |
| `parts` | part[] | yes | Its units of work, each with plan, apply and check. |
| `proofs` | object | yes | How it is proven: installed, ready, alive. |
| `proofs.$comment` | string | no | A note for people; ignored and never shown. |
| `proofs.installed` | check[] | no | The checks that say its files and programs are there. |
| `proofs.ready` | check[] | yes | The checks that say it works once, end to end. |
| `proofs.alive` | alive[] | no | The checks that say it still works, read by the guard loop. |
| `repairs` | repair[] | no | How some failures can be fixed; each may be allowed by the owner. |
| `spawn` | object | no | What appears on the map once it is installed. |
| `branch` | object | no | Quests it brings (a quest-pack chart). |
| `universe` | object | no | The universe pack it carries (a universe chart). |
| `scene` | object | no | The scene played when it is installed. |
| `review` | object | no | Alta's review notes. |

### Services en ligne

Ce dont le chart a besoin hors de la machine, en deux clés : [`locality`](#chart-locality), un mot sur lequel on filtre (`local`, `local-first` ou `cloud`), et [`external.services`](#chart-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 [chart.json : external.services[0]]
{
  "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](https://docs.altasystem.ai/fr/charts/concepts/locality). Pas à pas : [Dire ce que ton chart utilise en ligne](https://docs.altasystem.ai/fr/charts/guides/declare-services).

### Éditeur

Qui publie le chart, tel qu'un [dépôt de charts](https://docs.altasystem.ai/fr/marketplace/) le liste : [`publisher.id`](#chart-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](https://docs.altasystem.ai/fr/marketplace/badges) 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.

```json [chart.json : publisher]
{
  "id": "example-author",
  "name": "Example Author",
  "url": "https://example.com"
}
```

### Source

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `git` | string | yes | The repository, an `https://` address without credentials. |
| `ref` | string | no | The branch or tag it was read from. |
| `commit` | string | yes | The full commit (40 hexadecimal characters). |
| `sha256` | string | yes | The digest of the chart tree, printed by `alta package` (64 hexadecimal characters). |

### Partie

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `id` | string | yes | The part id, unique in the chart. |
| `title` | text2 | no | Its title on the plan card, in English and French: { "en": …, "fr": … }. |
| `do` | enum | yes | The executor, from the closed list. |
| `args` | map of string | number | boolean | no | Its arguments: literals, or "$<value>". |
| `requires` | string[] | no | Parts, sign-ins ("signin:<id>") and needs ("need:<id>": its provider connected) that come first. |
| `when` | when | no | Only when a value is one of a list. |
| `resources` | resources | no | What it needs of the machine. |
| `undo` | enum | no | How it is undone: `auto`, `command`, `archive` or `none`. |
| `proof` | check[] | yes | The read-only checks that prove it. |

### Agent

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `id` | string | yes | The agent's id, unique in the chart. |
| `name` | text2 | yes | Its name, in English and French: { "en": …, "fr": … }. |
| `emoji` | string | no | Its emoji. |
| `role` | enum | no | Its role: daemon, architect, operator, reviewer, guardian. |
| `domain` | string | no | What it takes care of, in a few words. |
| `files` | string[] | yes | The text files given to the agent, under agents/<id>/ (SOUL.md, AGENTS.md…); never run. |
| `model` | string | object | yes | Its mind: "need:<id>" (a mind need), or pinned: { "from": "$<value>" }, { "decision": "<id>" } or { "id": "provider/model" }. |
| `model.from` | string | no | A value reference. |
| `model.decision` | string | no | A decision of the engine. |
| `model.id` | string | no | A model id, provider/model. |
| `fallbacks` | string[] | no | Models tried when the first one fails, provider/model. |
| `channel` | string | object | no | Where it talks to the owner: "need:<id>" (a channel need), or pinned. |
| `channel.$comment` | string | no | A note for people; ignored and never shown. |
| `channel.kind` | enum | yes | `telegram`, `whatsapp` or `none`. |
| `channel.session` | string | no | The session it uses on that channel. |
| `permissions` | object | yes | What it may do: tools allowed and denied (deny wins), programs, channels. |
| `permissions.$comment` | string | no | A note for people; ignored and never shown. |
| `permissions.tools` | object | yes | Tools it may and may not use. |
| `permissions.tools.$comment` | string | no | A note for people; ignored and never shown. |
| `permissions.tools.allow` | string[] | yes | Allowed tools. |
| `permissions.tools.deny` | string[] | yes | Denied tools; deny always wins. |
| `permissions.exec` | object | no | Programs it may run: `deny` (default), or an allowlist of files of its own folder (Alta's charts only). |
| `permissions.exec.$comment` | string | no | A note for people; ignored and never shown. |
| `permissions.exec.mode` | enum | yes | `deny` or `allowlist`. |
| `permissions.exec.allow` | object[] | no | The programs, each a file of the agent's folder. |
| `permissions.exec.allow.$comment` | string | no | A note for people; ignored and never shown. |
| `permissions.exec.allow.bin` | string | yes | The program's path in the agent's folder. |
| `permissions.channels` | enum | string[] | no | Channels it may write to: "need:<id>" (a channel need), or pinned (telegram, whatsapp). |
| `wake` | string[] | no | Keys of the chart's automations that wake it. |
| `watch` | object | no | Alta's five-function wiring (Alta's charts only). |
| `instance` | string[] | no | Paths that are the owner's data, never shipped. |
| `when` | when | no | 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`.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `kind` | enum | yes | The kind of the value: text, choice, email, path, number, boolean. |
| `label` | text2 | yes | The question the owner sees, in English and French: { "en": …, "fr": … }. |
| `hint` | text2 | no | One sentence under the question, in English and French: { "en": …, "fr": … }. |
| `required` | boolean | no | False: the owner may leave it empty. Default true. |
| `default` | string | number | boolean | no | The value when the owner changes nothing. |
| `from` | string | no | Prefilled from the owner's answers or profile: `answers.<key>` or `owner.<key>` (`owner.mind`, `owner.channel`: the player's default provider). |
| `min` | number | no | Text: shortest length; number: lowest value. |
| `max` | number | no | Text: longest length; number: highest value. |
| `pattern` | string | no | Text: an anchored pattern (`^…$`), 200 characters at most. |
| `choices` | object[] | no | A choice value: its choices, the shape of a choice step's. |
| `choices.id` | string | yes | 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](https://docs.altasystem.ai/fr/charts/concepts/needs).

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `kind` | enum | no | The kind (mind, channel). Only when the id does not say it: "mind", "channel" and "<kind>-<name>" do. |
| `why` | text2 | no | Why it needs it, shown on the consent screen (absent: the default sentence of its kind), in English and French: { "en": …, "fr": … }. |
| `accept` | enum[] | no | The providers allowed (absent: all of its kind): claude, codex, local, telegram, world. |
| `model` | string | no | An exact model, provider/model (a mind only); excludes accept. |
| `features` | enum[] | no | What the provider must offer: a mind tools, vision, long-context, json; a channel push, reply, files, voice, buttons. |
| `prefer` | enum[] | no | The recommendation order when the player must choose. |
| `reuse` | enum | no | `ask`: always ask the player. Absent: reuse the player's own choice. |
| `optional` | boolean | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `use` | enum | yes | The connection executor: signin.cli, setup.other-signin, channel.connect, channel.pair-approve, connector.connect, tablet.pair. |
| `args` | map of string | number | boolean | no | The executor's arguments, never a secret; a value is used as "$<id>". |
| `proof` | check | yes | The read-only check that proves it; `signin.cli` is proven by { "type": "signin", "tool": … }. |
| `why` | text2 | yes | One sentence the consent screen shows, in English and French: { "en": …, "fr": … }. |
| `optional` | boolean | no | True: the owner may skip it. |
| `when` | when | no | Only when a value is one of a list. |
| `requires` | string[] | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `key` | string | yes | Its key, unique on the machine. |
| `title` | text2 | yes | Its name, in English and French: { "en": …, "fr": … }. |
| `agent` | string | yes | The agent it wakes: an agent of the chart, or main. |
| `schedule` | object | yes | When: { cron, tz }, { daily: "HH:MM" }, { every: "1h" } or { trigger } (Alta's charts only). |
| `schedule.cron` | string | no | Five cron fields. |
| `schedule.tz` | string | no | `owner`, or an IANA time zone. |
| `schedule.daily` | string | no | HH:MM, or a value reference. |
| `schedule.every` | string | no | A duration of 5m or more. |
| `schedule.trigger` | string | no | The file `automations/<key>.trigger.js`. |
| `message` | string | yes | The message file: automations/<key>.message.md. |
| `spends` | enum | yes | `none`, or `model`: a run may cost a model call. |
| `when` | when | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `id` | string | yes | The service id. |
| `label` | string | map of string | yes | The launchd label or the systemd unit, or one per system. |
| `port` | integer | no | Its port on 127.0.0.1. |
| `health` | check | no | How it is proven up; default { "type": "service", "id": … }. |
| `when` | when | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `kind` | enum | yes | Its kind: value, section, record, addendum, extend. |
| `contract` | 1 | yes | The contract version: 1. |
| `doc` | string | yes | What the owner may put there. |
| `args` | object | no | Its arguments. |
| `pattern` | string | no | A pattern the filler matches. |
| `default` | object | no | Its default. |
| `target` | string | no | What it fills. |
| `field` | string | no | The field it fills. |
| `maxLines` | integer | no | At most this many lines. |
| `timeoutS` | integer | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `id` | string | yes | The proof id. |
| `check` | check | yes | A cheap read-only check. |
| `every` | string | no | Its period, 5m at least (default 15m). |
| `grace` | integer | no | Failures in a row before it counts (default 2). |
| `when` | when | no | Only when a value is one of a list. |
| `repair` | string[] | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `id` | string | yes | The repair id. |
| `kind` | enum | yes | Its kind: service.restart, model.pull, gateway.recover, signin.refresh, channel.reconnect, automation.rerun, part.reapply, signin.again, channel.pair. |
| `args` | map of string | number | boolean | no | Its arguments: literals only. |
| `title` | text2 | no | Its title, in English and French: { "en": …, "fr": … }. |
| `suggest` | boolean | no | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string | yes | The check type. |

### Condition

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

| Field | Type | Required | Description |
|---|---|---|---|
| `$comment` | string | no | A note for people; ignored and never shown. |
| `value` | string | yes | The id of a choice or boolean value. |
| `is` | string | boolean[] | enum[] | yes | The choice ids (or true, false) for which it holds. |
| `need` | string | yes | The id of a need of the chart. |

### Texte

Un texte en anglais et en français.

| Field | Type | Required | Description |
|---|---|---|---|
| `en` | string | yes | The English text. |
| `fr` | string | yes | 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.

| Field | Type | Required | Description |
|---|---|---|---|
| `schema` | "alta.catalog/0.2" | yes | The standard: `alta.catalog/0.2`. |
| `generatedAt` | string | yes | When it was made, as an ISO date and time. |
| `signature` | string | no | Its signature. Required on a catalog read from the network. |
| `charts` | object[] | yes | The charts. |
| `charts.id` | string | yes | The chart's id. |
| `charts.version` | string | yes | Its version. |
| `charts.kind` | enum | yes | Its kind. |
| `charts.price` | enum | yes | `free` or `paid`. |
| `charts.amount` | number | no | The price of a paid chart. |
| `charts.currency` | string | no | Its currency, three capital letters, e.g. `EUR`. |
| `charts.sha256` | string | yes | The digest of the chart folder (`alta package`). |
| `charts.path` | string | yes | Where the chart folder is, relative to the catalog. |
| `charts.default` | boolean | no | `true`: added to every new world. Never on a community chart. |
| `charts.origin` | enum | no | `alta` or `community`. |
| `charts.source` | object | no | Where a community chart comes from: its git repository, pinned on a full commit, with the digest of the chart folder. |
| `charts.source.git` | string | yes | The repository, an `https://` address without credentials. |
| `charts.source.ref` | string | no | The tag or branch it was taken from. |
| `charts.source.commit` | string | yes | The full commit (40 hexadecimal characters). |
| `charts.source.sha256` | string | yes | The digest of the chart folder at that commit. |

### Licence

| Field | Type | Required | Description |
|---|---|---|---|
| `schema` | "alta.license/0.2" | yes | The standard: `alta.license/0.2`. |
| `chart` | string | yes | The chart, by id. |
| `version` | string | yes | The chart's version. |
| `holder` | string | yes | Who holds it (an opaque id). |
| `issuedAt` | string | yes | When it was issued, as an ISO date and time. |
| `signature` | string | yes | Its signature. |

Les quêtes d'un chart suivent le [standard des quêtes](https://docs.altasystem.ai/fr/reference/standards/quests) ; son univers, le [standard des univers](https://docs.altasystem.ai/fr/reference/standards/universe) ; sa scène, le [standard des cinématiques](https://docs.altasystem.ai/fr/reference/standards/cinematics). Les règles derrière chacun sont dans la [spécification complète](https://docs.altasystem.ai/reference/advanced/specs/alta-chart-0.1).

## Règles et erreurs

Chaque règle qu'`alta lint` applique aux charts, avec sa section sur la [page des erreurs](https://docs.altasystem.ai/fr/reference/errors#standard-chart).

## Exemple complet

<details class="alta-full-example">
<summary>Un chart de la communauté venu d'un dépôt git, épinglé sur un commit</summary>

```json [reading-log/chart.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"
            }
          }
        ]
      }
    ]
  }
}
```

</details>

## 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 |

## Guides qui l'utilisent

- [Empaqueter un pack de quêtes](https://docs.altasystem.ai/fr/charts/guides/quest-pack)
- [Un agent métier payant, de bout en bout](https://docs.altasystem.ai/fr/charts/guides/business-agent)
- [Dire ce que ton chart utilise en ligne](https://docs.altasystem.ai/fr/charts/guides/declare-services)
- [Publier un chart](https://docs.altasystem.ai/fr/marketplace/publish)
