@agenticprimitives/ontology 1.0.0-alpha.16 → 1.0.0-alpha.17

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 (39) hide show
  1. package/cbox/guidance-vocabulary.ttl +22 -0
  2. package/cbox/interaction-vocabulary.ttl +102 -0
  3. package/cbox/scope-vocabulary.ttl +112 -0
  4. package/cbox/skill-grounding-vocabulary.ttl +18 -0
  5. package/context.jsonld +6 -0
  6. package/dist/artifacts.d.ts +3 -3
  7. package/dist/artifacts.d.ts.map +1 -1
  8. package/dist/artifacts.js +33 -0
  9. package/dist/artifacts.js.map +1 -1
  10. package/dist/grounded-vocabulary.d.ts +29 -0
  11. package/dist/grounded-vocabulary.d.ts.map +1 -0
  12. package/dist/grounded-vocabulary.js +110 -0
  13. package/dist/grounded-vocabulary.js.map +1 -0
  14. package/dist/index.d.ts +157 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +193 -4
  17. package/dist/index.js.map +1 -1
  18. package/mappings/actor-context-standards.ttl +89 -0
  19. package/mappings/collaboration-crosswalk-actors.ttl +30 -0
  20. package/mappings/collaboration-crosswalk-authority.ttl +31 -0
  21. package/mappings/collaboration-crosswalk-guidance.ttl +29 -0
  22. package/mappings/collaboration-crosswalk-intent.ttl +29 -0
  23. package/mappings/collaboration-crosswalk-messaging.ttl +37 -0
  24. package/mappings/collaboration-crosswalk-organization.ttl +44 -0
  25. package/mappings/collaboration-crosswalk-protocols.ttl +46 -0
  26. package/mappings/collaboration-crosswalk-skills.ttl +45 -0
  27. package/mappings/collaboration-profile.ttl +74 -0
  28. package/package.json +1 -1
  29. package/tbox/actor-context.ttl +134 -0
  30. package/tbox/entitlement.ttl +41 -0
  31. package/tbox/fabric.ttl +59 -0
  32. package/tbox/guidance.ttl +40 -0
  33. package/tbox/intents.ttl +66 -11
  34. package/tbox/messaging.ttl +134 -0
  35. package/tbox/org.ttl +122 -0
  36. package/tbox/scope.ttl +59 -0
  37. package/tbox/situation.ttl +56 -0
  38. package/tbox/skills.ttl +104 -12
  39. package/tbox/verification-receipt.ttl +127 -0
package/tbox/skills.ttl CHANGED
@@ -1,7 +1,6 @@
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.
1
+ # T-box — capability substrate (spec 251 on-chain anchor + spec 325 semantic profile; ADR-0051).
2
+ # Canonical noun: CapabilityDefinition. Standards "skill" objects are projections only.
3
+ # IDE Agent Skill packages (SKILL.md) live in apguide: see tbox/guidance.ttl (ADR-0050).
5
4
 
6
5
  @prefix aps: <https://agenticprimitives.dev/ns/skill#> .
7
6
  @prefix ap: <https://agenticprimitives.dev/ns/core#> .
@@ -11,20 +10,113 @@
11
10
 
12
11
  aps:Skill a rdfs:Class ;
13
12
  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)." .
13
+ rdfs:comment "On-chain public capability definition anchor (SkillDefinitionRegistry). Legacy label retained for spec 251 ABI; prose prefers capability definition anchor." .
15
14
 
16
15
  aps:SkillClaim a rdfs:Class ;
17
16
  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." .
17
+ rdfs:comment "OFF-CHAIN capability claim credential asserting a subject's relation to an aps:Skill (definitionId+version). Private vault not an Agent Skill package." .
19
18
 
20
19
  aps:definitionId a rdf:Property ; rdfs:domain aps:SkillClaim ; rdfs:range aps:Skill ;
21
20
  rdfs:comment "The on-chain (skillId, version) this claim credential references." .
22
21
  aps:hasSkillKind a rdf:Property ; rdfs:domain aps:Skill ;
23
22
  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." .
23
+ aps:claimSubject a rdf:Property ; rdfs:domain aps:SkillClaim ; rdfs:range ap:CanonicalAgentId .
26
24
  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)." .
25
+ aps:claimRelation a rdf:Property ; rdfs:domain aps:SkillClaim .
26
+ aps:claimVisibilityMode a rdf:Property ; rdfs:domain aps:SkillClaim .
27
+
28
+ # ─── Canonical semantic capability (spec 325 §4.5; ADR-0051) ─────────────────
29
+
30
+ aps:CapabilityDefinition a owl:Class ;
31
+ rdfs:label "CapabilityDefinition" ;
32
+ rdfs:comment "Stable AP semantic capability — source of truth. OASF taxon, A2A AgentSkill, Agent Skill package, and MCP tool are projections via crosswalk — not equivalent IDs." .
33
+
34
+ aps:AgentSkillDefinition a owl:Class ;
35
+ owl:deprecated true ;
36
+ rdfs:subClassOf aps:CapabilityDefinition ;
37
+ rdfs:label "AgentSkillDefinition (deprecated)" ;
38
+ rdfs:comment "Deprecated alias for aps:CapabilityDefinition (ADR-0051)." .
39
+
40
+ aps:CapabilityGrounding a owl:Class ;
41
+ rdfs:label "CapabilityGrounding" ;
42
+ rdfs:comment "Protocol-specific invocation binding (MCP tool, A2A endpoint, HTTP, WoT Form)." .
43
+
44
+ aps:SkillGrounding a owl:Class ;
45
+ owl:deprecated true ;
46
+ rdfs:subClassOf aps:CapabilityGrounding ;
47
+ rdfs:label "SkillGrounding (deprecated)" .
48
+
49
+ aps:CapabilityProtocolProjection a owl:Class ;
50
+ rdfs:label "CapabilityProtocolProjection" ;
51
+ rdfs:comment "Adapter output: A2A AgentSkill descriptor, OASF skill taxon ref, MCP tool ref — never canonical." .
52
+
53
+ aps:SkillProtocolProjection a owl:Class ;
54
+ owl:deprecated true ;
55
+ rdfs:subClassOf aps:CapabilityProtocolProjection ;
56
+ rdfs:label "SkillProtocolProjection (deprecated)" .
57
+
58
+ aps:IntentCapabilityMatch a owl:Class ;
59
+ rdfs:label "IntentCapabilityMatch" ;
60
+ rdfs:comment "Resolver evidence linking an Intent to a CapabilityDefinition (WSMO Mediator pattern)." .
61
+
62
+ aps:IntentSkillMatch a owl:Class ;
63
+ owl:deprecated true ;
64
+ rdfs:subClassOf aps:IntentCapabilityMatch ;
65
+ rdfs:label "IntentSkillMatch (deprecated)" .
66
+
67
+ aps:offeredByAgent a owl:ObjectProperty ;
68
+ rdfs:domain aps:CapabilityDefinition ; rdfs:range ap:CanonicalAgentId ;
69
+ rdfs:label "offeredByAgent" .
70
+
71
+ aps:onChainAnchor a owl:ObjectProperty ;
72
+ rdfs:domain aps:CapabilityDefinition ; rdfs:range aps:Skill ;
73
+ rdfs:label "onChainAnchor" ;
74
+ rdfs:comment "Optional link to public SkillDefinitionRegistry anchor." .
75
+
76
+ aps:semanticType a owl:ObjectProperty ;
77
+ rdfs:domain aps:CapabilityDefinition ;
78
+ rdfs:label "semanticType" .
79
+
80
+ aps:hasInputShape a owl:ObjectProperty ; rdfs:domain aps:CapabilityDefinition ; rdfs:label "hasInputShape" .
81
+ aps:hasOutputShape a owl:ObjectProperty ; rdfs:domain aps:CapabilityDefinition ; rdfs:label "hasOutputShape" .
82
+ aps:hasPrecondition a owl:ObjectProperty ; rdfs:domain aps:CapabilityDefinition ; rdfs:label "hasPrecondition" .
83
+ aps:hasEffect a owl:ObjectProperty ; rdfs:domain aps:CapabilityDefinition ; rdfs:label "hasEffect" .
84
+ aps:hasCapabilityGrounding a owl:ObjectProperty ;
85
+ rdfs:domain aps:CapabilityDefinition ; rdfs:range aps:CapabilityGrounding ;
86
+ rdfs:label "hasCapabilityGrounding" .
87
+
88
+ aps:hasSkillGrounding a owl:ObjectProperty ;
89
+ owl:deprecated true ;
90
+ rdfs:subPropertyOf aps:hasCapabilityGrounding ;
91
+ rdfs:domain aps:CapabilityDefinition ; rdfs:range aps:CapabilityGrounding ;
92
+ rdfs:label "hasSkillGrounding (deprecated)" .
93
+
94
+ aps:groundingProtocol a owl:DatatypeProperty ;
95
+ rdfs:domain aps:CapabilityGrounding ;
96
+ rdfs:label "groundingProtocol" .
97
+
98
+ aps:requiredDelegationScope a owl:DatatypeProperty ;
99
+ rdfs:domain aps:CapabilityDefinition ;
100
+ rdfs:label "requiredDelegationScope" .
101
+
102
+ aps:requiredEntitlement a owl:ObjectProperty ;
103
+ rdfs:domain aps:CapabilityDefinition ;
104
+ rdfs:label "requiredEntitlement" .
105
+
106
+ aps:projectsTo a owl:ObjectProperty ;
107
+ rdfs:domain aps:CapabilityDefinition ; rdfs:range aps:CapabilityProtocolProjection ;
108
+ rdfs:label "projectsTo" .
109
+
110
+ aps:matchedIntent a owl:ObjectProperty ;
111
+ rdfs:domain aps:IntentCapabilityMatch ;
112
+ rdfs:label "matchedIntent" .
113
+
114
+ aps:matchedCapability a owl:ObjectProperty ;
115
+ rdfs:domain aps:IntentCapabilityMatch ; rdfs:range aps:CapabilityDefinition ;
116
+ rdfs:label "matchedCapability" .
117
+
118
+ aps:matchedSkill a owl:ObjectProperty ;
119
+ owl:deprecated true ;
120
+ rdfs:subPropertyOf aps:matchedCapability ;
121
+ rdfs:domain aps:IntentCapabilityMatch ; rdfs:range aps:CapabilityDefinition ;
122
+ rdfs:label "matchedSkill (deprecated)" .
@@ -0,0 +1,127 @@
1
+ # T-box — verification-receipt provenance vocabulary (spec 303).
2
+ # The provenance layer is GROUNDED IN W3C PROV-O: verification is a
3
+ # prov:Activity, its artifacts are prov:Entity, the verifier is the
4
+ # associated prov:SoftwareAgent, and delegated authority is PROV's own
5
+ # relation for it — prov:actedOnBehalfOf (delegate acts on behalf of
6
+ # principal).
7
+ #
8
+ # THE PRIVACY SPLIT, IN PROV TERMS (ADR-0010 amendment 2026-07-07):
9
+ # the PUBLIC receipt entity carries COMMITMENTS — it deliberately has NO
10
+ # prov:actedOnBehalfOf / prov:wasAttributedTo edge to a person principal
11
+ # (that edge would rebuild the correlation graph in the provenance layer).
12
+ # The agent-linkage lives ONLY on the PRIVATE detail entity (vault-resident,
13
+ # DecryptGrant-gated): there, apvr:onBehalfOf ⊑ prov:actedOnBehalfOf binds
14
+ # delegate → principal, and prov:wasAttributedTo names the principal.
15
+ # Opening the commitments (dispute path) is what re-attaches the public
16
+ # receipt to the private PROV agent graph.
17
+ #
18
+ # Consumers: spec 303 receipts (packages/verification-receipts wire shapes
19
+ # project onto these terms); any future A-box projection MUST respect
20
+ # ADR-0040 (public KB rows only from public data — i.e. only the PUBLIC
21
+ # receipt projection, never the detail).
22
+
23
+ @prefix apvr: <https://agenticprimitives.dev/ns/verification-receipt#> .
24
+ @prefix ap: <https://agenticprimitives.dev/ns/core#> .
25
+ @prefix apdel: <https://agenticprimitives.dev/ns/delegation#> .
26
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
27
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
28
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
29
+ @prefix prov: <http://www.w3.org/ns/prov#> .
30
+
31
+ apvr: a owl:Ontology ;
32
+ rdfs:label "Agentic Primitives — verification-receipt provenance ontology" ;
33
+ owl:versionInfo "0.1.0" ;
34
+ rdfs:comment "Spec 303: execution-time verification as PROV-O provenance. Public receipt = commitment entity; private detail = the PROV agent-linkage, vault-resident." .
35
+
36
+ # ─── The activity ─────────────────────────────────────────────────────
37
+
38
+ apvr:VerificationActivity a owl:Class ;
39
+ rdfs:subClassOf prov:Activity ;
40
+ rdfs:label "Verification Activity" ;
41
+ rdfs:comment "One execution-time verification: signature check, transaction-parameters-vs-scope comparison, current-revocation check (the verifier duties). prov:wasAssociatedWith the verifying service agent; prov:used the delegation, invocation proof, and chain status evidence." .
42
+
43
+ # ─── The artifacts (prov:Entity) ──────────────────────────────────────
44
+
45
+ apvr:VerificationReceipt a owl:Class ;
46
+ rdfs:subClassOf prov:Entity ;
47
+ rdfs:label "Verification Receipt (public)" ;
48
+ rdfs:comment "The commitment-only public artifact (VerificationReceiptV1). prov:wasGeneratedBy a VerificationActivity; prov:wasAttributedTo the VERIFIER only (Mode-1 public service agent). Person-linked values appear ONLY as HMAC commitments — no PROV edge to the principal here, by design." .
49
+
50
+ apvr:VerificationReceiptDetail a owl:Class ;
51
+ rdfs:subClassOf prov:Entity ;
52
+ rdfs:label "Verification Receipt Detail (private)" ;
53
+ rdfs:comment "The vault-resident opening material (VerificationReceiptDetailV1). Carries the PROV agent-linkage the public receipt withholds: prov:wasAttributedTo the principal, and the delegate apvr:onBehalfOf the principal. DecryptGrant-gated; destroying it (with the receiptKey) is the erasure path." .
54
+
55
+ apvr:ChainStatusEvidence a owl:Class ;
56
+ rdfs:subClassOf prov:Entity ;
57
+ rdfs:label "Chain Status Evidence" ;
58
+ rdfs:comment "Duty-3 evidence prov:used by the activity: revocation status at (chainId, blockNumber, blockHash). Produced by the chain-state authority reader (spec 289)." .
59
+
60
+ # ─── Delegation grounding ─────────────────────────────────────────────
61
+ # First PROV declaration of the delegation artifact (the apdel namespace
62
+ # existed as a TS constant only). The EIP-712 delegation IS a prov:Entity;
63
+ # the AUTHORITY RELATION it encodes is prov:actedOnBehalfOf between the
64
+ # delegate and the principal — PROV-O's native modeling of exactly the
65
+ # "acting on behalf" problem the receipts layer exists to evidence.
66
+
67
+ apdel:Delegation a owl:Class ;
68
+ rdfs:subClassOf prov:Entity ;
69
+ rdfs:label "Delegation" ;
70
+ rdfs:comment "An EIP-712 caveat-scoped delegation (the @agenticprimitives/delegation grant). As provenance: the entity whose verification licenses an apvr:onBehalfOf (⊑ prov:actedOnBehalfOf) relation between delegate and principal." .
71
+
72
+ # ─── PROV property specializations ────────────────────────────────────
73
+
74
+ apvr:onBehalfOf a owl:ObjectProperty ;
75
+ rdfs:subPropertyOf prov:actedOnBehalfOf ;
76
+ rdfs:label "on behalf of" ;
77
+ rdfs:domain prov:Agent ;
78
+ rdfs:range prov:Agent ;
79
+ rdfs:comment "The delegated-authority relation the receipt attests: the delegate (session key / service agent) acted on behalf of the principal Smart Agent, under a verified delegation. PRIVATE-detail projection only for person principals (ADR-0010 amendment)." .
80
+
81
+ apvr:usedDelegation a owl:ObjectProperty ;
82
+ rdfs:subPropertyOf prov:used ;
83
+ rdfs:label "used delegation" ;
84
+ rdfs:domain apvr:VerificationActivity ;
85
+ rdfs:range apdel:Delegation ;
86
+ rdfs:comment "The activity consumed this delegation as its authority input (referenced by EIP-712 hash on the wire)." .
87
+
88
+ apvr:usedStatusEvidence a owl:ObjectProperty ;
89
+ rdfs:subPropertyOf prov:used ;
90
+ rdfs:label "used status evidence" ;
91
+ rdfs:domain apvr:VerificationActivity ;
92
+ rdfs:range apvr:ChainStatusEvidence .
93
+
94
+ apvr:opensReceipt a owl:ObjectProperty ;
95
+ rdfs:label "opens receipt" ;
96
+ rdfs:domain apvr:VerificationReceiptDetail ;
97
+ rdfs:range apvr:VerificationReceipt ;
98
+ rdfs:comment "The detail's receiptKey opens the receipt's commitments (the dispute path). Deliberately NOT a prov:wasDerivedFrom — both entities are co-generated by the activity; this is the opening relation." .
99
+
100
+ # ─── Datatype properties (wire-shape projection) ──────────────────────
101
+
102
+ apvr:decision a owl:DatatypeProperty ;
103
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string ;
104
+ rdfs:comment "'allow' | 'deny'." .
105
+
106
+ apvr:reasonCode a owl:DatatypeProperty ;
107
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string ;
108
+ rdfs:comment "Coarse public taxonomy only — never the private deny detail." .
109
+
110
+ apvr:scopeDecision a owl:DatatypeProperty ;
111
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string ;
112
+ rdfs:comment "'in_scope' | 'out_of_scope' | 'not_evaluated' — never a verdict that wasn't computed." .
113
+
114
+ apvr:verifiedAtBucket a owl:DatatypeProperty ;
115
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:date ;
116
+ rdfs:comment "UTC-day bucket. The exact prov:generatedAtTime lives on the PRIVATE detail only (timestamp coarsening is part of the privacy split)." .
117
+
118
+ apvr:principalCommitment a owl:DatatypeProperty ;
119
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string ;
120
+ rdfs:comment "HMAC-SHA256(receiptKey, principal) — the public stand-in for the withheld prov:actedOnBehalfOf target." .
121
+
122
+ apvr:argsCommitment a owl:DatatypeProperty ;
123
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string .
124
+
125
+ apvr:receiptHash a owl:DatatypeProperty ;
126
+ rdfs:domain apvr:VerificationReceipt ; rdfs:range xsd:string ;
127
+ rdfs:comment "sha256 over the canonical body; the verifier's signature is over this." .