tarlatan
    Preparing search index...

    Function estimate

    • The estimate in points for the next step of role in a window (R-P3).

      It looks at the role's last five finished steps (the last five of finished with that role, so finished must be in finishing order). If any of them was measured in the window, the estimate is the largest measured increase; otherwise it is initialEstimate. Either way it is raised to minEstimatePoints if lower, because the one-point minimum applies to admission and reservations alike (O15).

      Parameters

      • finished: readonly FinishedStep[]
      • role: "implementer" | "reviewer" | "corrector"
      • policy: {
            dropTolerancePoints: number;
            freshnessMillis: number;
            initialEstimate: number;
            minEstimatePoints: number;
            providers: {
                claude: {
                    windows: readonly {
                        reservePercent: number;
                        window: "fiveHour" | "weekly";
                    }[];
                };
                codex: {
                    windows: readonly {
                        reservePercent: number;
                        window: "fiveHour"
                        | "weekly";
                    }[];
                };
            };
            resetToleranceMillis: number;
        }

      Returns (window: "fiveHour" | "weekly") => number