Gate publishing and deploys on a maturity level
A style guide with a maturity ladder can now name the level a version must reach before it publishes. One rule judges the level everywhere, so publishing, the deploy gate, the API change check suite and the lint CI gate agree about every version.
- Required publish level. Set
requiredPublishLevel(such assilver) in the guide's policy settings. It must be one of the ladder's levels, and it is frozen into the policy version beside the ladder. - Publishing. A version below the level is refused with
422and amaturityGateobject with the level reached, the level required and the blockers to the next level. Force-publish with a reason gets past it, and every judged publish is audited asversion.maturity_gate(satisfied,forcedorunavailable). - Deploy gate. A new
maturitysignal. It usesmaturity.minMaturityLevelfrom the deploy-gate policy, or the guide's required level when that isnull. Without a ladder the signal isnot_configured. - Check suite. A new
maturitycomponent, judged the same way as the deploy-gate signal. It isadvisoryby default andskippedwithout a ladder. - Lint CI gate.
apiome lint gateprints the level, and SARIF and JUnit carry it asapiome.maturity.*properties. It fails the gate only when the newfailOnMaturityLevelCI outcome is on. The toggle is off by default, so existing pipelines keep their exit codes.
A guide without a ladder never arms any of these gates.
