{"id":"automation-results-categorized-changed-ok-failed","text":"Task results in the automation context are categorized as `changed`, `ok`, or `failed`.","truth_value":"IN","source":"entries/2026/05/11/examples-06-automation-context-example_auto_summary.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"async with automation() as ftl:\n    result = await ftl.file(path=\"/tmp/test\", state=\"touch\")\n    if result.changed:\n        print(\"File was created\")\n    elif result.failed:\n        print(f\"Error: {result.error}\")\n    else:\n        print(\"Already exists, no change\")"},"explanation":{"steps":[{"node":"automation-results-categorized-changed-ok-failed","truth_value":"IN","reason":"premise"}]}}