Home/Docs/Profile Options & Variables

Complete Profile Options & Variables (GateProfile v2)๐Ÿ”—

Every GateProfile YAML file uses strict deny_unknown_fields validation and is verified by acdd validate. Repository defaults live in .acdd/profile.yaml (falling back to embedded code); additional profiles live in directories listed under profiles_dirs in acdd.yaml (default .acdd/profiles/).


1. Top-level keys & inheritance๐Ÿ”—

KeyType / ValuesDefault / Meaning
version2 (integer, required)Schema version. Must be 2.
inherit"base" | "code" | "audit" | "documentation" | "spec_planning" | "none" | "<relpath>[:<sha256_prefix>]"Parent profile to inherit from. Optional SHA-256 content pin (7..=64 hex chars) verifies the parent file digest before loading. "none" starts with zero inherited defaults.
git{ isolation, worktrees }Git isolation policy (see below).
save"none" | "commit"Default save action on terminal root gates ("commit" in base).
tags["default", ...] or nullAllowed task tags ("default" is always allowed; code adds "docs").
protected_paths["glob", ...]Workspace-relative globs blocked from normal task writes even if matched elsewhere.
default_tools["tool_name", ...]Default MCP tool allowlist for any gate that omits tools:.
modules{ profile?, enabled?, disabled?, required?, domains? }Subsystem toggles and DomainProvider patches (domains.<id>: false | null disables a domain).
limitsObject of 8 numeric capsExecution and context-assembly ceilings (see Section 2).
rolesMap <role_id> -> RoleDefRole execution mode, model hints, guidance, and headless runner: command.
commandsMap <cmd_id> -> CommandDefNamed shell command templates (4 YAML forms; null removes an inherited slot).
scope_args_by_patternMap <glob> -> "<arg>"Maps task scope globs to {scope_target} command arguments.
proofsMap <proof_id> -> { description?, schema }Reusable JSON Schema catalog referenced by proof: <id>.
guidanceMap <key> -> string | { description, criteria }Reusable instruction blocks injected into ClaimResp.guidance.
contoursMap <contour_id> -> { description, criteria }Named audit dimensions required by review gates.
gate_templatesMap <tpl_id> -> { gates, command?, guidance?, max_attempts? }Reusable gate macro blocks expanded via use: <tpl_id>.
gatesList of GateDef / - tasks:Replaces the inherited gate DAG completely. Mutually exclusive with gates_patch.
gates_patchList of patch entriesSurgically edits, inserts, or deletes inherited gates (forbidden with inherit: none).

git: policy object๐Ÿ”—

  • git.isolation: "worktree" (isolated branch + .worktrees/<run> / .worktrees/<run>-<task>) or "in_place" (runs in the active directory; --in-place on acdd start overrides this and neutralizes save.post: commit to none).
  • git.worktrees: "manual" (user/orchestrator manages worktree creation & cleanup) or "managed" (engine creates/cleans task and run worktrees automatically).

2. limits: (all 8 resource ceilings)๐Ÿ”—

FieldDefault (base)What it bounds
max_guidance_bytes32768 (32 KiB)Hard ceiling for Tier 1 mandatory contract + guidance inside ClaimResp (GuidanceBudgetExceeded on overflow).
max_log_bytes1048576 (1 MiB)Maximum persisted trace log file size per acdd verify run.
max_capture_bytes262144 (256 KiB)Maximum stdout/stderr bytes captured in memory from a command execution.
max_line_bytes65536 (64 KiB)Single-line byte cap for streamed runner/command output.
diagnostic_inline_bytes4096 (4 KiB)Tail length of failed_trace_log_tail inlined into ClaimResp Tier 2 on rework.
max_metadata_bytes2048 (2 KiB)Metadata payload ceiling for gate/task records.
max_trace_summary_bytes2048 (2 KiB)Stored summary size cap per verification trace.
max_command_timeout_seconds1800 (30 min)Maximum allowed timeout_seconds for any gate or verify command.

3. roles.<id> & headless runner environment variables๐Ÿ”—

FieldTypeDescription
mode"subagent" | "inline""subagent" (default) signals coordinator/worker delegation; "inline" runs inside the coordinator session.
reuse_on_rejectbool (default false)Hints acdd run / orchestrators to resume the same worker session when routing back on fail.
models["model", "model:reasoning", { model, reasoning? }]Advisory ordered list of preferred models and optional reasoning tiers.
guidancestring | nullRole-level coordinator/orchestrator prompt note (null clears inherited note).
runnerstring | nullShell command template used by acdd run to spawn an external agent CLI. Receives rendered ClaimResp Markdown on stdin.
prompt_templatestring | nullOptional custom template rendered before writing to runner's stdin.

Environment variables injected into roles.<id>.runner๐Ÿ”—

When acdd run executes a runner process, the child receives these exact environment variables alongside rendered ClaimResp on stdin:

VariableValue
ACDD_RUN_IDActive run UUID/ID
ACDD_NODE_CURSORClaimed gate cursor (e.g. T1.build, blueprint_synthesis.synthesize)
ACDD_CLAIM_REVISIONMonotonic optimistic claim revision integer
ACDD_WORKER_IDAssigned worker identity for the claim
ACDD_AGENT_SESSION_IDSession identifier passed/assigned for reuse continuity
ACDD_WORKTREEAbsolute path to the assigned worktree directory
ACDD_STATE_DBAbsolute path to .acdd/state.sqlite
ACDD_CODE_DBAbsolute path to .acdd/code-map.sqlite
TRACEPARENTW3C Trace Context header for distributed telemetry correlation

4. commands.<id> forms & template variables๐Ÿ”—

Every entry under commands: uses one of four YAML shapes (or null to delete an inherited command):

  1. Abstract slot: { abstract: true, description? } (or { unbound: true, description? }) โ€” requires a child profile override before acdd start / acdd run can bind it.
  2. Simple string: "cargo test --workspace"
  3. Detailed object:
    commands:
      build_check:
        command: "cargo clippy {scope_target} --all-features -- -D warnings && cargo test {scope_target} {test_filter}"
        description: "Run strict lint and scoped task tests"
        test_filter: "{test}"            # true | false | "-- {test}" | "{test}"
        timeout_seconds: 900
        scope_args_by_pattern:           # optional per-command override
          "src/**/*.rs": "--lib"
  4. Pattern-dispatched (by_pattern):
    commands:
      build_check:
        by_pattern:
          "crates/**": "cargo test -p {scope_target} {test_filter}"
          "frontend/**": "npm test -- {test_filter}"
        description: "Dispatch verification by task scope"
    (Also accepts a YAML list of { pattern, command, ... } objects.)

Command & path template variables๐Ÿ”—

VariableWhere usedHow it expands
{scope_target}commands.<id>.commandResolved from scope_args_by_pattern matching the task's admitted_scope globs.
{file_stem}scope_args_by_pattern valuesFile stem extracted from a matched scope path (e.g. "tests/core.rs": "--test {file_stem}" โ†’ --test core).
{test_filter}commands.<id>.commandExpands test_filter template when --test <filter> is passed to acdd verify / acdd_verify (empty when omitted).
{test}commands.<id>.test_filterReplaced by the --test argument string (e.g. test_filter: "-- {test}" โ†’ -- my_test).
{run_id}save.reportActive run ID.
{run_name}save.reportHuman-readable run slug/name.
{gate_id}save.reportCurrent gate ID.
{spec_id}save.reportSpec document ID (when started from a spec).

5. Gate & - tasks: fields๐Ÿ”—

A profile's gates: list contains root gates, nested container gates (gates: [...]), and - tasks: tracks (tasks: { when?, gates: [...] }).

FieldApplies toDescription
idRoot/container/leaf gatesUnique gate name inside its parent scope (omitted on anonymous - tasks: blocks).
gatesContainer gateNested child gates executed inside this container.
tasksTask track{ when?, gates: [...] } โ€” instantiates child gates for each non-cancelled task matching when.
when- tasks: & task gatesBoolean tag expression over task tags: tag, !tag, & or + (AND), | (OR), ( ... ). Forbidden on root gates.
useAny gateExpands a named entry from gate_templates.
roleRole-assigned gateWorker role ID from roles: (architect, builder, independent_reviewer, auditor, etc.).
commandAutomated / build gateKey from commands: executed during acdd verify / acdd run.
call / withDomain action gateExecutes <domain>.<action> on a DomainProvider with JSON arguments with: { ... }.
checksAny verified gateList of "<domain>.<check>" or { check: "<domain>.<check>", with: { ... } } (e.g. code.seam, code.lint, code.signature_scope, docs.links, docs.specs).
contextRole-assigned gateOrdered list of DomainProvider context lenses injected into ClaimResp Tier 6 (docs.instructions, docs.adrs, docs.invariants, docs.workspace_config, code.symbols, code.tests, code.external_callers).
proofAny gate"none" (default), "command", "call", "review" (requires role + non-empty contours), "<proof_catalog_id>", or inline { scheme: <JSON Schema> }.
tools / tools_add / tools_removeRole-assigned gateReplaces or patches default_tools for this gate (fail-closed against known static + plugin tools).
guidanceAny gateList of keys from guidance: or { inline: "..." } entries injected into ClaimResp.guidance.
contoursReview gateList of keys from contours: audited by independent_reviewer.
scopeExplicit-scope gateList of workspace-relative globs (e.g. polish admitting docs/**, README.md).
saveAny gateScalar "none" | "commit" | "snapshot" or { post?, immutable?, archive?, prune?, report? }. save.post: snapshot is valid only on leaf task gates (refs/acdd/snapshots/<run_id>/<task_ref>/r<rev> without moving HEAD); save.report writes .md/.json strictly under .acdd/reports/.
max_attemptsAny gateMaximum attempts before escalation (default 3).
receiptTerminal gatetrue closes the task/run container and persists ArtifactKind::Proof.
independent_fromReview/deliver gateList of gate cursors (e.g. [build] or [polish, "tasks.build"]) whose worker_id must differ from the claimer.
needAny gateList of sibling/predecessor cursors that must be completed (and whose accepted_tree must match).
passAny gateTarget sibling gate ID on pass (defaults to the next sibling gate if omitted).
failReview/command gateTarget sibling gate ID on defect rejection or command failure.
fail_driftReview gateTarget sibling gate ID (e.g. rearchitect) on architectural_drift rejection (sets context_reset_required: true).