@agenticprimitives/ontology 0.1.0-alpha.2 → 1.0.0-alpha.10

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.
@@ -0,0 +1,108 @@
1
+ # T-box — resolution + ResolutionReceipt vocabulary (spine Layer 4; skeleton W1).
2
+ # ERC-7683 Resolver pattern; W2 grows the full surface.
3
+ # RR-INV-01..05 enforced by intent-marketplace + intent-resolver runtime SHACL.
4
+
5
+ @prefix apres: <https://agenticprimitives.dev/ns/resolution#> .
6
+ @prefix apint: <https://agenticprimitives.dev/ns/intent#> .
7
+ @prefix apcst: <https://agenticprimitives.dev/ns/constraint#> .
8
+ @prefix ap: <https://agenticprimitives.dev/ns/core#> .
9
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
11
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12
+ @prefix prov: <http://www.w3.org/ns/prov#> .
13
+
14
+ apres: a owl:Ontology ;
15
+ rdfs:label "Agentic Primitives — resolution ontology" ;
16
+ owl:versionInfo "0.1.0-skeleton" ;
17
+ rdfs:comment "Layer 4 of the spine. W1 ships skeleton (types + PassThroughResolver); full vocabulary lands W2 when resolver implementations ship." .
18
+
19
+ # ─── Resolver classes ─────────────────────────────────────────────────
20
+
21
+ apres:Resolver a owl:Class ;
22
+ rdfs:subClassOf ap:Agent ;
23
+ rdfs:label "Resolver" ;
24
+ rdfs:comment "An Agent that performs Intent resolution — translates opaque expressed Intent → ResolvedOrder. ERC-7683 Resolver-contract parallel." .
25
+
26
+ apres:ResolvedOrder a owl:Class ;
27
+ rdfs:subClassOf prov:Entity ;
28
+ rdfs:label "ResolvedOrder" ;
29
+ rdfs:comment "Normalized executable form of an Intent. Layer 4 output. Bridges from CSP-shaped Intent to Solver-fillable Order (Layer 5+6)." .
30
+
31
+ apres:ResolutionReceipt a owl:Class ;
32
+ rdfs:subClassOf prov:Entity ;
33
+ rdfs:label "ResolutionReceipt" ;
34
+ rdfs:comment "Provenance + invariant record for a resolution: model + version + prompt hash + tool calls + confidence + policyChecks + requiresUserConfirmation. Authority-gating per RR-INV-01..05. NOT itself an authority object — provenance only." .
35
+
36
+ apres:PolicyCheckResult a owl:Class ;
37
+ rdfs:label "PolicyCheckResult" ;
38
+ rdfs:comment "A single policy check + pass/fail + rationale; recorded in a ResolutionReceipt." .
39
+
40
+ apres:ToolCallTrace a owl:Class ;
41
+ rdfs:label "ToolCallTrace" ;
42
+ rdfs:comment "An MCP tool call invocation captured for resolution provenance (toolName + inputHash + outputHash + durationMs)." .
43
+
44
+ # ─── Properties ───────────────────────────────────────────────────────
45
+
46
+ apres:resolvedFrom a owl:ObjectProperty ;
47
+ rdfs:domain apres:ResolvedOrder ;
48
+ rdfs:range apint:Intent ;
49
+ rdfs:label "resolvedFrom" .
50
+
51
+ apres:canonicalConstraints a owl:ObjectProperty ;
52
+ rdfs:domain apres:ResolvedOrder ;
53
+ rdfs:range apcst:ConstraintSet ;
54
+ rdfs:label "canonicalConstraints" .
55
+
56
+ apres:expandedAssumptions a owl:ObjectProperty ;
57
+ rdfs:domain apres:ResolvedOrder ;
58
+ rdfs:range apcst:AssumptionSet ;
59
+ rdfs:label "expandedAssumptions" .
60
+
61
+ apres:resolverAgent a owl:ObjectProperty ;
62
+ rdfs:domain apres:ResolutionReceipt ;
63
+ rdfs:range apres:Resolver ;
64
+ rdfs:label "resolverAgent" .
65
+
66
+ apres:resolverVersion a owl:DatatypeProperty ;
67
+ rdfs:domain apres:ResolutionReceipt ;
68
+ rdfs:range xsd:string ;
69
+ rdfs:label "resolverVersion" .
70
+
71
+ apres:modelName a owl:DatatypeProperty ;
72
+ rdfs:domain apres:ResolutionReceipt ;
73
+ rdfs:range xsd:string ;
74
+ rdfs:label "modelName" ;
75
+ rdfs:comment "LLM model name when present (e.g. 'claude-opus-4-7', 'gpt-4.1'). Null for PassThrough." .
76
+
77
+ apres:confidence a owl:DatatypeProperty ;
78
+ rdfs:domain apres:ResolutionReceipt ;
79
+ rdfs:range xsd:decimal ;
80
+ rdfs:label "confidence" ;
81
+ rdfs:comment "0..1. Substrate threshold determines requiresUserConfirmation." .
82
+
83
+ apres:requiresUserConfirmation a owl:DatatypeProperty ;
84
+ rdfs:domain apres:ResolutionReceipt ;
85
+ rdfs:range xsd:boolean ;
86
+ rdfs:label "requiresUserConfirmation" ;
87
+ rdfs:comment "Authority gate (RR-INV-01). TRUE blocks downstream layers until user signs the canonical Intent + ConstraintSet bytes." .
88
+
89
+ apres:userConfirmedAt a owl:DatatypeProperty ;
90
+ rdfs:domain apres:ResolutionReceipt ;
91
+ rdfs:range xsd:dateTime ;
92
+ rdfs:label "userConfirmedAt" .
93
+
94
+ apres:policyVersion a owl:DatatypeProperty ;
95
+ rdfs:domain apres:ResolutionReceipt ;
96
+ rdfs:range xsd:string ;
97
+ rdfs:label "policyVersion" ;
98
+ rdfs:comment "Hash of the resolver policy at resolution time. Audit replay." .
99
+
100
+ apres:hasPolicyCheck a owl:ObjectProperty ;
101
+ rdfs:domain apres:ResolutionReceipt ;
102
+ rdfs:range apres:PolicyCheckResult ;
103
+ rdfs:label "hasPolicyCheck" .
104
+
105
+ apres:hasToolCall a owl:ObjectProperty ;
106
+ rdfs:domain apres:ResolutionReceipt ;
107
+ rdfs:range apres:ToolCallTrace ;
108
+ rdfs:label "hasToolCall" .
@@ -0,0 +1,30 @@
1
+ # T-box — generic skills substrate (spec 251). Class + property definitions for the
2
+ # definition-vs-claim model. The DEFINITION is a public on-chain anchor
3
+ # (SkillDefinitionRegistry); the CLAIM is an off-chain vault credential pointing to a
4
+ # definition. NEUTRAL substrate — no domain/faith vocabulary.
5
+
6
+ @prefix aps: <https://agenticprimitives.dev/ns/skill#> .
7
+ @prefix ap: <https://agenticprimitives.dev/ns/core#> .
8
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
11
+
12
+ aps:Skill a rdfs:Class ;
13
+ rdfs:label "Skill" ;
14
+ rdfs:comment "A versioned, PUBLIC, generic capability definition. Anchored on chain by SkillDefinitionRegistry (id, version, steward, kind, conceptHash, ontologyMerkleRoot, metadataURI, validity)." .
15
+
16
+ aps:SkillClaim a rdfs:Class ;
17
+ rdfs:label "SkillClaim" ;
18
+ rdfs:comment "An OFF-CHAIN verifiable credential asserting a subject Smart Agent's relation to an aps:Skill (pinned definitionId+version). Lives in the subject's private vault; never an on-chain row." .
19
+
20
+ aps:definitionId a rdf:Property ; rdfs:domain aps:SkillClaim ; rdfs:range aps:Skill ;
21
+ rdfs:comment "The on-chain (skillId, version) this claim credential references." .
22
+ aps:hasSkillKind a rdf:Property ; rdfs:domain aps:Skill ;
23
+ rdfs:comment "An aps:skillKind value (C-box codelist; on-chain-bound)." .
24
+ aps:claimSubject a rdf:Property ; rdfs:domain aps:SkillClaim ; rdfs:range ap:CanonicalAgentId ;
25
+ rdfs:comment "The subject Smart Agent (Address) the claim is about." .
26
+ aps:claimIssuer a rdf:Property ; rdfs:domain aps:SkillClaim ; rdfs:range ap:CanonicalAgentId .
27
+ aps:claimRelation a rdf:Property ; rdfs:domain aps:SkillClaim ;
28
+ rdfs:comment "An aps:skillRelation value (C-box codelist)." .
29
+ aps:claimVisibilityMode a rdf:Property ; rdfs:domain aps:SkillClaim ;
30
+ rdfs:comment "An aps:claimVisibility value (C-box codelist)." .