Problem or Use Case
Selecting an agent profile currently also selects conversation-backed execution. Those are separate concerns: a deterministic automation script may need only the profile's selected credentials, while an agent run needs the profile's model, tools, secrets, conversation, and runtime.
This coupling forces a scheduled scanner that only queries an external API to create an agent conversation and, in Docker mode, a container. The scanner should run as ordinary automation code. Only agent work selected by the scanner should acquire a conversation runtime.
Desired Behavior
Store an explicit execution mode on automation definitions and snapshot it on queued runs, independently from the selected agent profile.
- Script mode executes the bundle without creating a conversation and passes the selected profile only to the Agent Server's profile-scoped command API.
- Agent mode retains profile-backed conversation execution for prompt and plugin presets.
- Existing profile-backed definitions keep their previous agent behavior after migration.
- Raw automation definitions default to script mode.
The Automation service continues to use software-agent-sdk for every Agent Server operation. No extension should inspect the local/Docker workspace kind.
Acceptance Criteria
Additional Context
This depends on software-agent-sdk #5046 for profile-scoped script commands. It is a prerequisite for #463, where a script scanner submits selected work to separate agent runs.
Problem or Use Case
Selecting an agent profile currently also selects conversation-backed execution. Those are separate concerns: a deterministic automation script may need only the profile's selected credentials, while an agent run needs the profile's model, tools, secrets, conversation, and runtime.
This coupling forces a scheduled scanner that only queries an external API to create an agent conversation and, in Docker mode, a container. The scanner should run as ordinary automation code. Only agent work selected by the scanner should acquire a conversation runtime.
Desired Behavior
Store an explicit execution mode on automation definitions and snapshot it on queued runs, independently from the selected agent profile.
The Automation service continues to use software-agent-sdk for every Agent Server operation. No extension should inspect the local/Docker workspace kind.
Acceptance Criteria
Additional Context
This depends on software-agent-sdk #5046 for profile-scoped script commands. It is a prerequisite for #463, where a script scanner submits selected work to separate agent runs.