semantic-atlas 0.1.0 → 0.1.2
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/.agents/skills/semantic-atlas/SKILL.md +133 -152
- package/.agents/skills/semantic-atlas/references/graph-patch.md +74 -10
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +53 -0
- package/README.md +98 -50
- package/README.zh-CN.md +166 -0
- package/dist/cli/bin.js +9 -1
- package/dist/evaluation/contracts.d.ts +88 -0
- package/dist/evaluation/contracts.d.ts.map +1 -1
- package/dist/evaluation/contracts.js +139 -0
- package/docs/evaluation.md +46 -5
- package/docs/mindmaps/semantic-atlas-overview.drawio +255 -0
- package/docs/mindmaps/semantic-atlas-overview.png +0 -0
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +255 -0
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
- package/docs/product-contract.md +16 -16
- package/package.json +15 -16
- package/schemas/evaluation-run-v1.schema.json +310 -19
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"$ref": "#/$defs/__schema6"
|
|
27
27
|
},
|
|
28
28
|
"startedAt": {
|
|
29
|
-
"$ref": "#/$defs/
|
|
29
|
+
"$ref": "#/$defs/__schema12"
|
|
30
30
|
},
|
|
31
31
|
"finishedAt": {
|
|
32
|
-
"$ref": "#/$defs/
|
|
32
|
+
"$ref": "#/$defs/__schema13"
|
|
33
33
|
},
|
|
34
34
|
"observations": {
|
|
35
|
-
"$ref": "#/$defs/
|
|
35
|
+
"$ref": "#/$defs/__schema14"
|
|
36
36
|
},
|
|
37
37
|
"answer": {
|
|
38
|
-
"$ref": "#/$defs/
|
|
38
|
+
"$ref": "#/$defs/__schema16"
|
|
39
39
|
},
|
|
40
40
|
"adjudication": {
|
|
41
|
-
"$ref": "#/$defs/
|
|
41
|
+
"$ref": "#/$defs/__schema17"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"required": [
|
|
@@ -148,6 +148,194 @@
|
|
|
148
148
|
"commands"
|
|
149
149
|
],
|
|
150
150
|
"additionalProperties": false
|
|
151
|
+
},
|
|
152
|
+
"skillDiscovery": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"delivery": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"const": "repository"
|
|
158
|
+
},
|
|
159
|
+
"promptInjection": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"const": false
|
|
162
|
+
},
|
|
163
|
+
"mainSkillLoaded": {
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"const": true
|
|
166
|
+
},
|
|
167
|
+
"statusBeforeSource": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"const": true
|
|
170
|
+
},
|
|
171
|
+
"mapBeforeSource": {
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"const": true
|
|
174
|
+
},
|
|
175
|
+
"decisiveSourceRead": {
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"const": true
|
|
178
|
+
},
|
|
179
|
+
"decisiveSourceFiles": {
|
|
180
|
+
"minItems": 1,
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"$ref": "#/$defs/__schema9"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"knowledgeCaptureDecision": {
|
|
187
|
+
"$ref": "#/$defs/__schema10"
|
|
188
|
+
},
|
|
189
|
+
"conditionalReferences": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"snapshotBootstrap": {
|
|
193
|
+
"oneOf": [
|
|
194
|
+
{
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"outcome": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"const": "not-required"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": [
|
|
203
|
+
"outcome"
|
|
204
|
+
],
|
|
205
|
+
"additionalProperties": false
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"outcome": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"const": "loaded-after-trigger"
|
|
213
|
+
},
|
|
214
|
+
"triggerCommandSequence": {
|
|
215
|
+
"type": "integer",
|
|
216
|
+
"exclusiveMinimum": 0,
|
|
217
|
+
"maximum": 9007199254740991
|
|
218
|
+
},
|
|
219
|
+
"loadCommandSequence": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"exclusiveMinimum": 0,
|
|
222
|
+
"maximum": 9007199254740991
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": [
|
|
226
|
+
"outcome",
|
|
227
|
+
"triggerCommandSequence",
|
|
228
|
+
"loadCommandSequence"
|
|
229
|
+
],
|
|
230
|
+
"additionalProperties": false
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"resultRouting": {
|
|
235
|
+
"oneOf": [
|
|
236
|
+
{
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"outcome": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"const": "not-required"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"outcome"
|
|
246
|
+
],
|
|
247
|
+
"additionalProperties": false
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"outcome": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"const": "loaded-after-trigger"
|
|
255
|
+
},
|
|
256
|
+
"triggerCommandSequence": {
|
|
257
|
+
"type": "integer",
|
|
258
|
+
"exclusiveMinimum": 0,
|
|
259
|
+
"maximum": 9007199254740991
|
|
260
|
+
},
|
|
261
|
+
"loadCommandSequence": {
|
|
262
|
+
"type": "integer",
|
|
263
|
+
"exclusiveMinimum": 0,
|
|
264
|
+
"maximum": 9007199254740991
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": [
|
|
268
|
+
"outcome",
|
|
269
|
+
"triggerCommandSequence",
|
|
270
|
+
"loadCommandSequence"
|
|
271
|
+
],
|
|
272
|
+
"additionalProperties": false
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"graphPatch": {
|
|
277
|
+
"oneOf": [
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"outcome": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"const": "not-loaded"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"required": [
|
|
287
|
+
"outcome"
|
|
288
|
+
],
|
|
289
|
+
"additionalProperties": false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "object",
|
|
293
|
+
"properties": {
|
|
294
|
+
"outcome": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"const": "loaded-after-source"
|
|
297
|
+
},
|
|
298
|
+
"sourceCommandSequence": {
|
|
299
|
+
"type": "integer",
|
|
300
|
+
"exclusiveMinimum": 0,
|
|
301
|
+
"maximum": 9007199254740991
|
|
302
|
+
},
|
|
303
|
+
"loadCommandSequence": {
|
|
304
|
+
"type": "integer",
|
|
305
|
+
"exclusiveMinimum": 0,
|
|
306
|
+
"maximum": 9007199254740991
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"required": [
|
|
310
|
+
"outcome",
|
|
311
|
+
"sourceCommandSequence",
|
|
312
|
+
"loadCommandSequence"
|
|
313
|
+
],
|
|
314
|
+
"additionalProperties": false
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"required": [
|
|
320
|
+
"snapshotBootstrap",
|
|
321
|
+
"resultRouting",
|
|
322
|
+
"graphPatch"
|
|
323
|
+
],
|
|
324
|
+
"additionalProperties": false
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"required": [
|
|
328
|
+
"delivery",
|
|
329
|
+
"promptInjection",
|
|
330
|
+
"mainSkillLoaded",
|
|
331
|
+
"statusBeforeSource",
|
|
332
|
+
"mapBeforeSource",
|
|
333
|
+
"decisiveSourceRead",
|
|
334
|
+
"decisiveSourceFiles",
|
|
335
|
+
"knowledgeCaptureDecision",
|
|
336
|
+
"conditionalReferences"
|
|
337
|
+
],
|
|
338
|
+
"additionalProperties": false
|
|
151
339
|
}
|
|
152
340
|
},
|
|
153
341
|
"required": [
|
|
@@ -170,16 +358,47 @@
|
|
|
170
358
|
"minLength": 1
|
|
171
359
|
},
|
|
172
360
|
"__schema9": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"minLength": 1,
|
|
363
|
+
"pattern": "^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$))(?!.*\\/\\/).+$"
|
|
364
|
+
},
|
|
365
|
+
"__schema10": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"properties": {
|
|
368
|
+
"outcome": {
|
|
369
|
+
"$ref": "#/$defs/__schema11"
|
|
370
|
+
},
|
|
371
|
+
"summary": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"minLength": 1
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"outcome",
|
|
378
|
+
"summary"
|
|
379
|
+
],
|
|
380
|
+
"additionalProperties": false
|
|
381
|
+
},
|
|
382
|
+
"__schema11": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"enum": [
|
|
385
|
+
"persist",
|
|
386
|
+
"reuse",
|
|
387
|
+
"transient",
|
|
388
|
+
"unverified"
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
"__schema12": {
|
|
173
392
|
"type": "string",
|
|
174
393
|
"format": "date-time",
|
|
175
394
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
176
395
|
},
|
|
177
|
-
"
|
|
396
|
+
"__schema13": {
|
|
178
397
|
"type": "string",
|
|
179
398
|
"format": "date-time",
|
|
180
399
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
181
400
|
},
|
|
182
|
-
"
|
|
401
|
+
"__schema14": {
|
|
183
402
|
"type": "object",
|
|
184
403
|
"properties": {
|
|
185
404
|
"sourceTokenMethod": {
|
|
@@ -190,7 +409,7 @@
|
|
|
190
409
|
"minItems": 1,
|
|
191
410
|
"type": "array",
|
|
192
411
|
"items": {
|
|
193
|
-
"$ref": "#/$defs/
|
|
412
|
+
"$ref": "#/$defs/__schema15"
|
|
194
413
|
}
|
|
195
414
|
},
|
|
196
415
|
"atlasCalls": {
|
|
@@ -206,6 +425,20 @@
|
|
|
206
425
|
"command": {
|
|
207
426
|
"type": "string",
|
|
208
427
|
"minLength": 1
|
|
428
|
+
},
|
|
429
|
+
"commandSequence": {
|
|
430
|
+
"type": "integer",
|
|
431
|
+
"exclusiveMinimum": 0,
|
|
432
|
+
"maximum": 9007199254740991
|
|
433
|
+
},
|
|
434
|
+
"exitCode": {
|
|
435
|
+
"type": "integer",
|
|
436
|
+
"minimum": -9007199254740991,
|
|
437
|
+
"maximum": 9007199254740991
|
|
438
|
+
},
|
|
439
|
+
"output": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"minLength": 1
|
|
209
442
|
}
|
|
210
443
|
},
|
|
211
444
|
"required": [
|
|
@@ -248,6 +481,35 @@
|
|
|
248
481
|
],
|
|
249
482
|
"additionalProperties": false
|
|
250
483
|
}
|
|
484
|
+
},
|
|
485
|
+
"skillLoads": {
|
|
486
|
+
"type": "array",
|
|
487
|
+
"items": {
|
|
488
|
+
"type": "object",
|
|
489
|
+
"properties": {
|
|
490
|
+
"sequence": {
|
|
491
|
+
"type": "integer",
|
|
492
|
+
"exclusiveMinimum": 0,
|
|
493
|
+
"maximum": 9007199254740991
|
|
494
|
+
},
|
|
495
|
+
"file": {
|
|
496
|
+
"allOf": [
|
|
497
|
+
{
|
|
498
|
+
"pattern": "^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$))(?!.*\\/\\/).+$"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"pattern": "^\\.agents\\/skills\\/semantic-atlas\\/(?:SKILL\\.md|references\\/[a-z0-9-]+\\.md)$"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"$ref": "#/$defs/__schema9"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"required": [
|
|
508
|
+
"sequence",
|
|
509
|
+
"file"
|
|
510
|
+
],
|
|
511
|
+
"additionalProperties": false
|
|
512
|
+
}
|
|
251
513
|
}
|
|
252
514
|
},
|
|
253
515
|
"required": [
|
|
@@ -258,7 +520,7 @@
|
|
|
258
520
|
],
|
|
259
521
|
"additionalProperties": false
|
|
260
522
|
},
|
|
261
|
-
"
|
|
523
|
+
"__schema15": {
|
|
262
524
|
"type": "object",
|
|
263
525
|
"properties": {
|
|
264
526
|
"sequence": {
|
|
@@ -266,8 +528,18 @@
|
|
|
266
528
|
"exclusiveMinimum": 0,
|
|
267
529
|
"maximum": 9007199254740991
|
|
268
530
|
},
|
|
531
|
+
"commandSequence": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"exclusiveMinimum": 0,
|
|
534
|
+
"maximum": 9007199254740991
|
|
535
|
+
},
|
|
536
|
+
"exitCode": {
|
|
537
|
+
"type": "integer",
|
|
538
|
+
"minimum": -9007199254740991,
|
|
539
|
+
"maximum": 9007199254740991
|
|
540
|
+
},
|
|
269
541
|
"file": {
|
|
270
|
-
"$ref": "#/$defs/
|
|
542
|
+
"$ref": "#/$defs/__schema9"
|
|
271
543
|
},
|
|
272
544
|
"sourceTokens": {
|
|
273
545
|
"type": "integer",
|
|
@@ -282,12 +554,7 @@
|
|
|
282
554
|
],
|
|
283
555
|
"additionalProperties": false
|
|
284
556
|
},
|
|
285
|
-
"
|
|
286
|
-
"type": "string",
|
|
287
|
-
"minLength": 1,
|
|
288
|
-
"pattern": "^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$))(?!.*\\/\\/).+$"
|
|
289
|
-
},
|
|
290
|
-
"__schema14": {
|
|
557
|
+
"__schema16": {
|
|
291
558
|
"type": "object",
|
|
292
559
|
"properties": {
|
|
293
560
|
"response": {
|
|
@@ -297,7 +564,7 @@
|
|
|
297
564
|
"reportedFiles": {
|
|
298
565
|
"type": "array",
|
|
299
566
|
"items": {
|
|
300
|
-
"$ref": "#/$defs/
|
|
567
|
+
"$ref": "#/$defs/__schema9"
|
|
301
568
|
}
|
|
302
569
|
},
|
|
303
570
|
"reportedSymbols": {
|
|
@@ -306,7 +573,7 @@
|
|
|
306
573
|
"type": "object",
|
|
307
574
|
"properties": {
|
|
308
575
|
"file": {
|
|
309
|
-
"$ref": "#/$defs/
|
|
576
|
+
"$ref": "#/$defs/__schema9"
|
|
310
577
|
},
|
|
311
578
|
"name": {
|
|
312
579
|
"type": "string",
|
|
@@ -319,6 +586,9 @@
|
|
|
319
586
|
],
|
|
320
587
|
"additionalProperties": false
|
|
321
588
|
}
|
|
589
|
+
},
|
|
590
|
+
"knowledgeCaptureDecision": {
|
|
591
|
+
"$ref": "#/$defs/__schema10"
|
|
322
592
|
}
|
|
323
593
|
},
|
|
324
594
|
"required": [
|
|
@@ -328,7 +598,7 @@
|
|
|
328
598
|
],
|
|
329
599
|
"additionalProperties": false
|
|
330
600
|
},
|
|
331
|
-
"
|
|
601
|
+
"__schema17": {
|
|
332
602
|
"type": "object",
|
|
333
603
|
"properties": {
|
|
334
604
|
"correct": {
|
|
@@ -352,6 +622,27 @@
|
|
|
352
622
|
"protocol-violation"
|
|
353
623
|
]
|
|
354
624
|
}
|
|
625
|
+
},
|
|
626
|
+
"knowledgeCaptureDecision": {
|
|
627
|
+
"type": "object",
|
|
628
|
+
"properties": {
|
|
629
|
+
"outcome": {
|
|
630
|
+
"$ref": "#/$defs/__schema11"
|
|
631
|
+
},
|
|
632
|
+
"correct": {
|
|
633
|
+
"type": "boolean"
|
|
634
|
+
},
|
|
635
|
+
"notes": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"minLength": 1
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"required": [
|
|
641
|
+
"outcome",
|
|
642
|
+
"correct",
|
|
643
|
+
"notes"
|
|
644
|
+
],
|
|
645
|
+
"additionalProperties": false
|
|
355
646
|
}
|
|
356
647
|
},
|
|
357
648
|
"required": [
|