Sangeetha-Grantha

Metadata Value
Status Completed
Version 1.1.0
Last Updated 2026-06-13
Author Sangeetha Grantha Team
Priority P1 — design gate for TRACK-117
Type Architecture spike — produces a decision + design, authors no migration
Epic TRACK-109 (N5 data model)
Decisions D1 (decision log)
Depends on none (design-only; does not need Flyway done)
Blocks TRACK-117

TRACK-116: Versioned Canon — Architecture Spike + ADR-014 (N5)

Goal

Decide and document how the canonical record carries history and provenance, before any schema is written. Output is ADR-014 plus a concrete schema design, so TRACK-117 is pure execution. Estimated ~2–3 days.

This spike is design-only and runs during the D2 freeze in parallel with TRACK-110 — it adds no critical-path time.

Context

North-star finding N5: AUDIT_LOG records that a change happened, not a re-materializable what. A scholarly corpus needs bitemporal answers (“what did this krithi say on 2026-01-15, and which source/extraction/curator decision produced each section?”). Decision D1: because the DB krithis can be re-imported from scratch, we pause the import, build versioned canon, and re-import fresh — capturing history from row one with no retrofit.

Implementation Plan

Acceptance Criteria

Pre-req Coordination

Before the data-model work begins, checkpoint-commit and pause TRACK-093 AND TRACK-096 (the D2 freeze covers both). The spike itself can proceed during the freeze.

References