-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathontology.yaml
More file actions
408 lines (375 loc) · 10.7 KB
/
Copy pathontology.yaml
File metadata and controls
408 lines (375 loc) · 10.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
ontology: mako
entities:
- name: AgentDelegation
description: 'Agent Delegation
Record of one agent delegating a sub-task to another agent via A2A protocol.'
keys:
primary:
- id
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Activity
properties:
- name: id
type: string
- name: AgentSession
description: 'Agent Session
A complete agent workflow session, grouping multiple DecisionExecutions. Inherits
prov:Activity transitively via pko:ProcedureExecution.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: sessionId
type: string
annotations:
owl:subClassOf_excluded: https://w3id.org/pko/ProcedureExecution
- name: BusinessConstraint
description: 'Business Constraint
A rule or policy that governs decisions (budget cap, frequency limit, brand safety).'
keys:
primary:
- id
properties:
- name: id
type: string
- name: constraintType
type: string
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: Candidate
description: 'Candidate
An option evaluated at a DecisionPoint (e.g., an audience segment, a bid value,
a creative).'
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
mako_demo:stripped_inheritance: RoleTrait
keys:
primary:
- id
properties:
- name: id
type: string
- name: ConstraintApplication
description: 'Constraint Application
Record that a BusinessConstraint was evaluated at a DecisionPoint, with pass/fail
result.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: constraintResult
type: string
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Activity
- name: ContextEntityRef
description: 'Context Entity Reference
Typed reference to an entity captured in a ContextSnapshot, including the entity
URI and the version/revision observed at snapshot time.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: entityRevision
type: string
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: ContextSnapshot
description: 'Context Snapshot
Point-in-time capture of all entity states relevant to a decision. Immutable once
created.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: snapshotPayload
type: string
- name: snapshotTimestamp
type: timestamp
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: DecisionExecution
description: 'Decision Execution
A specific instance of executing a DecisionPoint, with timestamps and agent binding.
Inherits prov:Activity transitively via pko:StepExecution.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: businessEntityId
type: string
- name: latencyMs
type: integer
- name: spanId
type: string
- name: traceId
type: string
annotations:
owl:subClassOf_excluded: https://w3id.org/pko/StepExecution
- name: DecisionPoint
description: 'Decision Point
A step that evaluates candidates and selects one or more. The atomic unit of decisioning
in MAKO.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: reversibility
type: string
annotations:
owl:subClassOf_excluded: https://w3id.org/pko/Step
- name: HumanReviewGate
description: 'Human Review Gate
A human-in-the-loop approval or rejection point in the workflow.'
keys:
primary:
- id
annotations:
owl:subClassOf_excluded: https://w3id.org/pko/Step
properties:
- name: id
type: string
- name: InterAgentMessage
description: 'Inter-Agent Message
Data payload passed between agents during delegation. Part of decision context.'
keys:
primary:
- id
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
properties:
- name: id
type: string
- name: ModelVersion
description: 'Model Version
Identifies which ML model version produced scores. Supports rollback analysis.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: modelName
type: string
- name: modelRegistryUri
type: string
annotations:
xsd_type: anyURI
- name: modelTrainDate
type: timestamp
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: OutcomeSignal
description: 'Outcome Signal
An observed real-world result (click, conversion, viewability) linked to a decision.'
keys:
primary:
- id
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
properties:
- name: id
type: string
- name: RejectionReason
description: 'Rejection Reason
Structured reason why a Candidate was not selected (rule-based, model-based, constraint-filtered,
or timeout).'
keys:
primary:
- id
properties:
- name: id
type: string
- name: rejectionCategory
type: string
- name: rejectionText
type: string
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: RewardComputation
description: 'Reward Computation
Derivation of RL reward from OutcomeSignals, linked to model version.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: rewardValue
type: double
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Activity
- name: RoleTrait
description: 'Role Trait
Marker class. Subclasses of mako:RoleTrait are orthogonal capability/role markers,
not primary type parents. Used to enforce single-primary-parent inheritance discipline
(REQ-ONT-022).'
keys:
primary:
- id
properties:
- name: id
type: string
- name: Score
description: 'Score
A numeric assessment attached to a Candidate at a DecisionPoint. Carries model
version provenance.'
keys:
primary:
- id
properties:
- name: id
type: string
- name: confidenceInterval
type: string
- name: scoreValue
type: double
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
- name: SelectionOutcome
description: 'Selection Outcome
The result of a DecisionPoint: which Candidate(s) were selected and why.'
keys:
primary:
- id
annotations:
owl:subClassOf_excluded: http://www.w3.org/ns/prov#Entity
properties:
- name: id
type: string
relationships:
- name: appliedConstraint
description: 'applied constraint
Which BusinessConstraint was evaluated.'
from: ConstraintApplication
to: BusinessConstraint
- name: atContextSnapshot
description: "at context snapshot\nThe ContextSnapshot of world state at decision\
\ time. Functional \u2014 exactly one snapshot per execution."
from: DecisionExecution
to: ContextSnapshot
cardinality: many_to_one
- name: atDecisionPoint
description: 'at decision point
Links a Score to the DecisionPoint where it was assigned.'
from: Score
to: DecisionPoint
- name: carriesMessage
description: 'carries message
Data passed during a delegation.'
from: AgentDelegation
to: InterAgentMessage
- name: derivedReward
description: 'derived reward
The OutcomeSignals used to compute reward.'
from: RewardComputation
to: OutcomeSignal
- name: evaluatesCandidate
description: 'evaluates candidate
Links a DecisionPoint to the Candidates it evaluates.'
from: DecisionPoint
to: Candidate
- name: evolvedFrom
description: "evolved from\nTemporal lineage edge: links a DecisionExecution to\
\ a prior version of the same logical decision (e.g., across triage passes). Transitive\
\ \u2014 A evolvedFrom B evolvedFrom C \u22A8 A evolvedFrom C."
from: DecisionExecution
to: DecisionExecution
annotations:
owl:characteristics:
- Transitive
- name: executedAtDecisionPoint
description: 'executed at decision point
Links a DecisionExecution to the DecisionPoint it instantiates. Functional. Sub-property
of pko:enactsStep so generic PKO queries see MAKO data.'
from: DecisionExecution
to: DecisionPoint
cardinality: many_to_one
annotations:
owl:subPropertyOf_excluded: https://w3id.org/pko/enactsStep
- name: filteredByConstraint
description: 'filtered by constraint
Links a Candidate''s removal to the ConstraintApplication that caused it.'
from: Candidate
to: ConstraintApplication
- name: hasRejectionReason
description: 'has rejection reason
Why a Candidate was not selected. Required for every rejected Candidate.'
from: Candidate
to: RejectionReason
- name: hasScore
description: 'has score
The score assigned to a Candidate at this DecisionPoint.'
from: Candidate
to: Score
- name: hasSelectionOutcome
description: "has selection outcome\nLinks a DecisionExecution to its SelectionOutcome.\
\ Functional \u2014 exactly one outcome per execution."
from: DecisionExecution
to: SelectionOutcome
cardinality: many_to_one
- name: partOfSession
description: 'part of session
Links a DecisionExecution to its parent AgentSession. Functional. Sub-property
of pko:isExecutionOf for PKO compatibility.'
from: DecisionExecution
to: AgentSession
cardinality: many_to_one
annotations:
owl:subPropertyOf_excluded: https://w3id.org/pko/isExecutionOf
- name: producedOutcome
description: 'produced outcome
Observed result linked to a decision.'
from: DecisionExecution
to: OutcomeSignal
- name: rejectedCandidate
description: 'rejected candidate
The Candidate(s) that were rejected at this SelectionOutcome.'
from: SelectionOutcome
to: Candidate
- name: scoredByModel
description: "scored by model\nWhich ModelVersion produced this Score. Functional\
\ \u2014 exactly one ModelVersion per Score. Required for ALL scores."
from: Score
to: ModelVersion
cardinality: many_to_one
- name: selectedCandidate
description: 'selected candidate
The Candidate(s) that were selected at this SelectionOutcome.'
from: SelectionOutcome
to: Candidate
- name: snapshotEntities
description: 'snapshot entities
PROV-O qualified version of snapshot payload. References the actual prov:Entity
nodes whose states are captured at decision time. Replaces opaque JSON with a
typed graph reference set. Each referenced entity is a mako:ContextEntityRef carrying
state + version.'
from: ContextSnapshot
to: ContextEntityRef
- name: supersededBy
description: 'superseded by
Inverse of evolvedFrom. Transitive.'
from: DecisionExecution
to: DecisionExecution
annotations:
owl:characteristics:
- Transitive
owl:inverseOf: evolvedFrom
annotations:
mako_demo:dropped_cross_namespace_relationships:
- delegatedBy
- delegatedTo
- gateApprovedBy
- refersToEntity
mako_demo:stripped_inheritance: Candidate:RoleTrait