Skip to content

fix: list a rescue when: on failed_task as unknown - #465

Merged
josegonzalez merged 1 commit into
mainfrom
462-list-tasks-reports-a-rescue-when-on-failed-task-as-when-instead-of-unknown
Aug 12, 2026
Merged

fix: list a rescue when: on failed_task as unknown#465
josegonzalez merged 1 commit into
mainfrom
462-list-tasks-reports-a-rescue-when-on-failed-task-as-when-instead-of-unknown

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

failed_task is bound only once a block child has failed, so a rescue predicate branching on it is undecidable offline for the same reason a registered reference is, and --list-tasks now renders it [unknown] instead of reporting a valid recipe as broken. The reference check reads the parsed identifiers rather than the raw source, so an input named registered_at, a quoted "registered", or a field access x.failed_task no longer forces a false [unknown], and failed_task counts only where the executor actually binds it. With that false positive gone, a task when: that fails to evaluate now exits 1 like a play one, except under a group whose own predicate was skipped, unknown, or erroring, where a run would never evaluate it.

Fixes #462.

`failed_task` is bound only once a block child has failed, so a rescue predicate branching on it is undecidable offline for the same reason a `registered` reference is, and `--list-tasks` now renders it `[unknown]` instead of reporting a valid recipe as broken. The reference check reads the parsed identifiers rather than the raw source, so an input named `registered_at`, a quoted `"registered"`, or a field access `x.failed_task` no longer forces a false `[unknown]`, and `failed_task` counts only where the executor actually binds it. With that false positive gone, a task `when:` that fails to evaluate now exits 1 like a play one, except under a group whose own predicate was skipped, unknown, or erroring, where a run would never evaluate it.
@josegonzalez
josegonzalez merged commit 83344fb into main Aug 12, 2026
19 checks passed
@josegonzalez
josegonzalez deleted the 462-list-tasks-reports-a-rescue-when-on-failed-task-as-when-instead-of-unknown branch August 12, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list-tasks reports a rescue when: on failed_task as [when?] instead of [unknown]

1 participant