@almadar/std 16.143.0 → 16.145.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.
Files changed (97) hide show
  1. package/behaviors/lolo/ml/atoms/std-ml-classify.lolo +121 -0
  2. package/behaviors/lolo/ml/atoms/std-ml-exact-check.lolo +90 -0
  3. package/behaviors/lolo/ml/atoms/std-ml-infer.lolo +141 -0
  4. package/behaviors/lolo/ml/atoms/std-ml-label-capture.lolo +75 -0
  5. package/behaviors/lolo/ml/atoms/std-ml-lookup.lolo +83 -0
  6. package/behaviors/lolo/ml/atoms/std-ml-posterior.lolo +104 -0
  7. package/behaviors/lolo/ml/atoms/std-ml-similarity.lolo +154 -0
  8. package/behaviors/lolo/ml/molecules/std-escalating-decision.lolo +271 -0
  9. package/behaviors/lolo/ml/molecules/std-knowledge-tracing.lolo +115 -0
  10. package/behaviors/lolo/ui/core/atoms/std-board.lolo +28 -6
  11. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +23 -6
  12. package/behaviors/lolo/ui/core/atoms/std-calendar.lolo +85 -2
  13. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +17 -0
  14. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +17 -0
  15. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +18 -0
  17. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +2 -0
  18. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +3 -2
  19. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +20 -0
  20. package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -2
  21. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +3 -2
  22. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +2 -0
  23. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +2 -0
  24. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +2 -0
  25. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +2 -0
  26. package/behaviors/registry/factory-signatures.json +5018 -824
  27. package/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  28. package/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  29. package/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  30. package/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  31. package/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  32. package/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  33. package/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  34. package/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  35. package/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  36. package/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  37. package/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  38. package/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  39. package/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  40. package/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  41. package/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  42. package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  43. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  44. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  45. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  46. package/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  47. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  48. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  49. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  50. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  51. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  52. package/canonical-operators.json +30 -6
  53. package/dist/behaviors/behaviors-embeddings.json +134 -134
  54. package/dist/behaviors/exports-reader.js +2462 -2080
  55. package/dist/behaviors/functions/index.d.ts +725 -1
  56. package/dist/behaviors/functions/index.js +2437 -2081
  57. package/dist/behaviors/index.d.ts +1 -1
  58. package/dist/behaviors/index.js +2463 -2081
  59. package/dist/behaviors/knob-embeddings.json +1 -1
  60. package/dist/behaviors/query.js +2462 -2080
  61. package/dist/behaviors/registry/factory-signatures.json +5018 -824
  62. package/dist/behaviors/registry/ml/atoms/std-ml-classify.orb +622 -0
  63. package/dist/behaviors/registry/ml/atoms/std-ml-exact-check.orb +505 -0
  64. package/dist/behaviors/registry/ml/atoms/std-ml-infer.orb +770 -0
  65. package/dist/behaviors/registry/ml/atoms/std-ml-label-capture.orb +367 -0
  66. package/dist/behaviors/registry/ml/atoms/std-ml-lookup.orb +473 -0
  67. package/dist/behaviors/registry/ml/atoms/std-ml-posterior.orb +669 -0
  68. package/dist/behaviors/registry/ml/atoms/std-ml-similarity.orb +862 -0
  69. package/dist/behaviors/registry/ml/molecules/std-escalating-decision.orb +1553 -0
  70. package/dist/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +577 -0
  71. package/dist/behaviors/registry/ui/core/atoms/std-board.orb +90 -20
  72. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +83 -48
  73. package/dist/behaviors/registry/ui/core/atoms/std-calendar.orb +238 -3
  74. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +40 -0
  75. package/dist/behaviors/registry/ui/core/atoms/std-version-history.orb +40 -0
  76. package/dist/behaviors/registry/ui/core/atoms/ui-typography.orb +1 -1
  77. package/dist/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +27 -0
  78. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +25 -12
  79. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +26 -13
  80. package/dist/behaviors/registry/ui/core/molecules/ui-filter-group.orb +86 -0
  81. package/dist/behaviors/registry/ui/core/molecules/ui-search-input.orb +37 -1
  82. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +25 -12
  83. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +13 -0
  84. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +21 -8
  85. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +13 -0
  86. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +13 -0
  87. package/dist/behaviors-embeddings.json +134 -134
  88. package/dist/index.d.ts +1 -1
  89. package/dist/index.js +2498 -2088
  90. package/dist/knob-embeddings.json +1 -1
  91. package/dist/modules/array.js +28 -0
  92. package/dist/modules/contract.js +4 -4
  93. package/dist/modules/data.js +3 -3
  94. package/dist/modules/index.js +35 -7
  95. package/dist/registry/factory-signatures.json +5018 -824
  96. package/dist/registry.js +35 -7
  97. package/package.json +6 -5
@@ -0,0 +1,367 @@
1
+ {
2
+ "description": "std-ml-label-capture — records a labeled example (input, verdict, source rung, observed outcome) so that expensive top-rung answers become training data for a cheaper rung later. Generic: it knows nothing about grading or students. sampleRate gates what fraction of examples are kept (1 = capture all); sink tags which named destination the example is attributed to.",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01KYBM8SK7FG0R2GXW69YPGA2M": {
6
+ "bakedName": "LabeledExample",
7
+ "curName": "LabeledExample",
8
+ "id": "ent_01KYBM8SK7FG0R2GXW69YPGA2M",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01KYBM8SK86WYGVMBYJKQ9J3AG": {
14
+ "bakedName": "LABEL_CAPTURED",
15
+ "curName": "LABEL_CAPTURED",
16
+ "id": "evt_01KYBM8SK86WYGVMBYJKQ9J3AG",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01KYBM8SK85P7TQJB7PYMA4M7F",
20
+ "renames": []
21
+ },
22
+ "evt_01KYBM8SK8J7G5ZWPYH8WGW6TM": {
23
+ "bakedName": "INIT",
24
+ "curName": "INIT",
25
+ "id": "evt_01KYBM8SK8J7G5ZWPYH8WGW6TM",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01KYBM8SK85P7TQJB7PYMA4M7F",
29
+ "renames": []
30
+ },
31
+ "evt_01KYBM8SK8NT8HZ2CR5Y8SAE19": {
32
+ "bakedName": "CAPTURE",
33
+ "curName": "CAPTURE",
34
+ "id": "evt_01KYBM8SK8NT8HZ2CR5Y8SAE19",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01KYBM8SK85P7TQJB7PYMA4M7F",
38
+ "renames": []
39
+ },
40
+ "orb_01KYBM8SK73XT1SZTRNEF8YTQ5": {
41
+ "bakedName": "MlLabelCaptureOrbital",
42
+ "curName": "MlLabelCaptureOrbital",
43
+ "id": "orb_01KYBM8SK73XT1SZTRNEF8YTQ5",
44
+ "kind": "orbital",
45
+ "owner": "workspace",
46
+ "renames": []
47
+ },
48
+ "pag_01KYBM8SK8KGFQFKA4WST4DAFM": {
49
+ "bakedName": "MlLabelCapturePage",
50
+ "curName": "MlLabelCapturePage",
51
+ "id": "pag_01KYBM8SK8KGFQFKA4WST4DAFM",
52
+ "kind": "page",
53
+ "owner": "workspace",
54
+ "renames": []
55
+ },
56
+ "trt_01KYBM8SK85P7TQJB7PYMA4M7F": {
57
+ "bakedName": "LabelCaptureListener",
58
+ "curName": "LabelCaptureListener",
59
+ "id": "trt_01KYBM8SK85P7TQJB7PYMA4M7F",
60
+ "kind": "trait",
61
+ "owner": "workspace",
62
+ "renames": []
63
+ }
64
+ },
65
+ "schemaVersion": 1
66
+ },
67
+ "name": "std-ml-label-capture",
68
+ "orbitals": [
69
+ {
70
+ "entity": {
71
+ "collection": "ml_labels",
72
+ "fields": [
73
+ {
74
+ "name": "id",
75
+ "primaryKey": true,
76
+ "required": true,
77
+ "type": "string"
78
+ },
79
+ {
80
+ "description": "The input that was judged.",
81
+ "name": "input",
82
+ "type": "string"
83
+ },
84
+ {
85
+ "description": "The verdict/output produced by the rung.",
86
+ "name": "verdict",
87
+ "type": "string"
88
+ },
89
+ {
90
+ "default": "",
91
+ "description": "Which rung produced the verdict.",
92
+ "name": "source",
93
+ "type": "string"
94
+ },
95
+ {
96
+ "description": "The observed ground-truth outcome, once known.",
97
+ "name": "outcome",
98
+ "type": "string"
99
+ },
100
+ {
101
+ "default": "",
102
+ "description": "Named destination this example is attributed to.",
103
+ "name": "sink",
104
+ "type": "string"
105
+ },
106
+ {
107
+ "default": 0.0,
108
+ "name": "recordedAt",
109
+ "type": "number"
110
+ }
111
+ ],
112
+ "id": "ent_01KYBM8SK7FG0R2GXW69YPGA2M",
113
+ "name": "LabeledExample",
114
+ "persistence": "persistent"
115
+ },
116
+ "id": "orb_01KYBM8SK73XT1SZTRNEF8YTQ5",
117
+ "name": "MlLabelCaptureOrbital",
118
+ "pages": [
119
+ {
120
+ "id": "pag_01KYBM8SK8KGFQFKA4WST4DAFM",
121
+ "name": "MlLabelCapturePage",
122
+ "path": "/ml-label-capture",
123
+ "traits": [
124
+ {
125
+ "ref": "LabelCaptureListener",
126
+ "refId": "trt_01KYBM8SK85P7TQJB7PYMA4M7F"
127
+ }
128
+ ]
129
+ }
130
+ ],
131
+ "traits": [
132
+ {
133
+ "category": "lifecycle",
134
+ "config": {
135
+ "sampleRate": {
136
+ "default": 1.0,
137
+ "description": "Fraction of examples to keep (1 = capture all). A prob/flip trial per observation.",
138
+ "label": "Sample rate",
139
+ "tier": "policy",
140
+ "type": "float"
141
+ },
142
+ "sink": {
143
+ "default": "",
144
+ "description": "Named destination this batch of examples is attributed to; interpreted downstream (the physical label store is not yet decided).",
145
+ "label": "Label sink",
146
+ "tier": "infra",
147
+ "type": "string"
148
+ }
149
+ },
150
+ "emits": [
151
+ {
152
+ "description": "Fired after a labeled example is persisted.",
153
+ "event": "LABEL_CAPTURED",
154
+ "eventId": "evt_01KYBM8SK86WYGVMBYJKQ9J3AG",
155
+ "payloadSchema": [
156
+ {
157
+ "name": "source",
158
+ "required": true,
159
+ "type": "string"
160
+ },
161
+ {
162
+ "name": "sink",
163
+ "required": true,
164
+ "type": "string"
165
+ }
166
+ ],
167
+ "scope": "external",
168
+ "tier": "primary"
169
+ }
170
+ ],
171
+ "entityContract": {
172
+ "provides": [
173
+ "input",
174
+ "outcome",
175
+ "recordedAt",
176
+ "sink",
177
+ "source",
178
+ "verdict"
179
+ ],
180
+ "requires": []
181
+ },
182
+ "entityRebindable": true,
183
+ "entityRefIds": {
184
+ "LabeledExample": "ent_01KYBM8SK7FG0R2GXW69YPGA2M"
185
+ },
186
+ "id": "trt_01KYBM8SK85P7TQJB7PYMA4M7F",
187
+ "linkedEntity": "LabeledExample",
188
+ "linkedEntityId": "ent_01KYBM8SK7FG0R2GXW69YPGA2M",
189
+ "name": "LabelCaptureListener",
190
+ "scope": "instance",
191
+ "stateMachine": {
192
+ "events": [
193
+ {
194
+ "id": "evt_01KYBM8SK8J7G5ZWPYH8WGW6TM",
195
+ "key": "INIT",
196
+ "name": "Initialize"
197
+ },
198
+ {
199
+ "id": "evt_01KYBM8SK8NT8HZ2CR5Y8SAE19",
200
+ "key": "CAPTURE",
201
+ "name": "Capture",
202
+ "payloadSchema": [
203
+ {
204
+ "name": "input",
205
+ "required": true,
206
+ "type": "json"
207
+ },
208
+ {
209
+ "name": "verdict",
210
+ "required": true,
211
+ "type": "json"
212
+ },
213
+ {
214
+ "name": "source",
215
+ "required": true,
216
+ "type": "string"
217
+ },
218
+ {
219
+ "name": "outcome",
220
+ "type": "json"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "description": "Fired after a labeled example is persisted.",
226
+ "id": "evt_01KYBM8SK86WYGVMBYJKQ9J3AG",
227
+ "key": "LABEL_CAPTURED",
228
+ "name": "Label Captured",
229
+ "payloadSchema": [
230
+ {
231
+ "name": "source",
232
+ "required": true,
233
+ "type": "string"
234
+ },
235
+ {
236
+ "name": "sink",
237
+ "required": true,
238
+ "type": "string"
239
+ }
240
+ ],
241
+ "tier": "primary"
242
+ }
243
+ ],
244
+ "states": [
245
+ {
246
+ "isInitial": true,
247
+ "name": "idle"
248
+ }
249
+ ],
250
+ "transitions": [
251
+ {
252
+ "effects": [
253
+ [
254
+ "set",
255
+ "@entity.input",
256
+ null
257
+ ],
258
+ [
259
+ "set",
260
+ "@entity.verdict",
261
+ null
262
+ ],
263
+ [
264
+ "set",
265
+ "@entity.source",
266
+ ""
267
+ ],
268
+ [
269
+ "set",
270
+ "@entity.outcome",
271
+ null
272
+ ],
273
+ [
274
+ "set",
275
+ "@entity.sink",
276
+ ""
277
+ ],
278
+ [
279
+ "set",
280
+ "@entity.recordedAt",
281
+ 0.0
282
+ ]
283
+ ],
284
+ "event": "INIT",
285
+ "eventId": "evt_01KYBM8SK8J7G5ZWPYH8WGW6TM",
286
+ "from": "idle",
287
+ "to": "idle"
288
+ },
289
+ {
290
+ "effects": [
291
+ [
292
+ "set",
293
+ "@entity.input",
294
+ "@payload.input"
295
+ ],
296
+ [
297
+ "set",
298
+ "@entity.verdict",
299
+ "@payload.verdict"
300
+ ],
301
+ [
302
+ "set",
303
+ "@entity.source",
304
+ "@payload.source"
305
+ ],
306
+ [
307
+ "set",
308
+ "@entity.outcome",
309
+ "@payload.outcome"
310
+ ],
311
+ [
312
+ "set",
313
+ "@entity.sink",
314
+ "@config.sink"
315
+ ],
316
+ [
317
+ "set",
318
+ "@entity.recordedAt",
319
+ "@now"
320
+ ],
321
+ [
322
+ "if",
323
+ [
324
+ "prob/flip",
325
+ "@config.sampleRate"
326
+ ],
327
+ [
328
+ "do",
329
+ [
330
+ "persist",
331
+ "create",
332
+ "LabeledExample",
333
+ {
334
+ "input": "@entity.input",
335
+ "outcome": "@entity.outcome",
336
+ "recordedAt": "@entity.recordedAt",
337
+ "sink": "@entity.sink",
338
+ "source": "@entity.source",
339
+ "verdict": "@entity.verdict"
340
+ }
341
+ ],
342
+ [
343
+ "emit",
344
+ "LABEL_CAPTURED",
345
+ {
346
+ "sink": "@entity.sink",
347
+ "source": "@entity.source"
348
+ }
349
+ ]
350
+ ],
351
+ null
352
+ ]
353
+ ],
354
+ "event": "CAPTURE",
355
+ "eventId": "evt_01KYBM8SK8NT8HZ2CR5Y8SAE19",
356
+ "from": "idle",
357
+ "to": "idle"
358
+ }
359
+ ]
360
+ }
361
+ }
362
+ ]
363
+ }
364
+ ],
365
+ "schemaVersion": 1,
366
+ "version": "1.0.0"
367
+ }