Repository navigation
D131a — shell: each line of a transcript says who spoke, named by the user — one line, or a voice everywhere - #1406
Draft
kitokey-lina[bot] wants to merge 8 commits into
Draft
kitokey-lina[bot] wants to merge 8 commits into
kitokey-lina[bot] wants to merge 8 commits into
Conversation
…ser: a name given to one line, or to a voice everywhere Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747
…a voice everywhere, kept across a redo tests/voices.rs (8 tests) on a `voices` stub that refuses everything: a name given to one line gives it alone a voice of the person's own (`#1`, `given`), its name in speakers.json's `voices`; the same name is the same voice; a name given to a voice names every line of it (a voice not told: its side, as #1205); a producer's label is given a label of the person's own first; refusals write nothing; a transcript made again carries the voices given by their stretch of the clock, the one given last within two, and returns the given lines it cannot find (transcript/v1, #1244, #1251). e2e speakers_by_line: the same three criteria through the window, by keyboard alone, axe on the open field, no name logged. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ne line, a voice everywhere, kept across a redo voices.rs: a name given to one line gives it alone a label of the person's own (`#n`, `given`), its name in speakers.json's `voices`; the same name on the same track is the same label; a name given to a voice renames its label, names its side when no voice is told (#1205), and gives a producer's label a label of the person's own first (transcript/v1, #1244). A transcript made again takes the voices given by each segment's stretch of the clock, the one given last within two, under the making's lock, before its summary reads it. The window: each line's speaker is a button, once complete in a v3 meeting, its name « {who} : changer qui parle à {time} »; it opens « Qui parle sur cette ligne ? » under the line — « Cette ligne seulement » or « Toutes les lignes de cette voix », the meeting's names offered —, Enter saves, Escape closes it, the focus back on the line's speaker. The lines a redo found no line for are said on the transcript, the previous version keeping them. cargo test: 604 passed, 0 failed; fmt and clippy -D warnings clean. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… moves to D131b What D131a holds: one line named, a voice named, by the window and by voices.rs (criteria 1 and 2). The transcript made again keeping them (criterion 3, voices::carried, the page saying the lines it found none for) is D131b, the next pull request on this one: 741 + 16 lines here. cargo test: 602 passed, 0 failed; fmt and clippy -D warnings clean. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ss a redraw; the suggestion's Enter taken The red at b3929e7 raised a StaleElementReferenceException on a button held across the page's redraw: the oracle now fails there, never crashes. The green at a2c6f62 failed from the second naming on: a name the meeting holds is offered under the field and its first Enter takes the suggestion (APG's combobox); the scenario presses Enter again when the field is still open. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the oracle holding the accessible name, Tab and the redraw - A blank name: « Saisissez un nom, ou appuyez sur Échap pour annuler. » under the field, what was typed kept, nothing asked of the shell; a name not kept says why (« Nom non enregistré : … »), never « ces noms ». - speakers_by_line is DJ (handoff-common l.77). It now checks: the accessible name (WCAG 2.5.3), the speaker following its line in the order of Tab (D62), the field kept when the window comes back, the blank name, and the log holding shell.voice_given before it is read for names. cargo test: 602 passed, 0 failed; fmt and clippy -D warnings clean. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…:voices, two refusals as one, the redo's model left to D131b cargo test: 602 passed, 0 failed; fmt and clippy -D warnings clean. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task
… — and the field selected by script The green at 7964290 failed twice on the oracle, never the product: a meeting with no sound has no line in the order of Tab (got role None, tabIndex -1 on each line, 0 on each speaker), so D62's roving was never reached — DJ's meeting now plays, as AB's; and ActionChains' Ctrl+A typed an « a » (got « aPersonne ») — the field is selected by script. The redo's helpers (idle, the transcript set aside) are D131b's. Agent-Session: a9706e0b-8e19-4419-9d88-76384b634747 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
For the decider, in one sentence: on a finished transcript, the name on each line is now a button: you give that line to someone (« Maya »), or name every line of its voice at once, and the names stay with the meeting.
flowchart LR L["A line's speaker<br/>(a button, once complete)"]:::new --> F["« Qui parle sur cette ligne ? »<br/>the meeting's names offered"]:::new F -->|« Cette ligne seulement »| O["that line alone: voice #n, given<br/>transcript.jsonl replaced whole"]:::new F -->|« Toutes les lignes de cette voix »| V{"its voice"}:::ask V -->|not told| S["its side named<br/>(#1205's me / others)"]:::old V -->|#n, a person's| N["speakers.json voices<br/>remote/#n → name"]:::new V -->|a producer's label| P["a #n of the person's own<br/>on each of its lines, then named"]:::newLegend: green is new in this pull request; grey is on main; the dark node is the question the shell answers.
Module
shell, exactly one:src/voices.rs(new),src/speakers.rs,src/correction.rs(two helpers madepub(crate)),src/main.rs,src/words.rs,ui/window.js,ui/window.css,tests/voices.rs(new),scripts/e2e_window.py,src/lib.rs.Deliverable
Deliverable: D131
D131 (cycle 12, P2): « Given a meeting's transcript, when the user names the speaker of one line, then that line takes the name, written as
transcript/v1lets the shell write it (#1251); when they name a voice, every line of that voice takes it (speakers.json); a redo keeps both, as the contract's key says; held by the e2e and the shell's tests ».This pull request holds the first two clauses. « A redo keeps both » is D131b (
d131b-voices-kept-across-a-redo, on top of this one), split off for the review budget. Until D131b merges, a redo leaves the given voices intranscript-previous.jsonland does not say so: see Risks.What it changes
datalist), and two choices, « Cette ligne seulement » (the default) and « Toutes les lignes de cette voix ». Enter saves; Escape or « Annuler » closes it as it was. Either way the focus goes back to the line's speaker. A blank name is said under the field (« Saisissez un nom, ou appuyez sur Échap pour annuler. »), nothing asked of the shell. A name the shell refuses says why (« Nom non enregistré : … », the shell's own words,role=alert). What was typed stays either waytranscript/v1« a voice given » (#1244): that segment alone gets a label of the person's own (#1,#2…) andgiven= the instant. The file is replaced whole: written beside, then renamed.speakers.jsonvoicesgetsremote/#1 → Maya(session-audio/v3). The same name on the same track reuses its label#nlabel: its name changes and the transcript stays untouched. No voice (null): its side is named, as #1205 does. A producer's label: each of its lines first gets a#nof the person's own, because a producer's label holds within one transcript only (transcript/v1)complete, while the transcript is being made or is waiting, while its summary is being written, before v3, or a blank name, or one over 60 characters: nothing is written. These are the same gates as a correction (D62). The gate while the transcript or summary is being made is not covered by a test. It is D62's code, copied intovoice_given, and an e2e check of it would race the transcription stand-in. No name is ever loggedPrior art (#1230's research, 2026-11-25, sources there). Fireflies renames a speaker on one line or on every line of its label. Those two scopes are the convention kept here. Otter does the same, and MacWhisper adds merging and reassigning by shortcut. Granola stops at « Me / Them », where Kitokey stood with #1205. The market is moving to on-device diarization (MacWhisper 12+, sherpa-onnx). Its labels will land in
voice, and naming one is already handled here (a producer's label). Left out:transcript/v1« never »);speakers.jsonas Request: give a meeting's voices their speakers' names #1205 left it.Oracle
voicesstub that refuses everything):cargo test --test voices: 0 passed, 8 failed. Each test fails on the stub'sErr(File("not built")).speakers_by_line3 FAIL (« each line's speaker is a button », « Enter … opens « Qui parle sur cette ligne ? » », axe with no field), then raised a StaleElementReferenceException on a button held across a redraw (logs/partial-i-lina-d131-red-b3929e75-e2e.txt). Fixed at ef71797: the scenario holds ids, never references, so it fails there and never crashes.cargo test602 passed, 0 failed;cargo fmt --checkandclippy --all-targets -D warningsclean.speakers_by_line,speakers_named,transcript_corrected,corrections_gated(run queued). Since ines' reading at fd45399, DJ also checks: the accessible name, the speaker following its line in the order of Tab (D62), the field kept when the window comes back, the blank name, and the log holdingshell.voice_givenbefore it is read for names. An earlier run at a2c6f62, D131b's tree: 57 ok, 4 FAIL, all from the second naming on. A name the meeting holds is offered under the field, and its first Enter takes the suggestion (APG's combobox); the scenario now presses Enter again (logs/partial-i-lina-d131-green-a2c6f624-e2e.txt).Kind of oracle: the shell's tests (
tests/voices.rs, 6 here, 2 more in D131b) and the window's e2e, DJ (speakers_by_line).Verifier
ines (named by the coordinator, 2026-11-30). Merge order: after #1333, before #1397.
Review budget
nstack pr-scope: 798 lines of 800, 10 files of 15, at 7964290.Test sheet
voice: "#1"withgiven,speakers.jsonvoices{"remote/#1": "Maya"}; the same name on another line is#1too#1says it, the others as they were; read again with the meeting, the names staytests/voices.rsholds each caseSummary
DONE
voices.rswritesvoiceandgivenastranscript/v1lets the shell, and the names inspeakers.jsonvoices.VERIFIED
cargo test: 602 passed, 0 failed at 7964290; red, 8 failed at b3929e7.ASSUMED
NOT VERIFIED
RISKS
transcript-previous.jsonl, and « Versions » brings them back. D131b follows directly.🤖 Generated with Claude Code