How to Override Every Built-in Profile๐
You rarely need to write a GateProfile from scratch. Create .acdd/profile.yaml (or .acdd/profiles/<name>.yaml) and set inherit: to any built-in profile or local file.
Inheritance & patching rules๐
- Map merging:
roles,commands,scope_args_by_pattern,proofs,guidance,contours, andgate_templatesmerge by key. Setting<key>: nullremoves an inherited entry. - Replacing vs. patching gates:
gates: [...]replaces the inherited gate DAG completely.gates_patch: [...]surgically modifies inherited gates byid, dotted cursor ("tasks.build","blueprint_synthesis.review"), or- tasks:.- <id_or_cursor>: nulldeletes an inherited gate.after: <sibling_id>orbefore: <sibling_id>inserts a new gate next to an existing sibling.- Setting a scalar property to
null(e.g.role: null,command: null) clears the inherited value.
- Content pinning:
inherit: .acdd/profile.yaml:9f3a1c2pins the parent file by SHA-256 prefix (7..=64hex chars) and fails closed if the parent changes unexpectedly.
1. Overriding base (minimal custom pipeline)๐
Start from base when you want clean worktree isolation, core contours, and limits, while defining your own gates: from scratch:
version: 2
inherit: base
commands:
test_all: "npm test"
roles:
worker:
mode: subagent
runner: "codex exec --full-auto -"
gates:
- id: implement
role: worker
command: test_all
proof: command
pass: verify
- id: verify
command: test_all
proof: command
receipt: true
save: { immutable: true, post: commit }2. Overriding code (standard repository .acdd/profile.yaml)๐
code declares abstract build_check and verify_all slots. Override them in .acdd/profile.yaml, bind scope_args_by_pattern, route models or external runner: CLIs, and insert custom gates with gates_patch:
version: 2
inherit: code
tags: [default, docs]
commands:
build_check:
command: "pytest -q {scope_target} {test_filter}"
test_filter: "-k {test}"
verify_all:
command: "ruff check . && pytest -q"
timeout_seconds: 1200
sec_scan: "cargo audit -q"
scope_args_by_pattern:
"src/billing/**": "tests/billing/"
"tests/*.py": "{file_stem}.py"
roles:
builder:
models: [claude-sonnet-4, gemini-4-hydrogen-high]
reuse_on_reject: true
independent_reviewer:
models: [claude-opus-4]
gates_patch:
- id: tasks.build
max_attempts: 4
checks:
- code.seam
- check: code.lint
with: { categories: [arch, syntax, docs] }
- id: security_gate
after: run_tests
command: sec_scan
proof: command
pass: integration_review
fail: polish3. Overriding audit (custom security contours & CLI runner)๐
audit runs read-only (git.isolation: in_place, save: none). Override it to add custom contours, enforce code.lint AST rules during analyze, customize report output paths, or attach a headless auditor.runner:
version: 2
inherit: audit
roles:
auditor:
runner: "claude -p --permission-mode plan"
contours:
sql_safety:
description: "Verify all SQL queries use parameterized bindings or read-only connections."
criteria:
- "Inspect every SQLite/Postgres call site via code_map_impact."
gates_patch:
- id: analyze
contours: [correctness, security, architecture, sql_safety]
checks:
- check: code.lint
with: { categories: [arch] }
- id: triage
save:
immutable: true
post: none
report: ".acdd/reports/security-{run_name}.md"4. Overriding documentation (custom doc scope & rules)๐
documentation verifies docs and acdd-rule invariants without needing a compiler. Override polish scope, disable an unnecessary gate, or add link/style checks:
version: 2
inherit: documentation
commands:
spell_check: "typos docs/ README.md"
gates_patch:
- id: verify_docs
command: spell_check
checks:
- docs.links
- check: code.lint
with: { categories: [arch, docs] }
- id: polish
scope: ["docs/**", "README.md", "CHANGELOG.md"]5. Overriding spec_planning (custom spec output & reviewer)๐
spec_planning validates acdd.yaml specs.* collections and wave disjointness. Override roles to bind your preferred planning model or adjust save.report:
version: 2
inherit: spec_planning
roles:
architect:
models: [gemini-4-neon-xhigh]
independent_reviewer:
models: [claude-opus-4]
gates_patch:
- id: synthesize
max_attempts: 4
- id: review
save:
immutable: true
report: ".acdd/reports/plan-review-{spec_id}.md"6. Layering a hotfix overlay on .acdd/profile.yaml๐
Place sibling overlays under .acdd/profiles/ (e.g. .acdd/profiles/hotfix.yaml). By inheriting .acdd/profile.yaml, you keep all repository commands and scope_args_by_pattern while pruning milestone-only gates:
version: 2
inherit: .acdd/profile.yaml
gates_patch:
- blueprint_synthesis: null
- id: run_tests
pass: handoff
- integration_review: null
- id: handoff
need: [run_tests]
guidance: [milestone.handoff, core.execution, hitl.pro]Run it anytime via:
acdd start --goal "Fix billing timeout" --profile hotfix --scope src/billing/