Implement meeting transcript platform#1
Open
himself65 wants to merge 1 commit into
Open
Conversation
Next.js 16 + Prisma 7 + SQLite implementation of the take-home: - Calendar events with timezone-aware times (wall-clock + IANA zone stored as UTC instant + zone, DST-correct conversion) - Immutable raw transcripts (1:1 per event) and append-only processed transcript versions (PIPELINE | MANUAL_EDIT source) - Async processing pipeline: explicit job rows (PENDING -> PROCESSING -> COMPLETED | FAILED), atomic claims, in-process drain loop + sweeper crash recovery, user-triggered retry, deterministic [[FLAKY]] failure injection for demos - Per-meeting-type summaries via a Record<MeetingType, Summarizer> registry emitting a shared block vocabulary; adding a type is one enum value + one summarizer file, enforced at compile time - Deterministic rule-based mock processor (parse -> clean -> summarize) - 63 tests: parser/cleaner edge cases, all three summarizers against the sample data, job lifecycle incl. concurrency and retry, sweeper recovery, validation, DST characterization, and HTTP route contract See DESIGN.md for the data model, pipeline design, and trade-offs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
Full implementation of the take-home: a meeting transcript platform built with Next.js 16 (App Router) + TypeScript + Prisma 7 + SQLite — no Docker needed.
See DESIGN.md for the data model, async pipeline design, per-type format organization, trade-offs, and what I'd build next.
The four capabilities
RawTranscript(1:1 per event, immutable: no update path, re-attach → 409) and append-onlyProcessedTranscriptVersionrows withPIPELINE | MANUAL_EDITsource and a unique(eventId, version). Attach by paste,.txtupload, or one-click sample loading.TranscriptJob(PENDING → PROCESSING → COMPLETED | FAILED). Atomic conditional-update claims, an in-process drain loop, and a sweeper (viainstrumentation.ts) that recovers PENDING jobs after restarts and resets orphaned PROCESSING rows. Job status is visible in the UI with retry for failed jobs. A transcript containing[[FLAKY]]deterministically fails its first attempt and succeeds on retry — for demoing the failure path.Record<MeetingType, Summarizer>registry: Q&A pairs + key takeaways (expert call), overview/remarks/investor Q&A (roadshow), topics/decisions/action items with owners (weekly group call). All summarizers emit a shared block vocabulary, so storage, API, and rendering are type-agnostic; a fourth type is one enum value + one summarizer file, and forgetting to register it is a compile error.The processor is a deterministic rule-based mock (parse → clean → summarize); an LLM-backed implementation would replace one function behind the same signature.
Tests (63)
Parser edge cases, cleaner meaning-preservation and idempotence, all three summarizers against the real sample files, job lifecycle (success / parse failure / flaky-retry / atomic claims under concurrency / one-active-job guard for enqueue and retry), sweeper crash recovery, version monotonicity, DST boundary characterization, input validation, and the HTTP route contract (handlers called directly as functions).
🤖 Generated with Claude Code