English
Dependencies
requires.charts lists the charts that must be installed first, each with a version range.
chart.json: requires
json
{ "charts": [{ "id": "alta-os", "version": ">=0.1.0 <1.0.0" }] }examples/chart-agent/morning-brief/chart.json#/requires
- Ranges are semver ranges:
>=0.1.0 <1.0.0,^0.5.0. A missing or too old chart stops the install before anything is written;alta installsays which one to install first. - One version at a time. A machine holds one release of a chart.
alta upgrademakes a new revision of it; the previous one is archived. - No cycles.
alta lint --reporefuses a chart that requires itself through others. - Optional requirements (
"optional": true) are offered, never forced.
One owner per service
A service is a long-running program on a port (a local model server, for example). Exactly one chart owns it, declares it in services, and may restart it. Another chart that needs it lists it in uses and may only read its proof. Two programs fighting for one port is how a machine breaks silently: the rule makes the owner explicit.
alta-os chart.json: services
json
[
{
"id": "ollama",
"label": { "macos": "ai.altasystem.ollama" },
"port": 11434
}
]