Repository navigation
Resume work a quit or crash cut short, and checkpoint long steps. - #94
Merged
Merged
Conversation
- Save raw/live.json every few seconds while recording, with open-ended untranscribed marks; the next start transcribes the marked audio again. - Track owed steps (transcribe, speakers, notes) in the manifest's pending list; resume.ts picks them up at startup, reading only sessions that owe something. - Keep the whole recording's diarization and each notes model answer as checkpoints, so a retry skips what was already done. - Add `--crash` to smoke:meeting to replay a crash and the resume.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…ability-51049a # Conflicts: # apps/lyra/src/main/meeting/relabel.ts
Merged
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Until now, a quit or crash in the middle of a session's work lost it. Words transcribed during a recording were only saved when the recording stopped. Settling speakers and writing the summary were started by in-memory events, so they never ran again after a restart. Now Lyra picks the work up the next time it starts (
src/main/resume.ts).raw/live.jsonis saved every few seconds with an open-endeduntranscribedmark per track. A mark is also saved the moment a take starts, so a crash before the first words still leaves one. At the next start, the marked audio is transcribed again fromaudio/*.wav, and only the words after each mark are kept. Whisper's prompt is the words heard just before the gap.pendinglist oftranscribe,speakersandnotes. Each is added when it becomes due and removed when it ends. A step that fails is removed too, so it isn't retried and re-reported at every launch. A step cut off by the quit itself stays owed (lifecycle.ts). Startup only reads sessions that owe something, and it never moves an unreadablelive.jsonaside.checkpoint/in the session folder, kept apart fromraw/, where every file is a pass):.partfile. They now pick up as soon as a resumed step needs the model.transcribekind.pnpm smoke:meeting --crashreplays a recording that dies halfway, then resumes it the way the next start would.Design notes are in
docs/SESSION-MODEL.md→ "Resuming interrupted work".For reviewers:
DiarizeResultand its parts inmeeting/protocol.tsare now zod schemas, so the diarization checkpoint is validated when it's read back.relabelSessionnow resolves to how it ended (labeled,unlabeledorskipped), so resume knows whether the lines were rebuilt.Checks
pnpm typecheck(andpnpm check: lint, unit tests, CONFIG.md).changeset/resume-interrupted-work.md)pnpm smoke:ui: newcheckResumecase, plus a check that a later take's marks start at that takeQA with real audio (
test-audio/meeting.wav, the 8-line two-voice script):--crashat 50%: resume re-transcribed 24 s (53 words) and relabeled it. 5 lines, 2 speakers, correct up to the crash point.LYRA_SESSIONS_CORPUS=mini pnpm eval:sessions --quick --check): there's nowin32-x64baseline, so--checkcan't pass on Windows. The totals match the stored macOS baseline: WER 20.5 vs 20.3%, cpWER 23.7 vs 23.5%, DER 15.8 vs 15.8%.room-2-musicis 66% on both.Not covered:
pnpm dev.