Conversation
…ling, and editorial rules Job 44 (6POL0102) exposed systemic issues: the formatter fabricated a host name from garbled live captions because Airtable SST context was unavailable. This overhaul addresses speaker attribution accuracy, content preservation, and PBS Wisconsin house style across the entire agent pipeline. SST context expansion: - Add get_project_record() to AirtableClient for linked Project lookups - Extract Social Media Description and follow Project→Notes for series cast info - Auto-parse speaker names from SST text fields into Host/Presenter when not set - Add Social Media Description and Project Notes to all phase prompts Agent prompt improvements: - Analyst: detect live caption sources, never fabricate names from garbled text - Formatter: PBS house style (Capitol, OK, liberals lowercase, Legislature caps, no oxford commas, abbreviated honorifics, em dash discipline, Marquette Poll), two-trailing-space line breaks, content preservation rules - Manager: CRITICAL speaker name verification against SST data Code fixes: - Strip Model/Creator/Agent attribution lines in chunked merge (mid-doc bug) - Lower timestamp auto-trigger threshold from 30min to 10min - Strengthen verbatim instructions to reconstruct garbled captions, never omit - Load Wisconsin proper-noun reference for analyst and formatter phases New files: - knowledge/wisconsin_reference.md: place names, political figures, legal cases [Agent: Claude Code] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rolls in guidelines from the /timestamps skill (the-lodge) into Cardigan's timestamp agent prompt. Key improvements: - Duration-based chapter count caps (3-10 depending on length) - Mandatory "Episode intro" as first chapter name - Sentence case naming convention for PBS descriptions - "Capture the topic, not the format" naming rule - Neutral/professional tone guardrail for public media - Updated quality checklist [Agent: Claude Code] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
Author
Code reviewFound 1 issue:
cardigan/api/services/worker.py Lines 2228 to 2232 in 0f017ef Relevant Dockerfiles to update:
🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Addresses code review finding on PR #54: the knowledge/ directory (containing wisconsin_reference.md) was not being copied into Docker containers, so the Wisconsin proper-noun reference would silently never load in production. Also fixes stale "30+" comment to match the new 10-minute timestamp threshold. [Agent: Claude Code] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
Two additional chaptering rules from the /timestamps skill: - Align chapter timestamps to speaker transitions (>> markers) rather than mid-speech topic keywords - Use parallel framing for political content to avoid editorial bias in candidate/party chapter names [Agent: Claude Code] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 27, 2026
Dockerfile.api was missing COPY alembic/ — migrations couldn't run in the container. Also updated alembic/env.py to read DATABASE_PATH env var so it connects to the correct SQLite path in Docker (/data/db/dashboard.db) instead of the hardcoded local ./dashboard.db. [Agent: Main Assistant] Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
Context
Job 44 (6POL0102, Inside Wisconsin Politics) exposed that the pipeline fabricated "Guy Wagtendonk" as the host name from garbled live caption text. The actual host is Shawn Johnson. Root cause: no Airtable SST context was available (API key missing from Docker), and no agent was trained to handle live captioning artifacts. Comparison with the human editor's final versions confirmed additional gaps in content preservation and speaker attribution accuracy.
Test plan
🤖 Generated with Claude Code