Workflow definitions declare inputs, repository (none, optional or required; default required) and profile. A binding assigns each input from a mapped parameter or a constant and may take its repository from a parameter, which must name a configured repo; both are checked when the binding is saved and again at dispatch. Inputs travel as structured task data (tasks.inputs, the task brief, and a JSON block in the agent's mission), never as body text. A task with no repository runs in a per-task scratch workspace with no clone and no publication grant. The agent.run step runs one mission without a repository and finishes the task in the new completed status. Agent profiles live under [containers.profiles.<name>]: an image and an allowlist over the tools archie adds (MCP, scripts, plugins). [containers].image is the default profile; an unconfigured profile parks the task. The workflow is now pinned before the container starts so the profile can choose its image. Also stop two archied tests writing embedded NATS state into the package directory, refuse an empty state_dir for embedded NATS, and drop the NATS store files an earlier lane commit tracked.
22 lines
899 B
SQL
22 lines
899 B
SQL
-- Workflow inputs and bindings that assign them
|
|
-- (docs/prds/event-automation.md, "Workflows declare inputs" and "Bindings").
|
|
--
|
|
-- bindings.inputs is a JSON object assigning each workflow input either a
|
|
-- mapped parameter ({"param": "src_ip"}) or a constant ({"value": 3}).
|
|
-- bindings.repo_param names the mapped parameter holding "owner/name" when the
|
|
-- repository comes from the event rather than a fixed owner/repo.
|
|
-- tasks.inputs is the JSON object of input values a binding dispatch resolved;
|
|
-- empty for a task no binding started.
|
|
|
|
-- +goose Up
|
|
|
|
ALTER TABLE bindings ADD COLUMN inputs text NOT NULL DEFAULT '{}';
|
|
ALTER TABLE bindings ADD COLUMN repo_param text NOT NULL DEFAULT '';
|
|
ALTER TABLE tasks ADD COLUMN inputs text NOT NULL DEFAULT '';
|
|
|
|
-- +goose Down
|
|
|
|
ALTER TABLE tasks DROP COLUMN inputs;
|
|
ALTER TABLE bindings DROP COLUMN repo_param;
|
|
ALTER TABLE bindings DROP COLUMN inputs;
|