Skip to main content
A module initiative is weeks of work: a new module, schema migrations or a behavior change that must be turned on in a controlled way. It ships in phases, each one merged into develop behind a feature flag.
Discovery with PRD, tracker and decision log; phase 1 expand with the flag off; build phases behind the flag, each one as a Level 3 branch; rollout turning the flag on per environment; contract removing the old code and the flag.

Phased initiative behind a flag

Rules

Recipe

1

Create the initiative

Write the PRD with the requirements (REQ-xx), the per-phase milestones in tracker.yml and the first decisions in the decision log. The first PR can be documentation only.
2

Create the feature flag turned off

In the first phase, together with the schema expansion (new, additive tables or columns). Nothing that already exists changes behavior.
3

Build in phases

Each phase follows the Level 3 recipe: integration branch, sub-PRs and a final PR to develop. The new code stays behind the flag.
4

Roll out per environment

Turn the flag on in development, then in certification and finally in production. Record each step in the initiative’s rollout plan.
5

Contract

Once the flag is on and stable in production, remove the old code paths, the columns that are no longer used and the flag itself. It is one more phase, with its own PR.
If a PR cannot be split and goes over 1,500 lines or 60 files, use the large-change label and record the reason in the decision log. The Initiative declared check only accepts the label if the decision names it.

Checklist

  • Initiative with a README, PRD, tracker.yml and decision log.
  • Feature flag created turned off in the first phase.
  • Each phase is a Level 3 that reaches develop within ~2 weeks at most.
  • Expand/contract migrations; nothing breaks the previous code.
  • Flag rollout recorded per environment.
  • A contract phase that removes the flag.