fix(workflow): derive a declared output's captures need for profile selection
A declared output is written through a capture tool, but the dispatch-time
harness check read only the workflow's needs.captures. A workflow that
declared outputs without also writing needs: {captures: true} could name a
Kit profile whose adapter serves no capture tools; a required output then
parked with "output %q is required" instead of the profile being refused.
WorkflowInterface.Needs now reports captures for a non-empty Outputs beside
the declared needs, and the profile check and Kit launcher read it. The
needs: block keeps its meaning for a workflow that captures without
declaring outputs.
- internal/domain/workflow/task: Needs() derives captures; DeclaredNeeds
carries only the declared block.
- internal/daemon: pinTaskProfile and runKitTask read Needs().
- tests: parse-time derivation, and pinTaskProfile refusing an
outputs-declaring workflow against a Kit adapter with no capture MCP.
This commit is contained in:
1 parent
446d94681b
commit
721968eeff
8 files changed
+59
-21
No files matched your search
@@ -37,6 +37,10 @@ vocabulary it registers, so both must see the same step types.
|
||||
- The YAML decoder rejects unknown keys. Existing stored definitions must keep
|
||||
parsing, so a new key is optional with a default that preserves today's
|
||||
behaviour.
|
||||
- A declared `outputs:` entry is written through a capture tool, so it forces
|
||||
the captures need: `task.WorkflowInterface.Needs` resolves that from the
|
||||
declaration rather than the author also writing `needs.captures`. A Kit
|
||||
profile whose harness serves no capture tools is refused before dispatch.
|
||||
- Examples in `examples/workflows/` are parsed against the registered
|
||||
vocabulary by `TestExampleWorkflowsParse`. Add one for a new capability.
|
||||
|
||||
|
||||
Reference in new issue
Block a user