Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

fix(workflows): show failed steps, drop the retired spec field, check step agents - #6

Open
rivetphilbot wants to merge 2 commits into
mainfrom
fix/qa-polish
Open

rivetphilbot wants to merge 2 commits into
mainfrom
fix/qa-polish

Conversation

@rivetphilbot

@rivetphilbot rivetphilbot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes for the Workflows plug-in, found in QA passes against a throwaway node.

A failed run shows why. When a run threw partway through (for example, delegate_task refused the step), the run was marked failed but its current step stayed "running" with no reason, so the run page looked stuck.

  • The step that was running when the error was thrown is now finished as failed, with the error text.
  • The run page shows a notice above the steps naming the step that failed or timed out, with the run's error.

Delegation without the retired spec field. Every step sent spec, which rh now warns about and will refuse in its next release. Steps delegate through the current API, and runs complete with no retired-field warning.

Step agents are checked. A step's agent was free text and only failed at run time. It's now chosen from rh's agent catalog, and an unknown agent is refused when the step is added, when the workflow is saved and when it runs. The plug-in asks for agents.read to read the catalog, so it needs re-approval after updating.

A run that failed before its step's task finished, such as a delegation rh
refused, kept the step running with no result, and the run page never said
why. The step now fails with the error as its result, and a failed or stopped
run's page leads with a notice naming the step and the reason.
…p agents

Every step sent spec with its task, a field rh's tasks API has retired: rh 0.7
ignores it with a warning and the next release refuses it. Steps now send only
the fields POST /api/tasks takes.

A step's agent was free text that nothing checked until a run failed on it. The
editor now offers the agents rh's catalog lists, and adding a step, saving or
running refuses an agent rh doesn't know, naming the ones it does. Reading the
catalog needs agents.read, so the plug-in asks for it; rh opens
GET /api/catalog/agents to that permission from CONTRACT note 116.
@rivetphilbot rivetphilbot changed the title fix(workflows): show the step a run failed on and why fix(workflows): show failed steps, drop the retired spec field, check step agents Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants