Proposed enhancement: supported access to a run’s workflow definition #4727
Replies: 1 comment
|
Thanks for starting this discussion and explaining your Action use case. I think a supported run-scoped view of the workflow definition is worth exploring. An integration should not have to read the saved I’d keep this distinct from JSON Could you open a feature-request issue linking this discussion, with an example of what your Action needs to render? I’ll label it |
Uh oh!
There was an error while loading. Please reload this page.
I am integrating Spec Kit workflows into a GitHub Action that displays workflow progress and human review gates in issue comments.
At present,
specify workflow status <run_id> --jsonprovides the runtime state, but not the workflow definition or gate configuration. As an interim measure, the action reads the original workflow from:This works, but it means integrations depend on Spec Kit’s internal run-state layout and file format.
I think Spec Kit could provide a supported API or library interface for retrieving the workflow definition associated with a run. The interface would return:
The important detail is that this should resolve the definition from the run, rather than loading the current installed workflow by ID. That would keep progress rendering accurate if the workflow is later changed or removed.
I am not suggesting a command that simply dumps the underlying YAML or JSON. The value would be a stable abstraction that allows integrations to access the run’s definition without depending on internal storage details.
Would this be a useful feature for Spec Kit to support?
All reactions