| Metadata | Value |
|---|---|
| Status | Active |
| Version | 1.0.0 |
| Last Updated | 2026-09-10 |
| Author | Sangeetha Grantha Team |
| Document Type | Evidence record |
[!NOTE] Historical evidence: results, counts, commands, and observations below belong to the original work described here. The editorial update date is not a new test or corpus verification. For present behavior, use current feature map.
| Metadata | Value |
|---|---|
| Status | Active |
| Version | 1.0.0 |
| Last Updated | 2026-02-11 |
| Author | Sangita Grantha Architect |
This report documents the end-to-end investigation and remediation of the Krithi import pipeline. The system was failing to correctly deduplicate compositions from disparate sources (PDF vs. Blogspot), resulting in data “spam” and process loops. Through a series of code patches and data fixes, we have hardened the “System of Record” to handle transliteration variances and typos.
entity_resolution job was stuck in a restart loop.ImportRepository.findOrCreateSource was creating duplicate records for “BulkImportCSV”. When querying for the source, the code expected a single result but found 20, causing a singleOrNull() exception that crashed the worker threads.limit(1) during source lookup.UNIQUE constraint on import_sources.name.Guru Guha Vaibhavam: Dikshitar Kriti - ... - Raga ....<title> because the metadata parser failed to match lines that lacked a Tala specification.metaRagaPattern to support Title - Raga format.cleanTitle() to strip common prefixes.KrithiRepository.NameNormalizationService to map both muthuswami and mutuswami to the canonical muttuswami diksitar. Aligned seed data to match.A custom integration test script (tools/test_integration_pipeline.sh) was executed to simulate the real-world environment (Docker + Python Worker + Kotlin Backend).
mdeng.pdf (Pages 17-37).Kalyāṇi) and Blogspot (Kalyani) differed enough to miss the “Metadata Bonus” threshold. Further refinement of Raga name normalization is recommended.KrithiStructureParser.kt: Added title cleaning and improved regex.ExtractionResultProcessor.kt: Implemented Levenshtein fuzzy logic and metadata-aware thresholds.ImportRepository.kt: Fixed singleton source lookup.NameNormalizationService.kt: Hardened composer and vowel normalization.KrithiRepository.kt: Added compressed title search.30__fix_entity_resolution_cache_schema.sql: Fixed missing updated_at column.Report generated by Sangita Grantha Architect.