Protected Static ReadonlyALLOWED_Allowed lifecycle transitions keyed on the model's CURRENT status. The
lifecycle is Draft → Validated → Published → Archived, with the
conservative reversible edges Validated → Archived (abandon a candidate)
and Archived ↔ Published (un-archive / re-archive). Anything not listed
(e.g. Draft → Published) is rejected as an invalid jump.
ProtectedCalibrationThe refusal of a calibration-held model (TrainerModelLineageReader.CalibrationHoldOf) moving to Validated or Published; null for any other model or target (a held model may still be archived).
ProtecteddetectDetermine whether the model was leakage-flagged by re-running the
single-feature-dominance check over its frozen FeatureImportance against the
producing pipeline's threshold, and judging the run's leakage audit its Lineage
records against the same (clamped) threshold: a kept simple baseline stores {}
as its importance, so the finalist's audit is what can flag it. A model whose
Lineage records no audit (trained before the audit existed) is judged by its
importance alone.
ProtectedloadLoad the model as an entity_object (it is mutated to set Status).
Attempt the promotion, enforcing the leakage sign-off gate.
ProtectedrecordPersist an auditable sign-off note for a leakage override. The model is immutable (no free-text column to write), so the override is recorded via the platform log (an operator-visible audit line) and returned in the outcome so the calling Action surfaces it. The note captures who/when/what-was-overridden and the supplied reason.
ProtectedresolveResolve the dominance threshold from the producing pipeline's LeakageGuard.
ProtectedsyncKeep the per-model scoring Action (PS2-2) in step with the model's new
lifecycle status — generate/refresh it on Published (the status that makes a
model usable for scoring) and disable it on Archived. This is a pure
enhancement, NOT part of the promotion contract: any failure is logged and
swallowed so it can never fail an otherwise-successful promotion.
ProtectedtransitionSet ONLY the lifecycle status and save; never touches metrics/artifact. Enforces the ALLOWED_TRANSITIONS state machine first — an illegal jump (e.g. Draft → Published) is refused before any mutation/save.
StaticCalibrationThe plain-language refusal of a calibration-held model, shared by the Promote action and operation.
the MJ: ML Models id
the held finalist's holdout calibration slope; null when it could not be measured
StaticDescribeA short plain description of an outcome that did not promote, for callers that report why a model was not published (auto-train, the pipeline builder).
Loads a model, enforces the leakage sign-off gate, and transitions its status.