Sangeetha-Grantha

Metadata Value
Status Completed
Version 1.2.0
Last Updated 2026-10-15
Author Sangeetha Grantha Team

Track: Syama Sastri Corpus Concordance & Musicological Classification

ID: TRACK-146 Status: Completed (2026-10-15, under the closure amendment; follow-up work in TRACK-148) Owner: Seshadri Created: 2026-09-30 Updated: 2026-10-15


Goal

Produce an evidence-backed, musicologically deep classification master for the reconciled Syama Sastri catalogue, drawing upon authoritative corpuses from The Music Academy, Madras (Vidya Shankar, JMA), Sangeetha Kalanidhi T.K. Govinda Rao, and Prof. P. Sambamoorthy. Formally integrate Syama Sastri’s iconic musicological dimensions—including Laya architecture (Viloma Chapu 4+3, Anagata eduppus, arudi), structural innovations (Swarasahitya, Swarajathi Ratnatrayam), raga sovereignty (Anandabhairavi apex, Chintamani invention), devotional address (Apatya Bhava, Syama Krishna mudra), and sacred geography (Bangaru Kamakshi, Meenakshi Navaratnamalika, Dharmasamvardhani, Nilayatakshi)—into the classification master, worker components, macro indexer, and semantic embeddings pipeline. Establish the shared classification conventions that TRACK-147 will extend for Tyagaraja.

Context

Intent

Status: Accepted Accepted by: Seshadri (explicit chat instruction) Accepted at: 2026-09-30

Problem

We want the same composition-by-composition accountability available for Dikshitar, without imposing his Sanskrit vibhakti and pilgrimage framework on Syama Sastri. The current small corpus is suitable for complete expert curation, but flat Kamakshi tags do not distinguish compositions by musical form, rhythm, devotional meaning or supported shrine association.

The recorded 70/71 import difference is unresolved. Current deity, temple, form, lyric, source, raga/tala junction and variant coverage has not been measured for this initiative. A populated foreign key or a title match is not proof of correct attribution or classification. In particular, composer matching on sastri risks conflating Syama Sastri with Subbaraya or Annaswami Sastri.

Proposed outcome

  1. Reconciled corpus snapshot. Account for every source candidate and database record, distinguishing imported compositions, aliases, duplicates, failed/pending imports, exclusions and unresolved attribution. Record source hashes or equivalent version identifiers and a snapshot date. Do not declare a composition missing from a count difference alone.
  2. Complete classification concordance. Give every composition in the declared snapshot a stable identity and a review state. Maintain structured master data and generate the readable Markdown concordance and distributions from it. Report distinct compositions separately from membership rows and variant witnesses.
  3. Composer-specific axes. Classify musical form, devotional address, deity/addressee, supported shrine association, groups and relationships. Allow multiple supported classifications; any primary display axis must not constrain the data model.
  4. Ratnatrayam pilot. Review Kamakshi anudinamu (Bhairavi), Rave himagiri kumari (Todi), and Kamakshi ni padayugamu (Yadukulakambhoji) against source editions and catalogue identities. Preserve swarajathi structure and swara–sahitya alignment; document tala and rhythmic observations with their witnesses.
  5. Rhythmic annex. Capture tala as stated by the source, eduppu with explicit units/convention, arudi and subdivision where notation or documented rendering supports them. Preserve alternative interpretations rather than promoting one rendition to a universal composition property.
  6. Qualified group and geography review. Investigate Navaratnamalika membership source by source; do not manufacture a complete nine-item set. Review candidate Kanchi Kamakshi, Thanjavur Bangaru Kamakshi, Madurai Meenakshi and other shrine associations without assuming all Kamakshi compositions belong to one of two locations. Separate formal groups, thematic collections and related musical settings.
  7. Claim-level evidence. Record each claim’s source locator, relevant passage or notation reference, evidence type, review status and uncertainty. Distinguish textual evidence, scholarly interpretation, documented tradition and automated suggestion. Human adjudication is required before low-confidence or disputed claims become canonical assignments; unresolved claims may remain in the master.
  8. Shared conventions owned here. Define reusable identities, provenance vocabulary, group types, geography states, review rules, master-generation conventions and distinct/member counting. Reuse existing evidence/canon structures before proposing additions. TRACK-147 extends this contract for dramatic works, ritual use and transmission; shared infrastructure must have one implementation owner.
  9. Reviewed application and search proof. After Plan acceptance, apply curated identities and memberships through Flyway with protected provenance, reconcile legacy heuristic links, and verify data plus discriminative retrieval. Use the inherited 60-word metadata-header budget if retained by the accepted shared design. Coordinate formatter and macro-document ownership with TRACK-145 rather than implementing a competing indexer.

Affected users and systems

Constraints

Open questions

  1. Where is the authoritative 71-row source inventory, and what explains its difference from the recorded 70 imports?
  2. Which editions/notation witnesses are available for corpus-wide attribution and rhythmic review? Which sources establish Navaratnamalika membership?
  3. Which existing source/canon tables can represent claim-level evidence and musical witnesses, and which additions are necessary?
  4. Who provides human musicological adjudication, and what minimum evidence makes a claim seedable?
  5. What is the boundary between these tracks and TRACK-145’s unfinished formatter/macro indexing work? Macro-document presence must not be mistaken for live API exposure.
  6. What ranked-retrieval thresholds and reviewed expected identities will be accepted for the benchmark?

Intended deliverables and completion evidence

Research starting points

Spec

Status: Amended (Accepted by Seshadri) Accepted by: Seshadri (explicit chat instruction to integrate musicological dimensions, institutional scholarship, and embedding pipeline) Accepted at: 2026-10-06

Requirements

  1. Reconcile all 71 input rows and every database composition belonging to the exact reviewed Syama Sastri composer identity. Include records absent from the CSV, pending/failed imports, alias relationships and exclusions. Preserve row-to-composition mappings; never derive missing compositions from totals alone.
  2. Use the verified CSV hash and date in the baseline analysis. Current baseline: 71 rows, 70 exact URLs, 35 raw raga labels. Rows 1/22 are duplicate candidates, not yet canonical merges.
  3. Measure form, deity, shrine, language, tala, ordered raga junctions, lyric variants, sections, notation and source-evidence coverage against the reconciled database snapshot. Record unavailable measurements explicitly.
  4. Give each distinct composition one stable master identity, optional canonical UUID, aliases, source-row locators and identity/review dispositions. Generate concordance, counts, bibliography, rhythmic annex and unresolved register deterministically from one structured master. Preserve excluded source rows in reconciliation, outside the distinct-composition denominator.
  5. Represent each classification as a claim with subject ID, axis, value, witness ID/hash, precise locator, paraphrase or short excerpt, evidence kind, review state, uncertainty and reviewer decision. Claim kinds: textual evidence, scholarly interpretation, documented tradition, automated suggestion. Review states: unreviewed, reviewed, unresolved, disputed, rejected. Only explicit human-approved claims are eligible for canonical application.
  6. Support independent/multiple devotional, addressee, geography, group and related-setting claims. Form claims may be competing or witness-specific candidates; canonical musical_form remains one approved value or UNESTABLISHED. Proposed geography states: UNREVIEWED, SPECIFIC_SHRINE_SUPPORTED, NON_SPECIFIC_ADDRESS, UNRESOLVED, DISPUTED. These remain master vocabulary until a DB mapping is accepted. Distinguish formal groups, thematic collections and related musical settings from tag categories.
  7. Review Ratnatrayam first, then all remaining identities. Preserve separate swara notation and explicitly witnessed sahitya alignment. Never infer eduppu/arudi/kalai/subdivision from lyrics. Store rhythm per witness with units, counting origin, tala convention and alternative interpretations. Preserve unknown musical forms using the existing UNESTABLISHED semantics.
  8. Investigate Navaratnamalika source by source, allowing incomplete/disputed membership. Kamakshi address alone is insufficient shrine evidence. Row 44 requires alternate-raga-setting adjudication before any ordered Ragamalika mapping.
  9. Apply approved group/reference changes idempotently with exact identities and provenance ownership. Protect independently reviewed links. Include both R__seed_07 group cleanup and R__seed_08 form matching in scope; audit actual mutations with accurate system attribution rather than borrowing an arbitrary user’s identity.
  10. Reuse TRACK-145’s formatter/macro generator, retain its 60-word header budget, and add reviewed Syama Sastri discriminators without claiming new public API exposure. Deterministic fixtures must cover exact pilot identities, cross-Sastri exclusions, shrine abstention, source-qualified group claims and alternative settings. Proposed retrieval acceptance: every reviewed identity probe in top 5, no cross-composer false match in expected results, and no unsupported canonical shrine/group assertion. Paid embedding execution needs separate authorization.
  11. TRACK-146 owns shared master/evidence/generation conventions; TRACK-147 references them and supplies composer-specific extensions. Completion requires every snapshot identity reviewed or explicitly unresolved, not universal shrine/group assignments.
  12. Musicological Dimensions Specific to Syama Sastri: Formally incorporate the musicological hallmarks established across primary scholarly authorities:
    • Laya & Tala Architecture: Model Viloma Chapu (4+3) distinctly from standard Misra Chapu (3+4) (e.g. Marivere Gati, Ninnuvina Mari Galada, Meenalochana Brova, Talli Ninnu Nera, Nannu Brovu Lalitha). Capture Anagata Eduppu offsets (1/2, 3/4, 1 1/2 matras; e.g. Birana Varalichi, Devi Brova, Kamakshi Bangaru), explicit Arudi placements, and rare talas (Khanda Jhampa in Sari Evaramma, Caturasra Ata in Samini Rammanave).
    • Structural Innovations: Explicitly identify Swarasahitya (the pioneer genre pairing chittaswara and sahitya note-for-syllable; e.g. O Jagadamba, Palinchu Kamakshi, Marivere Gati, Durusukuga, Nannu Brova Rada, Sari Evaramma). Model the Swarajathi Ratnatrayam with its progressive charanams and swara-sahitya symmetry, Tana Varnams, and Swarakshara.
    • Raga Sovereignty & Creations: Model Syama Sastri’s apex sovereignty over Anandabhairavi, the creation of Chintamani (Devi Brova Samayamide), and affinity for rare/affective ragas (Kalgada, Manji, Ahiri, Dhanyasi, Varali, Paraju, Punnagavarali).
    • Devotional Bhava & Poetics: Model Apatya Bhava (intimate child-mother yearning/pleading: Mayamma, Talli, Amma), Ananya Saranagati, and the Syama Krishna mudra (including Syama Krishna Sodari, Syama Krishna Palita).
    • Sacred Geography & Canonical Cycles: Resolve shrine associations using authoritative musicological sources rather than single-blog intro text: Thanjavur Bangaru Kamakshi (hereditary archaka shrine), Madurai Meenakshi (Navaratnamalika), Tiruvaiyaru Dharmasamvardhani, Nagapattinam Nilayatakshi, Tiruvanaikkaval Akhilandeshwari, Thanjavur Brihannayaki, Pudukkottai Brihadamba, Vaitheeswarankoil Muthukumaraswami.
  13. Multi-Witness Institutional Scholarship: Widen the witness base beyond syamakrishnavaibhavam.blogspot.com to include:
    • Smt. Vidya Shankar (1980): Syama Sastry’s Compositions: Text, Translation, Transliteration and Notation with Gamaka-Signs (Music Academy Experts Committee / Parampara).
    • Sangeetha Kalanidhi T.K. Govinda Rao (1997): Compositions of Syama Sastri, Subbaraya Sastri and Annaswami Sastri (Ganamandir Publications).
    • Prof. P. Sambamoorthy (1962): Great Composers: Syama Sastri (The Indian Music Publishing House, Chennai).
    • The Journal of the Music Academy (JMA) volumes (1954, 1970, 1983, 2002).
    • Subbarama Dikshitar’s Sangita Sampradaya Pradarsini (1904).
  14. Context Formatter & Embedding Integration:
    • Refactor context_formatter.py _lakshana_headers to generate composer-adaptive metadata micro-clauses within the 60-word header budget: [Tala: Viloma Chapu (4+3)] / [Tala: Misra Chapu (3+4)], [Eduppu: Anagata (1/2 matra)], [Structure: Swarasahitya], [Bhava: Apatya Bhava (Child-Mother)], [Mudra: Syama Krishna], [Raga Trait: Apex Sovereign / Anandabhairavi] or [Raga Creation: Chintamani].
    • Handle Syama Sastri cycle clauses cleanly (syama-sastri-swarajathi-ratnatrayam, syama-sastri-navaratnamalika).
  15. Macro Indexer Generalization:
    • Generalize macro_indexer.py format_kshetra_overview to accept dynamic composer attribution instead of hardcoded Dikshitar text.
    • Index macro documents for syama-sastri-swarajathi-ratnatrayam and syama-sastri-navaratnamalika with full composition listings, ragas, and laya structures.
  16. High-Discrimination Retrieval Benchmarks:
    • Expand retrieval_benchmarks.json with 10 evaluation probes covering Viloma Chapu, Swarasahitya, Chintamani, Apatya Bhava, Ratnatrayam gems, and specific shrine cycles.

Design

Flagged concerns

Open questions carried forward

  1. Authoritative 71-row source inventory reconciled (70 distinct URLs, duplicate rows 1/22).
  2. Music Academy / Vidya Shankar (1980) and Govinda Rao (1997) editions established as secondary witnesses for rhythm and swarasahitya.
  3. Adjudication process: explicit human approval required for canonical promotion; automated claims remain unapproved observations.

Closure amendment (2026-10-15)

Accepted by: Seshadri (explicit chat instruction, 2026-10-15)

  1. Edition consultation moves to TRACK-148. Spec 13’s print editions (Vidya Shankar 1980, Govinda Rao 1997, Sambamoorthy 1962, JMA archive volumes) were not consulted. They stay registered as unavailable witnesses, and their 40 claims stay unreviewed leads. Completing Spec 13 and the edition-dependent parts of Spec 12 (Viloma Chapu, anagata eduppu, swarasahitya, raga character, Apatya Bhava, shrine associations) is TRACK-148 scope.
  2. Completion standard. Requirement 11 applies as written: every snapshot identity is reviewed or explicitly unresolved. Unreviewed leads and UNRESOLVED geography are acceptable at closure. Data corrections found later are TRACK-148 scope.
  3. Musicological adjudication is deferred to TRACK-148. This covers the Todi swarajathi tala/kalai, the 6 and 11 swara-sahitya counts, and the Viloma Chapu attributions. JMA LXXV (2002) PDF p.91 already corroborates the 8 svara sahityas of the Bhairavi swarajathi.
  4. Spec 14 header labels. The accepted design renders approved axes inside the cycle clause ([Cycle: …; Laya: …; Structure: …; Mudra: …]) from approved krithi_cycle_memberships.discriminative_attributes. It does not emit separate [Eduppu: …], [Mudra: …] or [Raga Trait: …] labels. Separate labels for approved claims outside a cycle are TRACK-148 scope.
  5. Deferred application. The four approved mudra claims outside the Ratnatrayam (SS-0032, SS-0034, SS-0046, SS-0051) remain approved but are marked application: deferred in the master and manifest. No seed or search path applies them.
  6. Retrieval acceptance mode. Requirement 10’s “every reviewed identity probe in top 5” is measured in hybrid mode, the product search mode. Semantic-only results are recorded but are not a gate.
  7. Spec 12 title. Spec 12 names Samini Rammanave for Caturasra Ata. No composition with that title is in the catalogue, and the only stored Caturasra Ata composition is SS-0036 (nA manavini). Reconciling this is TRACK-148 scope.

Plan

Status: Amended (Accepted by Seshadri) Accepted by: Seshadri (explicit chat instruction) Accepted at: 2026-10-06

Files and ownership

All paths below are repository-relative. TRACK-146 owns the shared master contract and generator. TRACK-147 consumes that contract; do not edit its track or corpus artifacts in this implementation.

Files Responsibility
application_documentation/01-requirements/features/musicological-classification-contract.md Shared identities, evidence/review vocabulary, geography/group semantics, counting, and Syama Sastri musicological axes
application_documentation/01-requirements/features/syama-sastri-corpus-analysis.md Reconciliation findings, access limitations, and coverage baseline
database/data/track146-syama-sastri-master.json Versioned snapshot, all candidate dispositions, persistent composition identities, multi-witness claims, approvals, and rhythm observations
database/data/track146-syama-sastri-application-manifest.json Reviewed changes only; canonical UUID, previous/desired values, claim IDs, provenance owner and approval; empty until claims are approved
application_documentation/01-requirements/features/syama-sastri-classification-master.md Generated concordance, distributions, rhythmic annex, bibliography and unresolved register
tools/krithi-extract-enrich-worker/src/musicological_classification.py Typed Pydantic master models with Syama Sastri axes, strict validation and deterministic generation; no network or DB mutation
tools/krithi-extract-enrich-worker/scripts/generate_classification_master.py CLI to validate/render/check generated output using shared model
tools/krithi-extract-enrich-worker/src/embeddings/context_formatter.py Composer-adaptive micro-clauses (Viloma Chapu, Eduppu, Swarasahitya, Apatya Bhava, Mudra) within 60-word budget
tools/krithi-extract-enrich-worker/src/embeddings/macro_indexer.py Composer-dynamic macro overviews; support for Ratnatrayam and Navaratnamalika cycles
tools/krithi-extract-enrich-worker/evals/retrieval_benchmarks.json 10 high-discrimination evaluation probes for Syama Sastri’s musicological hallmarks
tools/krithi-extract-enrich-worker/tests/test_musicological_classification.py, tests/test_embeddings.py, tests/test_macro_indexer.py Unit and integration tests for validation, formatting, macro indexing, and retrieval probes
database/migrations/R__seed_07_canonical_cycle_tags.sql Remove destructive Syama Sastri heuristic reconstruction while retaining dictionary and unrelated composer behavior
database/migrations/R__seed_08_update_musical_forms.sql Remove broad Sastri matching/arbitrary actor selection; approved form corrections move to audited canon workflow
database/migrations/R__seed_10_syama_sastri_reviewed_memberships.sql Guarded, approved group/reference application and provenance-scoped legacy cleanup; create only when manifest has approved canonical identities
modules/backend/dal/src/test/kotlin/com/sangita/grantha/backend/dal/integration/SyamaSastriMembershipSeedTest.kt PostgreSQL/Flyway tests for cross-composer safety, preservation, conflicts and rerun auditing
conductor/tracks/TRACK-146-syama-sastri-musicological-classification.md, conductor/tracks.md Progress, acceptance and final proof

Implementation refinements (2026-10-06)

  1. Multi-Witness Institutional Sourcing: Add Smt. Vidya Shankar (Parampara / Music Academy, 1980), Sangeetha Kalanidhi T.K. Govinda Rao (Ganamandir, 1997), and Prof. P. Sambamoorthy (1962) to the witness registry in track146-syama-sastri-master.json.
  2. Musicological Axes Model: Extend Claim.axis in musicological_classification.py to support laya, structure, raga_character, bhava, and mudra.
  3. Per-Composition Curation: Record detailed claims with explicit locators for:
    • Viloma Chapu (4+3): Marivere Gati, Ninnuvina Mari Galada, Meenalochana Brova, Talli Ninnu Nera, Nannu Brovu Lalitha.
    • Swarasahitya: O Jagadamba, Palinchu Kamakshi, Marivere Gati, Durusukuga, Nannu Brova Rada, Sari Evaramma.
    • Raga Character: Anandabhairavi sovereignty, Chintamani invention (Devi Brova Samayamide), rare/affective ragas (Kalgada, Manji, Ahiri, Dhanyasi, Varali, Paraju, Punnagavarali).
    • Apatya Bhava & Mudra: Child-mother devotional posture and Syama Krishna ankitam across the corpus.
    • Shrine Associations: Link compositions to Thanjavur Bangaru Kamakshi, Madurai Meenakshi, Tiruvaiyaru Dharmasamvardhani, Nagapattinam Nilayatakshi, Tiruvanaikkaval Akhilandeshwari, Thanjavur Brihannayaki, Pudukkottai Brihadamba, Vaitheeswarankoil Muthukumaraswami.
  4. Context Formatter: Refactor _lakshana_headers in context_formatter.py to format Syama Sastri’s axes while respecting the MAX_HEADER_WORDS = 60 budget.
  5. Macro Indexer: Parameterize format_kshetra_overview for composer attribution and index syama-sastri-swarajathi-ratnatrayam and syama-sastri-navaratnamalika macro overviews.
  6. Retrieval Benchmark Fixtures: Add 10 evaluation probes in evals/retrieval_benchmarks.json representing each musicological axis.

Order of work and checkpoints

  1. Shared Contract & Master Model: Update musicological-classification-contract.md and musicological_classification.py with the expanded axes.
  2. Multi-Witness Evidence Curation: Update database/data/track146-syama-sastri-master.json with institutional witnesses and per-composition claims for laya, swarasahitya, bhava, mudra, and shrines.
  3. Context Formatter & Embedding Integration: Enhance context_formatter.py to generate rich, composer-adaptive micro-clauses within the 60-word limit and support Syama Sastri cycle clauses.
  4. Macro Indexer Generalization: Generalize macro_indexer.py overview formatting and support Syama Sastri cycle overviews.
  5. Retrieval Benchmarks: Add the 10 discriminative evaluation probes to evals/retrieval_benchmarks.json.
  6. Concordance Generation: Run scripts/generate_classification_master.py to regenerate syama-sastri-classification-master.md.
  7. Suite Verification: Run pytest tests (test_musicological_classification.py, test_embeddings.py, test_macro_indexer.py), ruff, mypy, and make check-docs.

Risks and rejected options

Proof and acceptance criteria

Closure amendment (2026-10-15)

Accepted by: Seshadri (explicit chat instruction, 2026-10-15). It implements the Spec closure amendment.

Implementation Checklist

Remediation (reopened 2026-10-06)

Progress Log