fix: scope meeting summarization to primary meeting body#85
Merged
AndreRobitaille merged 4 commits intomasterfrom Apr 9, 2026
Merged
fix: scope meeting summarization to primary meeting body#85AndreRobitaille merged 4 commits intomasterfrom
AndreRobitaille merged 4 commits intomasterfrom
Conversation
Member.resolve() can map different raw names to the same Member via alias lookup or title stripping, causing uniqueness violations on MeetingAttendance. Skip duplicate attendance creation for same member. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Prevents bin/clone-production-db (a destructive data sync tool) from being accidentally committed to the repository. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
City Council packets and minutes contain embedded minutes from subordinate committees (Plan Commission, Room Tax Commission, etc.) included for acceptance. The AI was extracting public comments and item details from those embedded minutes as if they belonged to the Council meeting. Adds body_name to the analyze_meeting_content prompt so the AI knows which body's proceedings to extract from, and adds a <document_scope> instruction to explicitly ignore embedded committee content. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
body_nameplaceholder to theanalyze_meeting_contentprompt template and a<document_scope>instruction telling the AI to only extract content from the named body's proceedingsChanges
app/services/ai/open_ai_service.rb— passbody_namefrom source meeting into prompt placeholderslib/prompt_template_data.rb— add<document_scope>section with{{body_name}}to theanalyze_meeting_contenttemplatetest/services/ai/open_ai_service_analyze_meeting_test.rb— test that body_name appears in prompt and embedded-minutes warning is presentDeployment note
After deploy, the prompt template in the database needs updating. Either re-seed or manually edit at
/admin/prompt_templates. Then re-runSummarizeMeetingJobfor affected meetings (e.g., meeting 155).Test plan
🤖 Generated with Claude Code