Member Junction
    Preparing search index...

    Loads a model, enforces the leakage sign-off gate, and transitions its status.

    Implements

    Index

    Constructors

    Properties

    ALLOWED_TRANSITIONS: Readonly<
        Record<string, readonly PromoteModelRequest["targetStatus"][]>,
    > = ...

    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.

    Methods

    • Determine 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.

      Parameters

      Returns Promise<{ flagged: boolean; topFeature?: string; topShare?: number }>

    • Persist 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.

      Parameters

      Returns string

    • The plain-language refusal of a calibration-held model, shared by the Promote action and operation.

      Parameters

      • modelId: string

        the MJ: ML Models id

      • slope: number

        the held finalist's holdout calibration slope; null when it could not be measured

      Returns string