Sangeetha-Grantha

Metadata Value
Status Completed
Version 1.1.0
Last Updated 2026-10-16
Author Sangeetha Grantha Team

Track: Tyagaraja Corpus Concordance & Musicological Classification

ID: TRACK-147
Status: Completed Owner: Seshadri
Created: 2026-09-30
Updated: 2026-10-16


Goal

Produce an evidence-backed classification master for the reconciled Tyagaraja catalogue, comparable to the Dikshitar master in coverage and accountability, organised around devotional themes, ritual functions, formal groups, dramatic works, supported sacred geography and transmission witnesses.

Context

Intent

Status: Accepted Accepted by: Seshadri Accepted at: 2026-09-30

Problem

We want a complete Tyagaraja concordance with the same accountability as the Dikshitar master, while reflecting Tyagaraja’s devotional arguments, musical reflection, ritual repertoire and dramatic works. Flat Rama or Pancharatnam tags do not distinguish these meanings and functions, and temple-centred classification would force unsupported geography onto many compositions.

The source inventory and recorded import total disagree. Current evidence and metadata coverage are unknown for this initiative. A title or raga label may identify an alias or a transmitted setting rather than a distinct composition. A single modern edition cannot silently collapse textual, melodic, rhythmic or structural differences across witnesses.

Proposed outcome

  1. Reconciled corpus snapshot. Map source rows and track targets to stable catalogue identities. Classify differences as aliases, duplicates, omissions, failed/pending imports, exclusions or unresolved records. Begin research on a versioned snapshot, but account for every candidate before claiming final completeness.
  2. Full master and source concordance. Maintain structured classification data and generate readable Markdown, source coverage and distributions. Report distinct compositions, membership rows and musical/textual witnesses separately. Preserve unresolved records instead of filling gaps with assumptions.
  3. Multiple evidenced themes. Classify candidate themes such as Rama bhakti, nama mahima, nadopasana, musical knowledge, surrender, instruction to the mind, ethical reflection, saints/teachers and narrative allusion. Cite passages and translations; distinguish literal topic from interpretive bhava. Devotional complaint must not automatically become nindastuti.
  4. Formal and kshetra group review. Establish reviewed Ghana-raga Pancharatnam identities and investigate Kovur, Tiruvottiyur, Lalgudi and Srirangam Pancharatna memberships and shrine associations. Distinguish conventional presentation order from source-attested sequence. Standalone compositions need no artificial group membership.
  5. Ritual and congregational collections. Investigate Utsava Sampradaya and Divyanama membership by edition/tradition, allowing overlap. Record evidenced ritual function such as awakening, invitation, procession, marriage celebration, lullaby or concluding benediction. Do not impose a universal ritual order where sources differ.
  6. Dramatic-work annex. Review Nauka Charitram and Prahlada Bhakti Vijayam as works with constituent items, source-defined divisions, item order, speakers, addressees and narrative events. Preserve musical songs, verse and prose context where available. Dramatic speech must not automatically be indexed as the composer’s autobiographical statement. No invented reconstruction of lost works is included.
  7. Transmission annex. Distinguish composition identity, textual witness, musical setting, school and modern performance version. Preserve source-specific raga/tala, charanam order and text readings; sangati observations require notation or documented rendering. Inventory existing source/canon facilities before selecting new structures.
  8. Qualified deity and geography. Identify the actual addressee/deity/avatar rather than assigning Rama universally. Separate shrine evidence, broad devotional association, pilgrimage tradition, place of performance and place of composition. Use the shared geography-status convention; no dummy temple or unsupported no-kshetra Boolean.
  9. Reviewed application and retrieval. After Plan acceptance, apply approved classifications and memberships through Flyway, protect independently curated links, and evaluate structured filtering plus semantic retrieval. Extend TRACK-146’s shared contract for ritual, drama and transmission. Coordinate shared formatter/macro generation with TRACK-145 and distinguish direct database evaluation from live search API behaviour.

Affected users and systems

Constraints

Open questions

  1. Which source inventory explains the 675/687/692 discrepancy, and which candidates actually require import remediation?
  2. Which editions and manuscript/notation witnesses are accessible for the corpus and the two dramatic works?
  3. How will source-dependent collection membership and ordering be represented without conflating performance convention with original sequence?
  4. Which witness differences require separate musical settings, and which can be represented by existing canon/variant facilities?
  5. What minimum evidence and human adjudication are required for thematic interpretation, disputed attribution and kshetra claims?
  6. Can dramatic verse/prose and work overviews fit existing document anchors, or does the accepted Spec require a new work anchor? Do not assume cycle anchoring is sufficient.
  7. Which shared formatter/search work remains with TRACK-145/146, and what live API behaviour must this track implement or explicitly defer?
  8. What retrieval targets will be accepted for exact groups, thematic search, ritual function, source-qualified variants and uncertainty handling?

Intended deliverables and completion evidence

Research starting points

Spec

Status: Amended (Accepted by Seshadri) Accepted by: Seshadri (explicit chat instruction to bring TRACK-147 to the same end-to-end standard as TRACK-146, including hashed witness registries, multi-witness scholarship, context formatter headers, macro indexer cycles, retrieval benchmarks, and SANGITA_ALLOW_TEST_EDITS=1) Accepted at: 2026-10-15

This spec records what must be true for every Tyagaraja candidate in the 2026-09-30 catalogue snapshot. It does not apply classifications, split identities, or change schema. Product implementation waits for an accepted Plan.

A Carnatic musicologist reviewed this design before it was written. Findings below that were re-checked against sangita_grantha are census facts. Conventional kshetra lists remain unreviewed claims.

Census (2026-09-30, sangita_grantha)

Denominator for this snapshot:

Unit Count Meaning
Catalogue identities 675 krithis with composer Tyagaraja (b1bdccd8-8cb1-4a14-a9e6-7ffc843cd7b6). 674 published, 1 draft (Urakae Kalgunaa).
Source rows on those identities 684 All source_key hosts are thyagaraja-vaibhavam.blogspot.com. Status: 652 approved, 31 mapped, 1 in_review.
Identities with no import row 0  
Unmapped Tyagaraja import rows 0  
External figures not in this database 687 and 692 Post-mortem unique CSV count and TRACK-093 target. They are an unresolved external inventory, not 17 missing compositions.

Coverage on the 675 identities:

Ghana-raga Pancharatnam identities currently tagged, all Adi. The musicologist review treats this as the standard set. Nāṭṭai–Gowla–Ārabhi–Varāli–Sri order is an Aradhana performance convention, not a composer sequence.

Title Raga
jagadAnanda kAraka Nāṭṭai
duDuku gala Gowla
sAdhincenE Ārabhi
kana kana rucirA Varāli
Endaro Mahaanubhaavulu Sri

Eight identities absorb 17 source rows whose raw raga or raw tala disagree. These are unresolved collisions, not confirmed duplicates:

Catalogue title Conflicting source raga / tala
jaya mangaLaM Mohanam / Unknown; Nada namakriya / Adi; Ghanta / Jhampa
pAhi rAma candra Sankarabharanam / Unknown (in_review); Yadukula Kambhoji / Unknown (approved)
paripUrNa kAma Hamsa bhramari / Adi; Puri Kalyani / Adi
Rama Rama Rama Sita Huseni / Unknown; Saveri / Adi
rAma sItA rAma Balahamsa / Unknown; Sankarabharanam / Unknown
Sri Narada Muni Bhairavi / Unknown; Pantuvarali / Rupakam
SrI nArasiMha Bilahari / Misra Capu; Phalaranjani / Unknown
Sri Rama Jaya Rama Madhyamavati / Unknown; Varali / Misra Capu

Catalogue titles that match conventional kshetra-pancharatna incipits are leads only. The review moves sundari nI divya from a Kovur guess to Tiruvottiyur, and ISa pAhi from a Tiruvottiyur guess to Lalgudi. Both moves stay unreviewed until a named edition is cited. sundarESvaruni (Sankarabharanam, Adi) and dArini telusukoNTi (Suddha Saveri, Adi) are already identities; they were absent from the first candidate list, not from the catalogue. No title matching Vinarādhā nā manavi was found. nannu kanna talli (Kesari–Sindhu Kannada) is a different identity from kanna talli (Saveri). Chootaamu Raareyee Vedkanu (Kapi) is a different identity from cUtAmu rArE (Arabhi). karuNa jUDavayya is stored in Sāranga; the review treats Sāranga as the usual raga for the Srirangam song and warns against confusing it with Brindavana Saranga.

Requirements

  1. Account for every snapshot unit. The master must list all 675 identities and all 684 source rows, plus an external-gap register for the 687 and 692 figures. A count difference is not a missing composition. Completion is this dated snapshot, not the historical corpus.
  2. Split or explicitly justify the eight collisions before classification. No theme, deity, group, or ritual label may be attached to a collapsed identity whose source rows disagree on raga or tala. jaya mangaLaM is three source settings, not one mangalam.
  3. One review state per claim. Each classification carries a source locator, evidence type (textual passage, notation, scholarly interpretation, documented tradition, or automated suggestion), and a status of unreviewed, supported, disputed, or unresolved. Inferred labels do not become canonical. Human adjudication is required before a disputed claim is seeded.
  4. Multiple themes, none by default. Candidate axes are Rama bhakti, nama mahima, nadopasana, musical knowledge, surrender, instruction to the mind, ethical reflection, saints and teachers, and narrative allusion. A composition may have several. Literal topic and interpretive bhava stay separate. A devotional complaint is not nindastuti unless the passage has that lexical turn. Theme is not inferred from raga. A song that names the seven swaras does not alter raga or tala reference data.
  5. Deity is the addressee of that composition. Rama is not the default. Null deity remains UNREVIEWED. Kovur addresses Siva; Tiruvottiyur and Lalgudi addresses include the goddess; other addressees include Ganesha, Krishna, Hanuman, and Tulasi. Group membership does not copy a deity onto every member.
  6. Geography uses the shared states from TRACK-146. Proposed states remain UNREVIEWED, SPECIFIC_SHRINE_SUPPORTED, NON_SPECIFIC_ADDRESS, UNRESOLVED, and DISPUTED. An empty temple_id is UNREVIEWED, not a no-kshetra flag. Shrine evidence, broad devotion, pilgrimage tradition, place of performance, and place of composition stay distinct. No dummy temple.
  7. Group types stay distinct. Formal set, thematic collection, ritual collection, and dramatic work are different. Standalone compositions have no artificial membership.
    • Ghana-raga Pancharatnam: the five identities above are the review candidate. Store performance order and any source order separately. The grouping is later tradition, not a declaration by Tyagaraja. Membership belongs in reviewed krithi_cycle_memberships. The existing STOTRA_STYLE tag is legacy heuristic provenance.
    • Kovur, Tiruvottiyur, Lalgudi, and Srirangam pancharatnas: membership and sequence require a named edition. The title leads above are not seedable as written.
    • Utsava Sampradaya and Divyanama: overlap is allowed. Order and membership are per edition or bhajana paddhati. There is no universal ritual order. Ritual function (awakening, invitation, procession, marriage, lullaby, mangalam) is a claim of its own. A shared title prefix is not membership: Nagu Momu Kana Leni (Abheri) is not the ritual piece Nagu Momu Gala Vaani; the three Tulasi titles are three identities.
  8. Dramatic works are an annex. Nauka Charitram and Prahlada Bhakti Vijayam are works with edition-qualified items. Item type (DARU, KIRTANA, PADYA, VACANA, DVIPADA, or other), speaker, addressee, and division are properties of the membership, not a replacement for musical_form. Sung items that already have krithi structure may remain KRITHI as the current storage value. Padya and vacana must not be invented as new KRITHI rows. UNESTABLISHED is the domain-model value for an unknown form; it is not a fourth concert form. Dramatic speech is not the composer’s autobiography. Lost works are not reconstructed. ODanu jaripE (Saranga) is a lead only.
  9. Transmission stays layered. Composition identity, textual witness, musical setting, school, and modern performance version are separate. The 684 source rows are witnesses. Sangati observations require notation or a documented rendering. Ragamalika stays false unless a source shows a raga change. Raw raga and raw tala labels are retained beside canonical IDs, including the eleven desadi rows now stored as Adi.
  10. Structure audit does not invent text. The 27 missing pallavi rows and 4 missing charanam rows are defects to investigate. A missing anupallavi is allowed, and is expected for many Divyanama and Utsava items. Swara passages, including those in the Ghana-raga five, stay in notation variants rather than being copied into lyric text. The composer mudra supports attribution review; its absence does not exclude a song.
  11. Shared contract. TRACK-146 owns identity, evidence vocabulary, group types, geography states, review rules, and distinct-versus-member counting. This track extends that contract for ritual function, dramatic item type, and transmission witnesses. One owner per shared change. Formatter and macro-document generation stay with TRACK-145 unless the accepted Plan assigns a gap to this track. Dikshitar vibhakti, bhuta, and posture columns are not copied onto Tyagaraja.
  12. Application is later and provenance-safe. After Plan acceptance, approved claims go through a new Flyway migration or idempotent repeatable seed. R__seed_07 must not be edited into a second writer of Tyagaraja memberships. Legacy canonical_cycle tag links are reconciled only for the provenance this track owns. primary_language = en is not silently rewritten.
  13. Hashed Witness Registry & Catalogue Snapshot: Maintain a formal witnesses registry on track147-tyagaraja-master.json with SHA-256 verification for database/data/track147-catalogue-snapshot.json (database_snapshot), database/for_import/Thyagaraja-Krithi-For-Import.csv (csv-inventory), database/data/track144-tala-evidence-tyagaraja-complete.json (track144-tala-pallavi-dossier), and all 684 fetched thyagaraja-vaibhavam.blogspot.com witnesses (fetched, with distinct SHA-256 hashes from cached HTML or imported_krithis.parsed_payload extraction checksums), while keeping unconsulted print editions and external PDFs (govinda-rao-tyagaraja, ramanujachari-spiritual-heritage, sambamoorthy-tyagaraja, ma:jma-vol18-1947, ma:jma-vol39-1968, ma:jma-2017, sanskrit-docs-tyagaraja) explicitly unavailable until page locators are verified from the physical or scanned editions in TRACK-149.
  14. Multi-Valued Claim Architecture & Approval Deferral: Support multiple evidenced claims per subject and axis (e.g., multiple devotional themes, overlapping Utsava Sampradaya and Divyanama ritual memberships, or multi-witness observations) with structured Approval metadata (reviewer, accepted_at, decision, note, application: "apply" | "deferred", deferral_reason) aligned with TRACK-146’s shared contract.
  15. Context Formatter & Embedding Integration (context_formatter.py): Extend _lakshana_headers and _format_cycle_clause to render approved Tyagaraja cycle clauses and discriminative attributes (theme, ritual, dramatic, mudra, tala_witness / Desadi) within the strict MAX_HEADER_WORDS = 60 budget, withholding unapproved or heuristic-only claims.
  16. Macro Indexer Generalization (macro_indexer.py): Support Tyagaraja canonical cycles and works (tyagaraja-ghana-raga-pancharatnam, Kshetra Pancharatnams, Utsava Sampradaya, Divyanama, Nauka Charitram, Prahlada Bhakti Vijayam) in index_cycle_overviews and reviewed_cycle_composer with TRACK-147 provenance and human-approval gates.
  17. High-Discrimination Retrieval Benchmarks (retrieval_benchmarks.json): Add approval-gated TY-147-* evaluation probes covering Ghana-raga Pancharatnam gems, nadopasana / musical knowledge themes, ritual awakening (melukolupu) / lullaby (laali) functions, dramatic speaker/work context (Nauka Charitram, Prahlada Bhakti Vijayam), supported kshetra pancharatnam associations, desadi Adi witnesses, and a cross-composer separator distinguishing Muthuswami Dikshitar’s tyagaraja-vibhakti (on Lord Tyagaraja of Tiruvarur) from saint-composer Tyagaraja.

Design

Lives in the existing catalogue, not a parallel store.

Flagged concerns

Open questions carried forward

  1. Which external files are the 687-row and 692-target inventories, and which of their candidates are aliases of the 675? (2026-10-01: the 687 rows are database/for_import/Thyagaraja-Krithi-For-Import.csv, now hashed in the master. Only the 692 target remains external.)
  2. Which named edition will adjudicate kshetra pancharatna membership, including ISa pAhi, sundari nI divya, karuNa jUDavayya, and the missing Vinarādhā nā manavi lead?
  3. For each of the eight collisions, is the right outcome two catalogue identities, two musical settings of one identity, or a duplicate witness?
  4. Which current table, if any, can store claim-level review status without a new migration?
  5. Who adjudicates thematic interpretation before a claim is seedable?
  6. Do dramatic padya and vacana need document anchors of their own, or do they remain non-indexed work context?
  7. Which formatter and live-search gaps stay with TRACK-145, and which retrieval probes are in this track’s Plan?
  8. What minimum evidence distinguishes SPECIFIC_SHRINE_SUPPORTED from NON_SPECIFIC_ADDRESS for a Tyagaraja composition?

Plan

Status: Amended (Accepted by Seshadri) Accepted by: Seshadri (explicit chat instruction to bring TRACK-147 to the same end-to-end standard as TRACK-146, export database/data/track147-catalogue-snapshot.json, and enable SANGITA_ALLOW_TEST_EDITS=1) Accepted at: 2026-10-15

Accepting this plan authorises the classification master, hashed witness registry, local database snapshot export, formatter/macro/benchmark extensions, and local reversible work (including deliberate test edits under SANGITA_ALLOW_TEST_EDITS=1). Individual musical claim approvals for canonical seeding remain human-gated.

Files that change

TRACK-146 owns musicological-classification-contract.md, musicological_classification.py, and the shared generator. This track does not break TRACK-146’s corpus artifacts. Tyagaraja extensions (ritual function, dramatic item, transmission witness, collision subject, hashed witness registry) live on the Tyagaraja master and extend the shared formatter, macro indexer, and retrieval benchmark suite.

Path Role
database/data/track147-catalogue-snapshot.json Hashed database census and stored lyric/section/evidence snapshot for all 675 Tyagaraja identities and 684 source imports
database/data/track147-tyagaraja-master.json Every classification subject, census facts, hashed witness registry (db-snapshot, JMA PDFs, blog witnesses, unavailable print editions), claims, and the external-gap register
database/data/track147-tyagaraja-application-manifest.json Approved canonical changes (apply and deferred). Populated only with explicit human-approved claims
application_documentation/01-requirements/features/tyagaraja-classification-master.md Generated concordance, collision register, witness bibliography, unresolved register, and distributions
tools/krithi-extract-enrich-worker/src/tyagaraja_classification.py Tyagaraja validation: subject grain, collision ban, hashed witness verification, multi-claim support, approval/deferral rules, and extension axes
tools/krithi-extract-enrich-worker/scripts/generate_tyagaraja_master.py Validate the master, verify source CSV and snapshot hashes, render the markdown, and emit the application manifest
tools/krithi-extract-enrich-worker/src/embeddings/context_formatter.py Composer-adaptive Tyagaraja cycle and discriminative attribute headers within the 60-word budget
tools/krithi-extract-enrich-worker/src/embeddings/macro_indexer.py Support for Tyagaraja canonical cycles and works with TRACK-147 provenance and human-approval gates
tools/krithi-extract-enrich-worker/evals/retrieval_benchmarks.json High-discrimination TY-147-* evaluation probes (including Dikshitar tyagaraja-vibhakti vs. composer Tyagaraja separation)
tools/krithi-extract-enrich-worker/tests/test_tyagaraja_classification.py, tests/test_tyagaraja_source_inventory.py Accounting, hashed witness verification, collision rejection, approval/deferral rules, formatter/macro gates, and stable IDs (SANGITA_ALLOW_TEST_EDITS=1)
database/migrations/R__seed_07_canonical_cycle_tags.sql Retire the Tyagaraja title-heuristic INSERT into krithi_tags while preserving the tag dictionary row and Syama Sastri safeguards
database/migrations/R__seed_11_tyagaraja_reviewed_memberships.sql Idempotent application of manifest-approved Tyagaraja memberships with provenance-scoped conflict guards and system AUDIT_LOG attribution
modules/backend/dal/src/test/kotlin/com/sangita/grantha/backend/dal/integration/TyagarajaMembershipSeedTest.kt Isolated Flyway rerun and conflict-protection test for R__seed_07 and R__seed_11 (SANGITA_ALLOW_TEST_EDITS=1)
conductor/tracks/TRACK-147-tyagaraja-musicological-classification.md, conductor/tracks.md Acceptance and progress

No new versioned migration in the first pass. Claims stay in the master and point at existing imported_krithis and krithi_source_evidence ids. krithi_source_evidence.contributed_fields is not a claim store. Dikshitar vibhakti, bhuta, and posture columns are not copied. Geography states stay master vocabulary (UNREVIEWED, SPECIFIC_SHRINE_SUPPORTED, NON_SPECIFIC_ADDRESS, UNRESOLVED, DISPUTED), not a new PostgreSQL enum.

Order of work

  1. Skeleton for every snapshot unit. Read the live database. Write one master record per classification subject, with stable ids that do not depend on file order. Census facts already measured are filled: catalogue id, title, canonical raga and tala, raw raga and raw tala, source URL, import status, section flags, and primary_language left as stored. Every theme, deity, geography, group, ritual, and dramatic claim starts unreviewed. Nothing is seedable.
  2. Collision grain before any label. The eight collapsed identities are register entries with disposition collision_not_classified. Their 17 source rows are the classification subjects. No theme, deity, group, or ritual claim may attach to the collapsed krithi_id. jaya mangaLaM is three subjects (Mohanam, Nada namakriya, Ghanta). The other seven pairs stay split the same way. Splitting catalogue rows in the database waits for a curator decision recorded on the manifest.
  3. Per-krithi classification, in this order. Work every remaining subject. A claim needs a locator and an evidence kind (textual_evidence, scholarly_interpretation, documented_tradition, automated_suggestion). Review states are unreviewed, reviewed, unresolved, disputed, rejected. Only reviewed plus an explicit human approval may enter the manifest.
    • Formal sets: Ghana-raga Pancharatnam as a candidate cycle, with Aradhana order stored as performance convention. Kovur, Tiruvottiyur, Lalgudi, and Srirangam leads stay unreviewed until a named edition is cited. sundari nI divya and ISa pAhi are not assigned from the earlier guess.
    • Ritual: Utsava Sampradaya and Divyanama membership and function, edition-qualified, overlap allowed. Title-prefix matches such as the two Nagu Momu songs and the three Tulasi songs stay separate.
    • Dramatic annex: Nauka Charitram and Prahlada Bhakti Vijayam item type, speaker, addressee, and division on the membership. ODanu jaripE stays a lead. No new KRITHI rows for padya or vacana. No lost-work reconstruction.
    • Themes and addressee: passage-cited, multi-valued, no default Rama, no raga-to-bhava inference. Complaint is not nindastuti. Empty deity and temple stay UNREVIEWED.
    • Transmission notes: retain raw labels, including the eleven desadi rows stored as Adi. Do not merge kEsari - sindhu kannaDa into Sindhu Kannada or Kesari.
    • Structure findings: 27 missing pallavi rows and 4 missing charanam rows are audit entries. Missing anupallavi is allowed. Do not invent lyric text.
  4. Generate the concordance from the master: 675 identities, 684 source rows, 667 single-source subjects, 17 collision subjects, 8 unclassified collapsed identities, and the 687/692 external gap with no invented titles.
  5. Database application, only for approved manifest rows. Remove the Tyagaraja title-heuristic tag insert from R__seed_07 without touching the Syama Sastri delete/insert. Add R__seed_11 with exact UUIDs, composer and raga guards, and provenance limited to this track. Ghana-raga membership goes to krithi_cycle_memberships. The legacy STOTRA_STYLE tag may remain as a mirror only when the manifest says so. Identity splits go through the existing audited import/canon path, not a V__ corpus update. If that path cannot preserve the witness, stop and amend this plan.

Risks

Options rejected

Proof

Implementation checklist

Progress Log