English
Parts
A part is one change on the machine. It names an action from the closed list of executors, never a command of its own.
chart.json: parts
json
[
{
"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
}
]
}
]examples/chart-agent/morning-brief/chart.json#/parts
Plan, apply, check
| What happens | Who decides | |
|---|---|---|
| Plan | The action says what it would write and how it is undone; values are resolved to literals | read only |
| Apply | The action runs, exactly as planned | the owner's yes |
| Check | The part's proof is read on the machine | the machine |
A part is done when its proof passes, not when its program exits.
Order
requires names what must be done first: another part ("agent") or a sign-in ("signin:telegram-pairing"). Parts run in that order; a cycle is refused by alta lint.
Undo
undo says how the part is taken back: "auto" (the action knows its inverse), "archive" (moved to the archive, never deleted), "command" (a command the plan shows), or "none" (the plan says it cannot be undone). alta uninstall runs each undo in reverse order, then archives the release record.
Jobs
Some actions take minutes (pulling a model). They run as a job that survives a page reload; after a restart of the server, a job whose end was not seen is reported as unknown, never as done.