pub struct WorkflowConfig {Show 28 fields
pub submit: SubmitConfig,
pub source: SourceConfig,
pub diff: DiffConfig,
pub display: DisplayConfig,
pub build: BuildConfig,
pub gc: GcConfig,
pub follow_up: FollowUpConfig,
pub verify: VerifyConfig,
pub shell: ShellConfig,
pub notify: NotifyConfig,
pub staging: StagingConfig,
pub constitution: ConstitutionConfig,
pub sandbox: SandboxConfig,
pub audit: AuditConfig,
pub governance: GovernanceConfig,
pub vcs: VcsConfig,
pub plan: PlanConfig,
pub supervisor: SupervisorConfig,
pub draft: DraftReviewConfig,
pub workflow: WorkflowSection,
pub required_checks: Vec<String>,
pub apply: ApplyConfig,
pub ta: TaPathConfig,
pub commit: CommitConfig,
pub project: ProjectSection,
pub analysis: HashMap<String, AnalysisConfig>,
pub security: SecurityConfig,
pub agent_profiles: HashMap<String, AgentProfile>,
}Expand description
Top-level workflow configuration from .ta/workflow.toml
Fields§
§submit: SubmitConfigSubmit adapter configuration
source: SourceConfigSource sync configuration (v0.11.1)
diff: DiffConfigDiff viewing configuration
display: DisplayConfigDisplay / output configuration
build: BuildConfigBuild configuration
gc: GcConfigGarbage collection / lifecycle configuration
follow_up: FollowUpConfigFollow-up goal behavior configuration
verify: VerifyConfigPre-draft verification gate configuration
shell: ShellConfigShell TUI configuration
notify: NotifyConfigDesktop notification configuration
staging: StagingConfigStaging directory management (v0.11.3)
constitution: ConstitutionConfigConstitution / compliance checker configuration (v0.12.0)
sandbox: SandboxConfigAgent sandboxing configuration (v0.14.0)
audit: AuditConfigAudit log attestation configuration (v0.14.1)
governance: GovernanceConfigDraft approval governance configuration (v0.14.2)
vcs: VcsConfigVCS configuration (v0.13.17.3)
plan: PlanConfigPlan file configuration (v0.14.12).
supervisor: SupervisorConfigSupervisor agent configuration (v0.13.17.4)
draft: DraftReviewConfigDraft review configuration (v0.15.4)
workflow: WorkflowSectionWorkflow behavior configuration (v0.14.3)
required_checks: Vec<String>Commands to run after agent exit to produce hard validation evidence (v0.13.17).
Each command is run in the staging workspace. Results are embedded in the
DraftPackage as validation_log. Non-zero exit code blocks ta draft approve
unless --override is passed.
Default (empty): no required checks. Set in .ta/workflow.toml:
required_checks = ["cargo build --workspace", "cargo test --workspace"]apply: ApplyConfigPer-file conflict resolution policy for ta draft apply (v0.14.3.5).
Specifies how conflicts are resolved when both the agent and an external commit touch the same file. Override globally or per-file/glob:
[apply.conflict_policy]
default = "merge" # attempt 3-way merge first
"PLAN.md" = "keep-source" # TA owns this — never let agents overwrite
"Cargo.lock" = "keep-source" # auto-generated, always regenerated by cargo
"docs/**" = "merge"
"src/**" = "abort" # code conflicts need human reviewValid values: "abort", "merge", "keep-source", "force-overwrite".
Default when section is absent: the --conflict-resolution CLI flag value.
ta: TaPathConfigConfig-driven TA project/local file classification (v0.14.3.5).
Specifies which .ta/ files belong to the project (committed to VCS)
and which are machine-local only (gitignored). At ta init time, these
are written with the defaults from partitioning.rs.
Example:
[ta.project]
include_paths = ["workflow.toml", "policy.yaml", "agents/"]
[ta.local]
exclude_paths = ["staging/", "goals/", "store/"]commit: CommitConfigCommit auto-staging configuration (v0.14.3.7).
Lists additional files/globs that are always staged alongside a draft apply commit, merged with the built-in lock file list. Use this for project-specific generated files that are always correct to include.
[commit]
auto_stage = [
"Cargo.lock",
".ta/plan_history.jsonl",
"docs/generated/**",
]project: ProjectSectionProject metadata shown in TA Studio (v0.14.18).
[project]
name = "My Pipeline Project"analysis: HashMap<String, AnalysisConfig>Per-language static analysis configuration (v0.15.14.3).
Keys are language names (python, typescript, rust, go).
[analysis.python]
tool = "mypy"
args = ["--strict"]
on_failure = "agent"
max_iterations = 3
[analysis.rust]
tool = "cargo-clippy"
args = ["-D", "warnings"]
on_failure = "warn"security: SecurityConfigSecurity level profile configuration (v0.15.14.4).
Sets a named preset of security defaults. Individual settings always override the level preset.
[security]
level = "mid" # "low" | "mid" | "high"agent_profiles: HashMap<String, AgentProfile>Named agent profiles that supervisor and workflow steps can reference.
[agent_profiles.supervisor]
framework = "claude"
model = "claude-sonnet-4-6"Implementations§
Source§impl WorkflowConfig
impl WorkflowConfig
Sourcepub fn load(path: &Path) -> Result<Self, Box<dyn Error>>
pub fn load(path: &Path) -> Result<Self, Box<dyn Error>>
Load workflow config from .ta/workflow.toml, merging any local override file on top.
Override file resolution (first found wins):
<dir>/workflow.local.toml— canonical name<dir>/local.workflow.toml— deprecated name (warns and falls back)
Sourcepub fn load_or_default(path: &Path) -> Self
pub fn load_or_default(path: &Path) -> Self
Try to load config, returning default if file doesn’t exist
Trait Implementations§
Source§impl Clone for WorkflowConfig
impl Clone for WorkflowConfig
Source§fn clone(&self) -> WorkflowConfig
fn clone(&self) -> WorkflowConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more