Type the transcript rail — speaker and notice kind as data, one shared tool-payload decoder #177

Closed
opened 2026-11-09 11:18:51 +01:00 by AlexKucera · 0 comments
Owner

What to build

From the 2026-11-09 architecture review (mentor line, step 1 of 3).

SessionRow's text rows carry who spoke and what kind of notice they are as typed data, not string prefixes. The session model already knows both facts at append time; today it serializes them into Mentor: / You: display strings that four downstream consumers re-parse (the transcript classifier, the warning styling, the pass kick-off collapse, the draft-candidate extraction). After this ticket:

  • Text rows carry a speaker (agent / user / system) and system rows carry a notice kind (refused, interrupted, connectionLost, kickoff, failed, plain). No stored row contains a speaker prefix.
  • Fix Card and Research Note tool payloads decode through one shared lenient decoder (card-rail nested shape and the older flat fake shape both kept for now), consumed by the museion-tools MCP server and the session model alike — today two decoders with different strictness silently drift.
  • The one classification that cannot be known at append time — a replayed pass kick-off arriving as an ordinary user turn — is sniffed exactly once, at the append seam, and typed there.
  • The transcript view, the writing-session filter, and the New Post from Session prefill become consumers of typed rows (pure functions, no prefix matching).

The UI renders identically: same voices, same capsules, same status styling. This deletes the self-owed debt comment in the session model ("until SessionRow carries speaker identity — an enum reshape is its own ticket").

Acceptance criteria

  • Text rows carry speaker + notice kind as data; no stored row carries a speaker prefix string; the debt comment is gone
  • Replay kick-off classification happens once at the append seam; every downstream classifier/styler switches on typed data
  • One shared decoder serves MCP server and session model; a wire-shape change fails in exactly one test suite
  • Draft-candidate extraction and the writing-session filter are pure over typed rows
  • Transcript rendering unchanged on existing fixtures; full suite green

Blocked by

None (can start immediately).

[Generated by AI]

## What to build From the 2026-11-09 architecture review (mentor line, step 1 of 3). SessionRow's text rows carry who spoke and what kind of notice they are as typed data, not string prefixes. The session model already knows both facts at append time; today it serializes them into `Mentor: ` / `You: ` display strings that four downstream consumers re-parse (the transcript classifier, the warning styling, the pass kick-off collapse, the draft-candidate extraction). After this ticket: - Text rows carry a speaker (agent / user / system) and system rows carry a notice kind (refused, interrupted, connectionLost, kickoff, failed, plain). No stored row contains a speaker prefix. - Fix Card and Research Note tool payloads decode through **one shared lenient decoder** (card-rail nested shape and the older flat fake shape both kept for now), consumed by the museion-tools MCP server and the session model alike — today two decoders with different strictness silently drift. - The one classification that cannot be known at append time — a replayed pass kick-off arriving as an ordinary user turn — is sniffed exactly **once, at the append seam**, and typed there. - The transcript view, the writing-session filter, and the New Post from Session prefill become consumers of typed rows (pure functions, no prefix matching). The UI renders identically: same voices, same capsules, same status styling. This deletes the self-owed debt comment in the session model ("until SessionRow carries speaker identity — an enum reshape is its own ticket"). ## Acceptance criteria - [ ] Text rows carry speaker + notice kind as data; no stored row carries a speaker prefix string; the debt comment is gone - [ ] Replay kick-off classification happens once at the append seam; every downstream classifier/styler switches on typed data - [ ] One shared decoder serves MCP server and session model; a wire-shape change fails in exactly one test suite - [ ] Draft-candidate extraction and the writing-session filter are pure over typed rows - [ ] Transcript rendering unchanged on existing fixtures; full suite green ## Blocked by None (can start immediately). [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-09 11:18:53 +01:00
Sign in to join this conversation.