Skip to main content

Settings reference

The complete list of per-repository settings. For how these combine, see Configuration overview; for the file you commit, see the .zar.yml reference. Where: .zar.yml = settable in the repo file · dashboard = settable in the dashboard/database. The precedence rule is: dashboard (if set) → .zar.yml (if set) → default.

Documentation behavior

These shape how docs are produced and can live in .zar.yml.
SettingTypeDefaultValues / rangeWhereWhat it does
trigger_mode (.zar.yml: trigger)stringon_significant_changeevery_commit, on_significant_change, daily, on_merge.zar.yml + dashboardWhen ZAR opens a docs PR. See Trigger modes.
batch_hoursint241168 (clamped).zar.yml + dashboardHours to batch pending changes before a PR.
min_confidence (.zar.yml: threshold)float0.60.01.0 (clamped).zar.yml + dashboardConfidence required to act on a change.
target_branchstringmainany branch.zar.yml + dashboardThe branch ZAR analyzes.
pr_sizestringsmallsmall, full.zar.yml + dashboardsmall ≈ 1–3 files; full = all changed docs.
style_guidestringemptyfree text.zar.yml + dashboardWriting style passed to Claude. See Style guide.
notify_slackstring / falsedisabledSlack webhook URL.zar.yml onlyOptional Slack notification (operator-dependent).
min_confidence is currently exposed via .zar.yml (threshold) and the API/database; it may not have a dedicated dashboard field in every build. Set it via .zar.yml for portability.

Write-back & gating

Operational switches — dashboard-only so a PR can’t flip them.
SettingTypeDefaultWhereWhat it does
auto_commit_enabledboolfalsedashboardAllow direct commits. Also requires the DOCAGENT_WRITE_COMMITS env var. See Auto-commit.
ci_gate_enabledboolfalsedashboardBlock merges when docs look stale. See CI gate.
required_doc_freshnessfloathigh (≈0.9)dashboardCI gate threshold. If ZAR proposes any doc change, freshness falls below this and the gate blocks.
dry_runboolfalsedashboardReport only — never commit, never block.
use_updates_branchbooltruedashboardCommit to a dedicated zar-updates/… branch (vs. the PR head).
disable_prboolfalsedashboardHard off switch — no docs PRs, no commits.
comment_enabledbooltruedashboardPost the status comment on PRs.
debug_modeboolfalsedashboardVerbose logs + an extra “Debug Info” comment.

Cross-repo docs

Dashboard-only. See Cross-repo docs. Team / Enterprise only.
SettingTypeDefaultWhat it does
cross_repo_enabledboolfalseOpen docs PRs in a separate repository.
docs_repostringTarget docs repo, owner/repo (validated).
docs_repo_pathstring/docsFolder in the docs repo to write to.
docs_repo_branchstringmainBranch in the docs repo to target.

Validation & clamping

  • batch_hours → clamped to 1168; non-integer values are ignored (default kept).
  • min_confidence / threshold and required_doc_freshness → clamped to 0.01.0.
  • trigger_mode → invalid values fall back to on_significant_change.
  • pr_size → invalid values fall back to small.
  • target_branch, docs_repo_path, docs_repo_branch → empty values reset to their defaults (main, /docs, main).
  • docs_repo → must match owner/repo, otherwise rejected.