English
alta.chart/0.1: the Agent Chart
Generated from docs/standards/alta-chart-0.1.md · npm run docs:gen
Code: core/charts/ (chart.ts types and checkChart, values.ts, semver.ts, quests.ts (how the game renders a chart), conditions.ts, repairs.ts, services.ts, external.ts (locality and online services)), engine/lib/alta_chart.py (the engine's reader), server/charts/ (admission, release records, guard loop). Tests: tests/charts*.test.ts, engine/tests/test_charts.py.
An Agent Chart is a versioned folder that packages something a person installs and configures on their own machine: an agent, a team of agents, a module, a tool, a skill, a quest pack, a universe. It says what it is, where it runs, what it needs, what the owner chooses, which accounts it connects, what it does step by step, how it is proven, and what may be repaired without asking again.
Status: alpha. This format can still change before its 1.0; a change follows the versioning rules of the project and is announced in the changelog.
A chart is data. It names executors, checks, sign-in tools and repair kinds from closed lists that live in code. Nothing in a chart is run as code, there is no templating language, and nothing is written to the machine before the owner agrees to a plan card.
It replaces, with no compatibility layer, the earlier store item format and the engine's own module, agent, index and owner overlay files. See What a chart is not for what stays separate.
1. Words
| Word | Meaning |
|---|---|
| chart | the folder and its chart.json |
| value | something the owner chooses at install; never a secret |
| sign-in | an account or a device the chart connects, proven by a read-only check |
| part | one unit of work with plan, apply and check |
| proof | a read-only check, with a role: installed, ready or alive |
| repair | a named fix from a closed list of kinds, tied to an alive proof |
| grant | the owner's standing yes for one repair of one chart |
| release | the record of an installed chart on a machine: version, values, conditions |
| condition | the single state word of a part, a proof or a release |
2. Layout on disk
<id>/
chart.json required: the only file the validators read first
README.md for people; never parsed
agents/<agent id>/ SOUL.md, IDENTITY.md, AGENTS.md, runbooks/ (text given to the agent, never run)
skills/<slug>/SKILL.md skills shipped with the chart
automations/<key>.json schedule and target of each automation, with <key>.message.md
quests/*.json optional alta.quests/0.3 fragments that replace generated texts
universe/ kind universe: the pack of alta.universe/0.1
scripts/, tests/ only when origin is "alta" (section 10)
values.example.json an example of chosen values, used by `alta install --values`- The file is JSON (UTF-8, no comments). Every object may carry a
"$comment"string; it is ignored and never shown. Reason for JSON: every content file of the game is JSON, the game has no runtime dependency, and the engine is Python standard library only. Both read JSON natively; neither reads YAML. - The folder name equals
id. Paths inside the chart are relative, with/, never.., never absolute, never a symlink that leaves the folder (chart.path). - Size limits:
chart.json256 KB, a text file 256 KB, the whole chart 20 MB (chart.size).
3. Top level
Chart {
schema: "alta.chart/0.1"
id, version, kind, status?
title, summary, why?, author, license, price
origin, verified?, source?
privacy?, locality?, external?
publisher?, homepage?, keywords?, categories?, icon?, changes?
support, resources?
requires?
capabilities
needs?
values?
signins?
agents?, skills?, automations?, services?, hooks?
package?
parts
proofs
repairs?
spawn?, branch?, universe?, scene?
review?
}| Field | Type | Required | Rule |
|---|---|---|---|
schema | "alta.chart/0.1" | yes | chart.schema |
id | string ^[a-z][a-z0-9-]{1,40}$ | yes | chart.id; tests, docs, index are reserved |
version | semver MAJOR.MINOR.PATCH[-pre][+build] | yes | chart.version |
kind | closed list, below | yes | chart.kind |
status | "ready" | "draft" (default ready) | no | a draft is listed, checked, and refused at install (chart.status) |
title, summary | Text (en and fr) | yes | chart.texts |
why | Text | no | |
author, license | string | yes | chart.author, chart.license |
price | "free" | "paid" | yes | the amount lives in the catalog, never here (chart.price) |
origin | "alta" | "community" | yes | chart.origin |
verified | boolean | no | set by Alta's review only; refused on a community chart that sets it itself (chart.community-verified) |
privacy | "personal" | "shareable" (default personal) | no | agent, team, module, package and skill only (chart.privacy); section 8 |
locality | "local" | "local-first" | "cloud" | community or shareable: yes; else a warning | what the chart needs of the network at run time; never on a data chart (section 8, chart.locality*) |
external | { services: Service[] } | when it reaches the network | the online services it talks to, each with its hosts, phase, account and the data that leaves the machine (section 8, external.*) |
publisher | { id, name, url? } | no | who publishes it: id ^[a-z0-9][a-z0-9-]{1,38}$, name 1 to 60 characters, url https; never an e-mail (chart.publisher) |
homepage | https URL | no | no credentials in the address (chart.homepage) |
keywords | string[] | no | 8 at most, each ^[a-z0-9][a-z0-9-]{1,23}$, no duplicate (chart.keywords) |
categories | Category[] | no | 3 at most, from the closed list below (chart.categories) |
icon | path | no | a .png or .webp file of the chart, 256 KB at most; never SVG, it can carry script (chart.icon) |
changes | Text | no | what changed in this version, in plain words (chart.changes) |
source | { git, ref?, commit, sha256 } | community: yes | https, full 40-hex commit, 64-hex digest of the chart tree (chart.source, chart.community-source) |
support | Support of platform | yes | support.* rules, unchanged |
resources | Resources of resources | no | section 6 |
needs | { <id>: Need | true } | no | a mind, a channel: what the chart needs, bound by the player to a provider (section 4a, chart.need-*) |
Marketplace metadata
publisher, homepage, keywords, categories, icon and changes help a person find a chart and judge it before installing. All are optional; a chart without them stays valid.
- Categories (closed,
CHART_CATEGORIESincore/charts/chart.ts):assistant,writing,research,media,home,work,developer,system,game. authorstays a string.licenseshould be an SPDX identifier or expression (MIT,Apache-2.0,MIT OR Apache-2.0,LicenseRef-<name>for your own terms); anything else is a warning (chart.license-spdx).- The price stays
freeorpaidhere; an amount never appears in a chart. - A signature is never in
chart.json: a file cannot sign the folder it is part of. Signatures travel next to the chart.
Kinds (closed)
kind | What it installs | Must have | Must not have |
|---|---|---|---|
agent | one agent | agents with exactly one entry, proofs.ready | |
team | several agents that work together | agents with two entries or more, proofs.ready | |
module | a capability around the agents: skills, commands, automations | parts, proofs.ready | |
package | a standalone tool a module uses (a command, an MCP server) | package, proofs.installed | agents, automations |
skill | one skill or a few | skills | agents, services |
system | a layer of Alta System OS itself (the chart alta-os and its six parts) | origin alta | |
quest-pack | quests only | branch | anything that writes outside the game's folder |
universe | a universe | universe | same |
cosmetic | art only | same |
The last three are data charts: their only parts run the executor item.data, they need no capability and show no plan card that writes (chart.data-only).
4. Values
What the owner chooses. Values are asked once, at install, kept in the release record, and can be changed later by an upgrade (a change is a new plan, never a silent edit).
values: { <id>: Value } id: ^[a-z][a-z0-9-]{0,31}$
Value {
kind: "text" | "choice" | "email" | "path" | "number" | "boolean"
label: Text, hint?: Text
required?: boolean (default true)
default?: string | number | boolean
from?: "answers.<key>" | "owner.<key>" prefilled from the owner's answers or profile
text: min?, max?, pattern? (anchored, 200 characters at most)
number: min?, max?
choice: choices: Choice[]
secret?: never
}
Choice { id, label: Text, hint?: Text, recommended?: boolean, resources?: Resources, host?: HostCond,
off?: { host, why: Text } }Rules:
- The kinds are those of
INPUT_KINDS(core/runs/inputs.ts) withoutsecret. A value is never a secret, and a default that looks like one (looksSecret) is refused (chart.value-secret). fromonly names keys of the engine's answers file (slug,language,timezone,display_name,channel,embeddings,default_model) or of the owner profile, which also holdsowner.mindandowner.channel(the player's default provider of each kind, section 4a) (chart.value-from).- A value never picks a provider: that is a need (section 4a). A choice of two providers, or a value read from
answers.default_modeloranswers.channel, is a warning (chart.need-instead). - A
choicefollows the choice rules of alta-game-0.3: at most onerecommendedper host, at least one choice that can be picked on every reference host and on the smallest machine (choice.recommended,choice.none-on-host). - A choice with
resourcesis greyed where the machine is too small, with the sentence ofshortText().
References
A value is used elsewhere by writing "$<id>" as the whole string of a field. There is no interpolation inside a string, no expression, no default operator, no loop.
- Allowed places:
parts[].args.*,signins.*.args.*,automations[].schedule.*,agents[].model.from, parameters of a proof. - A need is named the same way with
"need:<id>"as the whole string, in the places of section 4a. - The value's kind must fit the place: checked against the executor's
ParamSpecbyparamProblems(chart.ref-kind). An unknown id ischart.ref-unknown. - Any
{{,${or<%inchart.jsonis refused (chart.no-template).
Conditions on a value
when: { value: "<id>", is: [ "<choice id>" | true | false, … ] } on a sign-in, a part, an agent, an automation, a service or a proof. Absent: always. One value, one list: no and, no or, no not. If a chart needs more logic, an executor is missing.
when: { need: "<id>", is: [ "<provider id>", … ] } holds when that need is bound to one of these providers (section 4a); an unknown need or provider is chart.when.
4a. Needs
A chart says what it needs ("a mind", "a channel") instead of naming Claude or Telegram. The player binds each kind once to a provider (their onboarding choices), and every chart reuses that binding unless it says otherwise. The agents, parts and proofs name the need ("need:mind"); the engine binds it. Code: core/charts/needs.ts (the table and bind, pure) and core/charts/bindings.ts (what a binding adds to the chart, pure).
needs: { <id>: Need | true } id: ^[a-z][a-z0-9-]{0,31}$, the same shape as a value id
Need {
kind?: "mind" | "channel" only for a free id: the kind comes from the id
why?: Text the sentence of the consent step; default: one per kind
accept?: string[] the providers allowed; absent: every provider of the kind
model?: "provider/model" a mind pinned to one model; excludes accept
features?: string[] what the provider must offer, closed list per kind
prefer?: string[] the recommendation order when the player must choose
reuse?: "ask" ask each time, even when the player has a default ("owner" is the default)
optional?: true the chart works without it
}The kind comes from the id. mind and channel are their own kind; mind-deep or channel-alerts (<kind>-<anything>) take the kind of their prefix. kind is written only for a free id ("notify": { "kind": "channel" }); a kind that repeats what the id says is a warning, one that contradicts it an error (chart.need-kind). Several needs of one kind are allowed (mind-fast, mind-deep).
Three levels. Broad: {} or true, any provider of the kind, and the player's own choice is reused. Constrained: accept, features ({ "features": ["push"] }: a channel that can write first). Pinned: model (a mind on one model, such as "anthropic/claude-sonnet-4-6"). Defaults stay out of the chart: never "reuse": "owner", never "optional": false (chart.need-default, a warning).
Features (closed, NEED_FEATURES): a mind tools, vision, long-context, json; a channel push, reply, files, voice, buttons. Default why: a mind "It needs a mind to think with." / « Il a besoin d'un esprit pour penser. »; a channel "It needs a way to write to you." / « Il a besoin d'un moyen de t'écrire. »
References
One form everywhere, the whole string "need:<id>":
| Where | Means |
|---|---|
agents[].model | the agent thinks with the mind bound to that need |
agents[].channel | the agent writes on the channel bound to that need |
agents[].permissions.channels[] | the channel it may write to |
parts[].requires[] | the part waits for the need's connection (its generated sign-ins) |
parts[].args.* | the engine's word for the bound provider (claude, codex, local, telegram, none), when the executor's closed list holds every candidate's word (chart.ref-kind) |
a proof { "type": "need", "id": "<id>" } | the provider's own proof (below) |
when: { "need": "<id>", "is": ["<provider>"] } | only when that need is bound to one of these providers |
A reference to an unknown need is chart.ref-unknown; one of the wrong kind (agents[].model: "need:channel") is chart.need-kind. A pinned agent (model: { "id": … }, channel: { "kind": "telegram" }) stays valid: it is the pinned form, with its own sign-ins and services written by hand. A choice value stays for what is the chart's own, never to pick a provider: a value whose choices are two providers, or that reads answers.default_model or answers.channel, is a warning (chart.need-instead).
Providers (closed, PROVIDERS)
A provider is a row of the engine, like a sign-in tool. Its service, sign-ins, proof and repairs come from its row, never from a chart.
| Provider | Kind | Local | Features | Service (hosts, account, data) | Sign-ins | Proof | Repairs |
|---|---|---|---|---|---|---|---|
claude | mind | no | tools, vision, long-context, json | Claude (claude.ai, api.anthropic.com), paid, prompts | signin.cli claude, link-code | signin { tool: claude } | signin.again |
codex | mind | no | tools, vision, long-context, json | ChatGPT (auth.openai.com, chatgpt.com, api.openai.com), paid, prompts | signin.cli codex, device-code | signin { tool: codex } | signin.again |
local | mind | yes | tools, json | none; needs 16 GB of memory and 6 GB of disk | none | model { mind: local } | none |
telegram | channel | no | push, reply, files, voice, buttons | Telegram (api.telegram.org), free, messages | channel.connect, then channel.pair-approve | channel { id: telegram, state: paired } | channel.reconnect, channel.pair |
world | channel | yes | reply, files, buttons | none: the game's own inbox | none | none (always met) | none |
The row order is the engine's recommendation order. A pinned model names its provider by its prefix (anthropic/… is claude, openai/… and openai-codex/… are codex, ollama/… is local).
Binding: bind(chart, world, machine)
Pure (core/charts/needs.ts). world is what the player has: their default per kind (owner, from the engine's answers default_model and channel), the providers already connected (from the release records), the preset "100% local" (localOnly) and their own pick per need (picked, the "change" of the consent step). For each need, the first rule that applies:
- Candidates: providers of the kind, inside
accept, with everyfeatures, the one of a pinnedmodel, that this machine can carry (resources, hosted) and, with "100% local", local ones only. The player's own pick, when it is a candidate, is bound before rule 3 (rule 0). - None: the chart is greyed with its reason, never hidden ("Asks for a mind with vision; none can."): condition
Blocked, reasonNeedUnmet(§14). An optional need is left out instead. - One candidate (pinned): bound when connected, else a connection step.
- The player's choice: the player's default of that kind is a candidate (and the need does not say
reuse: "ask"): bound, no question. - Another candidate already connected: proposed, preselected, one question.
- Nothing connected: a choice, recommended first by
preferthen by the table's order, then the connection.
Guardrails:
- Reuse is never invisible. The consent step always says the binding, one line per need: "Morning brief will think with your Claude subscription · change" / « Point du matin pensera avec ton abonnement Claude · changer ». "change" is there when the need has more than one candidate.
- A need bound by rule 4 follows the player's default.
- A new version that adds a need, widens
acceptor pins another provider is a widening (§8): the consent again, never a repair or a background update. - Presets: "my install" (the engine's answers are the default binding per kind), "100% local" (
--local-only: local providers only, such aslocalandworld), "customise" (one pick per need:--bind need=provider,…).
What a binding adds
expandChart(chart, bindings) (core/charts/bindings.ts, pure) writes into the chart what the bound provider brings, before the install plan is drawn. The chart on disk never holds it.
- Sign-ins: the provider's sign-ins (
need-claude;need-telegramthenneed-telegram-pair) when it is not connected yet. A part's"need:<id>"requirement becomes the last of them. - Services: one service
need-<id>ofexternal.services, with the provider's hosts, account and the data of the kind (promptsfor a mind,messagesfor a channel), phaserun,required: falsewhen the need is optional. A local provider adds none. - Proofs:
{ "type": "need", "id" }becomes the provider's proof; with no proof (world), it is met. - Agents:
"need:<id>"becomes the engine's model or channel of the bound provider. - Alive proofs and repairs of providers are carried once per world by the chart
alta-os(it needs a mind and a channel):need-<provider>, every hour, with the provider's repairs. Another chart does not repeat them.
The release record keeps the bindings (bindings: { <need id>: <provider id> }, §14); an upgrade, a rollback and the guard read them back.
Before and after
The morning brief, before (a value to pick the mind, three sign-ins, two services, a proof and two repairs to keep the sign-in alive):
json
"values": { "mind": { "kind": "choice", "label": { "en": "Which mind?", "fr": "Quel esprit ?" },
"choices": [{ "id": "claude", "label": { "en": "My Claude subscription", "fr": "Mon abonnement Claude" } },
{ "id": "local", "label": { "en": "A model on this machine", "fr": "Un modèle sur cette machine" } }] } },
"signins": { "claude": { "use": "signin.cli", "args": { "tool": "claude", "flow": "link-code", "hosts": "claude.ai" }, … },
"telegram": { "use": "channel.connect", … }, "telegram-pairing": { "use": "channel.pair-approve", … } },
"external": { "services": [{ "id": "claude", … }, { "id": "telegram", … }] },
"agents": [{ "id": "brief", "model": { "from": "$mind" }, "channel": { "kind": "telegram" },
"permissions": { …, "channels": ["telegram"] } }],
"parts": [{ "id": "agent", "requires": ["signin:claude", "signin:telegram"], … }]After:
json
"needs": { "mind": {}, "channel": { "features": ["push"] } },
"agents": [{ "id": "brief", "model": "need:mind", "channel": "need:channel",
"permissions": { …, "channels": ["need:channel"] } }],
"parts": [{ "id": "agent", "requires": ["need:mind", "need:channel"], … }],
"proofs": { "ready": [{ "type": "need", "id": "channel" }, …] }The chart no longer says Claude or Telegram. A player whose world thinks with a model on the machine installs it with no sign-in; one who chose Claude sees "will think with your Claude subscription · change".
Reserved
Two more kinds of interface are planned after launch and have no field yet: an agent that drives a live interface (AG-UI) and an agent that sends interface parts to draw (A2UI). The names stay free for them; a chart that uses them today is refused (chart.need-kind, chart.unknown-key).
5. Sign-ins
The accounts and devices the chart connects. A sign-in is shown on the consent screen ("this chart asks for"), becomes one step of the install plan, and is proven by a check, never by "I am done".
The sign-ins of a mind or a channel are not written here: they come from the provider's row once a need is bound (section 4a), named need-<provider>. signins stays for the accounts that are the chart's own (a calendar, a repository).
signins: { <id>: Signin }
Signin {
use: "signin.cli" | "setup.other-signin" | "channel.connect" | "channel.pair-approve"
| "connector.connect" | "tablet.pair"
args: { … } the executor's non-secret arguments
proof: Check read-only
why: Text one sentence the consent screen shows
optional?: boolean
when?: When
requires?: [ "signin:<id>" ] another sign-in first (pair after connect)
}use is the closed list of connection executors (SIGNIN_EXECUTORS in core/charts/chart.ts: the executors of core/runs/executors.ts that declare secret and connect an account or a device).
With signin.cli, the arguments are those of the sign-in standard (core/runs/signin.ts):
| Argument | Values |
|---|---|
tool | a tool of the closed table SIGNIN_TOOLS (today: claude, codex, gh, practice) |
flow | link-code, device-code, email-link, secret, tool-browser; default: the tool's first link flow |
hosts | required for the three link flows: a comma list of hosts, each one a host of the tool's own row |
| Flow | What the owner does | Where the secret goes | Works without a screen |
|---|---|---|---|
link-code | opens the link in their own browser, pastes the code in the page | page → the owner's server → the program's stdin | yes |
device-code | types a short code on the provider's page | nothing passes through the game | yes |
email-link | clicks the link they receive | nothing passes through the game | yes |
secret | pastes a key in a password field | page → the owner's server → the program's stdin | yes |
tool-browser | follows the tool's own flow in a Terminal window | stays in the tool | no (terminal, gui) |
Rules:
- The sign-in rules apply unchanged:
signin.tool,signin.flow,signin.hosts,signin.token,signin.proof. - A chart never gives a secret argument (
token,key,code,password): the generated step adds the secret input itself (chart.signin-secret). - The proof of a
signin.clisign-in is{ "type": "signin", "tool": "<same tool>" }(signin.proof). - A chart whose
support.hostedisokmust be installable there: every required sign-in has a flow or an executor that is hosted and needs noterminalorgui(chart.signin-hosted). - A sign-in never widens later: a new scope or a new tool is a new chart version and a new consent.
6. Support and resources
support is the Support of platform, unchanged. resources is the block of resources, written like Kubernetes requests:
json
"resources": { "cpu": 2, "memory": "4Gi", "disk": "2Gi", "gpu": true, "arch": ["arm64"] }cpu: cores (4,"4","500m").memory,disk: quantities ("16Gi","512Mi","20G").gpu:trueonly.arch:arm64,x64. Rulesresources.field,.cpu,.memory,.disk,.gpu,.arch, unchanged.- Where it may be written: on the chart (the minimum to install it at all), on a
Choice, on a part. The need of a part is the largest, key by key, of its own block, its executor's block and the chosen choices' blocks (mergeResources). - Requests only. There are no limits: the game does not isolate processes.
- The server measures the machine read only (
Host.machine: cores, memory, free disk, GPU).missing()compares; a resource that was not measured is never refused. A chart too big for the machine is shown greyed with the reason ("Needs 16 GB of memory (this machine: 8 GB)."), never hidden. - The chart's own block must fit the smallest machine of at least one reference host it supports, or every platform is unreachable (
chart.resources-unreachable, a warning).
7. Requires
requires: {
alta?: Range the Alta System OS version
openclaw?: Range
charts?: [ { id, version: Range, optional?: boolean } ]
skills?: string[] skills the player has earned in the game (quest-pack charts), as in alta.game
}Range: one comparator or several separated by a space, all of which must hold. Comparators: >=, >, <=, <, =, and the shorthands ^1.2.3 (same major) and ~1.2.3 (same minor). No ||, no *, no x (chart.range). Pre-release versions only match a range that names a pre-release of the same MAJOR.MINOR.PATCH.
Resolution (resolve(chart, installed, catalog), pure):
- One version of a chart id is installed at a time. No side by side.
- An installed version that satisfies the range is kept. Otherwise the highest version of the catalog that satisfies it is proposed, as its own install, first.
- A cycle is refused (
chart.requires-cycle). A chart that requires itself is refused. - A range no version satisfies gives the condition
Blocked, reasonRequiresMissing, naming the chart. - Removing a chart another installed chart requires is refused until that one is removed.
8. Capabilities and permissions
Two different things, both shown on the consent screen before any step.
capabilities: what the server must be allowed to do, from CAP_NAMES (ask, setup, install; forge and pay are refused in a chart). The list must equal the set of capabilities of the executors the chart names in parts, signins and repairs: nothing missing, nothing extra (chart.capabilities). The sign-ins a need may generate do not count: setup may be listed for them, it is not required. A machine started without one of them shows the chart as Blocked, reason CapabilityOff.
permissions: what each agent may do, on its entry in agents:
permissions: {
tools: { allow: string[], deny: string[] } deny always wins
exec?: { mode: "deny" | "allowlist", allow?: [ { bin: string } ] }
channels?: string[] channels it may write to: a channel kind, or "need:<id>"
}exec.modedefaults todeny.allowlistis only for originalta; eachbinis a file of the chart's ownagents/<id>/folder, resolved by the engine, withask: offandaskFallback: deny(the approvals floor ofagents/EXEC-APPROVALS-FLOOR.md). A community chart never allowlists a program (chart.exec-alta).- The tools
secrets,gateway,openclaw,sessions_spawn,terminal,computercan never be inallowof a community chart (chart.tools-floor). - A new version that adds a capability, a tool, an exec entry, a channel, a sign-in or a repair kind is a widening (so is a new online service, below, and a new need, an
acceptthat grows or a model pinned to another provider:need <id>,need <id>:<provider>). A widening always needs the consent screen again and can never be applied by a repair or an update in the background (widens(old, new)incore/charts/chart.ts).
Risk level
A chart's risk level is computed, never declared: riskOf(chart, tables, bindings?) in core/charts/risk.ts (pure) returns low, medium or high and every reason, each in English and French. It is deterministic because capabilities equals the capabilities of the executors the chart names and the permissions are closed lists. A when is ignored: what a chart may do with some values, it may do. The consent step shows the level and its reasons before any change (§15); the index of a repository carries the level (risk, written by alta repo index); alta verify prints it. With needs, the catalogue (no binding) reads the worst case among the providers each need may take; the consent step reads the providers bound. A need's sign-ins, its channel and its service count as if the chart had written them.
| Rule | Level | When |
|---|---|---|
risk.exec | high | an agent's permissions.exec.mode is allowlist (origin alta only) |
risk.tools-floor | high | an agent allows a tool of the floor (secrets, gateway, openclaw, sessions_spawn, terminal, computer; origin alta only) |
risk.setup | high | a part whose executor needs the capability setup (it changes the machine's settings); or setup that no sign-in and no repair explains |
risk.repair-grant | high | a repair of a kind the owner may allow to run without being asked (§13: service.restart, model.pull, gateway.recover) |
risk.cloud-model | high | an automation that spends: "model", a cloud locality (declared, or the worst of localityRange), and a run-time service whose data goes beyond prompts |
risk.install | medium | the capability install |
risk.signin | medium | a sign-in that is not optional |
risk.channel | medium | an agent with a channel other than none, permissions.channels, or a channel sign-in |
risk.net-tool | medium | an agent allows a tool that reaches the network where it chooses (browser, web_search, web_fetch, message) |
risk.run-service | medium | a service of external with the phase run |
high if any high rule holds, else medium if any rule holds, else low. A data chart (quest-pack, universe, cosmetic) is always low. A sign-in needs the capability setup too, but alone it is risk.signin (medium), not risk.setup. The words on the consent step: low "Risk: low. It asks for nothing beyond its own files." / « Risque : faible. Il ne demande rien d'autre que ses propres fichiers. »; medium "Risk: medium. Read why below before you agree." / « Risque : moyen. Lis pourquoi ci-dessous avant d'accepter. »; high "Risk: high. It can change your machine or act on its own. Read why below." / « Risque : élevé. Il peut changer ta machine ou agir seul. Lis pourquoi ci-dessous. » The level is never the word "safe": a low chart still runs an agent.
Privacy
privacy says who may see the chart. personal (the default, also when the field is absent) is the owner's own: kept in a private repo, its automations redacted on export, never packaged for a public repository. shareable may be published, so nothing private may be in it. Only agent, team, module, package and skill may say it; Alta's layers and the data charts may not (chart.privacy). alta chart new writes "privacy": "personal" for an agent and a team.
A shareable chart is read whole: every string of chart.json (except source, whose commit and digest are hex) and every text file of its folder (agent files, automations). Each finding is its own rule, and the problem names the file and the field, never the text it found:
| Rule | Refuses |
|---|---|
chart.privacy-secret | a value that looks like a secret (the same test as chart.value-secret) |
chart.privacy-token | a token-shaped string: 32 characters or more of letters, digits, - and _, mixing capitals, small letters and digits |
chart.privacy-home-path | an absolute path in a person's home (/Users/<name>, /home/<name>, C:\Users\<name>); ~/… and /Users/Shared are fine |
chart.privacy-email | an e-mail address; the example domains (example.com, .org, .net, and .invalid, .example, .test) are fine |
chart.privacy-keyword | a word of the owner's private keyword list |
The private keyword list is a local file, one extended regular expression per line (case ignored, # starts a comment): $ALTA_PRIVACY_KEYWORDS, else ~/.config/alta/privacy-keywords.txt. alta lint reads it and passes the expressions to checkChart (env.privacyKeywords); core/ reads no disk. No file: no keyword rule. The engine's commit and push guards read the same file for a custom agent repo whose chart is shareable, export its automations as they are, and let its hosted repo be public; a personal one stays private and redacted.
alta package <dir> --public (an archive for a public repository) refuses a personal chart, exit 1, and says to set "privacy": "shareable".
External services and locality
Two top-level keys say what a chart needs outside the machine: locality, one word a person can filter on, and external, the list of online services behind it. They are separate from requires (versions and charts), support.needs (a terminal, a screen) and resources (CPU, memory).
locality?: "local" | "local-first" | "cloud"
external?: {
services: [ { at most 24
id: ^[a-z][a-z0-9-]{1,31}$ unique in the chart
name: string, 1 to 60 characters the brand name, not translated
purpose: Text why the chart talks to it, one sentence, en and fr
homepage?: https URL, no credentials
hosts: string[], 1 to 16 lower-case host names; one leading "*." allowed;
no IP, no port, no path; https is implied
phase: ("install" | "run")[] not empty
required?: boolean (default true)
account?: "none" | "free" | "paid" default "none": does the owner need an account there
signin?: "<sign-in id>" the chart's own sign-in that connects this account
data?: DataKind[] what leaves the machine at run time
when?: When only when a value is one of a list
} ]
}
DataKind (closed): "none" | "prompts" | "files" | "messages" | "contacts" | "calendar" | "audio" | "images"
| "location" | "identifiers" | "usage"The three levels describe run time. Installing may still download something: that is a service with phase: ["install"].
locality | Promise | In terms of external |
|---|---|---|
local | once installed, it works with the network off, and it never needs the network | no service whose phase contains run |
local-first | everything it must do works with the network off; some extras use the network | every run service has required: false, and there is at least one (or an agent may use a network tool) |
cloud | it does not work without the services listed | at least one run service with required: true: the list is the list of required services |
- Absent
locality: the chart is "not declared". It is shown that way and never matches a locality filter. It is an error on a community or shareable chart, a warning otherwise (chart.locality-required). - Data charts (
quest-pack,universe,cosmetic) are local by construction and say neither key (chart.locality). - Secrets stay out of the chart:
externalnames an account, never a key. A credential reaches the machine through a sign-in (signinlinks the service to it) or through the tool's own login. - A service with a
whencounts only when its value holds. The declaredlocalityholds for the chart's default values; a value nobody has chosen yet counts as "could be any choice". The level of one release, from the values its owner chose, islocalityOf(chart, values);localityRange(chart)gives the best and the worst level over every choice, so a chart whose mind can be a local model or Claude can show "can run 100% local". - Needs.
external.serviceslists only the chart's fixed services. The service of a need is generated from the provider bound (section 4a), and the level is computed: the declaredlocalitycovers the fixed services; with the bindings,localityOf(chart, { "need:<id>": provider })adds each bound provider (a remote one:cloud, orlocal-firstwhen the need is optional). Before any binding, the catalogue lists the worst case among the providers each need may take, and the best case says "can run 100% local" when every need has a local candidate and no fixed service is required at run time. A need's network use is covered by its generated service: lint never asks for it.
What lint can prove: the floor
Lint cannot see everything: a skill's text may tell an agent to call any web page. It computes a floor from what the chart names in the closed lists (localityFloor, core/charts/external.ts), refuses a chart that says it is more local than the floor (chart.locality-floor, which lists the reasons), and asks every network use it can see to be covered by a service with the same phase and hosts (external.undeclared, external.signin).
| What the chart names | Where the truth is | Effect on the floor | Must be covered by a service |
|---|---|---|---|
| a part or a repair whose executor reaches the network | net and hosts of the executor (core/runs/executors.ts), refined by its arguments (NET_BY_ARG in core/charts/external.ts: which module, which backup place, which channel) | run: cloud for a part, local-first for a repair; install: none | yes, same phase, every host |
| a sign-in whose tool or executor has hosts | the sign-in table (core/runs/signin.ts), the executor | cloud if required, local-first if optional | yes, phase run |
| an agent's model, or a value that picks it, whose provider is not local | LOCAL_PROVIDERS (ollama) and MODEL_WORDS (claude, codex, local) | cloud; a fallback model: local-first | yes, phase run |
| a need, all of whose candidates are remote | PROVIDERS (section 4a) | cloud; optional: local-first | no: its service is generated |
an agent's channel.kind other than none | CHANNEL_HOSTS | cloud | yes, phase run |
a tool of permissions.tools.allow that reaches the network | NET_TOOLS: browser, web_search, web_fetch, message | at least local-first | no: the agent chooses the hosts, so the chart cannot be local |
package.type: "openclaw-skill" | none | yes, phase install |
A model named by an engine decision ({ "decision": … }) is not known to lint: the author declares it. A use whose hosts the code does not know is covered by any service of the same phase. A skill or an automation run by an agent of another chart (the main agent of alta-os) thinks with that agent's mind: its network use belongs to that chart, and a chart's locality covers what it names itself. A chart with a mind need runs automation.run (a rerun) with that mind: the executor's own network use is the need's.
What is checked, and what is not
| Where | What |
|---|---|
writing (alta lint) and admission (the server runs the same checkChart) | the rules below, against what the chart names |
| a release on a machine | localityOf(chart, values), from the owner's values and the bindings of its needs |
| run time | nothing enforces it. OpenClaw's own sandbox and tool policy are the boundary. locality is a declaration checked against what the chart names, not a firewall. An alive proof may not use the network (chart.alive-cost), so a change in what a chart reaches at run time is not observed. |
Widening
A new service, a new host on a service, a new kind of data on a service, a service that goes from optional to required, and a locality that moves towards cloud are widenings: the consent screen again, never applied by a repair or a background update.
Versioning
These keys are additive in alta.chart/0.1: a chart without them stays valid. A reader refuses keys it does not know (chart.unknown-key), so a reader accepts charts written for its own version or an older one, and an author who uses a newer field sets requires.alta to the first version that reads it.
Example
A fixed service the chart talks to whatever the player binds (here a weather service), next to its needs:
json
"locality": "cloud",
"needs": { "mind": {} },
"external": {
"services": [
{ "id": "weather", "name": "Open weather", "purpose": { "en": "Reads the forecast for your town.", "fr": "Lit la météo de ta ville." },
"hosts": ["api.weather.example.org"], "phase": ["run"], "account": "none", "data": ["location"] }
]
}The mind's service (Claude, ChatGPT, or none for a model on the machine) is not written: it comes from the binding.
9. Agents, skills, automations, services, hooks
agents: [ {
id, name: Text, emoji?, role?: AgentRole, domain?
files: string[] under agents/<id>/: text given to the agent
model: "need:<id>" | { from: "$<value>" } | { decision: string } | { id: "provider/model" }, fallbacks?: string[]
channel?: "need:<id>" | { kind: "telegram" | "whatsapp" | "none", session?: string }
permissions: Permissions
wake?: string[] keys of `automations`
watch?: { function, controller, mother, watches: string[] } origin alta: the five-function wiring
instance?: string[] paths that are the owner's data, never shipped
when?: When
} ]
skills: [ { slug, path: "skills/<slug>" } | { ref: "@scope/name", version, sha256 } ]
automations: [ {
key: ^[a-z0-9][a-z0-9._-]{0,63}$, title: Text, agent: <agent id> | "main"
schedule: { cron: string, tz: "owner" | IANA } | { daily: "HH:MM" | "$<value>" } | { every: Duration }
| { trigger: "automations/<key>.trigger.js" }
message: "automations/<key>.message.md"
spends: "none" | "model" "model": a run may cost a model call
when?: When
} ]
services: [ {
id: ^[a-z][a-z0-9-]{1,31}$
label: PerOS<string> the launchd label or the systemd unit
port?: number on 127.0.0.1
health?: Check default: service { id }
} ]
uses?: [ "service:<id>" ] a service another chart owns
hooks: { <id>: { kind: "value" | "section" | "record" | "addendum" | "extend", contract: 1, doc: string,
args?, pattern?, default?, target?, field?, maxLines?, timeoutS? } }Rules:
model: "need:<id>"names a mind need,channel: "need:<id>"a channel need (section 4a): the agent never names its provider. The object forms are the pinned forms; they stay valid. For a core agent of originalta, the engine maps a mind need to the agent's own decision<agent id>-modeland a channel need to its channel answer.- Agent text files may hold
{{name}}marks from the closed list of render names (owner_slug,owner_display,language,timezone,home,agents,engine,os_repo,model_primary,template_ref,telegram_group,telegram_topic). The engine replaces them when it renders the workspace. They are plain replacement in text files, never inchart.json, never with logic (chart.render-name). - An automation is always created off. Only a part that runs
automation.enableturns it on, with a plan card (chart.automation-enabled). - A
triggerfile is code OpenClaw runs: only for originalta(chart.trigger-alta). - One owner per service. A chart that lists a service owns it. Two installed charts may not own the same
id, the same label or the same port; a chart that only needs it writesuses(service.owner). The registry is~/.local/state/alta/services/<id>.json({ id, owner, label, port, since }). A part whose executor would start a service another owner holds answersBlocked, reasonServiceOwned, naming the owner. Only the owner chart may declare a repair that restarts it. hooksare the points where the owner plugs their own commands or text (the former[hooks.*]and[params]hook points). A chart declares them; only the owner fills them, inoverlays/<chart id>/hooks.jsonof their own core repository ({ schema: 1, tool, contract_checked: { point: n }, hooks: { point: { command } } }; a core agent's fillers areagents/<id>/hooks.json, withagentin place oftool). The values the owner chooses for a chart'svaluessit next to it, inoverlays/<chart id>/values.json({ "<value id>": "..." }). A filler never removes chart text, never re-allows a denied tool (chart.hook).
10. Package
Where the chart's files come from when they are not in the chart folder.
package:
| { type: "chart" } everything is in the folder (default)
| { type: "alta-module", scripts: PerOS<{ install, check, checkArgs?, selftest? }> }
| { type: "openclaw-skill", slug, version, sha256 }
| { type: "data" }alta-moduleis how Alta's own modules keep their install and check scripts (scripts/install.sh,scripts/check.sh). It is only accepted whenoriginisaltaand the chart lives in the Alta System OS checkout the engine was pinned to (chart.scripts-alta). The scripts keep the engine's contract: install is idempotent and archives instead of deleting; check is read only and offline.- A community chart never ships a script that is run. It composes executors over its data (agent files, skills, automations). This is stricter than the store format it replaces, on purpose.
- A data chart has
{ "type": "data" }.
11. Parts
A part is one unit of work. Every part has the same three modes; this is the contract the engine's six parts already have (engine/STEPS.md), now for every chart.
| Mode | Does | Writes |
|---|---|---|
plan | reads the live state, returns the plan card: what apply would do, what it writes, how it is undone | nothing |
apply | does it, after the owner's yes on that card | yes |
check | runs the part's proofs; a difference after a successful apply is drift | nothing |
parts: [ {
id: ^[a-z][a-z0-9-]{0,31}$
title?: Text
do: <executor id> closed list, core/runs/executors.ts
args?: { <name>: literal | "$<value>" }
requires?: [ "<part id>" | "signin:<id>" | "need:<id>" ]
when?: When
resources?: Resources
undo?: "auto" | "command" | "archive" | "none"
proof: Check[] what `check` reads; role installed
} ]Rules:
dois in the closed list and runs on every system ofsupport.platforms(chart.part-executor,chart.part-os); in a hosted world the executor must be hosted ifsupport.hostedisok.argspassparamProblemsfor that executor. A secret argument is never written (chart.part-secret).requiresnames parts, sign-ins and needs of this chart; the graph has no cycle (chart.part-cycle). A requirement on a sign-in or a part whosewhendoes not hold is satisfied."need:<id>"waits for the need's connection: the last sign-in its provider generates, or nothing when the provider needs none.- A part whose executor writes has at least one proof (
chart.part-proof). The run alone never proves it. undomay not promise more than the executor's ownundo.archivemoves what the part created into~/.local/share/archive/<date>/<chart id>/; nothing is ever deleted (chart.part-undo).- A part of a data chart may only run
item.data. - Order:
requiresfirst, then the order of the list. One apply at a time on a machine (the engine's lock): a second one answersbusy.
Jobs
An executor whose work goes on after its run has answered declares job: true in the executor table (with progress: true). The contract:
- The run's result names the job by a random id. Never a path, a pid or an argument.
- States:
running,done,failed,unknown. - The state is kept on disk in
~/.local/state/alta/jobs/<id>.json:{ id, executor, chart?, part?, state, startedAt, endedAt?, error? }. Never an argument, never a value. - A job the server finds still
runningafter a restart, with no process to follow, becomesunknown: the part showsUnknownand its proof decides. It is never reported as done. - A late failure sets the part to
Failedwith the program's last FAIL line. A part is green only by its proof.
12. Proofs
proofs: {
installed?: Check[]
ready: Check[]
alive?: [ { id, check: Check, every?: Duration, grace?: number, when?: When, repair?: [ "<repair id>" ] } ]
}| Role | Question | When it is read | What a failure means |
|---|---|---|---|
installed | are the files and programs there? | after each apply, and by check | the install is not finished |
ready | does it work once, end to end? | at the end of the install | the install is not finished |
alive | does it still work? | by the guard loop, on a period | after grace failures in a row: Drifted |
Rules:
- Every check is a check of the closed list (
server/checks/index.mjs), read only, and returns no secret, e-mail, account or model name. readyis required and not empty for the kindsagent,team,module(chart.proof-ready).everyis aDuration("5m","1h","26h"): at least5m, default15m.gracedefaults to 2 (chart.alive-every).- An
alivecheck costs nothing: no model call, no network beyond127.0.0.1and the tools' own status commands (chart.alive-cost; the check table marks each typecheap). - A proof may name the repairs that can be tried for it (section 13). A proof without one asks the owner.
{ "type": "need", "id": "<need id>" }(optionalchart: a need of another chart) is the proof of the provider bound to that need (section 4a):signin { tool: claude }for Claude,channel { id: telegram, state: paired }for Telegram,model { mind: local }for a local model; a provider with no proof (world) meets it. A chart need not write analiveproof for its providers:alta-oscarries them once per world.
13. Repairs and standing grants
A chart may say how some failures can be fixed. The owner may allow some of those fixes to run without being asked each time. The default is always to ask.
repairs: [ {
id: ^[a-z][a-z0-9-]{0,31}$
kind: <repair kind> closed list below
args?: { … } literals only; no value reference
title?: Text
suggest?: boolean the author suggests allowing it; the box stays unticked
} ]The repairs of a need's provider (signing in again to Claude, reconnecting Telegram) are not written in a chart: they come from the provider's row (section 4a) and are carried once per world by the chart alta-os, on its alive proofs need-<provider>. Like every signin.again and channel.pair, they are always asked.
Repair kinds (closed, in code: REPAIR_KINDS in core/charts/repairs.ts)
| Kind | Does | Executor | May be granted |
|---|---|---|---|
service.restart | restarts a service this chart owns (launchd kickstart, systemctl --user restart) | service.restart { id } | yes |
model.pull | downloads again a local model this chart declared, when it is missing or damaged | model.pull { model } | yes; needs the free disk of the chart's resources |
signin.refresh | asks the tool to renew its session with what it already holds; no secret typed, same account, same scopes | signin.refresh { tool } | not yet: always asked |
gateway.recover | the dead-lock recovery of the Gateway (pulse.py gateway-recover, with all its checks) | gateway.recover | yes; chart alta-os only |
automation.rerun | runs once an automation of this chart that missed its time | automation.run { key } | never: always asked |
channel.reconnect | reconnects a channel with the account already there; no new device, no new sender | channel.reconnect { channel } | not yet: always asked |
part.reapply | applies one part again when its check says drift | the part's executor | never: always a plan card |
signin.again | signs in again (a code or a key must be typed) | the sign-in's executor | never |
channel.pair | pairs a new device or approves a new sender | channel.pair-approve | never |
What can never run under a grant, whatever a chart says (executorTableProblems enforces it on the executor's repair: "auto" flag):
- anything that needs a secret typed, a code, a password or
sudo; - anything that widens: a new capability, tool, exec entry, channel, scope, device or sender;
- anything that removes, archives or disables;
- anything that pays (
pay) or sends the owner's data somewhere new; - installing, updating or downgrading a chart, or changing a value;
- touching a service, an automation or a model another chart owns.
Chart rules: repair.kind (unknown kind), repair.target (the service, model, automation, tool or channel is not declared by this chart), repair.owner (restart of a service the chart only uses), repair.args (a value reference or a secret), repair.proof (an alive proof names an unknown repair).
Grants (alta.grants/0.1)
The standing yes. One grant allows one repair id of one chart.
File: ~/.config/alta/grants.json, mode 600, written only by the server after the owner's click, atomically.
json
{
"schema": "alta.grants/0.1",
"paused": false,
"grants": [
{
"id": "g_4k2p9x",
"chart": "alta-os",
"repair": "restart-ollama",
"kind": "service.restart",
"digest": "sha256 of the repair declaration and of its target's declaration",
"grantedAt": "2026-12-06T09:12:00Z",
"expiresAt": null
}
]
}A grant never expires: expiresAt is always null (any other value fails the file's check). A file that fails its check (checkGrants) is never used: every repair is asked, and the server refuses to write over it (409) until the owner repairs or removes it.
Rules of the grant:
- Explicit. Each grant is one unticked box the owner ticks, on the consent screen at install ("Repairs I allow":
POST /api/charts/templatelistsrepairs,POST /api/charts/installtakesgrants: [<repair id>]), or later withalta repairs grant. Every box is unticked, Alta's own charts included. A chart cannot tick it,suggestonly adds the words "suggested by the author". There is no "allow all". - Scoped. Chart id, repair id, kind and the
digestof the declaration. A new chart version whose declaration of that repair or of its target changed makes the grant void: the box is unticked again and the owner is told. - Visible. Every grant is listed by
alta repairs list(andGET /api/repairs) with the date it was given, and the Guardian reports them (guardian-act repairs). The game has no panel for them yet. - Revocable.
alta repairs revoke <chart> <repair>.paused: truestops every automatic repair at once (alta repairs pause,alta repairs resume). - Logged. Every use and every refusal is one line of the Guardian's ledger (
~/.local/share/lifecycle/guardian/actions.jsonl):{ ts, ts_s, verb: "repair", marker, at, chart, repair, kind, proof, attempt, result, ms, grant },resultone ofran,failed,fixed,asked(with areason),gave-up,paused. An ask is written once per incident. No value, no argument beyond the declared ones, no output of the program. - Machine switch. The server capability
repair(--allow-repair) must be on. Without it the guard loop only reads, and every repair is asked. The job below passes it only when the owner wroteallow_repair = truein~/.config/alta/system.toml; the installer never writes it. - A removed chart loses its grants. A grant never moves to another machine.
The decision (decideRepair, pure, core/charts/repairs.ts)
An incident opens when an alive proof has failed grace times in a row, and closes when it passes.
decideRepair(incident, chart, grants, history, state, now) →
| { do: "run", repair } a granted repair, due now
| { do: "wait", until } backoff, settle time, or the machine is busy
| { do: "ask", repairs } nothing granted, or nothing left to try
| { do: "give-up", reason } attempts used up| Rule | Value |
|---|---|
| Order | the proof's repair list, in order; each granted repair is tried before the next |
| Settle | after a run, wait the kind's settle time (30 s; model.pull: until its job ends), then read the proof again |
| Backoff | the three attempts of a repair: at once, 1 minute later, 5 minutes after that |
| Attempts | 3 per repair and per incident, then the next repair, then give-up |
| Daily cap | 6 runs per repair id per 24 h; automation.rerun: 1 |
| Flapping | 3 incidents of the same proof in 24 h: automatic repair of that proof stops until the owner looks |
| Circuit breaker | 10 automatic runs on the machine in 24 h: paused is set, the owner is told |
| Grace | an incident opens after 2 failures in a row |
| Never while | an apply holds the engine's lock (~/.local/state/alta/bootstrap/lock), a job runs (~/.local/state/alta/jobs), or paused: wait 60 s. A run the owner has open in the game is not seen by the separate guard process |
| Success | only the proof passing again; the run's own exit code proves nothing |
| Give up | gave-up in the ledger, reason RepairGaveUp; the owner is asked; no further automatic attempt in that incident. The release's condition is not written yet: the ledger is the record |
Who does what
| Role | What | Where |
|---|---|---|
| The guard loop | reads the alive proofs (each every 15 minutes unless it says every), decides with decideRepair, runs a granted repair's executor with the actor guard, writes the ledger. Deterministic, no model, works when the Gateway is down. Its state: ~/.local/state/alta/guard/state.json | server/charts/guard.mjs; node server/server.mjs --guard-once (one round, one line per proof, then exit), run every 5 minutes by alta-guard from the job ai.altasystem.guard (launchd, or a systemd --user timer) that the map part installs. alta-guard finds the game in system.toml world; without it the round is skipped (one SKIP line in ~/.local/share/lifecycle/guard.log) |
| The Guardian (core agent) | tells the owner what was repaired, asks for what is not granted, warns about flapping, may suggest a grant. It reads with guardian-act repairs --json (the last 24 h of the ledger and the grants). It cannot give a grant, change one, or run a repair. | agents/guardian/ |
| The Operator (core agent) | does the repairs the owner agreed to one by one (its runbooks) | agents/operator/ |
| The Reviewer (core agent) | reads the ledger every day, as it already does | agents/reviewer/ |
| The owner | gives, sees and takes back every grant | alta repairs, or a renderer (the game) |
Routes
All behind the server's token and exact Host and Origin checks. None needs a capability: a grant does nothing until --allow-repair is on.
| Route | Does |
|---|---|
GET /api/repairs | { capOn, paused, broken?, charts: [{ chart, repairs: [{ repair, kind, title, suggested, grantable, granted, void?, grantedAt? }] }], ledger } |
POST /api/repairs/grant { chart, repair } | one grant; 404 for a chart not installed or a repair it does not declare, 409 for a kind that cannot be granted or a file that fails its check |
POST /api/repairs/revoke { chart, repair } | takes it back |
POST /api/repairs/pause, POST /api/repairs/resume | sets paused |
14. Conditions
One vocabulary for a part, a sign-in, a proof and a release.
Condition { state, reason?: Reason, since: ISO date, detail?: string }| State | Meaning | Shown as |
|---|---|---|
Unknown | not read yet, or a job lost at restart | grey |
Unsupported | this machine is not listed, or too small | greyed with the reason |
Blocked | something else must come first | locked, names what |
NeedsInput | a value, a sign-in or an answer is missing | asks |
Planned | a plan exists and waits for the owner's yes | plan card |
Running | an apply or a job runs | progress line, never a failure sentence |
Ready | its proofs pass | green |
Drifted | it was Ready and a proof fails now | amber, what to repair |
Repairing | a granted repair runs or waits for its proof | amber, "fixing" |
Failed | the last apply or job failed | red, the FAIL line |
Reasons (closed, each with English and French words in content/copy, rule condition.reason): OsNotListed, ArchNotListed, HostedNo, NeedsMissing, ResourcesShort, RequiresMissing, PartFirst, SigninFirst, CapabilityOff, ServiceOwned, ValueMissing, SigninMissing, AnswerMissing, Busy, JobLost, ProofFails, RepairGaveUp, RepairFlapping, RepairsPaused, ApplyFailed, JobFailed, EngineSilent, Draft, NeedUnmet (Blocked: no provider fits a need of the chart on this machine or with the player's preset; the reason sentence of bind says which).
Mapping (toCondition, core/charts/conditions.ts):
| Source | Value | Condition |
|---|---|---|
alta.step/1 status | ok (check) | Ready |
ok (apply) | Unknown until the proof is read | |
diff | Planned | |
drift | Drifted / ProofFails | |
need | NeedsInput / AnswerMissing | |
blocked | Blocked / PartFirst | |
unsupported | Unsupported | |
fail | Failed / ApplyFailed | |
busy | Blocked / Busy | |
engine, usage | Failed / EngineSilent | |
| run state | planned / running / done / failed | Planned / Running / Unknown / Failed |
| job state | running / done / failed / unknown | Running / Unknown / Failed (JobFailed) / Unknown (JobLost) |
| check result | pass / fail / unverifiable | Ready / Drifted or the previous state / Unknown |
The release's condition is the worst of its parts and proofs, in the order Failed, Drifted, Repairing, Blocked, NeedsInput, Planned, Running, Unknown, Ready. The release record is ~/.local/state/alta/charts/<id>/release.json: { chart, version, revision, digest, values, valuesDigest, installedAt, conditions, reason, replaced?, from?, kept, pinned?, pinReason?, bindings? }, mode 600, never a secret. bindings maps each need to the provider bound ({ "mind": "claude" }); the providers of every record are the world's connected providers. It is the current revision; revision starts at 1 and grows with each upgrade or rollback; the previous record goes to the archive.
Release history
Each revision also has its own record, ~/.local/state/alta/charts/<id>/releases/<revision>.json (mode 600, never rewritten): { chart, revision, version, digest, valuesDigest, values, date, reason, from?, kept }. reason is install, upgrade or rollback (from: the revision gone back to). valuesDigest is the sha256 of the values as canonical JSON (sorted keys). A release installed before the history existed is read from its release.json and the archived records (migrated by reading, never rewritten). Uninstalling moves the history to the archive with the release; a new install starts again at revision 1. alta status --history <chart> prints it.
kept is a copy of the chart folder the revision was installed from: ~/.local/share/alta/charts/.versions/<id>/<version>/, written at install and upgrade, checked against digest. A copy of the same version with other files goes to the archive first. A rollback installs only from a kept copy whose digest still matches.
A new revision is refused, before anything is written, when:
| Refusal | When | What to do |
|---|---|---|
Pinned | the release is pinned (alta chart pin <chart> --reason …): no upgrade and no rollback, even asked, with its reason | alta chart unpin <chart> |
Downgrade | the chart's version is lower than the installed one, outside a rollback | alta rollback <chart> [revision] |
FilesEdited | a text file an agent of the release got at install is not what was written (changed or missing in ~/.openclaw/workspace-<agent>/), compared with its kept copy and the release's render values | keep a copy of the changes, then --replace-edited: the workspace goes to the archive, the new files are written |
The same version again is allowed (new values, or the files written again). When the agent files differ between the installed revision and the new one, that agent's agent.create part runs again even though its proof holds.
15. The install plan, and how a renderer shows it
Installing a chart is a plan of steps, in this order, each with the owner's yes (alta install, or a renderer such as the game, a dashboard, a phone):
| In the chart | In the install plan |
|---|---|
support and resources against Host | the chart is installable, greyed with its reason, or refused |
consent: capabilities, each agent's permissions, signins, services, repairs | the owner's yes to "what this asks for", with the "Repairs I allow" boxes |
| each need, bound (section 4a) | on the consent step, one line per need: "Morning brief will think with your Claude subscription · change", "Morning brief will write to you on Telegram"; an unmet need greys the chart with its reason |
each missing entry of requires.charts | that chart is installed first |
| each value | asked once, at install (--values, or the renderer's form), kept in the release |
each sign-in whose when holds | runs use, with its why; its secret or one-time code is asked at that step, never as a value; proven by proof |
| each provider bound and not connected yet | its sign-ins, generated from its row (signin-need-claude, signin-need-telegram, signin-need-telegram-pair), as above |
| each part | its plan card, then "Yes" runs apply; the part's proof says it is done; requires gives the order and Blocked |
| the risk level, computed (§8, "Risk level") | on the consent step, first: one line for the level, then one line per reason |
locality, and each service of external whose when holds | on the consent step: one line for the level, then one row per service (name, why, account or not, what leaves the machine, "only to install") |
proofs.ready | the last step |
proofs.alive | read by the guard loop; when the release is Drifted: what is wrong, the repairs to try (each a plan card), and the boxes to allow them next time |
Uninstall runs each part's undo in reverse order; a part with undo: "none" says so before the yes. An upgrade shows the difference between the two plans and, when widens() is true, the consent again. A rollback is the install plan of the revision gone back to, from its kept copy and with its values, with its own consent step; the refusals of §14 apply to an upgrade and a rollback alike.
How the game renders a chart
The game is one renderer among others; a chart knows nothing of it. core/charts/quests.ts (chartToQuests, a pure function of the chart, the machine and the release) returns an alta.quests/0.3 fragment that the game plays like any other, and GAME_RENDERING lists the words:
| Chart | Game |
|---|---|
| install | the quest <branch>.<chart id>.install |
| uninstall | the quest <branch>.<chart id>.remove |
| rollback | the quest <branch>.<chart id>.rollback: its consent, then the parts and proofs of the revision gone back to |
| part, sign-in | a quest step (kind action) |
| need | a line of the consent step; its provider's sign-ins are quest steps |
| proof | an achievement: a check step that turns green |
requires | the talent tree: what unlocks what |
| capability | a skill |
| risk level (computed) | a line and its reasons on the consent step |
locality, external | a line and a list on the consent step |
The consent step says the level in one line: local "Runs on your machine only." / « Tourne seulement sur ta machine. »; local-first "Works with the network off. Some extras use online services." / « Marche sans réseau. Quelques extras passent par des services en ligne. »; cloud "Needs online services to work." / « A besoin de services en ligne pour marcher. »; absent "Its author did not say whether it uses the network." / « Son auteur n'a pas dit s'il utilise le réseau. » Then one row per service that applies to the chosen values: its name, its purpose, "account needed" or not, what leaves the machine, and "only to install" when its phase is install alone. alta template prints the same block, with a needs: section; --bind mind=local,channel=world sets the player's picks, --local-only the preset "100% local". alta install takes the same two options; the server's routes /api/charts/template and /api/charts/install take bindings and localOnly.
- An author may replace any generated text with a fragment in
quests/that uses the same step ids. They cannot remove a step, a plan card, a proof or the consent step (chart.quest-override). - Narrative quest packs (story, dialogue, scenes) stay display content: they reference a chart's proofs, they never repeat its actions.
16. Catalog and right of use
alta.catalog/0.2: { schema, generatedAt, charts: [ { id, version, kind, price, amount?, currency?, sha256, path, default?, origin?, source? } ], signature? }. path is the chart folder; sha256 is the digest of the chart tree (file paths and contents, sorted). A remote catalog is signed; a community chart is never default. The folder modules/ of Alta System OS is read as a local catalog. The kept copies of installed versions (§14, under ~/.local/share/alta/charts/.versions/) are not a catalog: only a rollback reads them.
alta chart inspect <id | folder> reads a chart without installing it, from a folder, the folders this machine installs from, the charts alta pull kept, or a cached index (alta.index/0.1): its fields, its computed risk level and reasons (§8), its files and their sha256 (--files), one text file (--file), and its versions (--versions: the index's, the kept copies, the installed revision). Read only, no network.
A repository index (alta.index/0.1) lists each version's needs (needs: [{ id, kind, accept?, model?, features?, optional? }]) and its locality at the worst case, with localityRange; a store shows "can run 100% local" when the range's best is local or local-first, and may filter on it.
alta.license/0.2: { schema, chart, version, holder, issuedAt, signature }. Same checks as before, the field item is now chart.
17. What a chart is not
These stay their own standards. A chart may carry or name them, it does not replace them.
| Standard | Why it is not a chart |
|---|---|
alta.game, alta.quests | what the player does in the game. A quest-pack chart carries a fragment; chartToQuests produces one. |
alta.onboarding, alta.cinematics | the first session and its scenes: content of the game or of a universe. |
alta.universe, alta.art | how the world looks and what things are called. A universe chart carries a pack. |
| missions | a message sent to an agent, not something installed. |
platform, resources, the sign-in table, executors, checks | the closed lists a chart is written with. |
alta.step/1 | the answer of an engine command; mapped to conditions in section 14. |
alta.install/0.1 | the base installer. It installs what reads charts, so it cannot be one. |
alta.control/0.1 | the cloud control plane. |
system.toml, alta.lock, lifecycle.json, the owner MANIFEST | the owner's machine and repository settings; not packages. |
18. Validator
checkChart(chart, env) returns problems; empty means valid. env: { executors, checks, signinTools, repairKinds, questUids, game?, installed?, files?, privacyKeywords? } (files: the paths of the chart folder, given by the caller; core/ reads no disk). The same function runs in alta lint (writing) and in the server before an install (admission): a chart the server refuses is one alta lint refuses.
A wrong schema returns only chart.schema. An unknown key is a problem (chart.unknown-key), with the keys the object accepts.
Rules
| Id | Says |
|---|---|
chart.schema | schema must be alta.chart/0.1 |
chart.unknown-key | a key the object does not have |
chart.id | malformed or reserved id, or different from the folder name |
chart.version | not a semver |
chart.kind | unknown kind, or a section the kind must or must not have |
chart.status | not ready or draft |
chart.texts | title or summary without English and French |
chart.author, chart.license, chart.price | missing, or an amount in the chart |
chart.origin | not alta or community |
chart.community-source | a community chart without a pinned source |
chart.community-verified | a community chart that says it is verified |
chart.source | not https, credentials in the address, short commit, bad digest |
chart.privacy | not personal or shareable, or on a kind that may not say it |
chart.privacy-secret, chart.privacy-token, chart.privacy-home-path, chart.privacy-email, chart.privacy-keyword | a shareable chart holds a secret, a token, a home path, an e-mail address or a private keyword (section 8) |
chart.locality | not local, local-first or cloud, or said by a data chart |
chart.locality-required | no locality: an error on a community or shareable chart, a warning otherwise |
chart.locality-floor | the declared level is more local than what the chart names allows; the reasons are listed |
chart.locality-local | local with a service in phase run |
chart.locality-first | local-first with a required run service, or with nothing that uses the network at run time |
chart.locality-cloud | (warning) cloud with no required run service |
external.service | a malformed service (id, name, purpose in English and French, phase, account), an id used twice, more than 24 |
external.hosts | a host that is not a lower-case name, or has a port, a path, an IP, a second wildcard, a wildcard on a public suffix |
external.homepage | not https, or credentials in the address |
external.signin | signin names no sign-in of the chart, or a sign-in reaches hosts no service covers |
external.undeclared | a part, a repair, a model, a channel or a package that reaches the network has no service covering its phase and hosts |
external.data | a run service without data, none next to another kind, an unknown kind |
external.when | when names an unknown value or choice |
chart.publisher, chart.homepage, chart.keywords, chart.categories, chart.icon, chart.changes | the marketplace metadata of section 3 is malformed |
chart.license-spdx | (warning) license is not an SPDX identifier or expression |
chart.path | a path that is absolute, has .., or leaves the folder |
chart.size | a file or the chart is too large |
chart.no-template | {{, ${ or <% in chart.json |
chart.render-name | a {{name}} in an agent file that is not a render name |
chart.need-kind | a need that is not an object or true, an id whose kind is not known and no kind, a kind that contradicts the id (a warning when it repeats it), a "need:<id>" of the wrong kind |
chart.need-accept | accept or prefer names a provider that is not of the need's kind |
chart.need-feature | a feature that is not in the closed list of the need's kind |
chart.need-pin | model on a channel, a model of a provider the game does not know, or model with accept |
chart.need-unreachable | no provider has all the need asks for; (warning) no reference machine the chart supports can carry one |
chart.need-instead | (warning) a value that picks a provider: declare a need |
chart.need-default | (warning) reuse: "owner" or optional: false, the defaults |
chart.value-kind | unknown value kind, or secret |
chart.value-secret | a default that looks like a secret |
chart.value-from | from names an unknown key |
chart.value-default | a default that does not fit its own kind, pattern or bounds |
chart.ref-unknown | $name is not a value, or need:<id> is not a need |
chart.ref-kind | the value's kind does not fit the argument |
chart.when | when names an unknown value or need, or a choice or provider it does not have |
chart.range | a version range that is not in the grammar |
chart.requires-cycle | charts that require each other |
chart.capabilities | the list differs from what the named executors need, or holds forge or pay |
chart.tools-floor | a community agent allowed a tool of the floor list |
chart.exec-alta | an exec allowlist outside origin alta, or a bin outside the agent's folder |
chart.signin-use | use is not a connection executor |
chart.signin-secret | a secret argument written in a sign-in |
chart.signin-hosted | a required sign-in cannot be done in a hosted world the chart says it supports |
chart.agent | an agent without files, model or permissions; a file that is missing |
chart.automation | bad key, schedule, or an agent that is not in the chart |
chart.automation-enabled | an automation that asks to be created on |
chart.trigger-alta | a trigger file outside origin alta |
service.owner | a service, label or port owned twice; uses of a service nothing owns |
chart.hook | a hook point with an unknown kind or without doc |
chart.scripts-alta | alta-module scripts outside origin alta |
chart.data-only | a data chart with a part other than item.data, or with a capability |
chart.part-id | missing or used twice |
chart.part-executor | do is not in the closed list |
chart.part-os | the executor does not run on a listed system, or is not hosted where the chart says ok |
chart.part-args | arguments the executor refuses |
chart.part-secret | a secret argument written in a part |
chart.part-requires | names an unknown part, sign-in or need |
chart.part-cycle | parts that require each other |
chart.part-proof | a writing part without a proof |
chart.part-undo | promises more than the executor can undo |
chart.proof-ready | ready missing or empty for an agent, a team or a module |
chart.proof-check | a proof that is not a check of the closed list |
chart.alive-every | a period under 5 minutes, or a bad duration |
chart.alive-cost | an alive check of a type that is not cheap |
repair.kind | unknown repair kind |
repair.target | the repair's target is not declared by this chart |
repair.owner | restarting a service the chart does not own |
repair.args | a value reference or a secret in a repair |
repair.proof | an alive proof names an unknown repair |
chart.quest-override | a fragment in quests/ removes or adds a step |
chart.resources-unreachable | (warning) the chart fits no reference machine |
condition.reason | a reason without English and French words |
grants.schema, grants.grant, grants.digest | the grants file: schema, a grant for an unknown chart or repair, a digest that no longer matches |
catalog.*, license.* | as before, on the 0.2 shapes |
The rules support.*, resources.*, signin.*, choice.*, check.* apply inside a chart unchanged.
19. What this standard adds to the closed lists
Added in code with the standard, each documented on its own page, with a fake in tests/fakes:
| List | Addition |
|---|---|
| executors | agent.create { agent }, agent.archive { agent }, service.restart { id }, model.pull { model }, signin.refresh { tool }, channel.reconnect { channel }, gateway.recover |
| executor fields | job?: boolean, repair?: "auto" (may run under a grant; refused with secret, sudo, pay, forge) |
| checks | agent { id }, chart { id, version? }, service { id } (by the registry, next to service { url }), automation { key, ranWithinHours? }, a cheap flag per type |
| capabilities | repair |
| sign-in table | refresh?: { argv } on a tool's row |
| executor fields | net?: "install" | "run", hosts?: string[]: whether and where it reaches the network (section 8) |
| needs | NEED_KINDS (mind, channel), NEED_FEATURES per kind, PROVIDERS (claude, codex, local, telegram, world), in core/charts/needs.ts (section 4a) |
| checks | need { id, chart? }: the proof of the provider bound to a need |
| condition reasons | NeedUnmet |
20. Command line
The words are the ones package managers use (Helm's among them): a chart, its values, a release and its revision, a repository.
alta chart new <dir> [--kind agent|team|module|skill|quest-pack|universe]
alta lint [path…] the same rules as the server (alias: check)
alta package <dir> [--public] the archive, and the tree digest for `source` and the catalog (alias: pack);
--public: for a public repository, refused for a personal chart
alta template <dir> [--values FILE] [--bind NEED=PROVIDER,…] [--local-only] [--host local|hosted-free|hosted-paid] [--renderer game]
alta chart inspect <id|dir> [--files] [--file PATH] [--versions] [--json] read a chart without installing it
alta install <chart> [--values FILE] [--bind NEED=PROVIDER,…] [--local-only] [--yes]
alta upgrade <chart> [--values FILE] [--yes] [--replace-edited]
alta rollback <chart> [<revision>] [--yes] [--replace-edited] back to an earlier revision (default: the one before)
alta chart pin <chart> --reason TEXT | unpin <chart> keep a release at its version
alta uninstall <chart> [--yes]
alta status [<chart>] [--history <chart>] version, revision, condition and pin of the releases; or one's revisions
alta repo list | search [<words>]
alta verify <dir|archive> [--key FILE | --repo NAME] who signed these exact files, and the risk level (offline)
alta attest <dir> --key FILE [--type publish|review] for publishers: sign what you publish
alta repairs list [<chart>] | grant <chart> <repair> | revoke <chart> <repair> | pause | resume | loginstall, upgrade, rollback, uninstall, chart pin and chart unpin go through the machine's server (its capabilities, plan cards and run journal); without --yes the first four print the plan and change nothing. They never read a secret from an argument: the server's token comes from WORLD_TOKEN, and a sign-in that needs a secret or a code stops the command and says where to give it.
21. Examples
A minimal agent chart
morning-brief/chart.json
json
{
"schema": "alta.chart/0.1",
"id": "morning-brief",
"version": "0.3.0",
"kind": "agent",
"title": { "en": "Morning brief", "fr": "Point du matin" },
"summary": { "en": "An agent that writes to you every morning.", "fr": "Un agent qui t'écrit chaque matin." },
"author": "someone",
"license": "MIT",
"price": "free",
"origin": "community",
"source": {
"git": "https://git.example.org/someone/morning-brief",
"commit": "0123456789abcdef0123456789abcdef01234567",
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
},
"locality": "cloud",
"support": { "platforms": [{ "os": "macos" }, { "os": "linux" }], "hosted": "ok" },
"resources": { "cpu": 1, "memory": "2Gi", "disk": "1Gi" },
"requires": { "charts": [{ "id": "alta-os", "version": ">=0.1.0 <1.0.0" }] },
"capabilities": ["ask", "install"],
"needs": { "mind": {}, "channel": { "features": ["push"] } },
"values": {
"hour": {
"kind": "text",
"label": { "en": "At what time?", "fr": "À quelle heure ?" },
"default": "07:30",
"pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
}
},
"agents": [
{
"id": "brief",
"name": { "en": "Brief", "fr": "Brief" },
"files": ["SOUL.md", "IDENTITY.md", "AGENTS.md"],
"model": "need:mind",
"channel": "need:channel",
"permissions": {
"tools": { "allow": ["message", "gbrain__recall"], "deny": ["write", "edit", "exec", "browser"] },
"channels": ["need:channel"]
},
"wake": ["morning-brief"]
}
],
"automations": [
{
"key": "morning-brief",
"title": { "en": "Morning brief", "fr": "Point du matin" },
"agent": "brief",
"schedule": { "daily": "$hour" },
"message": "automations/morning-brief.message.md",
"spends": "model"
}
],
"parts": [
{
"id": "agent",
"do": "agent.create",
"args": { "agent": "brief" },
"requires": ["need:mind", "need:channel"],
"undo": "archive",
"proof": [{ "type": "agent", "id": "brief" }]
},
{
"id": "schedule",
"do": "automation.enable",
"args": { "key": "morning-brief" },
"requires": ["agent"],
"undo": "auto",
"proof": [{ "type": "automation", "key": "morning-brief", "enabled": true }]
}
],
"proofs": {
"installed": [{ "type": "agent", "id": "brief" }],
"ready": [{ "type": "need", "id": "channel" }, { "type": "automation", "key": "morning-brief", "enabled": true }],
"alive": [
{ "id": "ran", "check": { "type": "automation", "key": "morning-brief", "ranWithinHours": 26 }, "every": "1h", "repair": ["rerun"] }
]
},
"repairs": [
{ "id": "rerun", "kind": "automation.rerun", "args": { "key": "morning-brief" } }
]
}What the owner sees: one consent step (one agent that may only send messages and read memory, one repair that will always ask, and two lines: "Morning brief will think with your Claude subscription · change", "Morning brief will write to you on Telegram"), then the sign-ins of the providers not connected yet, two plan cards, a green proof. On a world that already thinks with a local model and has Telegram paired, there is no sign-in step at all. Its locality is cloud because a channel that can write first (push) is Telegram today; its mind can be local.
A module chart (Alta's own, with scripts)
modules/sunrise/chart.json, converted from the engine's former module file:
json
{
"schema": "alta.chart/0.1",
"id": "sunrise",
"version": "0.1.0",
"kind": "module",
"title": { "en": "Sunrise", "fr": "Lever du soleil" },
"summary": {
"en": "Sunrise and sunset for your next wake-up, where you are.",
"fr": "Le lever et le coucher du soleil pour ton prochain réveil, là où tu es."
},
"author": "Alta",
"license": "MIT",
"price": "free",
"origin": "alta",
"support": {
"platforms": [{ "os": "macos" }],
"notes": { "linux": { "en": "Candidate (standard Python), never run there.", "fr": "Candidat (Python standard), jamais lancé là." } }
},
"requires": { "charts": [{ "id": "alta-os", "version": ">=0.1.0" }] },
"capabilities": ["install"],
"values": {
"node": {
"kind": "text",
"label": { "en": "The phone that shares its place", "fr": "Le téléphone qui partage sa position" },
"required": false,
"default": "",
"pattern": "^$|^[0-9A-Za-z_.:-]{1,128}$"
}
},
"package": {
"type": "alta-module",
"scripts": { "macos": { "install": "scripts/install.sh", "check": "scripts/check.sh", "checkArgs": ["--install-only"], "selftest": "tests/selftest.sh" } }
},
"parts": [
{
"id": "install",
"do": "workflow.install",
"args": { "id": "sunrise" },
"undo": "command",
"proof": [{ "type": "module", "id": "sunrise" }]
}
],
"proofs": {
"installed": [{ "type": "bin", "name": "sunrise.py" }],
"ready": [{ "type": "module", "id": "sunrise" }]
}
}A team chart
studio/chart.json (shortened to what differs):
json
{
"schema": "alta.chart/0.1",
"id": "studio",
"version": "0.1.0",
"kind": "team",
"title": { "en": "Studio", "fr": "Studio" },
"summary": { "en": "A writer and an editor who work on your drafts.", "fr": "Un rédacteur et un relecteur pour tes brouillons." },
"author": "Alta", "license": "LicenseRef-Proprietary", "price": "paid", "origin": "alta",
"support": { "platforms": [{ "os": "macos", "arch": ["arm64"] }, { "os": "linux" }], "hosted": "ok" },
"resources": { "cpu": 2, "memory": "4Gi", "disk": "2Gi" },
"requires": { "charts": [{ "id": "alta-os", "version": "^0.1.0" }, { "id": "google", "version": ">=0.2.1", "optional": true }] },
"capabilities": ["install"],
"needs": { "mind": {} },
"values": {
"folder": { "kind": "path", "label": { "en": "Where are your drafts?", "fr": "Où sont tes brouillons ?" } }
},
"agents": [
{
"id": "writer", "name": { "en": "Writer", "fr": "Rédacteur" }, "role": "operator",
"files": ["SOUL.md", "AGENTS.md"], "model": "need:mind",
"permissions": { "tools": { "allow": ["read", "write", "sessions_send"], "deny": ["exec", "browser", "secrets"] } }
},
{
"id": "editor", "name": { "en": "Editor", "fr": "Relecteur" }, "role": "reviewer",
"files": ["SOUL.md", "AGENTS.md"], "model": "need:mind",
"permissions": { "tools": { "allow": ["read", "sessions_send", "message"], "deny": ["write", "exec", "browser", "secrets"] } },
"wake": ["studio-review"]
}
],
"automations": [
{ "key": "studio-review", "title": { "en": "Evening review", "fr": "Relecture du soir" }, "agent": "editor",
"schedule": { "cron": "0 18 * * 1-5", "tz": "owner" }, "message": "automations/studio-review.message.md", "spends": "model" }
],
"parts": [
{ "id": "writer", "do": "agent.create", "args": { "agent": "writer" }, "undo": "archive", "proof": [{ "type": "agent", "id": "writer" }] },
{ "id": "editor", "do": "agent.create", "args": { "agent": "editor" }, "requires": ["writer"], "undo": "archive", "proof": [{ "type": "agent", "id": "editor" }] },
{ "id": "review", "do": "automation.enable", "args": { "key": "studio-review" }, "requires": ["editor"], "undo": "auto",
"proof": [{ "type": "automation", "key": "studio-review", "enabled": true }] }
],
"proofs": {
"ready": [{ "type": "agent", "id": "writer" }, { "type": "agent", "id": "editor" }],
"alive": [{ "id": "reviewed", "check": { "type": "automation", "key": "studio-review", "ranWithinHours": 80 }, "every": "6h" }]
}
}A service owner with repairs (from the chart alta-os)
json
{
"services": [
{ "id": "ollama", "label": { "macos": "ai.altasystem.ollama", "linux": "ollama.service" }, "port": 11434 }
],
"proofs": {
"ready": [{ "type": "part", "id": "memory" }],
"alive": [
{ "id": "ollama-up", "check": { "type": "service", "id": "ollama" }, "every": "5m", "repair": ["restart-ollama"] },
{ "id": "embeddings-model", "check": { "type": "model", "mind": "local" }, "every": "1h", "repair": ["pull-embeddings"] },
{ "id": "gateway", "check": { "type": "service", "id": "gateway" }, "every": "5m", "repair": ["recover-gateway"] }
]
},
"repairs": [
{ "id": "restart-ollama", "kind": "service.restart", "args": { "id": "ollama" }, "suggest": true },
{ "id": "pull-embeddings", "kind": "model.pull", "args": { "model": "qwen3-embedding:0.6b" }, "suggest": true },
{ "id": "recover-gateway", "kind": "gateway.recover", "suggest": true }
]
}