learn-content-engine - v0.42.0
    Preparing search index...

    Function isBaseCredible

    • Is the comparison base a plausible predecessor of the head?

      A base that carries NO lessons yields no previous ids, so nothing can be violated and the gate reports green precisely when it matters most: while ids are being minted. That shape means a wrong, empty or unrelated ref (or a genuinely first publication, which has to be stated explicitly), never a clean run.

      A base WITH lessons but zero stable_ids is the normal mint-wave shape and stays credible: that is exactly the state a minting PR starts from.

      Parameters

      • checked: {
            baseIds: number;
            baseLessons: number;
            baseRetired: number;
            headIds: number;
            headLessons: number;
            headRetired: number;
            headTypeMigrations: number;
            typeMigrationsApplied: number;
        }
        • baseIds: number
        • baseLessons: number
        • baseRetired: number
        • headIds: number
        • headLessons: number
        • headRetired: number
        • headTypeMigrations: number

          Type migrations the head declares, and how many of them turned a V3 into an accepted change (engine#254).

        • typeMigrationsApplied: number

      Returns { credible: boolean; reason?: string }