Skip to content

Say what your chart needs online ​

You tell the people who install your chart how much it needs the network, and what it talks to. A mind or a channel is a need: the player picks the provider, and you write nothing about it. A service your chart always uses is declared in external. alta lint sees every network use your chart names and tells you what is missing; the owner reads the result on the first step of the install.

Before you begin 10 minutes

  1. Read what the skeleton declares

    alta chart new already wrote the agent's level and its one need, a mind:

    morning-brief/chart.json: needs
    json
    { "mind": {} }

    The agent thinks with "model": "need:mind". Next to it, "locality": "local-first": the mind may be a model on the machine, and the agent may use the message tool, which reaches the network where it chooses. There is no Claude service to write: if the player binds Claude, the game adds it.

  2. Try to say less than the truth

    Change "locality": "local-first" to "locality": "local" and lint:

    Terminal
    sh
    alta lint morning-brief
    Output
    text
    FAIL morning-brief (chart)
         error: locality: The 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-floor]
           detail: locality: local is more local than what the chart names allows (local-first): agents[0].permissions.tools.allow: the tool message reaches the network wherever the agent chooses (chart.locality-floor)
           fix: Say the level the message names, or remove what reaches the network (the message lists each field).
           docs: https://docs.os.altasystem.ai/reference/errors#chart-locality-floor
         warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
           fix: Replace them with the commit git prints and the digest alta package prints.
           docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
    1 checked, 1 error, 1 warning

    Lint lists every field that reaches the network. You cannot lower that floor by writing a different word; only by removing what reaches the network. Put "local-first" back.

  3. Name a channel

    Let the agent write to its owner on Telegram, by name: add a channel to the agent in agents[0].

    json
    {
      "channel": {
        "kind": "telegram"
      }
    }
    Terminal
    sh
    alta lint morning-brief
    Output
    text
    FAIL morning-brief (chart)
         error: agents[0].channel.kind: Something 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.undeclared]
           detail: agents[0].channel.kind: the agent talks on telegram: declare a service in phase run with api.telegram.org in external.services (external.undeclared)
           fix: Add a service to external.services with the phase and the hosts the message lists (and the same when, if it depends on a value).
           docs: https://docs.os.altasystem.ai/reference/errors#external-undeclared
         error: locality: The 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-floor]
           detail: locality: local-first is more local than what the chart names allows (cloud): agents[0].channel.kind: the agent talks on telegram (chart.locality-floor)
           fix: Say the level the message names, or remove what reaches the network (the message lists each field).
           docs: https://docs.os.altasystem.ai/reference/errors#chart-locality-floor
         warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
           fix: Replace them with the commit git prints and the digest alta package prints.
           docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
    1 checked, 2 errors, 1 warning

    The message names the phase (run) and the host (api.telegram.org) to declare, and the level the chart now has.

  4. Declare the service

    Add the service to external.services. Write the purpose for the owner, in both languages; say an account is needed, and what leaves the machine. Set "locality": "cloud": the chart does not work without it.

    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"
      ]
    }
    Terminal
    sh
    alta lint morning-brief
    Output
    text
    ok   morning-brief (chart)
         warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
           fix: Replace them with the commit git prints and the digest alta package prints.
           docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
    1 checked, 0 errors, 1 warning

    The remaining warning is the placeholder source, filled when you publish. This is the pinned form: every owner needs Telegram. Keep it for a service your chart cannot do without (a weather service, your own API).

  5. Or let the player choose

    A channel is a need like a mind. Remove the service, put "locality" back to "local-first", add a channel need, and point the agent at it:

    json
    {
      "needs": {
        "mind": {},
        "channel": {}
      },
      "channel": "need:channel"
    }
    Terminal
    sh
    alta lint morning-brief
    Output
    text
    ok   morning-brief (chart)
         warning: source: The source still holds placeholders (zeros). [chart.source-placeholder]
           fix: Replace them with the commit git prints and the digest alta package prints.
           docs: https://docs.os.altasystem.ai/reference/errors#chart-source-placeholder
    1 checked, 0 errors, 1 warning

    Nothing to declare: the player's channel is Telegram or the game's own inbox, and the service, the sign-ins and the repairs come with it.

Choosing the level ​

  • Everything works offline, nothing at run time reaches the network: local.
  • The chart works offline and some extras are online: local-first, and mark each of those services "required": false. A need whose providers include a local one stays here.
  • It needs a service to do its job: cloud.
  • A download at install time only (a model, a package): "phase": ["install"], which does not change the level.

The store lists a chart with needs at the worst case of its providers, and says "can run 100% local" when every need has a local provider.

Pitfalls ​

DoAvoid
A need for a mind or a channel: "needs": { "mind": {} }A value that asks "Claude or local?", or Claude written in external
One service per company or product, with every host it reachesOne service per host
A purpose that says what the owner gives: "what you ask goes to the weather service"A purpose that sells: "powered by the best AI"
An account in account, and the credential in a sign-inA key, a token or a password anywhere in the chart

What's next

Alta OS is open source (MIT).