@agenticprimitives/ontology 1.0.0-alpha.25 → 1.0.0-alpha.27

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 (84) hide show
  1. package/cbox/judgment-shapes.shacl.ttl +83 -0
  2. package/cbox/run-measures-shapes.shacl.ttl +59 -0
  3. package/cbox/run-provenance-shapes.shacl.ttl +92 -0
  4. package/dist/artifacts.d.ts +6 -2
  5. package/dist/artifacts.d.ts.map +1 -1
  6. package/dist/artifacts.js +17 -0
  7. package/dist/artifacts.js.map +1 -1
  8. package/dist/evaluation-context.d.ts +134 -0
  9. package/dist/evaluation-context.d.ts.map +1 -0
  10. package/dist/evaluation-context.js +136 -0
  11. package/dist/evaluation-context.js.map +1 -0
  12. package/dist/governance.d.ts +84 -0
  13. package/dist/governance.d.ts.map +1 -0
  14. package/dist/governance.js +88 -0
  15. package/dist/governance.js.map +1 -0
  16. package/dist/index.d.ts +9 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +14 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/outcomes.d.ts +47 -0
  21. package/dist/outcomes.d.ts.map +1 -0
  22. package/dist/outcomes.js +40 -0
  23. package/dist/outcomes.js.map +1 -0
  24. package/dist/participant-vocabulary.d.ts +3 -0
  25. package/dist/participant-vocabulary.d.ts.map +1 -1
  26. package/dist/participant-vocabulary.js +3 -0
  27. package/dist/participant-vocabulary.js.map +1 -1
  28. package/dist/party-roles.d.ts +13 -4
  29. package/dist/party-roles.d.ts.map +1 -1
  30. package/dist/party-roles.js +24 -6
  31. package/dist/party-roles.js.map +1 -1
  32. package/dist/payload-classes.d.ts +22 -0
  33. package/dist/payload-classes.d.ts.map +1 -0
  34. package/dist/payload-classes.js +30 -0
  35. package/dist/payload-classes.js.map +1 -0
  36. package/dist/principles.generated.d.ts +11 -0
  37. package/dist/principles.generated.d.ts.map +1 -0
  38. package/dist/principles.generated.js +293 -0
  39. package/dist/principles.generated.js.map +1 -0
  40. package/dist/published-works.d.ts +13 -0
  41. package/dist/published-works.d.ts.map +1 -0
  42. package/dist/published-works.js +18 -0
  43. package/dist/published-works.js.map +1 -0
  44. package/dist/run-measures-context.d.ts +74 -0
  45. package/dist/run-measures-context.d.ts.map +1 -0
  46. package/dist/run-measures-context.js +77 -0
  47. package/dist/run-measures-context.js.map +1 -0
  48. package/dist/run-provenance-context.d.ts +104 -0
  49. package/dist/run-provenance-context.d.ts.map +1 -1
  50. package/dist/run-provenance-context.js +105 -1
  51. package/dist/run-provenance-context.js.map +1 -1
  52. package/dist/transitions.d.ts +42 -0
  53. package/dist/transitions.d.ts.map +1 -0
  54. package/dist/transitions.js +100 -0
  55. package/dist/transitions.js.map +1 -0
  56. package/dist/vault-records.d.ts.map +1 -1
  57. package/dist/vault-records.js +175 -0
  58. package/dist/vault-records.js.map +1 -1
  59. package/dist/versions.generated.d.ts +247 -0
  60. package/dist/versions.generated.d.ts.map +1 -0
  61. package/dist/versions.generated.js +300 -0
  62. package/dist/versions.generated.js.map +1 -0
  63. package/evaluation.jsonld +133 -0
  64. package/package.json +21 -8
  65. package/run-measures.jsonld +34 -0
  66. package/run-provenance.jsonld +247 -39
  67. package/tbox/content.ttl +23 -0
  68. package/tbox/context.ttl +59 -7
  69. package/tbox/core.ttl +62 -1
  70. package/tbox/dcat-imports.ttl +19 -0
  71. package/tbox/dqv-imports.ttl +29 -0
  72. package/tbox/earl-imports.ttl +31 -0
  73. package/tbox/evaluation.ttl +234 -0
  74. package/tbox/execution.ttl +364 -1
  75. package/tbox/governance.ttl +67 -0
  76. package/tbox/identity.ttl +5 -0
  77. package/tbox/intents.ttl +39 -0
  78. package/tbox/payload.ttl +94 -0
  79. package/tbox/principles.ttl +212 -0
  80. package/tbox/prov-imports.ttl +4 -1
  81. package/tbox/skos-imports.ttl +54 -0
  82. package/tbox/transition.ttl +63 -0
  83. package/tbox/verification-receipt.ttl +7 -0
  84. package/versions.adoption.json +113 -0
@@ -0,0 +1,83 @@
1
+ # C-box — SHACL shapes for a JUDGMENT record (spec 414 §3.4 principles; first binding: skill selection, 415 SEL-1).
2
+ #
3
+ # JU1 a judgment cites its criterion by digest (J2) and was made by a NAMED judge of a DECLARED kind (J3);
4
+ # JU2 its verdict is EARL-shaped and CONSISTENT: a selection class from the declared scheme whose EARL outcome agrees —
5
+ # `undetected` is `cantTell`, never a pass or a fail (J8); correct / acceptable / abstention pass; the rest fail;
6
+ # JU3 the assertion names its subject, its test and its result;
7
+ # JU4 no words (J7): what a verdict carries beyond IRIs is an evidence kind and canonical ids, never a sentence.
8
+ # Evidence, never authority (J1): no verifier reads these shapes or the record.
9
+ # ENGINE NOTE: one sh:sparql per NodeShape (shacl-engine compiles a shape's SPARQL constraints as one unit).
10
+
11
+ @prefix apeval: <https://agenticprimitives.dev/ns/evaluation#> .
12
+ @prefix earl: <http://www.w3.org/ns/earl#> .
13
+ @prefix prov: <http://www.w3.org/ns/prov#> .
14
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
15
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
16
+
17
+ apeval:JudgmentShape a sh:NodeShape ;
18
+ rdfs:label "JU1 — a judgment cites its criterion by digest and names its judge and kind" ;
19
+ sh:targetClass apeval:Judgment ;
20
+ sh:property [ sh:path apeval:criterionDigest ; sh:minCount 1 ; sh:maxCount 1 ; sh:pattern "^sha256:[0-9a-f]{64}$" ;
21
+ sh:message "JU1: the judgment cites no criterion by sha256 digest — a verdict against an unstated expectation is not evidence (spec 414 §3.4 J2)." ] ;
22
+ sh:property [ sh:path prov:wasAssociatedWith ; sh:minCount 1 ; sh:maxCount 1 ; sh:class apeval:Judge ;
23
+ sh:message "JU1: the judgment names no judge (spec 414 §3.4 J3)." ] ;
24
+ sh:property [ sh:path prov:used ; sh:minCount 1 ;
25
+ sh:message "JU1: the judgment used nothing — what was judged? (spec 414 §3.4)." ] .
26
+
27
+ apeval:JudgeShape a sh:NodeShape ;
28
+ rdfs:label "JU1 — a judge declares its kind" ;
29
+ sh:targetClass apeval:Judge ;
30
+ sh:property [ sh:path apeval:judgeKind ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( "mechanical" "model" "human" ) ;
31
+ sh:message "JU1: the judge declares no kind (mechanical · model · human) — verdicts of different kinds are never pooled (J3, J4)." ] .
32
+
33
+ apeval:AssertionShape a sh:NodeShape ;
34
+ rdfs:label "JU3 — an assertion names its subject, test and result" ;
35
+ sh:targetClass earl:Assertion ;
36
+ sh:property [ sh:path earl:subject ; sh:minCount 1 ; sh:nodeKind sh:IRI ; sh:message "JU3: the assertion names no subject (spec 414 §3.4)." ] ;
37
+ sh:property [ sh:path earl:test ; sh:minCount 1 ; sh:nodeKind sh:IRI ; sh:message "JU3: the assertion names no test (the criterion it applied)." ] ;
38
+ sh:property [ sh:path earl:result ; sh:minCount 1 ; sh:maxCount 1 ; sh:class earl:TestResult ; sh:message "JU3: the assertion has no result." ] .
39
+
40
+ apeval:SelectionResultShape a sh:NodeShape ;
41
+ rdfs:label "JU2 — a selection verdict is a declared class whose EARL outcome agrees" ;
42
+ sh:targetClass earl:TestResult ;
43
+ sh:property [ sh:path earl:outcome ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( earl:passed earl:failed earl:cantTell earl:inapplicable ) ;
44
+ sh:message "JU2: the result has no EARL outcome (passed · failed · cantTell · inapplicable)." ] ;
45
+ sh:sparql [
46
+ sh:message "JU2: the selection class is not in the declared scheme (spec 415 §3a)." ;
47
+ sh:select """
48
+ SELECT $this ?c WHERE {
49
+ $this <https://agenticprimitives.dev/ns/evaluation#selectionOutcome> ?c .
50
+ FILTER NOT EXISTS { ?c <http://www.w3.org/2004/02/skos/core#inScheme> <https://agenticprimitives.dev/ns/evaluation#SelectionOutcomes> }
51
+ }
52
+ """ ;
53
+ ] .
54
+
55
+ apeval:SelectionOutcomeConsistencyShape a sh:NodeShape ;
56
+ rdfs:label "JU2 — the EARL outcome agrees with the selection class (one sh:sparql per NodeShape — shacl-engine)" ;
57
+ sh:targetClass earl:TestResult ;
58
+ sh:sparql [
59
+ sh:message "JU2: the EARL outcome contradicts the selection class — undetected is cantTell (J8); correct, acceptable and abstention pass; misses and spurious selections fail." ;
60
+ sh:select """
61
+ SELECT $this ?c ?o WHERE {
62
+ $this <https://agenticprimitives.dev/ns/evaluation#selectionOutcome> ?c ; <http://www.w3.org/ns/earl#outcome> ?o .
63
+ BIND(STRAFTER(STR(?c), "#so-") AS ?k)
64
+ BIND(IF(?k = "undetected", <http://www.w3.org/ns/earl#cantTell>, IF(?k IN ("tp", "tpAlt", "tn"), <http://www.w3.org/ns/earl#passed>, <http://www.w3.org/ns/earl#failed>)) AS ?want)
65
+ FILTER(?o != ?want)
66
+ }
67
+ """ ;
68
+ ] .
69
+
70
+ apeval:NoWordsInVerdictsShape a sh:NodeShape ;
71
+ rdfs:label "JU4 — a verdict carries ids, never a sentence" ;
72
+ sh:targetClass earl:TestResult ;
73
+ sh:property [ sh:path apeval:evidenceKind ; sh:maxCount 1 ; sh:in ( "stamped" "inferred" ) ; sh:message "JU4: the evidence kind is neither stamped nor inferred — never pooled (spec 415 §3a)." ] ;
74
+ sh:property [ sh:path apeval:chargedTo ; sh:pattern "^[^\\s]{1,200}$" ; sh:message "JU4: a charged skill is not a canonical id — a verdict names skills, it does not describe them (J7)." ] ;
75
+ sh:sparql [
76
+ sh:message "JU4: the verdict carries a literal other than its evidence kind and charged ids (J7)." ;
77
+ sh:select """
78
+ SELECT $this ?p ?v WHERE {
79
+ $this ?p ?v . FILTER(isLiteral(?v))
80
+ FILTER(?p NOT IN (<https://agenticprimitives.dev/ns/evaluation#evidenceKind>, <https://agenticprimitives.dev/ns/evaluation#chargedTo>))
81
+ }
82
+ """ ;
83
+ ] .
@@ -0,0 +1,59 @@
1
+ # C-box — SHACL shapes for a run's MEASUREMENTS record (`run.measures:<runRef>`, spec 414 A2).
2
+ #
3
+ # A measurement is a number about a run or a step, computed from its trace alone. These shapes say what makes such a
4
+ # record valid AS EVIDENCE: each measurement is computed ON something (M1), of a DECLARED metric (M1), with a value and
5
+ # a unit (M1), generated by the measuring (M1); the record is derived from the run's provenance bundle and attributed
6
+ # (M2); and it carries NO WORDS — a measurement's only literals are its value and its unit (M3). Never permission: no
7
+ # verifier reads these shapes or the record. They run in CI over records the serializer built, and over the twins.
8
+
9
+ @prefix apeval: <https://agenticprimitives.dev/ns/evaluation#> .
10
+ @prefix dqv: <http://www.w3.org/ns/dqv#> .
11
+ @prefix prov: <http://www.w3.org/ns/prov#> .
12
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
13
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
15
+
16
+ apeval:RunMeasurementShape a sh:NodeShape ;
17
+ rdfs:label "M1 — a measurement is of a declared metric, on something, with a value, a unit and its generation" ;
18
+ sh:targetClass apeval:RunMeasurement ;
19
+ sh:property [ sh:path dqv:computedOn ; sh:minCount 1 ; sh:maxCount 1 ; sh:nodeKind sh:IRI ;
20
+ sh:message "M1: a measurement is computed on nothing (dqv:computedOn) — a number about no run is not evidence (spec 414 A2)." ] ;
21
+ sh:property [ sh:path dqv:value ; sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:decimal ;
22
+ sh:message "M1: a measurement carries no decimal value (spec 414 A2)." ] ;
23
+ sh:property [ sh:path apeval:unit ; sh:minCount 1 ; sh:maxCount 1 ; sh:in ( "ms" "{count}" "1" ) ;
24
+ sh:message "M1: a measurement carries no unit, or one outside the declared UCUM codes (ms · {count} · 1) (spec 414 A2)." ] ;
25
+ sh:property [ sh:path prov:wasGeneratedBy ; sh:minCount 1 ; sh:class apeval:Measuring ;
26
+ sh:message "M1: a measurement names no measuring that generated it (spec 414 A2)." ] ;
27
+ sh:property [ sh:path dqv:isMeasurementOf ; sh:minCount 1 ; sh:maxCount 1 ;
28
+ sh:message "M1: a measurement names no metric (spec 414 A2)." ] ;
29
+ sh:sparql [
30
+ sh:message "M1: a measurement names a metric that is not in the declared scheme — a metric is declared once, in the T-box, and code names it by notation (spec 414 §2 rule 4)." ;
31
+ sh:select """
32
+ SELECT $this ?m WHERE {
33
+ $this <http://www.w3.org/ns/dqv#isMeasurementOf> ?m .
34
+ FILTER NOT EXISTS { ?m <http://www.w3.org/2004/02/skos/core#inScheme> <https://agenticprimitives.dev/ns/evaluation#Metrics> }
35
+ }
36
+ """ ;
37
+ ] .
38
+
39
+ apeval:RunMeasuresShape a sh:NodeShape ;
40
+ rdfs:label "M2 — the record derives from the run's bundle and is attributed" ;
41
+ sh:targetClass apeval:RunMeasures ;
42
+ sh:property [ sh:path prov:wasDerivedFrom ; sh:minCount 1 ; sh:nodeKind sh:IRI ;
43
+ sh:message "M2: the measurements derive from no run bundle — numbers about an unnamed run (spec 414 A2)." ] ;
44
+ sh:property [ sh:path prov:wasAttributedTo ; sh:minCount 1 ; sh:nodeKind sh:IRI ;
45
+ sh:message "M2: the measurements are attributed to no agent — whose record is this? (spec 414 A2)." ] .
46
+
47
+ apeval:NoWordsInMeasurementsShape a sh:NodeShape ;
48
+ rdfs:label "M3 — a measurement's only literals are its value and its unit" ;
49
+ sh:targetClass apeval:RunMeasurement ;
50
+ sh:sparql [
51
+ sh:message "M3: a measurement carries a literal other than its value and its unit — a measurement is a number, never a sentence (spec 414 §2 rule 6)." ;
52
+ sh:select """
53
+ SELECT $this ?p ?v WHERE {
54
+ $this ?p ?v .
55
+ FILTER(isLiteral(?v))
56
+ FILTER(?p NOT IN (<http://www.w3.org/ns/dqv#value>, <https://agenticprimitives.dev/ns/evaluation#unit>))
57
+ }
58
+ """ ;
59
+ ] .
@@ -170,3 +170,95 @@ apexec:NoPlaintextInRunProvenanceShape a sh:NodeShape ;
170
170
  }
171
171
  """ ;
172
172
  ] .
173
+
174
+ # ═══ Spec 414 A1 — the trace from the door ═══════════════════════════════════════════════════════
175
+ # Every run says how it arrived and under which variant (R9, R10) — the hard switch: a run without them
176
+ # is a record a comparison cannot place. A model call carries ids and numbers only (R8). An engagement
177
+ # names a capability of the declared scheme and an effect of the declared list (R11). R7 (a capability
178
+ # step names its SKILL.md contract) waits for the compiler to say which contract each tool came from
179
+ # (spec 415 §4.1, S1).
180
+
181
+ apexec:ModelInvocationIdsOnlyShape a sh:NodeShape ;
182
+ rdfs:label "R8 — a model invocation carries a role, and literals that are ids and numbers only" ;
183
+ sh:targetClass apexec:ModelInvocation ;
184
+ sh:property [
185
+ sh:path apexec:invocationRole ;
186
+ sh:minCount 1 ; sh:maxCount 1 ; sh:in ( "plan" "compose" "structured" ) ;
187
+ sh:message "R8: a model invocation names no role (plan | compose | structured) — a call nobody can place is noise, not evidence (spec 414 A1)." ;
188
+ ] ;
189
+ sh:sparql [
190
+ sh:message "R8: a model invocation carries a literal outside its declared facts — a prompt, a reply or a rationale has no place in the record; only ids, digests and numbers do (spec 414 §2 rule 6; spec 381 §1)." ;
191
+ sh:select """
192
+ SELECT $this ?p ?v WHERE {
193
+ $this ?p ?v .
194
+ FILTER(isLiteral(?v))
195
+ FILTER(?p NOT IN (
196
+ <https://agenticprimitives.dev/ns/execution#invocationRole>, <https://agenticprimitives.dev/ns/execution#modelId>,
197
+ <https://agenticprimitives.dev/ns/execution#modelProvider>, <https://agenticprimitives.dev/ns/execution#promptTemplateDigest>,
198
+ <https://agenticprimitives.dev/ns/execution#tokensIn>, <https://agenticprimitives.dev/ns/execution#tokensOut>,
199
+ <https://agenticprimitives.dev/ns/execution#routeReason>, <https://agenticprimitives.dev/ns/execution#endedAt>,
200
+ <https://agenticprimitives.dev/ns/execution#traceId>, <https://agenticprimitives.dev/ns/execution#spanId>,
201
+ <http://www.w3.org/ns/prov#startedAtTime>, <http://www.w3.org/ns/prov#endedAtTime>
202
+ ))
203
+ }
204
+ """ ;
205
+ ] .
206
+
207
+ apexec:RunArrivedByDoorShape a sh:NodeShape ;
208
+ rdfs:label "R9 — every run names the door it arrived by" ;
209
+ sh:targetClass apexec:ServiceExecution ;
210
+ sh:property [
211
+ sh:path apexec:arrivedBy ;
212
+ sh:minCount 1 ; sh:maxCount 1 ; sh:class apexec:Door ;
213
+ sh:message "R9: the run names no door (apexec:arrivedBy → apexec:Door) — every intent enters by one, and a trace that cannot say which is not a trace from the door (spec 414 A1)." ;
214
+ ] .
215
+
216
+ apexec:DoorKindShape a sh:NodeShape ;
217
+ rdfs:label "R9 — a door says what kind it is" ;
218
+ sh:targetClass apexec:Door ;
219
+ sh:property [
220
+ sh:path apexec:doorKind ;
221
+ sh:minCount 1 ; sh:maxCount 1 ; sh:in ( "a2a-message" "harness-ask" "routed" "trigger" "resume" "home-mcp" "channel-mention" ) ;
222
+ sh:message "R9: a door names no kind, or one outside the declared list (spec 414 A1)." ;
223
+ ] .
224
+
225
+ apexec:RunUnderVariantShape a sh:NodeShape ;
226
+ rdfs:label "R10 — every run names the variant it ran under, by digest" ;
227
+ sh:targetClass apexec:ServiceExecution ;
228
+ sh:property [
229
+ sh:path apexec:underVariant ;
230
+ sh:minCount 1 ; sh:maxCount 1 ; sh:class apexec:Variant ;
231
+ sh:message "R10: the run names no variant — without one no comparison can place it and no effectiveness reading can slice it (spec 414 §7)." ;
232
+ ] .
233
+
234
+ apexec:VariantDigestShape a sh:NodeShape ;
235
+ rdfs:label "R10 — a variant is named by a sha256 digest" ;
236
+ sh:targetClass apexec:Variant ;
237
+ sh:property [
238
+ sh:path apexec:variantDigest ;
239
+ sh:minCount 1 ; sh:maxCount 1 ; sh:pattern "^sha256:[0-9a-f]{64}$" ;
240
+ sh:message "R10: a variant carries no sha256 digest — two runs share a variant exactly when their digests are equal (spec 414 A1)." ;
241
+ ] .
242
+
243
+ apexec:CapabilityEngagementShape a sh:NodeShape ;
244
+ rdfs:label "R11 — an engagement names a declared harness capability and a declared effect" ;
245
+ sh:targetClass apexec:CapabilityEngagement ;
246
+ sh:property [
247
+ sh:path apexec:engagementEffect ;
248
+ sh:minCount 1 ; sh:maxCount 1 ; sh:class apexec:EngagementEffect ;
249
+ sh:message "R11: an engagement names no effect from the declared list (changed-plan | changed-step | no-change | refused) (spec 414 §3.2)." ;
250
+ ] ;
251
+ sh:sparql [
252
+ sh:message "R11: an engagement names a harness capability that is not in the declared scheme — a capability is declared once, in the T-box, and code stamps it by notation (spec 414 §2 rule 4)." ;
253
+ sh:select """
254
+ SELECT $this ?c WHERE {
255
+ $this <https://agenticprimitives.dev/ns/execution#ofCapability> ?c .
256
+ FILTER NOT EXISTS { ?c <http://www.w3.org/2004/02/skos/core#inScheme> <https://agenticprimitives.dev/ns/execution#HarnessCapabilities> }
257
+ }
258
+ """ ;
259
+ ] ;
260
+ sh:property [
261
+ sh:path apexec:ofCapability ;
262
+ sh:minCount 1 ; sh:maxCount 1 ;
263
+ sh:message "R11: an engagement names no harness capability (spec 414 §3.2)." ;
264
+ ] .
@@ -7,8 +7,12 @@ export declare const ARTIFACTS: {
7
7
  readonly context: "context.jsonld";
8
8
  /** Spec 389 — the JSON-LD context a run's provenance record (`run.provenance:<runRef>`) is written under. */
9
9
  readonly runProvenanceContext: "run-provenance.jsonld";
10
- readonly tbox: readonly ["tbox/core.ttl", "tbox/identity.ttl", "tbox/contact.ttl", "tbox/naming.ttl", "tbox/intents.ttl", "tbox/constraints.ttl", "tbox/resolution.ttl", "tbox/agreement.ttl", "tbox/payment.ttl", "tbox/fulfillment.ttl", "tbox/attestation.ttl", "tbox/skills.ttl", "tbox/geo.ttl", "tbox/content.ttl", "tbox/registry.ttl", "tbox/discovery.ttl", "tbox/trust.ttl", "tbox/security-exposure.ttl", "tbox/agent-resolution.ttl", "tbox/verification-receipt.ttl", "tbox/scope.ttl", "tbox/situation.ttl", "tbox/org.ttl", "tbox/familyoffice.ttl", "tbox/entitlement.ttl", "tbox/interaction.ttl", "tbox/messaging.ttl", "tbox/guidance.ttl", "tbox/actor-context.ttl", "tbox/context.ttl", "tbox/profile.ttl", "tbox/execution.ttl", "tbox/plan.ttl", "tbox/prov-imports.ttl", "tbox/coordination.ttl", "tbox/engagement.ttl", "tbox/card-projection.ttl"];
11
- readonly cbox: readonly ["cbox/canonical-agent-id-shape.shacl.ttl", "cbox/controlled-vocabularies.ttl", "cbox/registry-vocabulary.ttl", "cbox/skill-vocabulary.ttl", "cbox/geo-vocabulary.ttl", "cbox/scope-vocabulary.ttl", "cbox/content-vocabulary.ttl", "cbox/discovery-graph-shapes.shacl.ttl", "cbox/interaction-vocabulary.ttl", "cbox/familyoffice-vocabulary.ttl", "cbox/familyoffice-shapes.shacl.ttl", "cbox/consultation-shapes.shacl.ttl", "cbox/interaction-shapes.shacl.ttl", "cbox/skill-grounding-vocabulary.ttl", "cbox/guidance-vocabulary.ttl", "cbox/profile-facet-vocabulary.ttl", "cbox/agent-facet-shapes.shacl.ttl", "cbox/capability-catalog-shapes.shacl.ttl", "cbox/org-team-shapes.shacl.ttl", "cbox/naming-registry-shapes.shacl.ttl", "cbox/run-provenance-shapes.shacl.ttl", "cbox/card-projection-shapes.shacl.ttl"];
10
+ /** Spec 414 A2 — the JSON-LD context a run's measurements (`run.measures:<runRef>`) are written under. */
11
+ readonly runMeasuresContext: "run-measures.jsonld";
12
+ /** Spec 415 S0/SEL-1 — replay sets (DCAT) and judgments (EARL). */
13
+ readonly evaluationContext: "evaluation.jsonld";
14
+ readonly tbox: readonly ["tbox/core.ttl", "tbox/identity.ttl", "tbox/contact.ttl", "tbox/naming.ttl", "tbox/intents.ttl", "tbox/constraints.ttl", "tbox/resolution.ttl", "tbox/agreement.ttl", "tbox/payment.ttl", "tbox/fulfillment.ttl", "tbox/attestation.ttl", "tbox/skills.ttl", "tbox/geo.ttl", "tbox/content.ttl", "tbox/registry.ttl", "tbox/discovery.ttl", "tbox/trust.ttl", "tbox/security-exposure.ttl", "tbox/agent-resolution.ttl", "tbox/verification-receipt.ttl", "tbox/scope.ttl", "tbox/situation.ttl", "tbox/org.ttl", "tbox/familyoffice.ttl", "tbox/entitlement.ttl", "tbox/interaction.ttl", "tbox/messaging.ttl", "tbox/guidance.ttl", "tbox/actor-context.ttl", "tbox/context.ttl", "tbox/profile.ttl", "tbox/execution.ttl", "tbox/plan.ttl", "tbox/prov-imports.ttl", "tbox/skos-imports.ttl", "tbox/dqv-imports.ttl", "tbox/earl-imports.ttl", "tbox/dcat-imports.ttl", "tbox/evaluation.ttl", "tbox/coordination.ttl", "tbox/engagement.ttl", "tbox/card-projection.ttl"];
15
+ readonly cbox: readonly ["cbox/canonical-agent-id-shape.shacl.ttl", "cbox/controlled-vocabularies.ttl", "cbox/registry-vocabulary.ttl", "cbox/skill-vocabulary.ttl", "cbox/geo-vocabulary.ttl", "cbox/scope-vocabulary.ttl", "cbox/content-vocabulary.ttl", "cbox/discovery-graph-shapes.shacl.ttl", "cbox/interaction-vocabulary.ttl", "cbox/familyoffice-vocabulary.ttl", "cbox/familyoffice-shapes.shacl.ttl", "cbox/consultation-shapes.shacl.ttl", "cbox/interaction-shapes.shacl.ttl", "cbox/skill-grounding-vocabulary.ttl", "cbox/guidance-vocabulary.ttl", "cbox/profile-facet-vocabulary.ttl", "cbox/agent-facet-shapes.shacl.ttl", "cbox/capability-catalog-shapes.shacl.ttl", "cbox/org-team-shapes.shacl.ttl", "cbox/naming-registry-shapes.shacl.ttl", "cbox/run-provenance-shapes.shacl.ttl", "cbox/run-measures-shapes.shacl.ttl", "cbox/judgment-shapes.shacl.ttl", "cbox/card-projection-shapes.shacl.ttl"];
12
16
  readonly mappings: readonly ["mappings/spine-standards.ttl", "mappings/agent-discovery-standards.ttl", "mappings/collaboration-profile.ttl", "mappings/collaboration-crosswalk-actors.ttl", "mappings/collaboration-crosswalk-organization.ttl", "mappings/collaboration-crosswalk-messaging.ttl", "mappings/collaboration-crosswalk-intent.ttl", "mappings/collaboration-crosswalk-skills.ttl", "mappings/collaboration-crosswalk-authority.ttl", "mappings/collaboration-crosswalk-protocols.ttl", "mappings/collaboration-crosswalk-guidance.ttl", "mappings/actor-context-standards.ttl", "mappings/commerce-engagement-crosswalk.ttl"];
13
17
  };
14
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,SAAS;;IAEpB,6GAA6G;;;;;CAmIrG,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzD"}
1
+ {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,SAAS;;IAEpB,6GAA6G;;IAE7G,0GAA0G;;IAE1G,mEAAmE;;;;;CAgJ3D,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzD"}
package/dist/artifacts.js CHANGED
@@ -14,6 +14,10 @@ export const ARTIFACTS = {
14
14
  context: 'context.jsonld',
15
15
  /** Spec 389 — the JSON-LD context a run's provenance record (`run.provenance:<runRef>`) is written under. */
16
16
  runProvenanceContext: 'run-provenance.jsonld',
17
+ /** Spec 414 A2 — the JSON-LD context a run's measurements (`run.measures:<runRef>`) are written under. */
18
+ runMeasuresContext: 'run-measures.jsonld',
19
+ /** Spec 415 S0/SEL-1 — replay sets (DCAT) and judgments (EARL). */
20
+ evaluationContext: 'evaluation.jsonld',
17
21
  tbox: [
18
22
  // Phase-1 (identity + core)
19
23
  'tbox/core.ttl',
@@ -72,6 +76,15 @@ export const ARTIFACTS = {
72
76
  'tbox/plan.ttl',
73
77
  // PROV-O terms the substrate EMITS, declared so shapes, bindings and A-box rows target something real (spec 389)
74
78
  'tbox/prov-imports.ttl',
79
+ // SKOS terms the T-box/C-box USE, declared so the bindings and standard-anchoring gates see them (spec 414 A0)
80
+ 'tbox/skos-imports.ttl',
81
+ // DQV terms the measurement records EMIT (spec 414 A2)
82
+ 'tbox/dqv-imports.ttl',
83
+ // EARL + DCAT terms the judgment and replay-set records EMIT (spec 415 SEL-1 / S0)
84
+ 'tbox/earl-imports.ttl',
85
+ 'tbox/dcat-imports.ttl',
86
+ // Run measurements on DQV — apeval: (spec 414 §7 / A2)
87
+ 'tbox/evaluation.ttl',
75
88
  // Coordination plane (spec 332 core subset; ADR-0054) — Endeavor / shared plan / participation
76
89
  'tbox/coordination.ttl',
77
90
  // Intent engagement plane (spec 336 W0 subset) — projections / probes / offers / mandates / receipts
@@ -121,6 +134,10 @@ export const ARTIFACTS = {
121
134
  'cbox/naming-registry-shapes.shacl.ttl',
122
135
  // Run provenance validity R1–R6 (spec 389 W2): what makes a run's PROV record evidence
123
136
  'cbox/run-provenance-shapes.shacl.ttl',
137
+ // Spec 414 A2 — M1–M3 over a run's measurements record
138
+ 'cbox/run-measures-shapes.shacl.ttl',
139
+ // Spec 414 §3.4 / 415 SEL-1 — JU1–JU4 over a judgment record (first binding: skill selection)
140
+ 'cbox/judgment-shapes.shacl.ttl',
124
141
  // Public card metadata, projection provenance (eight digests), external bindings, the
125
142
  // public/private disclosure boundary (spec 347 §11)
126
143
  'cbox/card-projection-shapes.shacl.ttl',
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,0EAA0E;AAC1E,8EAA8E;AAC9E,6EAA6E;AAC7E,yCAAyC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,gBAAgB;IACzB,6GAA6G;IAC7G,oBAAoB,EAAE,uBAAuB;IAC7C,IAAI,EAAE;QACJ,4BAA4B;QAC5B,eAAe;QACf,mBAAmB;QACnB,kBAAkB;QAClB,kGAAkG;QAClG,iBAAiB;QACjB,8DAA8D;QAC9D,kBAAkB;QAClB,sBAAsB;QACtB,qBAAqB;QACrB,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;QACtB,sBAAsB;QACtB,4CAA4C;QAC5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C;QACnC,uCAAuC;QACvC,qCAAqC;QACrC,8BAA8B;QAC9B,wFAAwF;QACxF,mCAAmC;QACnC,iDAAiD;QACjD,mCAAmC;QACnC,yFAAyF;QACzF,0CAA0C;QAC1C,wFAAwF;QACxF,gCAAgC;QAChC,+FAA+F;QAC/F,+CAA+C;QAC/C,uCAAuC;QACvC,uFAAuF;QACvF,sCAAsC;QACtC,uDAAuD;QACvD,oCAAoC;QACpC,8FAA8F;QAC9F,gCAAgC;QAChC,sFAAsF;QACtF,oDAAoD;QACpD,uCAAuC;KACxC;IACD,QAAQ,EAAE;QACR,8BAA8B;QAC9B,wCAAwC;QACxC,wDAAwD;QACxD,oCAAoC;QACpC,6CAA6C;QAC7C,mDAAmD;QACnD,gDAAgD;QAChD,6CAA6C;QAC7C,6CAA6C;QAC7C,gDAAgD;QAChD,gDAAgD;QAChD,+CAA+C;QAC/C,yFAAyF;QACzF,sCAAsC;QACtC,uGAAuG;QACvG,4CAA4C;KAC7C;CACO,CAAC;AAEX;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,YAAoB;IAC/C,OAAO,aAAa,CAAC,IAAI,GAAG,CAAC,MAAM,YAAY,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,134 @@
1
+ export declare const EVALUATION_CONTEXT: {
2
+ readonly "@context": {
3
+ readonly "@version": 1.1;
4
+ readonly "@base": "urn:ap:prov:";
5
+ readonly prov: "http://www.w3.org/ns/prov#";
6
+ readonly dcat: "http://www.w3.org/ns/dcat#";
7
+ readonly earl: "http://www.w3.org/ns/earl#";
8
+ readonly apeval: "https://agenticprimitives.dev/ns/evaluation#";
9
+ readonly xsd: "http://www.w3.org/2001/XMLSchema#";
10
+ readonly id: "@id";
11
+ readonly type: "@type";
12
+ readonly graph: "@graph";
13
+ readonly used: {
14
+ readonly "@id": "prov:used";
15
+ readonly "@type": "@id";
16
+ readonly "@container": "@set";
17
+ };
18
+ readonly generated: {
19
+ readonly "@id": "prov:generated";
20
+ readonly "@type": "@id";
21
+ readonly "@container": "@set";
22
+ };
23
+ readonly wasAssociatedWith: {
24
+ readonly "@id": "prov:wasAssociatedWith";
25
+ readonly "@type": "@id";
26
+ };
27
+ readonly wasGeneratedBy: {
28
+ readonly "@id": "prov:wasGeneratedBy";
29
+ readonly "@type": "@id";
30
+ };
31
+ readonly startedAtTime: {
32
+ readonly "@id": "prov:startedAtTime";
33
+ readonly "@type": "xsd:dateTime";
34
+ };
35
+ readonly endedAtTime: {
36
+ readonly "@id": "prov:endedAtTime";
37
+ readonly "@type": "xsd:dateTime";
38
+ };
39
+ readonly criterionDigest: "apeval:criterionDigest";
40
+ readonly judgeKind: "apeval:judgeKind";
41
+ readonly assertedBy: {
42
+ readonly "@id": "earl:assertedBy";
43
+ readonly "@type": "@id";
44
+ };
45
+ readonly subject: {
46
+ readonly "@id": "earl:subject";
47
+ readonly "@type": "@id";
48
+ };
49
+ readonly test: {
50
+ readonly "@id": "earl:test";
51
+ readonly "@type": "@id";
52
+ };
53
+ readonly mode: {
54
+ readonly "@id": "earl:mode";
55
+ readonly "@type": "@id";
56
+ };
57
+ readonly result: {
58
+ readonly "@id": "earl:result";
59
+ readonly "@type": "@id";
60
+ };
61
+ readonly outcome: {
62
+ readonly "@id": "earl:outcome";
63
+ readonly "@type": "@id";
64
+ };
65
+ readonly selectionOutcome: {
66
+ readonly "@id": "apeval:selectionOutcome";
67
+ readonly "@type": "@id";
68
+ };
69
+ readonly evidenceKind: "apeval:evidenceKind";
70
+ readonly chargedTo: {
71
+ readonly "@id": "apeval:chargedTo";
72
+ readonly "@container": "@set";
73
+ };
74
+ readonly version: "dcat:version";
75
+ readonly setDigest: "apeval:setDigest";
76
+ readonly distribution: {
77
+ readonly "@id": "dcat:distribution";
78
+ readonly "@type": "@id";
79
+ };
80
+ readonly downloadURL: {
81
+ readonly "@id": "dcat:downloadURL";
82
+ readonly "@type": "@id";
83
+ };
84
+ readonly hasIntent: {
85
+ readonly "@id": "apeval:hasIntent";
86
+ readonly "@type": "@id";
87
+ readonly "@container": "@set";
88
+ };
89
+ readonly split: "apeval:split";
90
+ readonly bucket: "apeval:bucket";
91
+ readonly replaySetDigest: "apeval:replaySetDigest";
92
+ readonly variantDigest: "apeval:variantDigest";
93
+ readonly thresholdsDigest: "apeval:thresholdsDigest";
94
+ readonly planDigest: "apeval:planDigest";
95
+ readonly repeats: "apeval:repeats";
96
+ readonly confounded: "apeval:confounded";
97
+ readonly captureLevel: "apeval:captureLevel";
98
+ readonly roster: {
99
+ readonly "@id": "apeval:roster";
100
+ readonly "@container": "@set";
101
+ };
102
+ readonly estate: "apeval:estate";
103
+ readonly hasRun: {
104
+ readonly "@id": "apeval:hasRun";
105
+ readonly "@type": "@id";
106
+ readonly "@container": "@set";
107
+ };
108
+ readonly refusedCount: {
109
+ readonly "@id": "apeval:refusedCount";
110
+ readonly "@container": "@set";
111
+ };
112
+ readonly wasInformedBy: {
113
+ readonly "@id": "prov:wasInformedBy";
114
+ readonly "@type": "@id";
115
+ readonly "@container": "@set";
116
+ };
117
+ readonly Activity: "prov:Activity";
118
+ readonly Agent: "prov:Agent";
119
+ readonly Entity: "prov:Entity";
120
+ readonly Dataset: "dcat:Dataset";
121
+ readonly Distribution: "dcat:Distribution";
122
+ readonly ReplaySet: "apeval:ReplaySet";
123
+ readonly ReplayIntent: "apeval:ReplayIntent";
124
+ readonly Judgment: "apeval:Judgment";
125
+ readonly ExperimentPlan: "apeval:ExperimentPlan";
126
+ readonly Experiment: "apeval:Experiment";
127
+ readonly CaptureWindow: "apeval:CaptureWindow";
128
+ readonly Plan: "prov:Plan";
129
+ readonly Judge: "apeval:Judge";
130
+ readonly Assertion: "earl:Assertion";
131
+ readonly TestResult: "earl:TestResult";
132
+ };
133
+ };
134
+ //# sourceMappingURL=evaluation-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation-context.d.ts","sourceRoot":"","sources":["../src/evaluation-context.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIrB,CAAC"}
@@ -0,0 +1,136 @@
1
+ // THE EVALUATION CONTEXT, AS A CONSTANT — spec 415 S0/SEL-1: replay sets (DCAT) and judgments (EARL). The published
2
+ // artifact is `evaluation.jsonld`; the ontology suite asserts the two are equal and every term is a declared T-box IRI.
3
+ export const EVALUATION_CONTEXT = {
4
+ "@context": {
5
+ "@version": 1.1,
6
+ "@base": "urn:ap:prov:",
7
+ "prov": "http://www.w3.org/ns/prov#",
8
+ "dcat": "http://www.w3.org/ns/dcat#",
9
+ "earl": "http://www.w3.org/ns/earl#",
10
+ "apeval": "https://agenticprimitives.dev/ns/evaluation#",
11
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
12
+ "id": "@id",
13
+ "type": "@type",
14
+ "graph": "@graph",
15
+ "used": {
16
+ "@id": "prov:used",
17
+ "@type": "@id",
18
+ "@container": "@set"
19
+ },
20
+ "generated": {
21
+ "@id": "prov:generated",
22
+ "@type": "@id",
23
+ "@container": "@set"
24
+ },
25
+ "wasAssociatedWith": {
26
+ "@id": "prov:wasAssociatedWith",
27
+ "@type": "@id"
28
+ },
29
+ "wasGeneratedBy": {
30
+ "@id": "prov:wasGeneratedBy",
31
+ "@type": "@id"
32
+ },
33
+ "startedAtTime": {
34
+ "@id": "prov:startedAtTime",
35
+ "@type": "xsd:dateTime"
36
+ },
37
+ "endedAtTime": {
38
+ "@id": "prov:endedAtTime",
39
+ "@type": "xsd:dateTime"
40
+ },
41
+ "criterionDigest": "apeval:criterionDigest",
42
+ "judgeKind": "apeval:judgeKind",
43
+ "assertedBy": {
44
+ "@id": "earl:assertedBy",
45
+ "@type": "@id"
46
+ },
47
+ "subject": {
48
+ "@id": "earl:subject",
49
+ "@type": "@id"
50
+ },
51
+ "test": {
52
+ "@id": "earl:test",
53
+ "@type": "@id"
54
+ },
55
+ "mode": {
56
+ "@id": "earl:mode",
57
+ "@type": "@id"
58
+ },
59
+ "result": {
60
+ "@id": "earl:result",
61
+ "@type": "@id"
62
+ },
63
+ "outcome": {
64
+ "@id": "earl:outcome",
65
+ "@type": "@id"
66
+ },
67
+ "selectionOutcome": {
68
+ "@id": "apeval:selectionOutcome",
69
+ "@type": "@id"
70
+ },
71
+ "evidenceKind": "apeval:evidenceKind",
72
+ "chargedTo": {
73
+ "@id": "apeval:chargedTo",
74
+ "@container": "@set"
75
+ },
76
+ "version": "dcat:version",
77
+ "setDigest": "apeval:setDigest",
78
+ "distribution": {
79
+ "@id": "dcat:distribution",
80
+ "@type": "@id"
81
+ },
82
+ "downloadURL": {
83
+ "@id": "dcat:downloadURL",
84
+ "@type": "@id"
85
+ },
86
+ "hasIntent": {
87
+ "@id": "apeval:hasIntent",
88
+ "@type": "@id",
89
+ "@container": "@set"
90
+ },
91
+ "split": "apeval:split",
92
+ "bucket": "apeval:bucket",
93
+ "replaySetDigest": "apeval:replaySetDigest",
94
+ "variantDigest": "apeval:variantDigest",
95
+ "thresholdsDigest": "apeval:thresholdsDigest",
96
+ "planDigest": "apeval:planDigest",
97
+ "repeats": "apeval:repeats",
98
+ "confounded": "apeval:confounded",
99
+ "captureLevel": "apeval:captureLevel",
100
+ "roster": {
101
+ "@id": "apeval:roster",
102
+ "@container": "@set"
103
+ },
104
+ "estate": "apeval:estate",
105
+ "hasRun": {
106
+ "@id": "apeval:hasRun",
107
+ "@type": "@id",
108
+ "@container": "@set"
109
+ },
110
+ "refusedCount": {
111
+ "@id": "apeval:refusedCount",
112
+ "@container": "@set"
113
+ },
114
+ "wasInformedBy": {
115
+ "@id": "prov:wasInformedBy",
116
+ "@type": "@id",
117
+ "@container": "@set"
118
+ },
119
+ "Activity": "prov:Activity",
120
+ "Agent": "prov:Agent",
121
+ "Entity": "prov:Entity",
122
+ "Dataset": "dcat:Dataset",
123
+ "Distribution": "dcat:Distribution",
124
+ "ReplaySet": "apeval:ReplaySet",
125
+ "ReplayIntent": "apeval:ReplayIntent",
126
+ "Judgment": "apeval:Judgment",
127
+ "ExperimentPlan": "apeval:ExperimentPlan",
128
+ "Experiment": "apeval:Experiment",
129
+ "CaptureWindow": "apeval:CaptureWindow",
130
+ "Plan": "prov:Plan",
131
+ "Judge": "apeval:Judge",
132
+ "Assertion": "earl:Assertion",
133
+ "TestResult": "earl:TestResult"
134
+ }
135
+ };
136
+ //# sourceMappingURL=evaluation-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation-context.js","sourceRoot":"","sources":["../src/evaluation-context.ts"],"names":[],"mappings":"AAAA,oHAAoH;AACpH,wHAAwH;AACxH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE;QACV,UAAU,EAAE,GAAG;QACf,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,4BAA4B;QACpC,MAAM,EAAE,4BAA4B;QACpC,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,8CAA8C;QACxD,KAAK,EAAE,mCAAmC;QAC1C,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE;YACN,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,MAAM;SACrB;QACD,WAAW,EAAE;YACX,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,MAAM;SACrB;QACD,mBAAmB,EAAE;YACnB,KAAK,EAAE,wBAAwB;YAC/B,OAAO,EAAE,KAAK;SACf;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,qBAAqB;YAC5B,OAAO,EAAE,KAAK;SACf;QACD,eAAe,EAAE;YACf,KAAK,EAAE,oBAAoB;YAC3B,OAAO,EAAE,cAAc;SACxB;QAC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