automation-results-categorized-changed-ok-failed

Status: IN

Task results in the automation context are categorized as `changed`, `ok`, or `failed`.

Source: entries/2026/05/11/examples-06-automation-context-example_auto_summary.md

Example

async with automation() as ftl:
    result = await ftl.file(path="/tmp/test", state="touch")
    if result.changed:
        print("File was created")
    elif result.failed:
        print(f"Error: {result.error}")
    else:
        print("Already exists, no change")

JSON