diff --git a/src/subsync/alass-align.test.ts b/src/subsync/alass-align.test.ts index c39abfa4..2154b540 100644 --- a/src/subsync/alass-align.test.ts +++ b/src/subsync/alass-align.test.ts @@ -325,6 +325,6 @@ test('scoreStanding caps a weak-quarter fit unless every quarter agrees on line const strongCoverage = { above: 14, alone: 5, weakestPart: 0.5 }; // One quarter does not fit and starts do not agree everywhere: below the 0.65 auto bar. assert.ok(scoreStanding({ ...strongCoverage, starts: 0 }, CALIBRATION_CLEAN) <= 0.6); - // Every quarter agrees line for line (starts is the weakest quarter's z): not a partial fit. + // Starts agree significantly in every quarter and strongly overall: treated as a full fit. assert.ok(scoreStanding({ ...strongCoverage, starts: 9 }, CALIBRATION_CLEAN) > 0.65); }); diff --git a/src/subsync/alass-align.ts b/src/subsync/alass-align.ts index 812a4287..b4253dfd 100644 --- a/src/subsync/alass-align.ts +++ b/src/subsync/alass-align.ts @@ -656,8 +656,8 @@ export function scoreStanding(z: AlignmentStanding, cal: SyncCalibration): numbe covered = Math.min(covered, PARTIAL_FIT_SCORE_CAP); } // Intended override of the weak-quarter cap: startsStanding only reports the whole-file - // start agreement when every quarter's own agreement reaches PIECE_Z_MIN (else it reports the - // weakest quarter), so clearing STARTS_Z_MIN means line starts agree significantly in every + // start agreement when every quarter's own agreement reaches PIECE_Z_MIN (else the lower of the + // weakest quarter and the whole file), so clearing STARTS_Z_MIN means line starts agree significantly in every // quarter. A recap or wrong-episode fit has a quarter near zero there. Coverage alone can dip // in one quarter for benign reasons, such as VAD over a music-heavy stretch. const started =