From 48a6c0a353ba335ca3959805e6acf13035867fda Mon Sep 17 00:00:00 2001 From: sudacode Date: Sat, 28 Nov 2026 04:35:50 -0800 Subject: [PATCH] docs(subsync): state precisely what the starts override of the weak-quarter cap relies on --- src/subsync/alass-align.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/subsync/alass-align.ts b/src/subsync/alass-align.ts index 14094768..812a4287 100644 --- a/src/subsync/alass-align.ts +++ b/src/subsync/alass-align.ts @@ -655,10 +655,11 @@ export function scoreStanding(z: AlignmentStanding, cal: SyncCalibration): numbe if (z.weakestPart !== undefined && z.weakestPart < PART_COVERAGE_Z_MIN) { covered = Math.min(covered, PARTIAL_FIT_SCORE_CAP); } - // Intended override of the weak-quarter cap: `starts` is itself the weakest quarter's - // line-start agreement, so clearing STARTS_Z_MIN means every quarter matches line for line - // (a partial fit cannot). Coverage alone can dip in one quarter for benign reasons, such as - // VAD over a music-heavy stretch. + // 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 + // 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 = z.starts >= STARTS_Z_MIN ? Math.max(