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.
41 lines
1.4 KiB
Go
41 lines
1.4 KiB
Go
// Task-vocabulary aliases. The Task record, its statuses, the mid-run
|
|
// Store contract, and Definition moved to internal/domain/workflow/task
|
|
// (archie-core-8cda.5.6) so the UI process can hold the vocabulary without
|
|
// linking this package's pipeline engine (which imports agentexec, skill
|
|
// and tools). package workflow keeps these aliases, so daemon-side callers
|
|
// are unaffected.
|
|
package workflow
|
|
|
|
import "github.com/samcharles93/archie-core/internal/domain/workflow/task"
|
|
|
|
type (
|
|
// Task is the task-execution record the workflow domain operates on.
|
|
Task = task.Task
|
|
// Store is the narrow, consumer-owned subset of the State Store
|
|
// contract that workflow stages call mid-run.
|
|
Store = task.Store
|
|
// Definition is the operator-safe snapshot of an executable workflow.
|
|
Definition = task.Definition
|
|
)
|
|
|
|
// Task lifecycle statuses. Defined in internal/taskstate; these names are
|
|
// the workflow domain's public spelling.
|
|
const (
|
|
StatusQueued = task.StatusQueued
|
|
StatusRunning = task.StatusRunning
|
|
StatusWaitingHuman = task.StatusWaitingHuman
|
|
StatusPROpen = task.StatusPROpen
|
|
StatusMerged = task.StatusMerged
|
|
StatusParked = task.StatusParked
|
|
StatusDead = task.StatusDead
|
|
StatusRejected = task.StatusRejected
|
|
StatusClosedWontDo = task.StatusClosedWontDo
|
|
StatusCompleted = task.StatusCompleted
|
|
)
|
|
|
|
// Task.Source values.
|
|
const (
|
|
SourceForge = task.SourceForge
|
|
SourceChat = task.SourceChat
|
|
)
|