Skip to content
11. Merge policies

11. Configure merge policies

A MergePolicy defines a class of change the factory’s merge gate can evaluate, and each Repository object binds the policies it uses with a mode (live, shadow or disabled); every field, validation rule, editor workflow and promotion step is in Maku’s merge policies guide.

Bound policies and modes

Example (the reference host): the central Repository objects and the chart catalog (mergePolicies.catalog: {enabled: true, exclude: [deps-patch]}) decide every merge, while policyManagement.stage: manage compares each repository’s .github/agent-factory.yaml, runs dual evaluation, and serves the Settings pages:

RepositoryliveshadowManifest path
Smana/cloud-native-refdocs-links, revertalert-rules, dead-links, deps-patch, deps-minor, docstooling/base/agent-factory/resources/repository-cloud-native-ref.yaml
Smana/ai-native-ref—docs-links, revert, dead-links, docs (^website/content/.+\.md$, 60 lines)tooling/base/agent-factory/resources/repository-ai-native-ref.yaml
Smana/runlore-kb—docs-links, revert, kb-entries, docstooling/base/agent-factory/resources/repository-runlore-kb.yaml
Smana/runlore—docs-links, revert, docstooling/base/agent-factory/resources/repository-runlore.yaml
Platform settingValue on this platformManifest path
Policy management stagestage: manage (factory and broker), operators: [Smana]tooling/base/agent-factory/helm-values-configmap.yaml, infrastructure/base/room-broker/config.yaml
Chart catalog and custom policiesChart catalog enabled (docs-links, revert, docs in shadow; deps-patch excluded) plus five custom MergePolicy objects (alert-rules, dead-links, deps-minor, deps-patch, kb-entries)tooling/base/agent-factory/helm-values-configmap.yaml, tooling/base/agent-factory/resources/mergepolicy-*.yaml
Gate status and guardrailsmergeDefaults: {gateStatus: true, policyBot: false}; mergeGuardrails unset (Maku defaults hold: .github/, .policy.yml and CODEOWNERS protected; at most 10 files, 300 lines and 5 merges/day)tooling/base/agent-factory/resources/factory.yaml
Ownership fence and repo mirrorfactory: <active-cluster> in every served repository (active cluster); cloud-native-ref also mirrors its bindings under mergePolicies:.github/agent-factory.yaml

Unlike Maku’s defaults (policyManagement.stage: observe, mergePolicies.catalog.enabled: false), this platform enables the chart’s starter policy catalog (excluding deps-patch in favor of the custom Go/GHA policy), runs stage: manage so operators can inspect dual-evaluation comparisons and promotion readiness in the broker UI, and keeps cloud-native-ref as the only repository with live unattended merges (docs-links and revert) gated by maku/merge-gate.