RenMetrix commited on
Commit
92dd6c1
·
verified ·
1 Parent(s): 80b61c7

First beta release for the Universal Document Structure Layer

Browse files

UDSL: Universal Document Structure Layer
Is an AI-native, model-agnostic document framework designed to make large language models produce:

- structurally consistent
- explainable
- auditable
- human-aligned
- repeatable long-form documents

Files changed (1) hide show
  1. README.md +265 -112
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- ---
3
  license: cc-by-4.0
 
4
  tags:
5
  - code
6
  - agent
@@ -26,193 +26,346 @@ tags:
26
  - responsible-ai
27
  - ai-evaluation
28
  - ai-validation
29
- - document-structure-fr
30
- - document-structure-es
31
- - document-structure-de
 
32
  ---
33
 
 
 
 
 
 
 
34
 
35
  ---
36
- UDSL v1.0 — Universal Document Structure Layer
37
 
38
- The first AI-native, model-agnostic document structure standard.
39
- Version: v1.0 (Public Beta Release)
40
- Author: Nathan Lumulisanay — RenMetrix — LOOM Protocol
41
- License: CC-BY-4.0
42
 
43
- 📘 What is UDSL?
 
44
 
45
- UDSL (Universal Document Structure Layer) is a vendor-neutral document architecture that forces large language models (ChatGPT, Claude, Gemini, Perplexity, etc.) to generate:
 
 
 
 
46
 
47
- structurally consistent
48
 
49
- explainable
50
 
51
- auditable
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
- human-aligned
54
 
55
- long-form documents
 
 
 
 
 
 
56
 
57
- UDSL replaces ad-hoc prompting with a formal, enforceable structure layer based on:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- canonical YAML definitions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  reasoning schemas (Toulmin, deductive, inductive)
62
 
63
  tone profiles
64
 
65
- UX writing rules
66
 
67
- terminology maps
68
 
69
- 🎯 What problem does UDSL solve?
70
 
71
- LLMs generate tokens, not documents — causing:
 
 
 
72
 
73
  structural drift
74
 
75
- missing sections
 
 
76
 
77
- inconsistent tone
78
 
79
- weak reasoning
80
 
81
- model-to-model variance
82
 
83
- UDSL solves this through one unified layer that every model can follow identically.
84
 
85
- 📦 What’s included in v1.0?
 
 
 
 
 
 
 
 
86
 
87
  This public release contains:
88
 
 
 
89
  UDSL Core Specification (PDF)
90
 
91
- Canonical YAML/MD definitions (structure, reasoning, tone, terminology, UX)
92
 
93
- Validator toolkit (schema + scoring model + CLI validator)
94
 
95
- Integration profiles for ChatGPT, Claude, Gemini, Perplexity
96
 
97
- Example UDSL-compliant documents
98
 
99
- Build + integrity scripts (checksums + ZIP builder)
100
 
101
- Release notes + checksum file
102
 
103
- 📄 How to use UDSL with any LLM
104
 
105
- Example prompt:
106
 
107
- You are an AI system that MUST follow the UDSL v1.0 standard.
108
- doc_type: policy_memo
109
- tone_profile: formal_concise
110
- reasoning_mode: toulmin
111
- audience: board
112
 
113
- Follow the canonical outline from UDSL’s structure.yaml.
114
- Apply the reasoning rules from reasoning_schemas.yaml.
115
- Do NOT invent additional sections.
116
 
 
117
 
118
- Works identically in:
119
 
120
- ChatGPT
121
 
122
- Claude
123
 
124
- Gemini
125
 
126
- Perplexity
127
 
128
- 🧪 Validator (CLI)
129
 
130
- UDSL ships with a minimal validator so anyone can check whether a document meets the standard.
131
 
132
- python validator/udsl_validate.py your_document.md
133
 
 
134
 
135
- Gives a JSON score for:
136
 
137
- structure compliance
138
 
139
- reasoning integrity
140
 
141
- tone alignment
142
 
143
- UX rules
144
 
145
- terminology consistency
146
 
147
- 🔗 Links
148
 
149
- GitHub (source):
150
- https://github.com/nathanlumulisanay-lgtm/udsl
151
 
152
- Zenodo DOI (archival release):
153
- ➡️ doi.org/10.5281/zenodo.17625481
154
 
155
- 📜 Citation
156
- Lumulisanay, N. (2025). UDSL — Universal Document Structure Layer (v1.0).
157
- RenMetrix — LOOM Protocol.
158
 
159
- 🏷 Tags
160
- document-structure
161
- ai-framework
162
- llm-standard
163
- reasoning
164
- prompt-engineering
165
- auditability
166
- governance
167
- tooling
168
- nlp
169
 
170
- 2. VOEG DEZE METADATA TOE (linker kolom)
 
 
 
171
 
172
- Klik links op:
 
 
173
 
174
- ✔ License → cc-by-4.0
175
- ✔ Language → "not applicable" (dit is geen taalmodel)
176
- ✔ Base model → none
177
- ✔ Pipeline tag → "other"
178
- ✔ Tags → plak deze:
179
- UDSL
180
- document-structure
181
- nlp
182
- model-agnostic
183
- framework
184
- llm
185
- compliance
186
- governance
187
- standard
188
- auditability
189
- reasoning
190
- prompt-engineering
191
- docs
192
 
193
- 3. Upload de bestanden (heel belangrijk)
 
 
 
 
 
 
194
 
195
- Klik bovenaan op Files and versions → Add file → Upload
196
- Upload:
 
 
 
 
 
197
 
198
- Hoofd-bestand
199
 
200
- UDSL_Public_v1.0.zip
201
 
202
- Documenten (optioneel maar aan te raden)
203
 
204
- /Docs/UDSL_Core_Spec_v1.0.pdf
205
- ✔ /Docs/UDSL_Architecture_arXiv_Ready.pdf
206
- ✔ /Docs/UDSL_AI_Usage_Directive_v1.0.pdf
207
- ✔ /Docs/UDSL_Specification_v1.0_Expanded.pdf
208
 
209
- PNG visualisaties
210
 
211
- udsl_flow_minimal.png
212
- ✔ udsl_layers_minimal.png
213
- ✔ udsl_reasoning_minimal.png
214
 
215
- CITATION
 
216
 
217
- CITATION.cff
 
 
 
 
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  license: cc-by-4.0
3
+
4
  tags:
5
  - code
6
  - agent
 
26
  - responsible-ai
27
  - ai-evaluation
28
  - ai-validation
29
+ - document-architecture
30
+ - nlp
31
+ - standard
32
+ pipeline_tag: "other"
33
  ---
34
 
35
+ # UDSL v1.0 — Universal Document Structure Layer
36
+ *A model-agnostic document architecture for consistent, explainable long-form AI output.*
37
+
38
+ [![GitHub](https://img.shields.io/badge/GitHub-Repository-black?logo=github)](https://github.com/nathanlumulisanay-lgtm/udsl)
39
+ [![DOI](https://img.shields.io/badge/Zenodo-DOI-blue?logo=zenodo)](https://doi.org/10.5281/zenodo.17625481)
40
+ ![License](https://img.shields.io/badge/License-CC--BY%204.0-green)
41
 
42
  ---
 
43
 
44
+ ## What is UDSL?
 
 
 
45
 
46
+ **UDSL (Universal Document Structure Layer)** is an AI-native, model-agnostic document framework designed to make
47
+ large language models produce:
48
 
49
+ - structurally consistent
50
+ - explainable
51
+ - auditable
52
+ - human-aligned
53
+ - repeatable long-form documents
54
 
55
+ It works across ChatGPT, Claude, Gemini, Perplexity, and open-source models via one unified document standard.
56
 
57
+ UDSL defines:
58
 
59
+ - canonical outline structures
60
+ - reasoning schemas (Toulmin, deductive, inductive)
61
+ - tone profiles
62
+ - UX writing constraints
63
+ - terminology maps
64
+ - compliance validation rules
65
+
66
+ ---
67
+
68
+ ## Why UDSL exists
69
+
70
+ LLMs produce tokens — not documents — causing:
71
+
72
+ - missing sections
73
+ - drifting structure
74
+ - inconsistent reasoning
75
+ - hallucinated outlines
76
+ - differences between models
77
+
78
+ UDSL fixes this by enforcing one shared, explicit structure layer.
79
+
80
+ ---
81
 
82
+ ## Contents of v1.0
83
 
84
+ - UDSL Core Specification (PDF)
85
+ - Canonical YAML + Markdown definitions
86
+ - Validator toolkit (structure, reasoning, tone, terminology)
87
+ - Integration profiles (ChatGPT, Claude, Gemini, Perplexity)
88
+ - Example UDSL-compliant documents
89
+ - Integrity scripts (checksums + ZIP builder)
90
+ - Release notes + checksum file
91
 
92
+ ---
93
+
94
+ ## Using UDSL with any LLM
95
+
96
+ Minimal invocation:
97
+
98
+ ```yaml
99
+ You are an AI system that MUST follow the UDSL v1.0 standard.
100
+ doc_type: policy_memo
101
+ tone_profile: formal_concise
102
+ reasoning_mode: toulmin
103
+ audience: board
104
+
105
+ Follow the canonical outline from structure.yaml.
106
+ Apply reasoning rules from reasoning_schemas.yaml.
107
+ Do NOT invent additional sections.
108
 
109
+
110
+ - Overview
111
+
112
+ UDSL (Universal Document Structure Layer) is a vendor-neutral architecture designed to make large language models
113
+ (ChatGPT, Claude, Gemini, Perplexity, Grok, Llama, etc.) produce:
114
+
115
+ structurally consistent documents
116
+
117
+ explainable reasoning
118
+
119
+ auditable long-form output
120
+
121
+ multi-model aligned text
122
+
123
+ repeatable, reliable structure
124
+
125
+ Instead of relying on ad-hoc prompting, UDSL introduces a formal specification layer with:
126
+
127
+ canonical YAML structure definitions
128
 
129
  reasoning schemas (Toulmin, deductive, inductive)
130
 
131
  tone profiles
132
 
133
+ UX writing constraints
134
 
135
+ terminology consistency rules
136
 
137
+ UDSL is not a model — it is a standard that any model can follow.
138
 
139
+ # Why UDSL Exists
140
+
141
+ LLMs generate tokens, not documents.
142
+ This causes:
143
 
144
  structural drift
145
 
146
+ missing or inconsistent sections
147
+
148
+ unstable tone
149
 
150
+ weak or incomplete reasoning
151
 
152
+ differences between models for the same prompt
153
 
154
+ UDSL solves this through a unified, enforceable, model-agnostic structure layer.
155
 
156
+ Every compliant document produced by any LLM becomes:
157
 
158
+ predictable
159
+
160
+ traceable
161
+
162
+ comparable
163
+
164
+ auditable
165
+
166
+ # What’s Included in UDSL v1.0
167
 
168
  This public release contains:
169
 
170
+ Specifications
171
+
172
  UDSL Core Specification (PDF)
173
 
174
+ UDSL Architecture (arXiv-ready)
175
 
176
+ UDSL AI Usage Directive
177
 
178
+ UDSL Specification Expanded Edition
179
 
180
+ Canonical Definitions
181
 
182
+ Structure definitions (YAML)
183
 
184
+ Reasoning modes
185
 
186
+ Tone profiles
187
 
188
+ UX constraints
189
 
190
+ Terminology maps
 
 
 
 
191
 
192
+ Validator Toolkit
 
 
193
 
194
+ Compliance schema
195
 
196
+ Scoring model
197
 
198
+ CLI validator (udsl_validate.py)
199
 
200
+ Example valid/invalid documents
201
 
202
+ Integrations
203
 
204
+ ChatGPT profile
205
 
206
+ Claude profile
207
 
208
+ Gemini profile
209
 
210
+ Perplexity profile
211
 
212
+ Examples
213
 
214
+ Policy memo
215
 
216
+ Business report
217
 
218
+ Technical report
219
 
220
+ Cross-LLM comparison outputs
221
 
222
+ Build & Integrity Scripts
223
 
224
+ ZIP builder
225
 
226
+ Checksum generator
227
 
228
+ Hash verification script
 
229
 
230
+ # How to Use UDSL With Any LLM
 
231
 
232
+ Example prompt (works in ChatGPT, Claude, Gemini, Perplexity, etc.):
 
 
233
 
234
+ You are an AI system that MUST comply with the UDSL v1.0 standard.
 
 
 
 
 
 
 
 
 
235
 
236
+ doc_type: policy_memo
237
+ tone_profile: formal_concise
238
+ reasoning_mode: toulmin
239
+ audience: executive_board
240
 
241
+ Follow the canonical structure from `structure.yaml`.
242
+ Apply the reasoning rules from `reasoning_schemas.yaml`.
243
+ Do NOT invent additional sections.
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
 
246
+ This ensures the model produces fully structured, auditable documents.
247
+
248
+ # Validator (CLI)
249
+
250
+ UDSL includes a validation tool that checks:
251
+
252
+ structure compliance
253
 
254
+ reasoning alignment
255
+
256
+ tone profile adherence
257
+
258
+ UX rules
259
+
260
+ terminology consistency
261
 
262
+ Run validator:
263
 
264
+ python validator/udsl_validate.py your_document.md
265
 
 
266
 
267
+ Outputs a detailed JSON compliance score.
 
 
 
268
 
269
+ # Official Links
270
 
271
+ GitHub (source):
272
+ https://github.com/nathanlumulisanay-lgtm/udsl
 
273
 
274
+ Zenodo (archival release + DOI):
275
+ https://doi.org/10.5281/zenodo.17625481
276
 
277
+ # Citation
278
+ Lumulisanay, N. (2025).
279
+ UDSL — Universal Document Structure Layer (v1.0).
280
+ RenMetrix / LOOM Protocol.
281
+ Zenodo. https://doi.org/10.5281/zenodo.17625481
282
 
283
+ 🏷 Recommended Tags (for discovery)
284
+ udsl
285
+ document-structure
286
+ ai-standards
287
+ model-agnostic
288
+ llm-framework
289
+ reasoning
290
+ prompt-engineering
291
+ auditability
292
+ compliance
293
+ governance
294
+ structured-writing
295
+ nlp
296
+ ai-evaluation
297
+ interoperability
298
+
299
+ structure-de-document
300
+ normes-ia
301
+ cadre-llm
302
+ interopérabilité
303
+ gouvernance-ia
304
+ conformité-ia
305
+ auditabilité
306
+ explicabilité
307
+ estructura-de-documentos
308
+ normas-ia
309
+ marco-llm
310
+ gobernanza-ia
311
+ cumplimiento-ia
312
+ auditabilidad
313
+ explicabilidad
314
+ interoperabilidad
315
+ dokumentstruktur
316
+ ki-standards
317
+ llm-rahmenwerk
318
+ interoperabilität
319
+ governance-ki
320
+ compliance-ki
321
+ auditierbarkeit
322
+ erklärbarkeit
323
+ struttura-documentale
324
+ standard-ia
325
+ framework-llm
326
+ governance-ia
327
+ conformità-ia
328
+ auditabilità
329
+ interoperabilità
330
+ spiegabilità
331
+ estrutura-de-documentos
332
+ normas-ia
333
+ quadro-llm
334
+ governança-ia
335
+ conformidade-ia
336
+ auditabilidade
337
+ explicabilidade
338
+ 文档结构
339
+ 人工智能标准
340
+ LLM框架
341
+ 跨模型
342
+ 治理
343
+ 合规
344
+ 可审计性
345
+ 可解释性
346
+ структура-документа
347
+ стандарты-ии
348
+ llm-фреймворк
349
+ взаимная-совместимость
350
+ управление-ии
351
+ соответствие-ии
352
+ аудируемость
353
+ объяснимость
354
+ struktur-dokumen
355
+ standar-ai
356
+ kerangka-llm
357
+ interoperabilitas
358
+ tata-kelola-ai
359
+ kepatuhan-ai
360
+ auditabilitas
361
+ keterjelasan
362
+ هيكل-الوثائق
363
+ معايير-الذكاء-الاصطناعي
364
+ إطار-llm
365
+ قابلية-التشغيل-البيني
366
+ حوكمة-ai
367
+ امتثال-ai
368
+ قابلية-التدقيق
369
+ الشفا��ية
370
+
371
+ ---