@agenticprimitives/ontology 1.0.0-alpha.26 → 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.
- package/cbox/judgment-shapes.shacl.ttl +83 -0
- package/cbox/run-measures-shapes.shacl.ttl +59 -0
- package/cbox/run-provenance-shapes.shacl.ttl +92 -0
- package/dist/artifacts.d.ts +6 -2
- package/dist/artifacts.d.ts.map +1 -1
- package/dist/artifacts.js +17 -0
- package/dist/artifacts.js.map +1 -1
- package/dist/evaluation-context.d.ts +134 -0
- package/dist/evaluation-context.d.ts.map +1 -0
- package/dist/evaluation-context.js +136 -0
- package/dist/evaluation-context.js.map +1 -0
- package/dist/governance.d.ts +84 -0
- package/dist/governance.d.ts.map +1 -0
- package/dist/governance.js +88 -0
- package/dist/governance.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/outcomes.d.ts +47 -0
- package/dist/outcomes.d.ts.map +1 -0
- package/dist/outcomes.js +40 -0
- package/dist/outcomes.js.map +1 -0
- package/dist/party-roles.d.ts +5 -4
- package/dist/party-roles.d.ts.map +1 -1
- package/dist/party-roles.js +23 -5
- package/dist/party-roles.js.map +1 -1
- package/dist/payload-classes.d.ts +22 -0
- package/dist/payload-classes.d.ts.map +1 -0
- package/dist/payload-classes.js +30 -0
- package/dist/payload-classes.js.map +1 -0
- package/dist/principles.generated.d.ts +11 -0
- package/dist/principles.generated.d.ts.map +1 -0
- package/dist/principles.generated.js +293 -0
- package/dist/principles.generated.js.map +1 -0
- package/dist/published-works.d.ts +13 -0
- package/dist/published-works.d.ts.map +1 -0
- package/dist/published-works.js +18 -0
- package/dist/published-works.js.map +1 -0
- package/dist/run-measures-context.d.ts +74 -0
- package/dist/run-measures-context.d.ts.map +1 -0
- package/dist/run-measures-context.js +77 -0
- package/dist/run-measures-context.js.map +1 -0
- package/dist/run-provenance-context.d.ts +104 -0
- package/dist/run-provenance-context.d.ts.map +1 -1
- package/dist/run-provenance-context.js +105 -1
- package/dist/run-provenance-context.js.map +1 -1
- package/dist/transitions.d.ts +42 -0
- package/dist/transitions.d.ts.map +1 -0
- package/dist/transitions.js +100 -0
- package/dist/transitions.js.map +1 -0
- package/dist/vault-records.d.ts.map +1 -1
- package/dist/vault-records.js +127 -0
- package/dist/vault-records.js.map +1 -1
- package/dist/versions.generated.d.ts +247 -0
- package/dist/versions.generated.d.ts.map +1 -0
- package/dist/versions.generated.js +300 -0
- package/dist/versions.generated.js.map +1 -0
- package/evaluation.jsonld +133 -0
- package/package.json +7 -3
- package/run-measures.jsonld +34 -0
- package/run-provenance.jsonld +247 -39
- package/tbox/content.ttl +23 -0
- package/tbox/context.ttl +11 -7
- package/tbox/core.ttl +17 -1
- package/tbox/dcat-imports.ttl +19 -0
- package/tbox/dqv-imports.ttl +29 -0
- package/tbox/earl-imports.ttl +31 -0
- package/tbox/evaluation.ttl +234 -0
- package/tbox/execution.ttl +293 -1
- package/tbox/governance.ttl +67 -0
- package/tbox/identity.ttl +5 -0
- package/tbox/intents.ttl +39 -0
- package/tbox/payload.ttl +94 -0
- package/tbox/principles.ttl +212 -0
- package/tbox/prov-imports.ttl +4 -1
- package/tbox/skos-imports.ttl +54 -0
- package/tbox/transition.ttl +63 -0
- package/tbox/verification-receipt.ttl +7 -0
- package/versions.adoption.json +113 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# T-box — MEASUREMENTS of a harness run (spec 414 §7, A2). Namespace apeval:.
|
|
2
|
+
#
|
|
3
|
+
# ── What this is and is NOT ───────────────────────────────────────────────────────────────────────
|
|
4
|
+
# A measurement is a NUMBER about a run or a step, computed from its trace alone — completion, verdict counts,
|
|
5
|
+
# latency, model calls, tokens, vault calls, replans. It is DESCRIPTIVE: nothing here says whether an answer was
|
|
6
|
+
# right (that is a judgment — spec 414 §3.4, a different record with a named criterion and judge). It is EVIDENCE,
|
|
7
|
+
# never authority: no gate reads an apeval: term (spec 354 §1 / ADR-0041). And it carries no words: a measurement is
|
|
8
|
+
# a metric, a value and a unit (shape M3).
|
|
9
|
+
#
|
|
10
|
+
# Every term specializes a standard one (spec 414 §2 rule 2): a metric is a dqv:Metric, a measurement a
|
|
11
|
+
# dqv:QualityMeasurement (and a prov:Entity, generated by a measuring activity that used the run's bundle).
|
|
12
|
+
# A metric's IRI is DERIVED from its skos:notation — `m-` + camelCase (`latency-ms` → `apeval:m-latencyMs`) — so
|
|
13
|
+
# code names a metric by notation and never by a lookup table (asserted in the ontology suite).
|
|
14
|
+
|
|
15
|
+
@prefix apeval: <https://agenticprimitives.dev/ns/evaluation#> .
|
|
16
|
+
@prefix apexec: <https://agenticprimitives.dev/ns/execution#> .
|
|
17
|
+
@prefix dqv: <http://www.w3.org/ns/dqv#> .
|
|
18
|
+
@prefix prov: <http://www.w3.org/ns/prov#> .
|
|
19
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
20
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
21
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
22
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
23
|
+
@prefix dcat: <http://www.w3.org/ns/dcat#> .
|
|
24
|
+
@prefix earl: <http://www.w3.org/ns/earl#> .
|
|
25
|
+
@prefix dcterms: <http://purl.org/dc/terms/> .
|
|
26
|
+
@prefix ep-plan: <https://w3id.org/ep-plan#> .
|
|
27
|
+
@prefix p-plan: <http://purl.org/net/p-plan#> .
|
|
28
|
+
|
|
29
|
+
apeval: a owl:Ontology ;
|
|
30
|
+
rdfs:label "Agentic Primitives — run measurements" ;
|
|
31
|
+
owl:versionInfo "0.4.0" ;
|
|
32
|
+
rdfs:comment "Descriptive measurements of a harness run, on W3C DQV. Spec 414 §7 / 415 A2." .
|
|
33
|
+
|
|
34
|
+
apeval:Metric a owl:Class ;
|
|
35
|
+
rdfs:subClassOf dqv:Metric , skos:Concept ;
|
|
36
|
+
rdfs:label "Metric" ;
|
|
37
|
+
rdfs:comment "A quantity computed from a run's trace alone. Declared here once; code names it by skos:notation. NOT a criterion (a stated expectation — spec 414 §3.4) and NOT a score of correctness." .
|
|
38
|
+
|
|
39
|
+
apeval:Metrics a skos:ConceptScheme ; rdfs:label "Run metrics" .
|
|
40
|
+
|
|
41
|
+
apeval:RunMeasurement a owl:Class ;
|
|
42
|
+
rdfs:subClassOf dqv:QualityMeasurement , prov:Entity ;
|
|
43
|
+
rdfs:label "RunMeasurement" ;
|
|
44
|
+
rdfs:comment "One measurement of one metric on one run or step (dqv:computedOn the run's or the step's activity). Generated by an apeval:Measuring activity that prov:used the run's bundle." .
|
|
45
|
+
|
|
46
|
+
apeval:Measuring a owl:Class ;
|
|
47
|
+
rdfs:subClassOf prov:Activity ;
|
|
48
|
+
rdfs:label "Measuring" ;
|
|
49
|
+
rdfs:comment "The activity of computing a run's measurements from its trace. Mechanical and reproducible: the same trace yields the same measurements." .
|
|
50
|
+
|
|
51
|
+
apeval:RunMeasures a owl:Class ;
|
|
52
|
+
rdfs:subClassOf dqv:QualityMeasurementDataset , prov:Bundle ;
|
|
53
|
+
rdfs:label "RunMeasures" ;
|
|
54
|
+
rdfs:comment "One run's measurements as one record (`run.measures:<runRef>` in the acting agent's vault), prov:wasDerivedFrom the run's provenance bundle." .
|
|
55
|
+
|
|
56
|
+
apeval:unit a owl:DatatypeProperty ;
|
|
57
|
+
rdfs:domain apeval:RunMeasurement ; rdfs:range xsd:string ;
|
|
58
|
+
rdfs:label "unit" ;
|
|
59
|
+
rdfs:comment "UCUM code of the value: `ms`, `{count}`, `1` (a ratio or a 0/1 fact)." .
|
|
60
|
+
|
|
61
|
+
apeval:hasMeasurement a owl:ObjectProperty ;
|
|
62
|
+
rdfs:domain apeval:RunMeasures ; rdfs:range apeval:RunMeasurement ;
|
|
63
|
+
rdfs:label "hasMeasurement" .
|
|
64
|
+
|
|
65
|
+
# ── The metrics (spec 414 §7, intrinsic — from the trace alone) ──
|
|
66
|
+
apeval:m-completed a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "completed" ; skos:prefLabel "completed" ; skos:definition "1 when the run completed, 0 otherwise." .
|
|
67
|
+
apeval:m-stepsPlanned a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "steps-planned" ; skos:prefLabel "steps planned" .
|
|
68
|
+
apeval:m-stepsRun a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "steps-run" ; skos:prefLabel "steps run" ; skos:definition "Steps that executed (replayed steps excluded)." .
|
|
69
|
+
apeval:m-stepsRefused a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "steps-refused" ; skos:prefLabel "steps refused" .
|
|
70
|
+
apeval:m-verdictsAllow a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "verdicts-allow" ; skos:prefLabel "authority verdicts: allow" .
|
|
71
|
+
apeval:m-verdictsDeny a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "verdicts-deny" ; skos:prefLabel "authority verdicts: deny" .
|
|
72
|
+
apeval:m-approvalsWaited a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "approvals-waited" ; skos:prefLabel "approvals waited on" .
|
|
73
|
+
apeval:m-replans a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "replans" ; skos:prefLabel "replans forced by admission" .
|
|
74
|
+
apeval:m-resumedSteps a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "resumed-steps" ; skos:prefLabel "steps replayed on resume" .
|
|
75
|
+
apeval:m-latencyMs a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "latency-ms" ; skos:prefLabel "latency" ; skos:definition "From the request's arrival (or the first step) to the run's end; on a step, the step's own window." .
|
|
76
|
+
apeval:m-modelCalls a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "model-calls" ; skos:prefLabel "model calls" .
|
|
77
|
+
apeval:m-tokensIn a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "tokens-in" ; skos:prefLabel "tokens in" ; skos:definition "Provider-reported input tokens; absent when no provider reported them (never estimated)." .
|
|
78
|
+
apeval:m-tokensOut a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "tokens-out" ; skos:prefLabel "tokens out" .
|
|
79
|
+
apeval:m-vaultCalls a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "vault-calls" ; skos:prefLabel "vault calls" .
|
|
80
|
+
apeval:m-effectsConfirmed a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "effects-confirmed" ; skos:prefLabel "effects confirmed" ; skos:definition "Steps whose adapter observation reached `confirmed` (spec 410 §2)." .
|
|
81
|
+
apeval:m-engagements a apeval:Metric ; skos:inScheme apeval:Metrics ; skos:notation "engagements" ; skos:prefLabel "harness-capability engagements" .
|
|
82
|
+
|
|
83
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
84
|
+
# Spec 415 S0 + SEL-1 — REPLAY SETS, CRITERIA, and the first JUDGMENT: skill selection.
|
|
85
|
+
#
|
|
86
|
+
# A replay set is a versioned dataset of intents (DCAT), each optionally bound to a starting state. A CRITERION is a
|
|
87
|
+
# stated expectation, pre-registered by digest before any run it judges (spec 414 §3.4 J2): for selection, the gold
|
|
88
|
+
# skill and the acceptable set of each intent. A JUDGMENT is an activity by a NAMED judge of a declared KIND that used
|
|
89
|
+
# a subject and a criterion and generated a verdict (EARL) — evidence, never authority (J1). The selection outcome
|
|
90
|
+
# classes follow the AI Skills Commons trigger-accuracy methodology v1.0 (§1), named here once.
|
|
91
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
92
|
+
|
|
93
|
+
apeval:ReplaySet a owl:Class ;
|
|
94
|
+
rdfs:subClassOf dcat:Dataset ;
|
|
95
|
+
rdfs:label "ReplaySet" ;
|
|
96
|
+
rdfs:comment "A versioned, checksummed set of intents to replay under variants (spec 415 S0). Split into development and held-out (pre-registered by digest). NOT the criteria: gold lives in a separate criterion record." .
|
|
97
|
+
|
|
98
|
+
apeval:ReplayIntent a owl:Class ;
|
|
99
|
+
rdfs:subClassOf prov:Entity ;
|
|
100
|
+
rdfs:label "ReplayIntent" ;
|
|
101
|
+
rdfs:comment "One intent of a replay set, cited by id and digest. Its words live in the set's file; a run's graph never carries them." .
|
|
102
|
+
|
|
103
|
+
apeval:hasIntent a owl:ObjectProperty ; rdfs:domain apeval:ReplaySet ; rdfs:range apeval:ReplayIntent ; rdfs:label "hasIntent" .
|
|
104
|
+
apeval:split a owl:DatatypeProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range xsd:string ; rdfs:label "split" ; rdfs:comment "development | held-out." .
|
|
105
|
+
apeval:bucket a owl:DatatypeProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range xsd:string ; rdfs:label "bucket" ; rdfs:comment "The case bucket (explicit · implicit · contextual · negative-near · negative-scope · negative-out · collision-a · collision-b · collision-ambiguous)." .
|
|
106
|
+
apeval:setDigest a owl:DatatypeProperty ; rdfs:domain apeval:ReplaySet ; rdfs:range xsd:string ; rdfs:label "setDigest" ; rdfs:comment "sha256 over the set's canonical JSON (RFC 8785)." .
|
|
107
|
+
|
|
108
|
+
apeval:SelectionCriterion a owl:Class ;
|
|
109
|
+
rdfs:subClassOf ep-plan:Constraint ;
|
|
110
|
+
rdfs:label "SelectionCriterion" ;
|
|
111
|
+
rdfs:comment "What selection SHOULD do for one intent: the gold skill (or none, for a negative) and the acceptable alternates, pre-registered by digest. A hypothesis until adjudicated." .
|
|
112
|
+
|
|
113
|
+
apeval:criterionDigest a owl:DatatypeProperty ; rdfs:domain apeval:Judgment ; rdfs:range xsd:string ; rdfs:label "criterionDigest" ;
|
|
114
|
+
rdfs:comment "sha256 of the criterion record the judgment applied (J2: stated before, cited by digest)." .
|
|
115
|
+
|
|
116
|
+
apeval:Judgment a owl:Class ;
|
|
117
|
+
rdfs:subClassOf prov:Activity ;
|
|
118
|
+
rdfs:label "Judgment" ;
|
|
119
|
+
rdfs:comment "An activity that judged a subject (a run or a step) against a criterion and generated a verdict (spec 414 §3.4). Evidence, never authority; never rewrites the trace it judged (J1, J6)." .
|
|
120
|
+
|
|
121
|
+
apeval:Judge a owl:Class ;
|
|
122
|
+
rdfs:subClassOf prov:Agent ;
|
|
123
|
+
rdfs:label "Judge" ;
|
|
124
|
+
rdfs:comment "Who or what judged. Its KIND is declared (J3) and verdicts of different kinds are never pooled (J4)." .
|
|
125
|
+
|
|
126
|
+
apeval:judgeKind a owl:DatatypeProperty ; rdfs:domain apeval:Judge ; rdfs:range xsd:string ; rdfs:label "judgeKind" ; rdfs:comment "mechanical | model | human." .
|
|
127
|
+
|
|
128
|
+
apeval:SelectionOutcome a owl:Class ;
|
|
129
|
+
rdfs:subClassOf skos:Concept ;
|
|
130
|
+
rdfs:label "SelectionOutcome" ;
|
|
131
|
+
rdfs:comment "The class of a selection verdict (methodology v1.0 §1)." .
|
|
132
|
+
apeval:SelectionOutcomes a skos:ConceptScheme ; rdfs:label "Skill-selection outcomes" .
|
|
133
|
+
|
|
134
|
+
apeval:selectionOutcome a owl:ObjectProperty ; rdfs:domain earl:TestResult ; rdfs:range apeval:SelectionOutcome ; rdfs:label "selectionOutcome" .
|
|
135
|
+
apeval:chargedTo a owl:DatatypeProperty ; rdfs:domain earl:TestResult ; rdfs:range xsd:string ; rdfs:label "chargedTo" ; rdfs:comment "The skill a spurious or wrong selection is charged to (a canonical id)." .
|
|
136
|
+
apeval:evidenceKind a owl:DatatypeProperty ; rdfs:domain earl:TestResult ; rdfs:range xsd:string ; rdfs:label "evidenceKind" ; rdfs:comment "stamped (the harness recorded governedBySkill) | inferred (an opaque agent, by detection tier). Never pooled." .
|
|
137
|
+
|
|
138
|
+
apeval:so-tp a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "tp" ; skos:prefLabel "correct" ; skos:definition "The gold skill was selected." .
|
|
139
|
+
apeval:so-tpAlt a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "tp-alt" ; skos:prefLabel "acceptable alternative" ; skos:definition "A declared acceptable alternate was selected (excluded from accuracy, reported beside it)." .
|
|
140
|
+
apeval:so-misSib a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "mis-sib" ; skos:prefLabel "sibling miss" ; skos:definition "The gold skill's declared collision partner was selected instead." .
|
|
141
|
+
apeval:so-misFar a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "mis-far" ; skos:prefLabel "far miss" ; skos:definition "Some other skill was selected." .
|
|
142
|
+
apeval:so-miss a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "miss" ; skos:prefLabel "miss" ; skos:definition "A skill was expected and none was selected." .
|
|
143
|
+
apeval:so-tn a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "tn" ; skos:prefLabel "correct abstention" ; skos:definition "No skill was expected and none was selected." .
|
|
144
|
+
apeval:so-spur a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "spur" ; skos:prefLabel "spurious" ; skos:definition "No skill was expected and one was selected; charged to it." .
|
|
145
|
+
apeval:so-undetected a apeval:SelectionOutcome ; skos:inScheme apeval:SelectionOutcomes ; skos:notation "undetected" ; skos:prefLabel "undetected" ; skos:definition "The selection could not be read; excluded from denominators (a verdict of cantTell, never a pass or a fail)." .
|
|
146
|
+
|
|
147
|
+
# ── Experiments and the capture window (spec 414 §7–8, 415 A4) ─────────────────────────────────────
|
|
148
|
+
# A comparison is PRE-REGISTERED: the plan names the replay set, the criterion, the variants and the thresholds BY
|
|
149
|
+
# DIGEST before the first run, and scoring refuses across them. An experiment is the activity that ran it. A capture
|
|
150
|
+
# window is the activity inside which results may leave a test estate for the eval store — absent, expired or exceeded
|
|
151
|
+
# ⇒ export refused by name. None of this is authority: nothing here is read by a gate.
|
|
152
|
+
|
|
153
|
+
apeval:ExperimentPlan a owl:Class ;
|
|
154
|
+
rdfs:subClassOf p-plan:Plan ;
|
|
155
|
+
rdfs:label "ExperimentPlan" ;
|
|
156
|
+
rdfs:comment "A comparison pre-registered by digest: the replay set, the criterion, the variants (each a Variant digest), the split, the repeats and the thresholds, fixed BEFORE the first run (spec 415 §3a). A plan whose components differ in more than one thing between two variants is CONFOUNDED and says so." .
|
|
157
|
+
|
|
158
|
+
apeval:Experiment a owl:Class ;
|
|
159
|
+
rdfs:subClassOf prov:Activity ;
|
|
160
|
+
rdfs:label "Experiment" ;
|
|
161
|
+
rdfs:comment "The activity that ran an ExperimentPlan: every run it dispatched (by run reference, pseudonymised in the eval store), the judgments and the scores. Evidence, never authority." .
|
|
162
|
+
|
|
163
|
+
apeval:CaptureWindow a owl:Class ;
|
|
164
|
+
rdfs:subClassOf prov:Activity ;
|
|
165
|
+
rdfs:label "CaptureWindow" ;
|
|
166
|
+
rdfs:comment "The window inside which a test estate's runs may be exported to an eval store (spec 414 §8): the store, the capture level (L0 numbers · L1 structure · L2 graph · L3 words), the roster of test personas, the estate, and when it opens and expires. Export outside it is refused and counted, never downgraded silently." .
|
|
167
|
+
|
|
168
|
+
apeval:replaySetDigest a owl:DatatypeProperty ; rdfs:domain apeval:ExperimentPlan ; rdfs:range xsd:string ; rdfs:label "replaySetDigest" .
|
|
169
|
+
apeval:variantDigest a owl:DatatypeProperty ; rdfs:domain apeval:ExperimentPlan ; rdfs:range xsd:string ; rdfs:label "variantDigest" ; rdfs:comment "The digest of a Variant a plan compares (apexec:Variant)." .
|
|
170
|
+
apeval:thresholdsDigest a owl:DatatypeProperty ; rdfs:domain apeval:ExperimentPlan ; rdfs:range xsd:string ; rdfs:label "thresholdsDigest" .
|
|
171
|
+
apeval:planDigest a owl:DatatypeProperty ; rdfs:domain apeval:Experiment ; rdfs:range xsd:string ; rdfs:label "planDigest" ; rdfs:comment "The digest an Experiment cites for the plan it ran." .
|
|
172
|
+
apeval:repeats a owl:DatatypeProperty ; rdfs:domain apeval:ExperimentPlan ; rdfs:range xsd:integer ; rdfs:label "repeats" .
|
|
173
|
+
apeval:confounded a owl:DatatypeProperty ; rdfs:domain apeval:ExperimentPlan ; rdfs:range xsd:boolean ; rdfs:label "confounded" ; rdfs:comment "true when two compared variants differ in more than one component (spec 414 §7): the result is labelled, never read as a lift." .
|
|
174
|
+
apeval:captureLevel a owl:DatatypeProperty ; rdfs:domain prov:Entity ; rdfs:range xsd:string ; rdfs:label "captureLevel" ; rdfs:comment "L0 | L1 | L2 | L3 — the level a record was exported at. A number computed with words present is never read as one from the vault-only pipeline." .
|
|
175
|
+
apeval:roster a owl:DatatypeProperty ; rdfs:domain apeval:CaptureWindow ; rdfs:range xsd:string ; rdfs:label "roster" ; rdfs:comment "A test persona admitted by the window, by agent address." .
|
|
176
|
+
apeval:estate a owl:DatatypeProperty ; rdfs:domain apeval:CaptureWindow ; rdfs:range xsd:string ; rdfs:label "estate" ; rdfs:comment "The Home origin whose runs the window admits." .
|
|
177
|
+
apeval:hasRun a owl:ObjectProperty ; rdfs:subPropertyOf prov:used ; rdfs:domain apeval:Experiment ; rdfs:range prov:Entity ; rdfs:label "hasRun" ; rdfs:comment "A run the experiment dispatched (its bundle, pseudonymised)." .
|
|
178
|
+
apeval:refusedCount a owl:DatatypeProperty ; rdfs:domain apeval:Experiment ; rdfs:range xsd:string ; rdfs:label "refusedCount" ; rdfs:comment "`capture.refused.<reason>=<n>` — what the firewall refused, counted, never dropped." .
|
|
179
|
+
|
|
180
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
181
|
+
# SPEC 418 §2 — THE TEST CASE, AS DATA. A replay intent read as a TEST: what it expects (a skill, a behaviour, a plan,
|
|
182
|
+
# the inputs to ask for), what it exercises in the domain, from which starting state — so a domain's graph says what
|
|
183
|
+
# its tests consist of and coverage is a query. The JSON sets stay the source of truth (pinned by digest); a domain
|
|
184
|
+
# PROJECTS them into its graph. Evidence and hypothesis, never authority.
|
|
185
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
186
|
+
|
|
187
|
+
apeval:expectedSkill a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "expectedSkill" ;
|
|
188
|
+
rdfs:comment "The skill the case says should be chosen (a canonical skill IRI). Absent on a negative." .
|
|
189
|
+
apeval:acceptableSkill a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "acceptableSkill" ;
|
|
190
|
+
rdfs:comment "A skill that is also right for the case (an adjudicated alternate)." .
|
|
191
|
+
apeval:forbiddenSkill a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "forbiddenSkill" ;
|
|
192
|
+
rdfs:comment "A skill the case must NOT be routed to — the near neighbour it is built to trip." .
|
|
193
|
+
apeval:collidesWith a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "collidesWith" ;
|
|
194
|
+
rdfs:comment "The skill of the collision pair this case probes (the other side of a routing collision)." .
|
|
195
|
+
apeval:expectedBehaviour a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range apeval:SelectionBehaviour ; rdfs:label "expectedBehaviour" ;
|
|
196
|
+
rdfs:comment "What selection should DO: route to one skill, decline, ask which (clarify), or name several." .
|
|
197
|
+
apeval:SelectionBehaviour a owl:Class ; rdfs:subClassOf skos:Concept ; rdfs:label "SelectionBehaviour" ;
|
|
198
|
+
rdfs:comment "route · decline · clarify · several · plan (a chain of skills)." .
|
|
199
|
+
apeval:behaviour-route a apeval:SelectionBehaviour ; skos:notation "route" ; skos:prefLabel "route to one skill" .
|
|
200
|
+
apeval:behaviour-decline a apeval:SelectionBehaviour ; skos:notation "decline" ; skos:prefLabel "decline — no skill fits" .
|
|
201
|
+
apeval:behaviour-clarify a apeval:SelectionBehaviour ; skos:notation "clarify" ; skos:prefLabel "ask which of named options" .
|
|
202
|
+
apeval:behaviour-several a apeval:SelectionBehaviour ; skos:notation "several" ; skos:prefLabel "the request needs several skills" .
|
|
203
|
+
apeval:behaviour-plan a apeval:SelectionBehaviour ; skos:notation "plan" ; skos:prefLabel "reach the outcome by a chain of skills" .
|
|
204
|
+
apeval:optionSkill a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "optionSkill" ;
|
|
205
|
+
rdfs:comment "A skill among the options a clarify/several case names." .
|
|
206
|
+
apeval:ExpectedPlanStep a owl:Class ; rdfs:subClassOf p-plan:Step ; rdfs:label "ExpectedPlanStep" ;
|
|
207
|
+
rdfs:comment "One step of the plan an outcome case expects: a skill at a position. A plan in the gold, not a run." .
|
|
208
|
+
apeval:expectedPlanStep a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range apeval:ExpectedPlanStep ; rdfs:label "expectedPlanStep" .
|
|
209
|
+
apeval:planPosition a owl:DatatypeProperty ; rdfs:domain apeval:ExpectedPlanStep ; rdfs:range xsd:integer ; rdfs:label "planPosition" ; rdfs:comment "0-based order in the expected plan." .
|
|
210
|
+
apeval:stepSkill a owl:ObjectProperty ; rdfs:domain apeval:ExpectedPlanStep ; rdfs:label "stepSkill" ; rdfs:comment "The skill (capability) the step runs." .
|
|
211
|
+
apeval:expectedMissing a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "expectedMissing" ;
|
|
212
|
+
rdfs:comment "A domain class the right plan must name as missing — to be asked for, not invented." .
|
|
213
|
+
apeval:exercisesClass a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:label "exercisesClass" ;
|
|
214
|
+
rdfs:comment "A domain class the case's words or gold exercise — what the case tests of the ontology." .
|
|
215
|
+
apeval:adjudication a owl:DatatypeProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range xsd:string ; rdfs:label "adjudication" ;
|
|
216
|
+
rdfs:comment "hypothesis (authored, pre-registered) | adjudicated (a named annotator agreed)." .
|
|
217
|
+
apeval:message a owl:DatatypeProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range xsd:string ; rdfs:label "message" ;
|
|
218
|
+
rdfs:comment "The request's words — carried in a DOMAIN's test projection (authored sentences, never a person's), never in a run's graph." .
|
|
219
|
+
apeval:inReplaySet a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range apeval:ReplaySet ; owl:inverseOf apeval:hasIntent ; rdfs:label "inReplaySet" .
|
|
220
|
+
apeval:underStartingState a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range apexec:StartingState ; rdfs:label "underStartingState" ;
|
|
221
|
+
rdfs:comment "The seeded state the case is asked from (the asker's history, memory, held records)." .
|
|
222
|
+
apeval:holdsClass a owl:ObjectProperty ; rdfs:domain apexec:StartingState ; rdfs:label "holdsClass" ;
|
|
223
|
+
rdfs:comment "A domain class the asker already holds a record of in this state." .
|
|
224
|
+
apeval:recentSkill a owl:ObjectProperty ; rdfs:domain apexec:StartingState ; rdfs:label "recentSkill" ;
|
|
225
|
+
rdfs:comment "A skill the asker used recently in this state." .
|
|
226
|
+
apeval:memoryTag a owl:DatatypeProperty ; rdfs:domain apexec:StartingState ; rdfs:range xsd:string ; rdfs:label "memoryTag" ;
|
|
227
|
+
rdfs:comment "What the asker's own agent remembers about them in this state (a short tag)." .
|
|
228
|
+
apeval:latestResult a owl:ObjectProperty ; rdfs:domain apeval:ReplayIntent ; rdfs:range earl:Assertion ; rdfs:label "latestResult" ;
|
|
229
|
+
rdfs:comment "The newest judged run of the case (an EARL assertion with its selection outcome, time and tokens)." .
|
|
230
|
+
# Ranges (spec 414 §2 rule 2 — every term reaches a standard one): a skill is a prov:Entity (its SKILL.md), a class is an rdfs:Class.
|
|
231
|
+
apeval:expectedSkill rdfs:range prov:Entity . apeval:acceptableSkill rdfs:range prov:Entity . apeval:forbiddenSkill rdfs:range prov:Entity .
|
|
232
|
+
apeval:collidesWith rdfs:range prov:Entity . apeval:optionSkill rdfs:range prov:Entity . apeval:stepSkill rdfs:range prov:Entity . apeval:recentSkill rdfs:range prov:Entity .
|
|
233
|
+
apeval:expectedMissing rdfs:range rdfs:Class . apeval:exercisesClass rdfs:range rdfs:Class . apeval:holdsClass rdfs:range rdfs:Class .
|
|
234
|
+
apeval:expectedMissing rdfs:subPropertyOf dcterms:subject . apeval:exercisesClass rdfs:subPropertyOf dcterms:subject . apeval:holdsClass rdfs:subPropertyOf dcterms:subject .
|
package/tbox/execution.ttl
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
apexec: a owl:Ontology ;
|
|
40
40
|
rdfs:label "Agentic Primitives — execution ontology (W0 subset)" ;
|
|
41
|
-
owl:versionInfo "0.1
|
|
41
|
+
owl:versionInfo "0.3.1" ;
|
|
42
42
|
rdfs:comment "The execution plane: activities that realize capabilities, the runtimes that bore responsibility, and the completion conditions that separate a realization from an attempt. W0 SUBSET — only the terms the shipped realization contracts reference. Spec 330 W1 extends it." ;
|
|
43
43
|
skos:scopeNote "WITHIN-AGENT plane (coordination-vs-orchestration.md). Orchestration sequences one agent's run: the executor's knowledge is local — harness-activated Agent Skill packages (apguide:AgentSkillPackage / SKILL.md, pinned by apexec:usedPlanContentHash) and injected tools — and the loop never queries naming/registry/apdisc: discovery. Distinct from apcoord: (the BETWEEN-AGENTS coordination plane); an apexec:ExecutionPlan compiles FROM an apcoord:PlanStep (plan.ttl), it never is one." .
|
|
44
44
|
|
|
@@ -205,6 +205,73 @@ apexec:errorClass a owl:DatatypeProperty ;
|
|
|
205
205
|
rdfs:label "errorClass" ;
|
|
206
206
|
rdfs:comment "The CLASS of a step's failure (`authority_denied`, `tool_error`, `input_required` …), never its message: a message can carry a counterparty's name or an argument, a class cannot." .
|
|
207
207
|
|
|
208
|
+
# ─── Spec 410 §2 — the adapter's observation ──────────────────────────
|
|
209
|
+
# A resolved value is not "done". For an externally ordered effect the harness records WHAT THE ADAPTER SAW, in
|
|
210
|
+
# four words, and which one the receipt attests. "Verified at commit" may be said of `confirmed` only.
|
|
211
|
+
|
|
212
|
+
apexec:ObservedOutcome a owl:Class ;
|
|
213
|
+
rdfs:subClassOf skos:Concept ;
|
|
214
|
+
rdfs:label "ObservedOutcome" ;
|
|
215
|
+
rdfs:comment "What an adapter observed of the effect it made (spec 410 §2): attempted (the call left; nothing came back the adapter can vouch for), accepted (the provider acknowledged and has not committed), committed (the provider says it is done), confirmed (the harness read the effect back independently of the call that made it). What it is NOT: an authorization input, or a claim about the outcome class the tool establishes (apexec:OutcomeClass says what a success MEANS; this says what was SEEN)." .
|
|
216
|
+
apexec:attempted a apexec:ObservedOutcome ; rdfs:label "attempted" .
|
|
217
|
+
apexec:accepted a apexec:ObservedOutcome ; rdfs:label "accepted" .
|
|
218
|
+
apexec:committed a apexec:ObservedOutcome ; rdfs:label "committed" .
|
|
219
|
+
apexec:confirmed a apexec:ObservedOutcome ; rdfs:label "confirmed" .
|
|
220
|
+
|
|
221
|
+
apexec:observedOutcome a owl:ObjectProperty ;
|
|
222
|
+
rdfs:domain prov:Activity ; rdfs:range apexec:ObservedOutcome ;
|
|
223
|
+
rdfs:label "observedOutcome" ;
|
|
224
|
+
rdfs:comment "The ObservedOutcome this step's adapter reported, bounded by what its tool establishes — a submission never records more than accepted from the call alone." .
|
|
225
|
+
apexec:providerRef a owl:DatatypeProperty ;
|
|
226
|
+
rdfs:domain prov:Activity ; rdfs:range xsd:string ;
|
|
227
|
+
rdfs:label "providerRef" ;
|
|
228
|
+
rdfs:comment "The provider's own identifier for the effect (a message id, a task id, a record version, a transaction hash) — what a stranger would quote to the provider. Never a secret." .
|
|
229
|
+
apexec:observedAt a owl:DatatypeProperty ;
|
|
230
|
+
rdfs:domain prov:Activity ; rdfs:range xsd:dateTime ;
|
|
231
|
+
rdfs:label "observedAt" ;
|
|
232
|
+
rdfs:comment "The harness clock when the adapter returned what it saw." .
|
|
233
|
+
|
|
234
|
+
# ─── Spec 410 §4.4 — the estate an act was performed in ──────────────
|
|
235
|
+
# A person's Home lives in ONE estate; she participates in any estate that admits her (the thesis's design
|
|
236
|
+
# commitment, THESIS-9). An act she performs in estate B is redeemed under a B-chain mandate and anchored in B's
|
|
237
|
+
# receipt registry, and its record lands in HER vault, held in estate A. The record must therefore say where the
|
|
238
|
+
# act happened, because the vault it lives in no longer implies it.
|
|
239
|
+
|
|
240
|
+
apexec:estate a owl:DatatypeProperty ;
|
|
241
|
+
rdfs:domain prov:Activity ; rdfs:range xsd:string ;
|
|
242
|
+
rdfs:label "estate" ;
|
|
243
|
+
rdfs:comment "THE ESTATE THIS RUN WAS PERFORMED IN (spec 410 §4.4): the estate id — keccak256(\"eip155:<chainId>:<governance>\"), the same derivation EstateProjectionRegistry.estateIdOf and the estate-projection package use — of the chain whose mandate was redeemed and whose registry anchored the receipt. Stamped by the RUNTIME that ran the act, from its own deployment, on the HarnessRun activity; a step inherits its run's. Absent on a record older than this term, and on a runtime that has not declared its governance. What it is NOT: authority (a verifier reads the mandate's chain from the mandate's own domain, never from this), and NOT the chain the acting agent's address is named under (the agent IRIs carry that; an agent has the same address in every estate by construction, ADR-0010 + CREATE2)." .
|
|
244
|
+
|
|
245
|
+
apexec:ReceiptAnchor a owl:Class ;
|
|
246
|
+
rdfs:subClassOf prov:Entity ;
|
|
247
|
+
rdfs:label "ReceiptAnchor" ;
|
|
248
|
+
rdfs:comment "WHERE A RUN'S BUNDLE IS ANCHORED, as a record beside the bundle (the `run.anchor:<runRef>` vault record): the bundle's digest, the ReceiptAnchorRegistry it was written in (`eip155:<chainId>:<registry>`), the agent that anchored it, the transaction, and the estate (apexec:estate). A bundle cannot carry its own digest's anchor, so the citation is a second record — and it is the record a Home in another estate reads to know WHICH chain to ask. A holder verifies by recomputing the digest and reading the registry; the citation is a claim about where to look, never proof by itself." .
|
|
249
|
+
|
|
250
|
+
apexec:anchorDigest a owl:DatatypeProperty ;
|
|
251
|
+
rdfs:domain apexec:ReceiptAnchor ; rdfs:range xsd:string ;
|
|
252
|
+
rdfs:label "anchorDigest" ;
|
|
253
|
+
rdfs:comment "The bundle digest as anchored (bytes32 hex) — recomputed by any holder of the bundle over its canonical bytes." .
|
|
254
|
+
|
|
255
|
+
apexec:anchorRegistry a owl:DatatypeProperty ;
|
|
256
|
+
rdfs:domain apexec:ReceiptAnchor ; rdfs:range xsd:string ;
|
|
257
|
+
rdfs:label "anchorRegistry" ;
|
|
258
|
+
rdfs:comment "The ReceiptAnchorRegistry the digest is written in, chain-qualified: `eip155:<chainId>:<registry address>`. The chain named here is the ESTATE's chain (spec 410 §4.4), which may differ from the chain the vault's Home runs on." .
|
|
259
|
+
|
|
260
|
+
apexec:anchoredByAgent a owl:ObjectProperty ;
|
|
261
|
+
rdfs:domain apexec:ReceiptAnchor ; rdfs:range ap:Agent ;
|
|
262
|
+
rdfs:label "anchoredByAgent" ;
|
|
263
|
+
rdfs:comment "The runtime's harness agent that anchored the digest — the row's key on a generation-2+ registry (spec 408 §1.5). Distinct from apvr:anchoredBy, which names an attestation UID on a public KB row." .
|
|
264
|
+
|
|
265
|
+
apexec:anchorTransaction a owl:DatatypeProperty ;
|
|
266
|
+
rdfs:domain apexec:ReceiptAnchor ; rdfs:range xsd:string ;
|
|
267
|
+
rdfs:label "anchorTransaction" ;
|
|
268
|
+
rdfs:comment "The transaction that wrote the anchor, by hash, on the estate's chain." .
|
|
269
|
+
|
|
270
|
+
apexec:disputedBy a owl:ObjectProperty ;
|
|
271
|
+
rdfs:domain prov:Activity ; rdfs:range prov:Entity ;
|
|
272
|
+
rdfs:label "disputedBy" ;
|
|
273
|
+
rdfs:comment "Spec 410 §10 — the dispute interaction (profile dispute/1.0.0) opened over this run's receipt, and the determination a named steward recorded in it. Linked evidence; a determination reverses nothing — a reversal is a new act under a new mandate." .
|
|
274
|
+
|
|
208
275
|
apexec:StepReceipt a owl:Class ;
|
|
209
276
|
rdfs:subClassOf prov:Entity ;
|
|
210
277
|
rdfs:label "StepReceipt" ;
|
|
@@ -368,3 +435,228 @@ apexec:promotedUnder a owl:DatatypeProperty ;
|
|
|
368
435
|
rdfs:domain apexec:BuildPromotion ; rdfs:range xsd:string ;
|
|
369
436
|
rdfs:label "promotedUnder" ;
|
|
370
437
|
rdfs:comment "The intent digest the promotion's mandate was bound to — the ask that named the run and the commit." .
|
|
438
|
+
|
|
439
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
440
|
+
# Spec 414 A1 — the trace from the door: how a run ARRIVED, which MODEL calls it made, under which
|
|
441
|
+
# VARIANT, from which STARTING STATE, which HARNESS CAPABILITIES engaged and to what effect, and which
|
|
442
|
+
# SKILL contract governed each step. Evidence, never authority: no gate reads any of these, and a
|
|
443
|
+
# variant changes behaviour, never permission (spec 414 §2 rule 5). No words: messages, prompts and
|
|
444
|
+
# replies appear only as ids and digests (spec 381 §1; shapes R6/R8).
|
|
445
|
+
# ═════════════════════════════════════════════════════════════════════════════════════════════════
|
|
446
|
+
|
|
447
|
+
apexec:Door a owl:Class ;
|
|
448
|
+
rdfs:subClassOf prov:Entity ;
|
|
449
|
+
rdfs:label "Door" ;
|
|
450
|
+
rdfs:comment "How a run arrived: the A2A message (with its message, context and task ids), a direct ask, a routed hop from another agent's run, a trigger, or a resume. The run prov:used it (apexec:arrivedBy). It carries ids and the kind — never the message's words; the intent is cited by apexec:intentDigest on the run. NOT the asker (that is prov:actedOnBehalfOf) and NOT a credential: arriving by a door authorizes nothing." .
|
|
451
|
+
|
|
452
|
+
apexec:arrivedBy a owl:ObjectProperty ;
|
|
453
|
+
rdfs:subPropertyOf prov:used ;
|
|
454
|
+
rdfs:domain apexec:ServiceExecution ; rdfs:range apexec:Door ;
|
|
455
|
+
rdfs:label "arrivedBy" .
|
|
456
|
+
|
|
457
|
+
apexec:doorKind a owl:DatatypeProperty ;
|
|
458
|
+
rdfs:domain apexec:Door ; rdfs:range xsd:string ;
|
|
459
|
+
rdfs:label "doorKind" ;
|
|
460
|
+
rdfs:comment "a2a-message | harness-ask | routed | trigger | resume | home-mcp | channel-mention — how the request reached the harness." .
|
|
461
|
+
|
|
462
|
+
apexec:a2aMessageId a owl:DatatypeProperty ;
|
|
463
|
+
rdfs:domain apexec:Door ; rdfs:range xsd:string ;
|
|
464
|
+
rdfs:label "a2aMessageId" ;
|
|
465
|
+
rdfs:comment "The A2A Message.messageId the run answered (A2A 1.0). An id, never the message." .
|
|
466
|
+
|
|
467
|
+
apexec:a2aContextId a owl:DatatypeProperty ;
|
|
468
|
+
rdfs:domain apexec:Door ; rdfs:range xsd:string ;
|
|
469
|
+
rdfs:label "a2aContextId" ;
|
|
470
|
+
rdfs:comment "The A2A contextId — groups the runs of one conversation (a LangSmith 'thread')." .
|
|
471
|
+
|
|
472
|
+
apexec:a2aTaskId a owl:DatatypeProperty ;
|
|
473
|
+
rdfs:domain apexec:Door ; rdfs:range xsd:string ;
|
|
474
|
+
rdfs:label "a2aTaskId" .
|
|
475
|
+
|
|
476
|
+
apexec:ModelInvocation a owl:Class ;
|
|
477
|
+
rdfs:subClassOf prov:Activity ;
|
|
478
|
+
rdfs:label "ModelInvocation" ;
|
|
479
|
+
rdfs:comment "One call to a language model the run made — to plan, to compose the reply, or for a structured choice inside a step (PROV-AGENT's model-call activity). Recorded by role, model, provider, the digest of the prompt TEMPLATE (never the rendered prompt), token counts and the route's reason. NOT a decision: a model proposes; the mandate authorizes (spec 350)." .
|
|
480
|
+
|
|
481
|
+
apexec:hasModelInvocation a owl:ObjectProperty ;
|
|
482
|
+
rdfs:domain prov:Activity ; rdfs:range apexec:ModelInvocation ;
|
|
483
|
+
rdfs:label "hasModelInvocation" .
|
|
484
|
+
|
|
485
|
+
apexec:invocationRole a owl:DatatypeProperty ;
|
|
486
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:string ;
|
|
487
|
+
rdfs:label "invocationRole" ;
|
|
488
|
+
rdfs:comment "plan | compose | structured | judge. judge = the call that chose which skill (if any) handles the request; structured = a step's own structured call." .
|
|
489
|
+
|
|
490
|
+
apexec:modelId a owl:DatatypeProperty ;
|
|
491
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:string ;
|
|
492
|
+
rdfs:label "modelId" .
|
|
493
|
+
|
|
494
|
+
apexec:modelProvider a owl:DatatypeProperty ;
|
|
495
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:string ;
|
|
496
|
+
rdfs:label "modelProvider" .
|
|
497
|
+
|
|
498
|
+
apexec:promptTemplateDigest a owl:DatatypeProperty ;
|
|
499
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:string ;
|
|
500
|
+
rdfs:label "promptTemplateDigest" ;
|
|
501
|
+
rdfs:comment "A digest of the prompt the model was given, so two runs can be seen to share (or not share) a prompt. Never the prompt." .
|
|
502
|
+
|
|
503
|
+
apexec:tokensIn a owl:DatatypeProperty ;
|
|
504
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:integer ;
|
|
505
|
+
rdfs:label "tokensIn" .
|
|
506
|
+
|
|
507
|
+
apexec:tokensOut a owl:DatatypeProperty ;
|
|
508
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:integer ;
|
|
509
|
+
rdfs:label "tokensOut" .
|
|
510
|
+
|
|
511
|
+
apexec:routeReason a owl:DatatypeProperty ;
|
|
512
|
+
rdfs:domain apexec:ModelInvocation ; rdfs:range xsd:string ;
|
|
513
|
+
rdfs:label "routeReason" ;
|
|
514
|
+
rdfs:comment "Why this provider carried the call (spec 388) — a reason code, never words of the ask." .
|
|
515
|
+
|
|
516
|
+
apexec:Variant a owl:Class ;
|
|
517
|
+
rdfs:subClassOf prov:Entity ;
|
|
518
|
+
rdfs:label "Variant" ;
|
|
519
|
+
rdfs:comment "The configuration a run ran under, as the things a comparison may change one at a time: the playbook (by commitment), the planner kind, the model route policy, the harness build, and any harness-capability toggles. Named by its digest (RFC 8785 JCS + SHA-256), so two runs share a variant exactly when they share every part. The production variant is simply the current one. NOT authority: a variant changes behaviour, never what a mandate permits." .
|
|
520
|
+
|
|
521
|
+
apexec:underVariant a owl:ObjectProperty ;
|
|
522
|
+
rdfs:subPropertyOf prov:used ;
|
|
523
|
+
rdfs:domain apexec:ServiceExecution ; rdfs:range apexec:Variant ;
|
|
524
|
+
rdfs:label "underVariant" .
|
|
525
|
+
|
|
526
|
+
apexec:variantDigest a owl:DatatypeProperty ;
|
|
527
|
+
rdfs:domain apexec:Variant ; rdfs:range xsd:string ;
|
|
528
|
+
rdfs:label "variantDigest" .
|
|
529
|
+
|
|
530
|
+
apexec:plannerKind a owl:DatatypeProperty ;
|
|
531
|
+
rdfs:domain apexec:Variant ; rdfs:range xsd:string ;
|
|
532
|
+
rdfs:label "plannerKind" ;
|
|
533
|
+
rdfs:comment "supplied | compiled | model | rule-based — who proposes plans under this variant." .
|
|
534
|
+
|
|
535
|
+
apexec:routePolicy a owl:DatatypeProperty ;
|
|
536
|
+
rdfs:domain apexec:Variant ; rdfs:range xsd:string ;
|
|
537
|
+
rdfs:label "routePolicy" .
|
|
538
|
+
|
|
539
|
+
apexec:harnessBuild a owl:DatatypeProperty ;
|
|
540
|
+
rdfs:domain apexec:Variant ; rdfs:range xsd:string ;
|
|
541
|
+
rdfs:label "harnessBuild" ;
|
|
542
|
+
rdfs:comment "The runtime's build identifier (a deployment version id or commit)." .
|
|
543
|
+
|
|
544
|
+
apexec:capabilityToggle a owl:DatatypeProperty ;
|
|
545
|
+
rdfs:domain apexec:Variant ; rdfs:range xsd:string ;
|
|
546
|
+
rdfs:label "capabilityToggle" ;
|
|
547
|
+
rdfs:comment "`<capability notation>=<setting>` — e.g. `retrieval/kb=off`. One per toggle; absent ⇒ the default." .
|
|
548
|
+
|
|
549
|
+
apexec:StartingState a owl:Class ;
|
|
550
|
+
rdfs:subClassOf prov:Entity ;
|
|
551
|
+
rdfs:label "StartingState" ;
|
|
552
|
+
rdfs:comment "The records a run began from when they were seeded for a comparison (a scenario's fixture), named by digest. Absent for live runs. Holding it fixed is one half of the change-one-component rule (spec 414 §7)." .
|
|
553
|
+
|
|
554
|
+
apexec:fromStartingState a owl:ObjectProperty ;
|
|
555
|
+
rdfs:subPropertyOf prov:used ;
|
|
556
|
+
rdfs:domain apexec:ServiceExecution ; rdfs:range apexec:StartingState ;
|
|
557
|
+
rdfs:label "fromStartingState" .
|
|
558
|
+
|
|
559
|
+
apexec:startingStateDigest a owl:DatatypeProperty ;
|
|
560
|
+
rdfs:domain apexec:StartingState ; rdfs:range xsd:string ;
|
|
561
|
+
rdfs:label "startingStateDigest" .
|
|
562
|
+
|
|
563
|
+
apexec:governedBySkill a owl:ObjectProperty ;
|
|
564
|
+
rdfs:subPropertyOf prov:used ;
|
|
565
|
+
rdfs:domain prov:Activity ; rdfs:range apguide:AgentSkillPackage ;
|
|
566
|
+
rdfs:label "governedBySkill" ;
|
|
567
|
+
rdfs:comment "The SKILL.md contract (id, version, content digest — the IRI says all three) whose execution contract governed this step. Finer than the run's playbook (prov:hadPlan). NOT the advertised capability (apexec:realizesCapability) and NOT the operation (the plan step's tool): a capability is what is advertised, a skill is how it is done, the tool is what was called." .
|
|
568
|
+
|
|
569
|
+
# ── Harness capabilities: what the harness DID, as a vocabulary (spec 414 §3.2) ─────────────────
|
|
570
|
+
|
|
571
|
+
apexec:HarnessCapability a owl:Class ;
|
|
572
|
+
rdfs:subClassOf skos:Concept ;
|
|
573
|
+
rdfs:label "HarnessCapability" ;
|
|
574
|
+
rdfs:comment "A function of the harness itself (a planner, plan admission, retrieval, routing, memory, judgment …), as distinct from a capability an agent ADVERTISES (aps:Capability). Engaging one is recorded (apexec:CapabilityEngagement) so effectiveness can be read per capability. Declared once, here; code stamps engagements by notation." .
|
|
575
|
+
|
|
576
|
+
apexec:HarnessCapabilities a skos:ConceptScheme ;
|
|
577
|
+
rdfs:label "Harness capabilities" .
|
|
578
|
+
|
|
579
|
+
apexec:EngagementEffect a owl:Class ;
|
|
580
|
+
rdfs:subClassOf skos:Concept ;
|
|
581
|
+
rdfs:label "EngagementEffect" ;
|
|
582
|
+
rdfs:comment "What an engaged harness capability did to the run: changed the plan, changed a step, changed the answer, changed nothing, or refused." .
|
|
583
|
+
|
|
584
|
+
apexec:ee-changedPlan a apexec:EngagementEffect ; skos:notation "changed-plan" ; skos:prefLabel "changed the plan" .
|
|
585
|
+
apexec:ee-changedStep a apexec:EngagementEffect ; skos:notation "changed-step" ; skos:prefLabel "changed a step" .
|
|
586
|
+
apexec:ee-changedAnswer a apexec:EngagementEffect ; skos:notation "changed-answer" ; skos:prefLabel "changed the answer" ; skos:definition "It shaped what the reply says, not what was done — retrieval grounding the composer (spec 413: passages ground what is said, never what is done)." .
|
|
587
|
+
apexec:ee-noChange a apexec:EngagementEffect ; skos:notation "no-change" ; skos:prefLabel "changed nothing" .
|
|
588
|
+
apexec:ee-refused a apexec:EngagementEffect ; skos:notation "refused" ; skos:prefLabel "refused" .
|
|
589
|
+
|
|
590
|
+
apexec:CapabilityEngagement a owl:Class ;
|
|
591
|
+
rdfs:subClassOf prov:Influence ;
|
|
592
|
+
rdfs:label "CapabilityEngagement" ;
|
|
593
|
+
rdfs:comment "One engagement of a harness capability on a run or a step — the qualified form (PROV's Influence pattern) so each engagement carries its capability, the capability's version and its effect. Engaged-with-no-change is still recorded: 'did this capability matter?' is a query, not an opinion." .
|
|
594
|
+
|
|
595
|
+
apexec:hasEngagement a owl:ObjectProperty ;
|
|
596
|
+
rdfs:domain prov:Activity ; rdfs:range apexec:CapabilityEngagement ;
|
|
597
|
+
rdfs:label "hasEngagement" .
|
|
598
|
+
|
|
599
|
+
apexec:ofCapability a owl:ObjectProperty ;
|
|
600
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range apexec:HarnessCapability ;
|
|
601
|
+
rdfs:label "ofCapability" .
|
|
602
|
+
|
|
603
|
+
apexec:engagementEffect a owl:ObjectProperty ;
|
|
604
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range apexec:EngagementEffect ;
|
|
605
|
+
rdfs:label "engagementEffect" .
|
|
606
|
+
|
|
607
|
+
apexec:capabilityVersion a owl:DatatypeProperty ;
|
|
608
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range xsd:string ;
|
|
609
|
+
rdfs:label "capabilityVersion" .
|
|
610
|
+
|
|
611
|
+
# The scheme. `skos:notation` is the stable key code stamps by; the IRI local name is DERIVED from it —
|
|
612
|
+
# `hc-` + the notation in camelCase over '/' and '-' (`planner/compiled-shape` → `hc-plannerCompiledShape`), and
|
|
613
|
+
# `ee-` likewise for effects — so a serializer names the concept without a lookup table (asserted in the suite). Open: a new harness capability is a new concept here and nothing else.
|
|
614
|
+
apexec:hc-plannerSupplied a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "planner/supplied" ; skos:prefLabel "supplied plan" ; skos:definition "The plan was given (a screen, a test, a replay), not proposed." .
|
|
615
|
+
apexec:hc-plannerCompiledShape a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "planner/compiled-shape" ; skos:prefLabel "compiled plan shape" ; skos:definition "An ontology-compiled one-correct-plan shape proposed the plan (spec 355)." .
|
|
616
|
+
apexec:hc-plannerModel a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "planner/model" ; skos:prefLabel "model planner" ; skos:definition "A language model proposed the plan (spec 388 route)." .
|
|
617
|
+
apexec:hc-planAdmission a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "plan-admission" ; skos:prefLabel "plan admission" ; skos:definition "The behaviour plane admitted or refused the proposed plan (spec 367 W1); a refusal that forced a replan changed the plan." .
|
|
618
|
+
apexec:hc-playbook a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "playbook" ; skos:prefLabel "playbook" ; skos:definition "A compiled archetype governed the run (spec 354)." .
|
|
619
|
+
apexec:hc-retrievalKb a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "retrieval/kb" ; skos:prefLabel "public-tier retrieval" ; skos:definition "Passages or facts were read from the public knowledge tier (specs 357, 413)." .
|
|
620
|
+
apexec:hc-retrievalVaultSelector a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "retrieval/vault-selector" ; skos:prefLabel "private-tier selector" ; skos:definition "Records were read from a vault by a compiled selector (spec 356)." .
|
|
621
|
+
apexec:hc-standingInstructions a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "standing-instructions" ; skos:prefLabel "standing instructions" ; skos:definition "A standing instruction applied (spec 394)." .
|
|
622
|
+
apexec:hc-confirmationMemory a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "confirmation-memory" ; skos:prefLabel "confirmation memory" ; skos:definition "A prior confirmation was reused (spec 385)." .
|
|
623
|
+
apexec:hc-decisionRules a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "decision-rules" ; skos:prefLabel "decision rules" ; skos:definition "An ordered rule decided a decision point (spec 363)." .
|
|
624
|
+
apexec:hc-routing a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "routing" ; skos:prefLabel "routing" ; skos:definition "Work was routed to another agent by its records (spec 366)." .
|
|
625
|
+
apexec:hc-handoff a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "handoff" ; skos:prefLabel "hand-off" ; skos:definition "A step was handed to another agent's run." .
|
|
626
|
+
apexec:hc-fanOut a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "fan-out" ; skos:prefLabel "fan-out" ; skos:definition "One step was split across many items or agents, each re-verified (spec 380)." .
|
|
627
|
+
apexec:hc-contextOffload a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "context-offload" ; skos:prefLabel "context offload" ; skos:definition "A large result went to the vault and the run carried its summary (spec 391)." .
|
|
628
|
+
apexec:hc-durableResume a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "durable-resume" ; skos:prefLabel "durable resume" ; skos:definition "The run resumed from a checkpoint, replaying completed steps (spec 362, 370 P1)." .
|
|
629
|
+
apexec:hc-approval a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "approval" ; skos:prefLabel "approval" ; skos:definition "A step waited on a person's signature (specs 350, 393)." .
|
|
630
|
+
apexec:hc-judgment a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "judgment" ; skos:prefLabel "judgment" ; skos:definition "A judgment was made about the run or a step against a stated criterion (spec 414 §3.4) — implementation-neutral; defined by principles J1–J8, filled by a later spec." .
|
|
631
|
+
|
|
632
|
+
# ── Spec 415 §3a — SKILL SELECTION as a harness capability, and what it offered, chose and rejected ──
|
|
633
|
+
# The APPROACH is the concept (implementation-neutral names: the mechanism behind each is a binding); a comparison
|
|
634
|
+
# toggles it and holds the rest fixed. The engagement names the candidates it OFFERED, the one(s) it CHOSE and the
|
|
635
|
+
# neighbour it REJECTED when two collided — as capability / skill IRIs, never words.
|
|
636
|
+
apexec:hc-skillSelectionModel a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "skill-selection/model" ; skos:prefLabel "selection by description" ; skos:definition "A model chose the skill from descriptions — the baseline." .
|
|
637
|
+
apexec:hc-skillSelectionOntology a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "skill-selection/ontology" ; skos:prefLabel "selection by ontology and canonical id" ; skos:definition "The skill was chosen by what the ontology says it is for and by its canonical identity (spec 355 compiled shapes are one such mechanism)." .
|
|
638
|
+
apexec:hc-skillSelectionRules a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "skill-selection/rules" ; skos:prefLabel "selection by rules" ; skos:definition "Declared rules chose the skill." .
|
|
639
|
+
apexec:hc-skillSelectionJudgment a apexec:HarnessCapability ; skos:inScheme apexec:HarnessCapabilities ; skos:notation "skill-selection/judgment" ; skos:prefLabel "selection by judgment" ; skos:definition "A judgment against stated criteria chose or confirmed the skill (spec 414 §3.4)." .
|
|
640
|
+
|
|
641
|
+
apexec:offeredCandidate a owl:ObjectProperty ;
|
|
642
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range prov:Entity ;
|
|
643
|
+
rdfs:label "offeredCandidate" ; rdfs:comment "A skill / capability the selection could choose from (by IRI)." .
|
|
644
|
+
apexec:chose a owl:ObjectProperty ;
|
|
645
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range prov:Entity ;
|
|
646
|
+
rdfs:label "chose" ; rdfs:comment "What the selection chose (by IRI). More than one ⇒ over-selection." .
|
|
647
|
+
apexec:rejectedNeighbour a owl:ObjectProperty ;
|
|
648
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range prov:Entity ;
|
|
649
|
+
rdfs:label "rejectedNeighbour" ; rdfs:comment "The colliding candidate the selection passed over, when it can say so." .
|
|
650
|
+
|
|
651
|
+
# Spec 415 A4 — THE INTENT, TYPED IN THE DOMAIN ONTOLOGY. A selection by judgment first says what the request asks FOR
|
|
652
|
+
# as one domain class (the deliverable or activity) and what it is ABOUT; the skills whose declared coverage includes that
|
|
653
|
+
# class are the only candidates. The values are CLASS IRIs from the agent's domain ontology (or apexec:OutsideDomain),
|
|
654
|
+
# never words. Evidence of how the selection read the request; never authority.
|
|
655
|
+
apexec:inferredRequest a owl:ObjectProperty ;
|
|
656
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range rdfs:Class ;
|
|
657
|
+
rdfs:label "inferredRequest" ; rdfs:comment "The domain class the selection read the request as asking FOR — or apexec:OutsideDomain." .
|
|
658
|
+
apexec:inferredAbout a owl:ObjectProperty ;
|
|
659
|
+
rdfs:domain apexec:CapabilityEngagement ; rdfs:range rdfs:Class ;
|
|
660
|
+
rdfs:label "inferredAbout" ; rdfs:comment "A domain class the selection read the request as being ABOUT." .
|
|
661
|
+
apexec:OutsideDomain a rdfs:Class ;
|
|
662
|
+
rdfs:label "OutsideDomain" ; rdfs:comment "What a request asks for when it is none of the domain's classes: no skill may be chosen for it." .
|