@oss-autopilot/core - v3.14.5
    Preparing search index...

    Function applyStatusOverrides

    • Apply status overrides from state to the PR list. Overrides are auto-cleared if the PR has new activity since the override was set.

      When an override changes the status, the contradictory reason field is cleared and an appropriate default is set so downstream logic (assessCapacity, collectActionableIssues) works correctly.

      Parameters

      • prs: FetchedPR[]

        The fetched PR list to apply overrides to

      • state: Readonly<AgentState>

        Current agent state containing status overrides

      • Optionalfailures: string[]

        Optional collector (#1448): a message is pushed for each PR whose override lookup threw (that PR keeps its un-overridden status). Call sites surface these in warnings[]/partialFailures so the silently wrong status is visible in the envelope, not just stderr.

      Returns FetchedPR[]

      New PR array with overrides applied (original array is not mutated)