| title | ACDD Profiles Reference |
|---|---|
| doc_type | api |
An ACDD GateProfile (version: 2) is a single declarative YAML graph that
governs a run: its Git isolation & integration policy (git:), persistence mode
(save:), tags (tags:), roles, commands, domain hooks (call, checks,
context, tools_add, tools_remove), proofs, guidance slots, review contours,
and ordered verification gates with pass / fail routing edges.
Profiles use strict schema validation (deny_unknown_fields). Legacy 0.5.x
and pre-0.6.2 profiles (without version: 2, or using removed loop:, *_proof
wrappers, proof: contract / seam_test / delivery, expected_failure,
git.commit_mode, git.integrate, git_commit_notes, or regex output: scrapers)
fail closed with ACDD_PROFILE_SCHEMA_INVALID; upgrade 0.5.x workspaces per the
0.6.0 migration guide.
Note
Contract and command passes require claim-bound execution observations via
acdd verify / acdd_verify. Seam/domain checks (checks: [code.seam]) and
domain actions (call: <domain>.<action>) execute through DomainProvider
adapters in src/state_bridge/. Headless automated execution is described in
CLI commands.
ACDD resolves the active profile reference (--profile, ACDD_PROFILE, spec
profile:, specs.<collection>.profile, or the workspace default) as follows:
- Built-in embedded baselines (5 embedded profiles):
base(base.yaml): domain-pure worktree-isolated baseline (gates: []) withsave: commit,git.isolation: worktree, 7 core MCP tools (acdd_read,acdd_guide,acdd_state,acdd_claim,acdd_verify,acdd_submit,acdd_blackboard), universal guidance slots (core.execution,core.review,hitl.pro), and three domain-pure review contours (paths,claims,administration).code(code.yaml): built-in code-delivery baseline inheritingbase, adding the three-phase milestone lifecycle (blueprint_synthesis->tasks:->run_tests->polish->integration_review->handoff),tags: [default, docs]sodocs-tagged tasks skipcode.seam, all 20default_tools(includingcode_map_lint), additional contours (architecture,concurrency,project_isolation), 4-layer clean guidance (milestone.*/task.*,core.*,code.principles,code.tools,hitl.pro),code.seam+code.lintchecks,docs.*/code.*context lenses, and automatic stripping of disabledcode.*/docs.*hooks whenmodules.code: falseormodules.docs: false.audit(audit.yaml): built-in read-only code review and security/taint scanning pipeline inheritingbasewithgit.isolation: in_place,git.worktrees: manual,save: none, all 20default_tools(automatically stripped whenmodules.code: falseormodules.docs: false), roles (auditor,independent_reviewer), structured schemas (recon_map,candidate_findings,audit_report), review contours (correctness,security,architecture,concurrency,tests), and ordered root gatesrecon -> analyze -> triage(adversarial false-positive disproof intriagewithreceipt: true,save.immutable: true, andsave.report: ".acdd/reports/{run_name}.md").documentation(documentation.yaml): compiler-free living-documentation and invariant authoring pipeline inheritingbasewithmodules: { required: [docs, code] },tags: [default, docs], roles (architect,builder,independent_reviewer),blueprint_synthesis-> per-taskbuild -> review -> deliver->verify_docs -> polish -> integration_review -> handoff, enforcingdocs.linksandcode.lint(with: { categories: [arch, docs] }) without code-compilation commands.spec_planning(spec_planning.yaml): embedded specification, milestone, and implementation plan synthesis pipeline inheritingbasewithgit.isolation: in_place,git.worktrees: manual,save: none,synthesize -> review(proof: spec_plan,checks: [docs.specs, docs.links, code.lint],docs.workspace_configcontext lens, automaticacdd.yamlspecs.*/docsplanning scope derivation, andsave.report: ".acdd/reports/{run_name}.md"onreview).
- Automatic workspace default: When no explicit profile is specified (
--profile,ACDD_PROFILE, specprofile:, orspecs.<collection>.profile), ACDD uses.acdd/profile.yamlautomatically if present in the workspace root, and otherwise falls back to embeddedcode(with disabled domain hooks stripped). (in_placeis selected as an execution mode via--in-placeorgit.isolation: in_placeinside a profile, not as a separate profile name.) - Explicit repository paths &
profiles_dirs: Any relative path confined to the workspace (optionally pinned with:<sha256_prefix>, min 7 lowercase hex chars) or named profile discovered inacdd.yamlprofiles_dirs(default[".acdd/profiles"]).
Note
Linked workspaces (linked_workspaces) do not override the parent ACDD
profile. Only the active workspace root governs profile resolution.
Every v2 profile requires version: 2 and supports these top-level fields:
version: 2
inherit: code # Optional: base | code | audit | documentation | spec_planning | none | <rel-path>[:<sha256_prefix>]
git:
isolation: worktree # worktree | in_place
worktrees: manual # manual | managed
save: commit # Default post save action (none | commit)
tags: [default, docs]
protected_paths: []
default_tools: [acdd_read, acdd_guide, acdd_state, acdd_claim, acdd_verify, acdd_submit, acdd_blackboard]
modules: {} # Optional SubsystemRegistryPatch
limits: {} # Optional ResourceLimitsPatch
roles: {} # RoleDef / RolePatch map
commands: {} # CommandDef map (String | Script | Detailed | ByPattern | Unbound)
scope_args_by_pattern: {} # Optional path-pattern to {scope_target} CLI arguments map
proofs: {} # Reusable ProofCatalogDef JSON Schema registry
guidance: {} # Keyed GuidanceEntry slots (string or { description, criteria })
contours: {} # Keyed ContourDef review lenses ({ description, criteria })
gate_templates: {} # Reusable GateTemplate subgraphs expanded via `use:`
gates: [] # Replace parent gates (mutually exclusive with gates_patch)
gates_patch: [] # Patch inherited gates by id/cursor/after/before/null (requires inherit != none)inherit: none(or omitted): Compiles a standalone profile from scratch with no inherited roles, commands, proofs, guidance, contours, or gates.inherit: base | code | audit | documentation | <path>[:<sha256_prefix>]:roles,commands,scope_args_by_pattern,proofs,guidance,contours,gate_templates,limits, andmodulesmerge field-wise / by key (supportingPatchFieldnull-clearing on nullable fields).tagsandprotected_pathsextend or patch inherited sets. When inheritingcode, retaindocsintags:ifwhen: "!docs"gates are used downstream.gates:(replace): Replaces the parent'sgates:list completely when declared. When neithergates:norgates_patch:is set, inherited gates are kept as-is.gates_patch:(patch): Mutually exclusive withgates:and requires an inherited parent (inherit:cannot be omitted ornone). Patches individual inherited gates without rewriting the graph:- Update a gate by
id(e.g.id: polish) or dotted cursor (id: tasks.build,id: blueprint_synthesis.synthesize), or match a- tasks:block by normalizedwhen:expression. - Delete an inherited gate with
- <gate_id>: null. - Insert a new gate at an explicit position with
after: <selector>orbefore: <selector>.
- Update a gate by
git::isolation:worktree(separate git worktree per task/run) orin_place(active worktree, single-writer). Passing--in-place(or settinggit.isolation: in_placein a profile) runs directly in the active checkout; passing--in-placesetsisolation: in_place,worktrees: manual,save: none, and neutralizes gatesave.post: committononewhile keepingsave.immutable: true. Passing--worktreeoverrides profilein_placedefaults toisolation: worktreeandworktrees: managed.worktrees:manualormanaged(engine creates/removes.worktrees/*automatically).
save:: Controls working-tree commits, report materialization, and SQLite persistence per gate (also settable at profile root as default or shorthand scalarsave: none/commit):post:none,commit(creates an atomic Git plumbing commit withAcdd-Claimon submit), orsnapshot(writesrefs/acdd/snapshots/<run_id>/<task_ref>/r<claim_revision>without movingHEAD; profile validation allowssnapshotonly on leaf task gates; checkpoint refs auto-clear on deliver, runclear, orhandoff).immutable: Require working tree atsubmitto match the claim tree (TASK_CANDIDATE_MISMATCHon drift).archive/prune: Allowed onroot_gateonly (typicallyhandoff); archives the completed spec or prunes terminal SQLite rows intorun_tombstones.report: Optional normalized workspace-relative template path strictly confined under.acdd/reports/*.{md,json}and materialized atomically (checked_child+atomic_write) on--action pass, returning the expanded path inSubmitResp.report_path:- Supported template variables:
{run_id},{run_name},{gate_id},{spec_id}("goal"for ephemeral--goalruns). Paths outside.acdd/reports/*.{md,json}, paths with.., leading/,\, or unknown{...}placeholders fail profile validation fail-closed. - Format:
.jsonwrites structured pretty JSON (schema_version: 1, run/spec/gate metadata,summary, submittedproof,predecessor_proofs,receipt,verified_invariants,blackboard);.mdrenders GitHub-Flavored Markdown with metadata, summary, proof payload, predecessor stage proofs, and blackboard highlights. - Destination:
.acdd/reports/writes under the primary workspace.acdd/directory (gitignored by default via.acdd/reports/).
- Supported template variables:
Each entry in commands: is one of:
unbound: true: Declared placeholder slot that must be bound by a child overlay before any gate referencing it can pass validation (COMMAND_UNBOUND).- Simple string: Shell command string.
Script/Detailed:{ command, description?, timeout_seconds?, test_filter?, scope_args_by_pattern? }.Pattern(by_pattern):{ by_pattern: { "<glob>": ... }, description?, timeout_seconds?, test_filter?, scope_args_by_pattern? }mapping changed/admitted scope globs to language commands via the canonical brace-aware glob matcher inacdd_core::path_policy(most specific glob wins). Top-levelscope_args_by_patternpropagates as fallback arguments into resolved commands (with{file_stem}and{path}expanded against concrete admitted paths).
test_filter & --test:
test_filter: false(default on unbound/generic commands if omitted) rejectsacdd verify --test <target>(COMMAND_TEST_FILTER_UNSUPPORTED).test_filter: trueappends/substitutes{test}using single-argument command appending, ortest_filter: "-- {test}"formats the filter explicitly.- Chained commands (
&&,||,;,|) require{test_filter}explicitly in the command string whenevertest_filteris enabled (COMMAND_TEST_FILTER_PLACEHOLDER_REQUIRED).
limits.diagnostic_inline_bytes defaults to 4096; raw trace logs live under
<primary_worktree>/.acdd/run/<run_id>/traces.jsonl.
pass: Explicit sibling gate ID on success (defaults to next sibling gate if omitted).fail: Target sibling gate ID ondefectreject/failure (replaces removed0.5.xloop:blocks).fail_drift: Optional target sibling gate ID (e.g.rearchitect) onarchitectural_driftrejections, clearing cached builder context and rotating runnerACDD_AGENT_SESSION_ID.when: Boolean tag expression (tag,!tag,a & b,a + b,a | b,( ... )) parsed and evaluated solely byacdd_state::profile::when::WhenExpr, allowed on- tasks:blocks andtask_gatenodes (forbidden onroot_gate). All referenced tags must appear in profiletags:(or"default").max_attempts: Failure/rejection budget before escalation (default3,>= 1).independent_from: Requires aworker_iddistinct from the accepted worker of named predecessor gates (TASK_REVIEW_NOT_INDEPENDENT).need: Predecessor gate selectors whose accepted candidateTreeOidmust match at submit.receipt: true: Marks a terminal gate that records a durable receipt and closes its container.
When sequential gates in the same container (e.g., recon -> analyze -> triage in
audit) emit typed ArtifactKind::Proof payloads (proof: <schema> or proof: review),
GateContextAssembler automatically injects completed predecessor sibling proofs into
downstream ClaimResp.pre_task_slice["predecessor_proofs"] keyed by gate_id
(ordered by seq_order, subject to Tier 3 response budgeting).
Built-in ProofKind values are:
none: Default when omitted.command: Passing command verification (exit_code == 0, plus any attachedchecks:such ascode.seam).call: Domain provider action (call: <domain>.<action>with optionalwith:).review: Independent review proof requiringroleand non-emptycontours(for examplepaths,claims,architecture,concurrency,project_isolation,administration).- Named catalog proof (
proof: blueprintreferencingproofs.blueprint) or inline JSON Schema (proof: { scheme: ... }).
Domain-agnostic acdd-state delegates domain behavior via DomainProvider (crates/acdd-core/src/ports.rs; see the domain extensions guide):
call: <domain>.<action>(with: { ... }): Executes a registered domain action (withlookup_action_resultrecovery for mutating actions).checks: [<domain>.<check>](or{ check, with? }): Automated domain verifiers executed duringacdd verify/acdd submit(e.g.,code.seam,code.lint,code.signature_scope,docs.links).context: [<domain>.<lens>]: Domain context lenses assembled intoClaimResptiers (docs.instructions,docs.adrs,docs.invariants,code.symbols,code.tests,code.external_callers).tools/tools_add/tools_remove: Per-gate MCP tool allowlists layered overdefault_tools(including built-in tools and<domain>_<name>plugin tools).
- See the starter overlay template in
acdd_profile.yaml.example(symlink intoskills/acdd/references/) and the complete field guide inskills/acdd/references/profile-reference.md. - Embedded profiles:
base.yaml,code.yaml,audit.yaml, anddocumentation.yaml. - See Workspace configuration for loading precedence and
acdd.yamladapter settings.