structured-context 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -198
- package/dist/api.d.ts +17 -15
- package/dist/api.js +12 -9
- package/dist/commands/diagram.d.ts +1 -0
- package/dist/commands/diagram.js +7 -1
- package/dist/commands/docs.js +1 -0
- package/dist/commands/dump.d.ts +15 -2
- package/dist/commands/dump.js +18 -4
- package/dist/commands/providers.d.ts +4 -0
- package/dist/commands/providers.js +52 -0
- package/dist/commands/render.d.ts +4 -0
- package/dist/commands/render.js +64 -9
- package/dist/commands/schemas.d.ts +2 -2
- package/dist/commands/schemas.js +133 -22
- package/dist/commands/show.d.ts +1 -0
- package/dist/commands/show.js +7 -1
- package/dist/commands/spaces.d.ts +3 -1
- package/dist/commands/spaces.js +11 -2
- package/dist/commands/validate-file.d.ts +3 -0
- package/dist/commands/validate-file.js +24 -6
- package/dist/commands/validate.d.ts +4 -0
- package/dist/commands/validate.js +79 -23
- package/dist/config.d.ts +25 -1
- package/dist/config.js +106 -12
- package/dist/filter/augment-nodes.d.ts +3 -1
- package/dist/filter/augment-nodes.js +12 -7
- package/dist/filter/filter-nodes.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +96 -31
- package/dist/judge/context.d.ts +20 -0
- package/dist/judge/context.js +105 -0
- package/dist/judge/factory.d.ts +44 -0
- package/dist/judge/factory.js +148 -0
- package/dist/judge/index.d.ts +13 -0
- package/dist/judge/index.js +8 -0
- package/dist/judge/judge-node.d.ts +27 -0
- package/dist/judge/judge-node.js +122 -0
- package/dist/judge/prompt.d.ts +10 -0
- package/dist/judge/prompt.js +92 -0
- package/dist/judge/provider/anthropic.d.ts +17 -0
- package/dist/judge/provider/anthropic.js +43 -0
- package/dist/judge/provider/fake.d.ts +26 -0
- package/dist/judge/provider/fake.js +56 -0
- package/dist/judge/provider/jev.d.ts +37 -0
- package/dist/judge/provider/jev.js +169 -0
- package/dist/judge/provider/openai-decisions.d.ts +21 -0
- package/dist/judge/provider/openai-decisions.js +84 -0
- package/dist/judge/provider/openai.d.ts +20 -0
- package/dist/judge/provider/openai.js +53 -0
- package/dist/judge/provider/per-rule.d.ts +10 -0
- package/dist/judge/provider/per-rule.js +18 -0
- package/dist/judge/trim.d.ts +27 -0
- package/dist/judge/trim.js +62 -0
- package/dist/judge/types.d.ts +92 -0
- package/dist/judge/types.js +9 -0
- package/dist/judge/verdicts.d.ts +24 -0
- package/dist/judge/verdicts.js +82 -0
- package/dist/load-space-graph.d.ts +7 -5
- package/dist/load-space-graph.js +19 -8
- package/dist/plugins/loader.js +3 -3
- package/dist/plugins/markdown/extract-content-links.js +8 -29
- package/dist/plugins/markdown/index.js +8 -2
- package/dist/plugins/markdown/parse-embedded.d.ts +8 -0
- package/dist/plugins/markdown/parse-embedded.js +195 -24
- package/dist/plugins/markdown/read-space.js +42 -14
- package/dist/plugins/markdown/render-directory.d.ts +11 -0
- package/dist/plugins/markdown/render-directory.js +130 -0
- package/dist/plugins/markdown/template-sync.js +3 -4
- package/dist/plugins/markdown/util.d.ts +26 -5
- package/dist/plugins/markdown/util.js +56 -15
- package/dist/plugins/mermaid/render-mermaid.js +2 -1
- package/dist/plugins/miro/sync.js +7 -6
- package/dist/plugins/util.d.ts +39 -1
- package/dist/plugins/util.js +139 -0
- package/dist/read/resolve-graph-edges.d.ts +1 -1
- package/dist/read/resolve-graph-edges.js +46 -27
- package/dist/read/wikilink-utils.d.ts +17 -0
- package/dist/read/wikilink-utils.js +40 -0
- package/dist/render/render.d.ts +3 -1
- package/dist/render/render.js +2 -2
- package/dist/schema/evaluate-rule.d.ts +33 -2
- package/dist/schema/evaluate-rule.js +58 -4
- package/dist/schema/gating.d.ts +69 -0
- package/dist/schema/gating.js +253 -0
- package/dist/schema/meta-schemas.d.ts +13 -0
- package/dist/schema/meta-schemas.js +50 -0
- package/dist/schema/metadata-contract.d.ts +952 -183
- package/dist/schema/metadata-contract.js +177 -33
- package/dist/schema/rule-filter.d.ts +12 -0
- package/dist/schema/rule-filter.js +46 -0
- package/dist/schema/rule-severity.d.ts +13 -0
- package/dist/schema/rule-severity.js +33 -0
- package/dist/schema/schema.d.ts +14 -8
- package/dist/schema/schema.js +308 -199
- package/dist/schema/validate-graph.d.ts +2 -1
- package/dist/schema/validate-graph.js +40 -23
- package/dist/schema/validate-rules.d.ts +16 -3
- package/dist/schema/validate-rules.js +91 -29
- package/dist/schemas/_knowledge_wiki.json +24 -24
- package/dist/schemas/_okf.json +172 -0
- package/dist/schemas/_ost_strict.json +17 -8
- package/dist/schemas/_sctx_base.json +3 -3
- package/dist/schemas/_strategy_general.json +38 -38
- package/dist/schemas/generated/0.12.0/_structured_context_schema_meta.json +229 -0
- package/dist/schemas/generated/0.13.0/_structured_context_schema_meta.json +400 -0
- package/dist/schemas/generated/latest/_structured_context_schema_meta.json +400 -0
- package/dist/schemas/knowledge_wiki.json +10 -9
- package/dist/schemas/okf.json +8 -0
- package/dist/schemas/strategy_general.json +15 -14
- package/dist/schemas/strict_ost.json +17 -16
- package/dist/space-context.d.ts +5 -2
- package/dist/space-context.js +9 -4
- package/dist/space-graph.d.ts +9 -7
- package/dist/space-graph.js +7 -5
- package/dist/testing.d.ts +33 -0
- package/dist/testing.js +72 -0
- package/dist/types.d.ts +64 -16
- package/dist/validate.d.ts +62 -9
- package/dist/validate.js +229 -114
- package/docs/concepts.md +65 -9
- package/docs/config.md +78 -1
- package/docs/rules.md +168 -50
- package/docs/schemas.md +152 -52
- package/package.json +17 -11
- package/schemas/_knowledge_wiki.json +24 -24
- package/schemas/_okf.json +172 -0
- package/schemas/_ost_strict.json +17 -8
- package/schemas/_sctx_base.json +3 -3
- package/schemas/_strategy_general.json +38 -38
- package/schemas/generated/0.12.0/_structured_context_schema_meta.json +229 -0
- package/schemas/generated/0.13.0/_structured_context_schema_meta.json +400 -0
- package/schemas/generated/latest/_structured_context_schema_meta.json +400 -0
- package/schemas/knowledge_wiki.json +10 -9
- package/schemas/okf.json +8 -0
- package/schemas/strategy_general.json +15 -14
- package/schemas/strict_ost.json +17 -16
- package/dist/schemas/generated/_structured_context_schema_meta.json +0 -191
- package/schemas/generated/_structured_context_schema_meta.json +0 -191
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/0.13.0/_structured_context_schema_meta.json",
|
|
4
|
+
"title": "structured-context schema dialect",
|
|
5
|
+
"description": "Extends JSON Schema 2020-12 with top-level $metadata for imports, hierarchy, relationships, aliases and rules.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "https://json-schema.org/draft/2020-12/schema"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$metadata": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"imports": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"hierarchy": {
|
|
24
|
+
"oneOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1
|
|
31
|
+
},
|
|
32
|
+
"override": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"levels": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"minItems": 1,
|
|
38
|
+
"items": {
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"type": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"field": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
},
|
|
55
|
+
"fieldOn": {
|
|
56
|
+
"enum": ["child", "parent"]
|
|
57
|
+
},
|
|
58
|
+
"multiple": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"templateFormat": {
|
|
62
|
+
"enum": ["heading", "list", "table", "page"]
|
|
63
|
+
},
|
|
64
|
+
"matchers": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1
|
|
69
|
+
},
|
|
70
|
+
"minItems": 1
|
|
71
|
+
},
|
|
72
|
+
"embeddedTemplateFields": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"selfRef": {
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"selfRefField": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": ["type"],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"allowSkipLevels": {
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": ["levels"],
|
|
98
|
+
"additionalProperties": false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"$ref": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"minLength": 1
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": ["$ref"],
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"relationships": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"parent": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"minLength": 1
|
|
121
|
+
},
|
|
122
|
+
"type": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1
|
|
125
|
+
},
|
|
126
|
+
"field": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 1
|
|
129
|
+
},
|
|
130
|
+
"fieldOn": {
|
|
131
|
+
"enum": ["child", "parent"]
|
|
132
|
+
},
|
|
133
|
+
"multiple": {
|
|
134
|
+
"type": "boolean"
|
|
135
|
+
},
|
|
136
|
+
"templateFormat": {
|
|
137
|
+
"enum": ["heading", "list", "table", "page"]
|
|
138
|
+
},
|
|
139
|
+
"matchers": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1
|
|
144
|
+
},
|
|
145
|
+
"minItems": 1
|
|
146
|
+
},
|
|
147
|
+
"embeddedTemplateFields": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"override": {
|
|
155
|
+
"type": "boolean"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": ["parent", "type"],
|
|
159
|
+
"additionalProperties": false
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"aliases": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": {
|
|
165
|
+
"oneOf": [
|
|
166
|
+
{
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"type": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"minLength": 1
|
|
176
|
+
},
|
|
177
|
+
"override": {
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": ["type"],
|
|
182
|
+
"additionalProperties": false
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"rules": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"id": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"minLength": 1
|
|
195
|
+
},
|
|
196
|
+
"category": {
|
|
197
|
+
"enum": ["validation", "coherence", "workflow", "best-practice"]
|
|
198
|
+
},
|
|
199
|
+
"severity": {
|
|
200
|
+
"enum": ["error", "warning", "info"]
|
|
201
|
+
},
|
|
202
|
+
"description": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"minLength": 1
|
|
205
|
+
},
|
|
206
|
+
"expression": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"minLength": 1
|
|
209
|
+
},
|
|
210
|
+
"when": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"minLength": 1
|
|
213
|
+
},
|
|
214
|
+
"semantic": {
|
|
215
|
+
"oneOf": [
|
|
216
|
+
{
|
|
217
|
+
"const": true
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"rubric": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1
|
|
225
|
+
},
|
|
226
|
+
"verdicts": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"additionalProperties": {
|
|
229
|
+
"oneOf": [
|
|
230
|
+
{
|
|
231
|
+
"type": "string",
|
|
232
|
+
"minLength": 1
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"description": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"minLength": 1
|
|
240
|
+
},
|
|
241
|
+
"guidance": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": ["description"],
|
|
247
|
+
"additionalProperties": false
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"minProperties": 2
|
|
252
|
+
},
|
|
253
|
+
"severity": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"additionalProperties": {
|
|
256
|
+
"enum": ["error", "warning", "info", "ignore"]
|
|
257
|
+
},
|
|
258
|
+
"minProperties": 1
|
|
259
|
+
},
|
|
260
|
+
"scope": {
|
|
261
|
+
"type": "array",
|
|
262
|
+
"items": {
|
|
263
|
+
"enum": ["parent", "siblings", "children", "ancestors", "descendants", "branch"]
|
|
264
|
+
},
|
|
265
|
+
"uniqueItems": true
|
|
266
|
+
},
|
|
267
|
+
"includeContent": {
|
|
268
|
+
"enum": ["nodeOnly", "fullScope", true]
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"additionalProperties": false
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"type": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 1
|
|
278
|
+
},
|
|
279
|
+
"global": {
|
|
280
|
+
"type": "boolean"
|
|
281
|
+
},
|
|
282
|
+
"override": {
|
|
283
|
+
"type": "boolean"
|
|
284
|
+
},
|
|
285
|
+
"gatesDescendants": {
|
|
286
|
+
"type": "boolean"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": ["id", "category", "description"],
|
|
290
|
+
"additionalProperties": false,
|
|
291
|
+
"allOf": [
|
|
292
|
+
{
|
|
293
|
+
"anyOf": [
|
|
294
|
+
{
|
|
295
|
+
"required": ["expression"]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"required": ["semantic"]
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"if": {
|
|
304
|
+
"required": ["global"],
|
|
305
|
+
"properties": {
|
|
306
|
+
"global": {
|
|
307
|
+
"const": true
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"then": {
|
|
312
|
+
"not": {
|
|
313
|
+
"anyOf": [
|
|
314
|
+
{
|
|
315
|
+
"required": ["when"]
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"required": ["type"]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"required": ["semantic"]
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"if": {
|
|
329
|
+
"required": ["semantic"],
|
|
330
|
+
"properties": {
|
|
331
|
+
"semantic": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"required": ["verdicts"]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"then": {
|
|
338
|
+
"properties": {
|
|
339
|
+
"semantic": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"required": ["severity"]
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"if": {
|
|
348
|
+
"required": ["semantic"],
|
|
349
|
+
"properties": {
|
|
350
|
+
"semantic": {
|
|
351
|
+
"type": "object",
|
|
352
|
+
"not": {
|
|
353
|
+
"required": ["verdicts"]
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"then": {
|
|
359
|
+
"properties": {
|
|
360
|
+
"semantic": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"severity": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"not": {
|
|
366
|
+
"required": ["fail"]
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"if": {
|
|
376
|
+
"required": ["semantic"],
|
|
377
|
+
"properties": {
|
|
378
|
+
"semantic": {
|
|
379
|
+
"type": "object",
|
|
380
|
+
"required": ["verdicts"]
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"not": {
|
|
384
|
+
"required": ["expression"]
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"then": {
|
|
388
|
+
"not": {
|
|
389
|
+
"required": ["severity"]
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"additionalProperties": false
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/_structured_context_schema_meta.json",
|
|
3
|
-
"$id": "sctx://knowledge_wiki",
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/latest/_structured_context_schema_meta.json",
|
|
3
|
+
"$id": "sctx://core/knowledge_wiki",
|
|
4
4
|
"title": "Knowledge Wiki",
|
|
5
5
|
"description": "Lightweight schema for LLM-maintained knowledge wikis. Supports source pages, concept pages, syntheses, and notes. Designed for compounding knowledge bases where the LLM creates and maintains wiki pages from raw sources.\n\nFlat entity model — no hierarchy, no required parent links. Wikilinks between any pages are valid for arbitrary cross-referencing. The schema validates structure and provenance; it does not constrain meaning.\n\nBased on the pattern described in Karpathy's LLM Wiki (2026).",
|
|
6
|
-
"
|
|
6
|
+
"$metadata": { "imports": ["sctx://core/_knowledge_wiki"] },
|
|
7
|
+
"allOf": [{ "$ref": "sctx://core/_knowledge_wiki" }],
|
|
7
8
|
"oneOf": [
|
|
8
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/source" },
|
|
9
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/concept" },
|
|
10
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/entity" },
|
|
11
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/synthesis" },
|
|
12
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/note" },
|
|
13
|
-
{ "$ref": "sctx://_knowledge_wiki#/$defs/index" }
|
|
9
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/source" },
|
|
10
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/concept" },
|
|
11
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/entity" },
|
|
12
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/synthesis" },
|
|
13
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/note" },
|
|
14
|
+
{ "$ref": "sctx://core/_knowledge_wiki#/$defs/index" }
|
|
14
15
|
]
|
|
15
16
|
}
|
package/schemas/okf.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/latest/_structured_context_schema_meta.json",
|
|
3
|
+
"$id": "sctx://core/okf",
|
|
4
|
+
"title": "Open Knowledge Format",
|
|
5
|
+
"description": "Validates the frontmatter of Open Knowledge Format (OKF v0.2) concept documents in a bundle. Any `type` is accepted and unknown fields are tolerated; `Attested Computation` concepts additionally carry the computation contract.\n\nSpecification: https://github.com/GoogleCloudPlatform/open-knowledge-format",
|
|
6
|
+
"$metadata": { "imports": ["sctx://core/_okf"] },
|
|
7
|
+
"allOf": [{ "$ref": "sctx://core/_okf" }, { "$ref": "sctx://core/_okf#/$defs/concept" }]
|
|
8
|
+
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/_structured_context_schema_meta.json",
|
|
3
|
-
"$id": "sctx://strategy_general",
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/latest/_structured_context_schema_meta.json",
|
|
3
|
+
"$id": "sctx://core/strategy_general",
|
|
4
4
|
"title": "Strategy and opportunity ladder",
|
|
5
|
-
"description": "Validates frontmatter for space node files. Composes strategy_general entities from the bundled partial.
|
|
6
|
-
"
|
|
5
|
+
"description": "Validates frontmatter for space node files. Composes strategy_general entities from the bundled partial. Imports the partial's hierarchy, aliases, relationships and rules.",
|
|
6
|
+
"$metadata": { "imports": ["sctx://core/_strategy_general"] },
|
|
7
|
+
"allOf": [{ "$ref": "sctx://core/_strategy_general" }],
|
|
7
8
|
"oneOf": [
|
|
8
|
-
{ "$ref": "sctx://_strategy_general#/$defs/dashboard" },
|
|
9
|
-
{ "$ref": "sctx://_strategy_general#/$defs/ost_on_a_page" },
|
|
10
|
-
{ "$ref": "sctx://_strategy_general#/$defs/vision" },
|
|
11
|
-
{ "$ref": "sctx://_strategy_general#/$defs/mission" },
|
|
12
|
-
{ "$ref": "sctx://_strategy_general#/$defs/goal" },
|
|
13
|
-
{ "$ref": "sctx://_strategy_general#/$defs/opportunity" },
|
|
14
|
-
{ "$ref": "sctx://_strategy_general#/$defs/solution" },
|
|
15
|
-
{ "$ref": "sctx://_strategy_general#/$defs/experiment" },
|
|
16
|
-
{ "$ref": "sctx://_strategy_general#/$defs/assumption" },
|
|
17
|
-
{ "$ref": "sctx://_strategy_general#/$defs/problem_statement" }
|
|
9
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/dashboard" },
|
|
10
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/ost_on_a_page" },
|
|
11
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/vision" },
|
|
12
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/mission" },
|
|
13
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/goal" },
|
|
14
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/opportunity" },
|
|
15
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/solution" },
|
|
16
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/experiment" },
|
|
17
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/assumption" },
|
|
18
|
+
{ "$ref": "sctx://core/_strategy_general#/$defs/problem_statement" }
|
|
18
19
|
]
|
|
19
20
|
}
|
package/schemas/strict_ost.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/_structured_context_schema_meta.json",
|
|
3
|
-
"$id": "sctx://strict_ost",
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mindsocket/structured-context/main/schemas/generated/latest/_structured_context_schema_meta.json",
|
|
3
|
+
"$id": "sctx://core/strict_ost",
|
|
4
4
|
"title": "Opportunity Solution Tree (Strict)",
|
|
5
5
|
// Follows Teresa Torres' 4-level OST structure as described in "Continuous Discovery Habits" (2021)
|
|
6
6
|
// and at producttalk.org.
|
|
7
7
|
// Structure: outcome → opportunity → solution → assumption test
|
|
8
8
|
"description": "Validates frontmatter for space node files following the canonical 4-level OST structure: outcome → opportunity → solution → assumption test",
|
|
9
|
+
"$metadata": { "imports": ["sctx://core/_ost_strict"] },
|
|
9
10
|
"oneOf": [
|
|
10
11
|
{
|
|
11
12
|
"type": "object",
|
|
12
13
|
"allOf": [
|
|
13
|
-
{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
|
|
14
|
-
{ "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" },
|
|
15
|
-
{ "$ref": "sctx://_ost_strict#/$defs/outcomeProps" }
|
|
14
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/baseNodeProps" },
|
|
15
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/ostEntityProps" },
|
|
16
|
+
{ "$ref": "sctx://core/_ost_strict#/$defs/outcomeProps" }
|
|
16
17
|
],
|
|
17
18
|
"properties": {
|
|
18
19
|
"type": { "const": "outcome" }
|
|
@@ -31,10 +32,10 @@
|
|
|
31
32
|
{
|
|
32
33
|
"type": "object",
|
|
33
34
|
"allOf": [
|
|
34
|
-
{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
|
|
35
|
-
{ "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
|
|
36
|
-
{ "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" },
|
|
37
|
-
{ "$ref": "sctx://_ost_strict#/$defs/opportunityProps" }
|
|
35
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/baseNodeProps" },
|
|
36
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/parentNodeProps" },
|
|
37
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/ostEntityProps" },
|
|
38
|
+
{ "$ref": "sctx://core/_ost_strict#/$defs/opportunityProps" }
|
|
38
39
|
],
|
|
39
40
|
"properties": {
|
|
40
41
|
"type": { "const": "opportunity" }
|
|
@@ -53,9 +54,9 @@
|
|
|
53
54
|
{
|
|
54
55
|
"type": "object",
|
|
55
56
|
"allOf": [
|
|
56
|
-
{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
|
|
57
|
-
{ "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
|
|
58
|
-
{ "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" }
|
|
57
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/baseNodeProps" },
|
|
58
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/parentNodeProps" },
|
|
59
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/ostEntityProps" }
|
|
59
60
|
],
|
|
60
61
|
"properties": {
|
|
61
62
|
"type": { "const": "solution" }
|
|
@@ -73,10 +74,10 @@
|
|
|
73
74
|
{
|
|
74
75
|
"type": "object",
|
|
75
76
|
"allOf": [
|
|
76
|
-
{ "$ref": "sctx://_sctx_base#/$defs/baseNodeProps" },
|
|
77
|
-
{ "$ref": "sctx://_sctx_base#/$defs/parentNodeProps" },
|
|
78
|
-
{ "$ref": "sctx://_sctx_base#/$defs/ostEntityProps" },
|
|
79
|
-
{ "$ref": "sctx://_ost_strict#/$defs/assumptionTestProps" }
|
|
77
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/baseNodeProps" },
|
|
78
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/parentNodeProps" },
|
|
79
|
+
{ "$ref": "sctx://core/_sctx_base#/$defs/ostEntityProps" },
|
|
80
|
+
{ "$ref": "sctx://core/_ost_strict#/$defs/assumptionTestProps" }
|
|
80
81
|
],
|
|
81
82
|
"properties": {
|
|
82
83
|
"type": { "const": "assumption_test" }
|