Monorepo Orchestration Setup
Intent
Enable affected-only builds and tests in a monorepo using an orchestration tool that coordinates existing language-specific tooling without replacing it.
When to Use
- •Introducing a monorepo orchestration tool.
- •Migrating a monorepo to affected-only execution.
- •Refactoring CI or hooks to avoid full-repo runs.
Precondition Failure Signal
- •Every commit or PR runs full build/test across the repo.
- •Monorepo orchestration is absent or inconsistently configured.
- •Orchestrator replaces language tooling instead of coordinating it.
Postcondition Success Signal
- •Affected-only commands are configured and documented.
- •CI and hooks use affected-only execution where appropriate.
- •Orchestration works across supported components without warnings.
Process
- •Source Review: Inspect repo structure, CI, and existing tooling.
- •Selection: Compare orchestration options and obtain explicit user approval for the chosen tool.
- •Implementation: Configure affected-only commands and integrate with existing build/test scripts.
- •Verification: Prove affected-only execution works and does not skip required quality gates.
- •CI Alignment: Update pipeline and hooks to use affected-only execution
where appropriate (see
ci-cd-conformance). - •Documentation: Update README and ADRs for the orchestration decision.
- •Review: Platform/DevOps and Tech Lead validate CI alignment.
Example Test / Validation
- •Affected-only command runs only impacted components with passing gates.
Common Red Flags / Guardrail Violations
- •Switching orchestration tools without a migration plan.
- •Disabling quality gates to make affected-only execution "green".
- •Orchestrator-specific config diverges from repo standards.
Recommended Review Personas
- •Platform/DevOps Engineer - validates CI/CD integration and performance.
- •Tech Lead - validates scope control and quality alignment.
Skill Priority
P2 - Consistency & Governance
Conflict Resolution Rules
- •
quality-gate-enforcementoverrides speed optimizations. - •If affected-only selection is ambiguous,
incremental-change-impactwins.
Conceptual Dependencies
- •incremental-change-impact
- •selective-build-test
- •ci-cd-conformance
- •quality-gate-enforcement
Classification
Governance Operational
Notes
Orchestration coordinates existing tooling; it does not replace language-specific build/test tools.