fix(db): one-time cue reset (db/34) — retire pre-v3.3.1 truncating cue points - #439
Merged
Merged
Conversation
…e points Every cue measured before the gh-#424 analyzer fix can carry a mid-file cue_out. Nulling cue columns is instantly curative (NULL = full-file playback) and the F13 backfill predicate re-measures every row with the fixed analyzer. Marker-guarded via library.one_time_fix so re-runs never clobber fresh measurements — zero operator action needed (no manual bulk re-enrich).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The gh-#424 rollout gap, closed with zero operator action: persisted cue rows (music enrichment + authored imaging) measured before v3.3.1 can carry a mid-file
cue_out— Dean heard 'Apologies - TriFace' clip at a pause today. Rather than every operator running a manual bulk cue re-enrich, db/34 does it once at deploy.🔧 Mechanics
cue_in_sec/cue_out_sec/cue_analyzed_aton every already-analyzedlibrary.mediarow. Instantly curative — NULL cue = full-file playback (blank.eat backstops untrimmed tails) — then the F13 backfill predicate re-measures everything with the fixed analyzer at the worker's 50/tick pace.library.one_time_fixmarker table (claim-CTE guards the UPDATE); reusable for later data-shaped fixes until the real migration runner (gh-P2.3: Migration runner adoption (DbUp/grate) with bash scripts as baseline #12).✅ Verification (real postgres:16.4 + the real 01-library.sh schema)
cue_out=9.9) → run 2 is a proven no-op (9.9 survives).migrate.shsemantics (env-guarded, ON_ERROR_STOP, idempotent DDL — the NOTICE on re-run is the IF NOT EXISTS skip).Ride this into v3.3.2 — on merge I'll tag and run the release train.