योजनाकोषधर्मः। दूरसञ्चये (२३ अक्टो) स्मृतिः। अत्र घटना रूपं कथं बद्धम्। schema registry, compat, CI। न स्वैररूपम्; कोषधर्मः।
English (minimizable)
After remote cache (23 Oct), this post covers schema registries: compatibility modes, subject naming, produce/consume validation, PII tags, CI gates, expand/contract evolution and register ACLs.
पूर्ण-शीर्षकम् / Full title
योजनाकोषधर्मः: A Metrical Codification of Schema Registries (with English glosses)
English · overview and topics (minimizable)
What this post is about
A schema registry is the system of record for event (and sometimes API) payload schemas and their compatibility rules.
Topics covered
- Unversioned event breakage
- BACKWARD/FORWARD/FULL modes
- Subject naming
- Producer validation
- Consumer version bounds
- PII field metadata
- CI compatibility gates
- Expand/contract field evolution
- Who may register
- Links to streams CDC versioning
Sanskrit title
योजनाकोषधर्मः = yojanā-koṣa-dharmaḥ “dharma of the schema treasury/registry”.
English
Minimizable; Sanskrit-first.
परम्परा-सन्धिः / Series links
| पूर्वं / Prior | अत्र / Adds | न पुनः / Does not repeat |
|---|---|---|
| घटनाप्रवाहः (३० जुलै) | streams | schema on payloads |
| परिवर्तनप्रवाहः (१३ अक्टो) | CDC | schema on changes |
| APIसंस्करणम् (२७ सितम्बे) | API versions | event compat cousin |
| गुणस्तरबन्धः (२२ अगस्त) | CI gates | compat in PR |
| इदम् | registry compat CI ACL | - |
ग्राह्य-त्याज्य-विवेकः / Keep and avoid
ग्राह्यम् / Keep
१. per-subject compat: explicit mode
२. stable subject names: no accidental forks
३. validate on produce: block poison
४. CI compat check: before merge
५. PII annotations: downstream filters
६. register ACL: not world-writable
७. optional-add first: remove after drain
त्याज्यम् / Avoid
- register any schema from any prod task role
- always use HARD break mode casually
- consumers on latest only with no test
अध्याय-योजना / Chapter plan
| प्रकरणम् | विषयः | छन्दः | श्लोकाः |
|---|---|---|---|
| १ | मङ्गलं बीजं च / Opening | अनुष्टुभ् | २ |
| २ | मूलतत्त्वानि / Core | अनुष्टुभ् | २ |
| ३ | मुख्यविधिः / Method | उपजाति | १ |
| ४ | रक्षा · विधिः / Guards | अनुष्टुभ् | २ |
| ५ | विवेक · सीमा / Judgment | अनुष्टुभ् | २ |
| ६ | पूर्वसन्धिः / Series links | उपजाति | १ |
| ७ | उपसंहारः / Close | अनुष्टुभ् | २ |
पारिभाषिक-कोशः / Glossary
| Modern English | संस्कृतम् | Note |
|---|---|---|
| schema registry | योजनाकोषः | |
| compatibility mode | सङ्गतताविधिः | |
| subject | विषयः / subject | |
| Avro/Protobuf/JSON Schema | योजनाभाषावर्गाः | |
| schema id | योजनाID | |
| FULL_TRANSITIVE | पूर्णसंक्रामिसङ्गतिः | mode class |
| schema evolution | योजनाविकासः | |
| registry ACL | कोषाधिकारः | |
| poison message | विषघटना | |
| contract test | संविदापरीक्षा | cousin |
श्लोकः १ (अनुष्टुभ्)
योजनाकोषधर्मस्तस्माद् रूपसत्यम् ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
घटना रूपं यदि स्वैरं भिद्यते तदा ग्राहकाः नश्यन्ति ।
योजनाकोषधर्मस्तस्माद् रूपसत्यम् ॥१॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| घटना | event |
| रूपम् | shape |
| स्वैरम् | freely |
| भिद्यते | changes |
| ग्राहकाः | consumers |
| नश्यन्ति | break |
| योजनाकोषधर्मः | schema-registry dharma |
| रूपसत्यम् | shape truth |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| योजनाकोषः | schema registry |
| रूपसत्यम् | shape truth |
English sense
A schema registry stores and validates event/API payload schemas so producers and consumers share one evolving contract.
Context / topic
Topic: why schema registry. Pairs with CDC and streams.
वृत्तमिति: ८-८-८-८।
श्लोकः २ (अनुष्टुभ्)
नीतिः विषयैः भिद्यताम् ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
compatibility BACKWARD FORWARD FULL ।
नीतिः विषयैः भिद्यताम् ॥२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| compatibility | compatibility |
| BACKWARD | BACKWARD |
| FORWARD | FORWARD |
| FULL | FULL |
| नीतिः | policy |
| विषयैः | by subject |
| भिद्यताम् | may differ |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| BACKWARD FORWARD FULL | compat modes |
| विषयैः | per subject |
English sense
Pick compatibility mode per subject. Backward lets new consumers read old data; choose consciously.
Context / topic
Topic: compatibility modes. Links to API versioning spirit.
वृत्तमिति: ८-८-८-८।
श्लोकः ३ (अनुष्टुभ्)
topic-record चौर्यं मा ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
subject naming strategy stable ।
topic-record चौर्यं मा ॥३॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| subject | subject |
| naming | naming |
| strategy | strategy |
| stable | stable |
| topic-record | topic-record |
| चौर्यम् | theft/confusion |
| मा | not |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| subject naming | registry subject |
| strategy | topic vs record |
English sense
Stable subject names prevent accidental forks of the same stream into two schemas.
Context / topic
Topic: naming.
वृत्तमिति: ८-८-८-८।
श्लोकः ४ (अनुष्टुभ्)
poison schema pipeline हन्ति ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
produce validate before send ।
poison schema pipeline हन्ति ॥४॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| produce | produce |
| validate | validate |
| before | before |
| send | send |
| poison | poison |
| schema | schema |
| pipeline | pipeline |
| हन्ति | kills |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| validate before send | producer check |
| poison schema | bad registered shape |
English sense
Producers should validate against the registry before publish. A bad schema poisons every consumer.
Context / topic
Topic: produce-time validation.
वृत्तमिति: ८-८-८-८।
श्लोकः ५ (उपजाति)
or compat range ।
latest blindly
भङ्गाय ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
consume with specific version
or compat range ।
latest blindly
भङ्गाय ॥५॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| consume | consume |
| with | with |
| specific | specific |
| version | version |
| or | or |
| compat | compat |
| range | range |
| latest | latest |
| blindly | blindly |
| भङ्गाय | for break |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| specific version | pin reader |
| latest blindly | always newest |
English sense
Consumers should pin or bound schema versions they understand not silently take every latest breaking registration.
Context / topic
Topic: consume-time discipline.
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ६ (अनुष्टुभ्)
गोप्यता मार्गः स्पष्टः ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
PII fields in schema tagged ।
गोप्यता मार्गः स्पष्टः ॥६॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| PII | PII |
| fields | fields |
| schema | schema |
| tagged | tagged |
| गोप्यता | privacy |
| मार्गः | path |
| स्पष्टः | clear |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| tagged | field metadata |
| गोप्यता मार्गः | privacy path |
English sense
Mark sensitive fields in schema metadata so CDC filters and lakes can enforce privacy automatically.
Context / topic
Topic: privacy metadata. Links to CDC privacy.
वृत्तमिति: ८-८-८-८।
श्लोकः ७ (अनुष्टुभ्)
runtime only fort late ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
CI gate: compat check on PR ।
runtime only fort late ॥७॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| CI | CI |
| gate | gate |
| compat | compat |
| check | check |
| on | on |
| PR | PR |
| runtime | runtime |
| only | only |
| fort | fort |
| late | late |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| CI gate | build-time check |
| runtime only | discover in prod |
English sense
Run compatibility checks in CI quality gates before merge. Runtime registry denial is a last line not the first.
Context / topic
Topic: CI. Links to quality gates (22 Aug).
वृत्तमिति: ८-८-८-८।
श्लोकः ८ (अनुष्टुभ्)
remove field only after sunsets ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
default values + optional fields expand ।
remove field only after sunsets ॥८॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| default | default |
| values | values |
| optional | optional |
| fields | fields |
| expand | expand |
| remove | remove |
| field | field |
| only | only |
| after | after |
| sunsets | sunsets |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| optional fields | expand phase |
| sunsets | coordinated remove |
English sense
Evolve like expand/contract migrations: add optional first, remove only after consumers drained.
Context / topic
Topic: evolution. Links to migrations + API versioning.
वृत्तमिति: ८-८-८-८।
श्लोकः ९ (अनुष्टुभ्)
open register विपत्तिः ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
authz who can register subjects ।
open register विपत्तिः ॥९॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| authz | authz |
| who | who |
| can | can |
| register | register |
| subjects | subjects |
| open | open |
| register | register |
| विपत्तिः | disaster |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| who can register | ACL on registry |
| open register | anyone writes schema |
English sense
Lock who may upload schemas. An open registry is an open foot-gun on the bus.
Context / topic
Topic: registry authz.
वृत्तमिति: ८-८-८-८।
श्लोकः १० (उपजाति)
CDC जन्म ।
योजनाकोषः
रूपं शास्ति ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
घटनाप्रवाहः वाहनम्
CDC जन्म ।
योजनाकोषः
रूपं शास्ति ॥१०॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| घटनाप्रवाहः | event stream |
| वाहनम् | vehicle |
| CDC | CDC |
| जन्म | birth |
| योजनाकोषः | schema registry |
| रूपम् | shape |
| शास्ति | governs |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| योजनाकोषः | schema registry |
| रूपं शास्ति | governs shape |
English sense
Streams carry bytes; CDC births change facts; the registry governs whether those bytes still mean what consumers think.
Context / topic
Topic: series triangle.
सन्धिः: प्रवाहः वहति; कोषः शासयति।
वृत्तमिति: एकादशाक्षराः पादाः।
श्लोकः ११ (अनुष्टुभ्)
एभिर्योजनाकोषो रूपसत्यसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
compat naming validate CI authz पञ्चकम् ।
एभिर्योजनाकोषो रूपसत्यसमन्वितः ॥११॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| compat | compat |
| naming | naming |
| validate | validate |
| CI | CI |
| authz | authz |
| पञ्चकम् | five-set |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| पञ्चकम् | compat naming validate CI authz |
English sense
Five limbs: compatibility policy, stable subjects, produce/consume validation, CI gates and register ACLs.
Context / topic
Topic: checklist.
वृत्तमिति: ८-८-८-८।
श्लोकः १२ (अनुष्टुभ्)
मितं रूपं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)
पदच्छेदः
इति योजनाकोषधर्मसारो रूपसत्यसमन्वितः ।
मितं रूपं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
Word-for-word
| संस्कृतपदम् | Word-for-word English |
|---|---|
| इति | thus |
| योजनाकोषधर्मसारः | schema-registry essence |
| रूपसत्यम् | shape truth |
| मितम् | measured |
| रूपम् | form |
| क्रियायोग्यम् | operable |
| तन्त्रधर्मः | system dharma |
Gloss table
| पदम् | अर्थः / sense |
|---|---|
| मितं रूपम् | measured shape change |
| तन्त्रधर्मः | platform dharma |
English sense
Closing: let payloads evolve in public with rules not in private with hope.
Context / topic
Topic: close.
उपसंहारन्यायः: रूपं कोषे बध्नाहि; सङ्गत्या वर्धय; CI पूर्वं वारय।
वृत्तमिति: ८-८-८-८।
श्लोकसूची / Verse index
१. Why registry
२. Compat modes
३. Naming
४. Produce validate
५. Consume pin
६. PII tags
७. CI gates
८. Evolve fields
९. Register ACL
१०. Stream/CDC link
११. Five limbs
१२. Close
सन्दर्भाः / References
- Prior: streams 2026-07-30; CDC 2026-10-13; API versioning 2026-09-27; quality gates 2026-08-22.
- Domain: event schema registries.
- English minimizable; Sanskrit-first.
- Style: no em dash; no Oxford comma in English clauses.