@agenticprimitives/ontology 1.0.0-alpha.6 → 1.0.0-alpha.8
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/README.md +42 -21
- package/cbox/content-vocabulary.ttl +52 -0
- package/context.jsonld +4 -0
- package/dist/artifacts.d.ts +2 -2
- package/dist/artifacts.d.ts.map +1 -1
- package/dist/artifacts.js +4 -0
- package/dist/artifacts.js.map +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/tbox/content.ttl +53 -0
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# @agenticprimitives/ontology
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
source of truth that the on-chain ontology ([ADR-0009](../../docs/architecture/decisions/0009-on-chain-ontology-shacl-naming.md))
|
|
5
|
-
instantiates and that [`identity-directory`](../identity-directory) (spec 223)
|
|
6
|
-
conforms to.
|
|
3
|
+
**A trust substrate is only as coherent as its vocabulary.** When thirty packages, forty-two contracts, and a knowledge graph all talk about agents, credentials, custody, and delegation, "what exactly is a `CredentialFacet`" cannot have thirty answers. This package is the monorepo-wide formal vocabulary — the off-chain source of truth that the on-chain ontology ([ADR-0009](../../docs/architecture/decisions/0009-on-chain-ontology-shacl-naming.md)) instantiates and that [`identity-directory`](../identity-directory) (spec 223) conforms to.
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
for the
|
|
5
|
+
It is deliberately declarative: it names and constrains, it never authorizes. The vocabulary root depends on nothing — not even `@agenticprimitives/types` — so every other package can reference the same IRIs without inverting the dependency graph.
|
|
6
|
+
|
|
7
|
+
> Part of [agenticprimitives](../../README.md) — the trust substrate for the agent economy: one canonical Smart Agent identity with custody, delegation, naming, credentials, and audit evidence designed as one system.
|
|
8
|
+
|
|
9
|
+
See [spec 225](../../specs/225-ontology.md) for the full contract and [ADR-0018](../../docs/architecture/decisions/0018-agenticprimitives-wide-formal-ontology.md) for the decision.
|
|
11
10
|
|
|
12
11
|
## Layout (T-box / C-box / A-box)
|
|
13
12
|
|
|
@@ -16,12 +15,11 @@ context.jsonld @context — namespace prefix → IRI bindings
|
|
|
16
15
|
tbox/ RDFS/OWL schema (classes + properties), per domain
|
|
17
16
|
cbox/ SHACL shapes + SKOS controlled vocabularies (codelists)
|
|
18
17
|
abox/ example / fixture instances (tests + golden vectors only)
|
|
18
|
+
mappings/ external-standard crosswalks (HCS / ERC-8004, spec 226)
|
|
19
19
|
src/index.ts typed IRI constants + artifact paths
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
(`agentictrustlabs/smart-agent/docs/ontology`): T-box = terminology, C-box =
|
|
24
|
-
constraints + controlled vocabularies, A-box = instances.
|
|
22
|
+
T-box = terminology, C-box = constraints + controlled vocabularies, A-box = instances.
|
|
25
23
|
|
|
26
24
|
## Usage
|
|
27
25
|
|
|
@@ -32,20 +30,43 @@ CLASS.CanonicalAgentId; // "https://agenticprimitives.dev/ns/core#CanonicalAgent
|
|
|
32
30
|
artifactPath(ARTIFACTS.tbox[0]); // absolute path to tbox/core.ttl — load into a SPARQL store
|
|
33
31
|
```
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
Two entry points, split on purpose:
|
|
34
|
+
|
|
35
|
+
- **Main entry (browser-safe)** — pure IRI constants: `NS`, `CLASS`, `PREDICATE`, `SHAPE`, `ONTOLOGY_VERSION`. No Node builtins; this is what `identity-directory` (and through it, browser apps) imports.
|
|
36
|
+
- **`/artifacts` subpath (Node-only)** — `ARTIFACTS` + `artifactPath(rel)` to resolve the shipped TTL/JSON-LD files for a SPARQL loader or SHACL engine. Server-side only.
|
|
37
|
+
|
|
38
|
+
## How it's different
|
|
39
|
+
|
|
40
|
+
Generic SKOS/SHACL toolchains manage vocabularies as documents — governed in an editor, detached from the systems that depend on them, drifting the moment runtime code changes. Here the vocabulary is load-bearing and lockstep-checked in three directions:
|
|
41
|
+
|
|
42
|
+
1. **On chain** — a shape or predicate here must match its on-chain counterpart in `OntologyTermRegistry` / `ShapeRegistry` (spec 225 §8); drift is logged as a finding, not tolerated as skew.
|
|
43
|
+
2. **In TypeScript** — the IRIs mirror the branded types in [`types`](../types) (`CanonicalAgentId`, `Assurance`, …). One brand; this package names the IRI, never redefines the type.
|
|
44
|
+
3. **Across standards** — `mappings/*.ttl` carries explicit crosswalks to external agent-identity standards (HCS, ERC-8004) instead of informal "roughly corresponds to" prose.
|
|
45
|
+
|
|
46
|
+
And it ships light: no heavy RDF/SHACL libraries in the published surface — consumers wire their own engines against the artifacts.
|
|
39
47
|
|
|
40
|
-
## Scope
|
|
48
|
+
## Scope
|
|
41
49
|
|
|
42
|
-
Bounded to the agent-trust core
|
|
43
|
-
audit, naming, org. Marketplace / intents / geo are out of scope (spec 225 §11).
|
|
50
|
+
Bounded to the agent-trust core — identity, credential, custody, delegation, audit, naming, org — plus the substrate-spine T-box class definitions (spec 225 §11.5). Runtime SHACL shapes for spine capabilities live in their owning packages; vertical vocabulary is out of scope entirely ([ADR-0021](../../docs/architecture/decisions/0021-generic-packages-vs-white-label-apps.md)).
|
|
44
51
|
|
|
45
52
|
## What this is NOT
|
|
46
53
|
|
|
47
|
-
- Not the TS types — `@agenticprimitives/types` owns `CanonicalAgentId`,
|
|
48
|
-
`Assurance`, etc.; this package names the IRIs. One brand.
|
|
54
|
+
- Not the TS types — `@agenticprimitives/types` owns `CanonicalAgentId`, `Assurance`, etc.; this package names the IRIs. One brand.
|
|
49
55
|
- Not the runtime CAIP-10 builder — that is `@agenticprimitives/agent-profile`.
|
|
50
|
-
- Not an authority — it names
|
|
51
|
-
|
|
56
|
+
- Not an authority — it names and validates; it never grants custody or mints identity.
|
|
57
|
+
|
|
58
|
+
## Status
|
|
59
|
+
|
|
60
|
+
**Phase 1 implemented** — the T/C/A-box artifacts, mappings, and the declarative TS surface ship today. SHACL-engine validation over instances and the live A-box knowledge graph (a SPARQL store — Ontotext GraphDB reference, projected by `identity-directory`) are Phase 2, wired by consumers per spec 225 §11 — and even then the ontology stays a validator, never an authority.
|
|
61
|
+
|
|
62
|
+
> Testnet/pilot-ready. Production launch is gated on the public checklist in the root README — including third-party contract audit and governance key rotation. Track every security finding live in [`docs/audits/findings.yaml`](../../docs/audits/findings.yaml).
|
|
63
|
+
|
|
64
|
+
**Authoritative spec:** [`specs/225-ontology.md`](../../specs/225-ontology.md). Bounded surface: `CLAUDE.md` + `capability.manifest.json`.
|
|
65
|
+
|
|
66
|
+
## Build
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm --filter @agenticprimitives/ontology typecheck
|
|
70
|
+
pnpm --filter @agenticprimitives/ontology test
|
|
71
|
+
pnpm --filter @agenticprimitives/ontology build
|
|
72
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# C-box — verifiable-content codelists + shapes (spec 266). On-chain-bound where
|
|
2
|
+
# noted (lockstep, ADR-0009). NEUTRAL substrate — no domain/faith vocabulary.
|
|
3
|
+
|
|
4
|
+
@prefix apcnt: <https://agenticprimitives.dev/ns/content#> .
|
|
5
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
6
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
7
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
8
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
9
|
+
|
|
10
|
+
# accessPolicy — gates the resolve/retrieve path.
|
|
11
|
+
apcnt:accessPolicyScheme a skos:ConceptScheme ;
|
|
12
|
+
rdfs:label "accessPolicy" ;
|
|
13
|
+
rdfs:comment "Who may retrieve a rendering: public (no entitlement) < licensed (entitlement required) < private (entitlement + issuer scope)." ;
|
|
14
|
+
skos:hasTopConcept apcnt:Public, apcnt:Licensed, apcnt:Private .
|
|
15
|
+
apcnt:Public a skos:Concept ; skos:inScheme apcnt:accessPolicyScheme ; skos:prefLabel "public" ;
|
|
16
|
+
rdfs:comment "Anyone may retrieve; descriptor + text returned without an entitlement." .
|
|
17
|
+
apcnt:Licensed a skos:Concept ; skos:inScheme apcnt:accessPolicyScheme ; skos:prefLabel "licensed" ;
|
|
18
|
+
rdfs:comment "Retrieval requires a valid Entitlement credential. Descriptor (pointer + commitment) may be public; text is gated." .
|
|
19
|
+
apcnt:Private a skos:Concept ; skos:inScheme apcnt:accessPolicyScheme ; skos:prefLabel "private" ;
|
|
20
|
+
rdfs:comment "Retrieval requires an issuer-scoped Entitlement." .
|
|
21
|
+
|
|
22
|
+
# proofPolicy — how a descriptor's authenticity/inclusion is proven.
|
|
23
|
+
apcnt:proofPolicyScheme a skos:ConceptScheme ;
|
|
24
|
+
rdfs:label "proofPolicy" ;
|
|
25
|
+
skos:hasTopConcept apcnt:Signature, apcnt:MerkleInclusion, apcnt:Zk .
|
|
26
|
+
apcnt:Signature a skos:Concept ; skos:inScheme apcnt:proofPolicyScheme ; skos:prefLabel "signature" ;
|
|
27
|
+
rdfs:comment "Issuer ERC-1271 signature over the descriptor hash." .
|
|
28
|
+
apcnt:MerkleInclusion a skos:Concept ; skos:inScheme apcnt:proofPolicyScheme ; skos:prefLabel "merkle-inclusion" ;
|
|
29
|
+
rdfs:comment "Descriptor commitment is a leaf provable under the corpusRoot." .
|
|
30
|
+
apcnt:Zk a skos:Concept ; skos:inScheme apcnt:proofPolicyScheme ; skos:prefLabel "zk" ;
|
|
31
|
+
rdfs:comment "Zero-knowledge inclusion/citation proof. RESERVED (spec 266 Phase 4)." .
|
|
32
|
+
|
|
33
|
+
# ContentDescriptorShape — encodes ADR-0033 R3 (no inline text) + issuer binding.
|
|
34
|
+
apcnt:ContentDescriptorShape a sh:NodeShape ;
|
|
35
|
+
rdfs:label "ContentDescriptor shape" ;
|
|
36
|
+
sh:targetClass apcnt:ContentDescriptor ;
|
|
37
|
+
sh:property [
|
|
38
|
+
sh:path apcnt:commitsTo ;
|
|
39
|
+
sh:minCount 1 ; sh:maxCount 1 ;
|
|
40
|
+
sh:message "A ContentDescriptor MUST carry exactly one commitment (keccak256 of the off-chain rendering)."
|
|
41
|
+
] ;
|
|
42
|
+
sh:property [
|
|
43
|
+
sh:path apcnt:issuedBy ;
|
|
44
|
+
sh:minCount 1 ; sh:maxCount 1 ;
|
|
45
|
+
sh:message "A ContentDescriptor MUST name exactly one issuer Smart Agent."
|
|
46
|
+
] ;
|
|
47
|
+
sh:property [
|
|
48
|
+
sh:path apcnt:retrievalPointer ;
|
|
49
|
+
sh:datatype xsd:string ;
|
|
50
|
+
sh:minCount 1 ; sh:maxCount 1 ;
|
|
51
|
+
sh:message "A ContentDescriptor MUST carry a retrievalPointer (a locator), NEVER the rendering text itself (ADR-0033 R3)."
|
|
52
|
+
] .
|
package/context.jsonld
CHANGED
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"apatt": "https://agenticprimitives.dev/ns/attestation#",
|
|
20
20
|
"apvc": "https://agenticprimitives.dev/ns/verifiable-credential#",
|
|
21
21
|
|
|
22
|
+
"aps": "https://agenticprimitives.dev/ns/skill#",
|
|
23
|
+
"apg": "https://agenticprimitives.dev/ns/geo#",
|
|
24
|
+
"apcnt": "https://agenticprimitives.dev/ns/content#",
|
|
25
|
+
|
|
22
26
|
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
|
23
27
|
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
|
|
24
28
|
"owl": "http://www.w3.org/2002/07/owl#",
|
package/dist/artifacts.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const ARTIFACTS: {
|
|
7
7
|
readonly context: "context.jsonld";
|
|
8
|
-
readonly tbox: readonly ["tbox/core.ttl", "tbox/identity.ttl", "tbox/intents.ttl", "tbox/constraints.ttl", "tbox/resolution.ttl", "tbox/agreement.ttl", "tbox/payment.ttl", "tbox/fulfillment.ttl", "tbox/attestation.ttl", "tbox/skills.ttl", "tbox/geo.ttl"];
|
|
9
|
-
readonly cbox: readonly ["cbox/canonical-agent-id-shape.shacl.ttl", "cbox/controlled-vocabularies.ttl", "cbox/skill-vocabulary.ttl", "cbox/geo-vocabulary.ttl"];
|
|
8
|
+
readonly tbox: readonly ["tbox/core.ttl", "tbox/identity.ttl", "tbox/intents.ttl", "tbox/constraints.ttl", "tbox/resolution.ttl", "tbox/agreement.ttl", "tbox/payment.ttl", "tbox/fulfillment.ttl", "tbox/attestation.ttl", "tbox/skills.ttl", "tbox/geo.ttl", "tbox/content.ttl"];
|
|
9
|
+
readonly cbox: readonly ["cbox/canonical-agent-id-shape.shacl.ttl", "cbox/controlled-vocabularies.ttl", "cbox/skill-vocabulary.ttl", "cbox/geo-vocabulary.ttl", "cbox/content-vocabulary.ttl"];
|
|
10
10
|
readonly mappings: readonly ["mappings/spine-standards.ttl"];
|
|
11
11
|
};
|
|
12
12
|
/**
|
package/dist/artifacts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;CA8BZ,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
package/dist/artifacts.js
CHANGED
|
@@ -27,6 +27,8 @@ export const ARTIFACTS = {
|
|
|
27
27
|
// Generic skills + geo substrate (spec 251)
|
|
28
28
|
'tbox/skills.ttl',
|
|
29
29
|
'tbox/geo.ttl',
|
|
30
|
+
// Generic verifiable-content substrate (spec 266)
|
|
31
|
+
'tbox/content.ttl',
|
|
30
32
|
],
|
|
31
33
|
cbox: [
|
|
32
34
|
'cbox/canonical-agent-id-shape.shacl.ttl',
|
|
@@ -34,6 +36,8 @@ export const ARTIFACTS = {
|
|
|
34
36
|
// Generic skills + geo codelists — on-chain-bound kinds (lockstep, ADR-0009)
|
|
35
37
|
'cbox/skill-vocabulary.ttl',
|
|
36
38
|
'cbox/geo-vocabulary.ttl',
|
|
39
|
+
// Verifiable-content codelists + ContentDescriptor shape (spec 266)
|
|
40
|
+
'cbox/content-vocabulary.ttl',
|
|
37
41
|
],
|
|
38
42
|
mappings: ['mappings/spine-standards.ttl'],
|
|
39
43
|
};
|
package/dist/artifacts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,0EAA0E;AAC1E,8EAA8E;AAC9E,6EAA6E;AAC7E,yCAAyC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAAE;QACJ,4BAA4B;QAC5B,eAAe;QACf,mBAAmB;QACnB,8DAA8D;QAC9D,kBAAkB;QAClB,sBAAsB;QACtB,qBAAqB;QACrB,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;QACtB,sBAAsB;QACtB,4CAA4C;QAC5C,iBAAiB;QACjB,cAAc;
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,0EAA0E;AAC1E,8EAA8E;AAC9E,6EAA6E;AAC7E,yCAAyC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAAE;QACJ,4BAA4B;QAC5B,eAAe;QACf,mBAAmB;QACnB,8DAA8D;QAC9D,kBAAkB;QAClB,sBAAsB;QACtB,qBAAqB;QACrB,oBAAoB;QACpB,kBAAkB;QAClB,sBAAsB;QACtB,sBAAsB;QACtB,4CAA4C;QAC5C,iBAAiB;QACjB,cAAc;QACd,kDAAkD;QAClD,kBAAkB;KACnB;IACD,IAAI,EAAE;QACJ,yCAAyC;QACzC,kCAAkC;QAClC,6EAA6E;QAC7E,2BAA2B;QAC3B,yBAAyB;QACzB,oEAAoE;QACpE,6BAA6B;KAC9B;IACD,QAAQ,EAAE,CAAC,8BAA8B,CAAC;CAClC,CAAC;AAEX;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,YAAoB;IAC/C,OAAO,aAAa,CAAC,IAAI,GAAG,CAAC,MAAM,YAAY,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const NS: {
|
|
|
31
31
|
readonly apvc: "https://agenticprimitives.dev/ns/verifiable-credential#";
|
|
32
32
|
readonly aps: "https://agenticprimitives.dev/ns/skill#";
|
|
33
33
|
readonly apg: "https://agenticprimitives.dev/ns/geo#";
|
|
34
|
+
readonly apcnt: "https://agenticprimitives.dev/ns/content#";
|
|
34
35
|
};
|
|
35
36
|
/** Class IRIs (T-box). Each is `<namespace><LocalName>`. */
|
|
36
37
|
export declare const CLASS: {
|
|
@@ -95,6 +96,11 @@ export declare const CLASS: {
|
|
|
95
96
|
readonly TrustUpdate: "https://agenticprimitives.dev/ns/attestation#TrustUpdate";
|
|
96
97
|
readonly AssociationCredential: "https://agenticprimitives.dev/ns/attestation#AssociationCredential";
|
|
97
98
|
readonly VerifiableCredential: "https://agenticprimitives.dev/ns/verifiable-credential#VerifiableCredential";
|
|
99
|
+
readonly CanonicalLocus: "https://agenticprimitives.dev/ns/content#CanonicalLocus";
|
|
100
|
+
readonly CorpusManifest: "https://agenticprimitives.dev/ns/content#CorpusManifest";
|
|
101
|
+
readonly ContentDescriptor: "https://agenticprimitives.dev/ns/content#ContentDescriptor";
|
|
102
|
+
readonly CitationAssertion: "https://agenticprimitives.dev/ns/content#CitationAssertion";
|
|
103
|
+
readonly Entitlement: "https://agenticprimitives.dev/ns/content#Entitlement";
|
|
98
104
|
};
|
|
99
105
|
/** Predicate / property IRIs (T-box). */
|
|
100
106
|
export declare const PREDICATE: {
|
|
@@ -185,6 +191,16 @@ export declare const PREDICATE: {
|
|
|
185
191
|
readonly citesValidation: "https://agenticprimitives.dev/ns/attestation#citesValidation";
|
|
186
192
|
readonly validatorKind: "https://agenticprimitives.dev/ns/attestation#validatorKind";
|
|
187
193
|
readonly offchainCredentialStatusList: "https://agenticprimitives.dev/ns/attestation#offchainCredentialStatusList";
|
|
194
|
+
readonly locusOf: "https://agenticprimitives.dev/ns/content#locusOf";
|
|
195
|
+
readonly renderedBy: "https://agenticprimitives.dev/ns/content#renderedBy";
|
|
196
|
+
readonly commitsTo: "https://agenticprimitives.dev/ns/content#commitsTo";
|
|
197
|
+
readonly retrievalPointer: "https://agenticprimitives.dev/ns/content#retrievalPointer";
|
|
198
|
+
readonly corpusRoot: "https://agenticprimitives.dev/ns/content#corpusRoot";
|
|
199
|
+
readonly issuedBy: "https://agenticprimitives.dev/ns/content#issuedBy";
|
|
200
|
+
readonly accessPolicy: "https://agenticprimitives.dev/ns/content#accessPolicy";
|
|
201
|
+
readonly proofPolicy: "https://agenticprimitives.dev/ns/content#proofPolicy";
|
|
202
|
+
readonly citesLocus: "https://agenticprimitives.dev/ns/content#citesLocus";
|
|
203
|
+
readonly underEntitlement: "https://agenticprimitives.dev/ns/content#underEntitlement";
|
|
188
204
|
};
|
|
189
205
|
/** SHACL shape IRIs (C-box).
|
|
190
206
|
*
|
|
@@ -197,5 +213,6 @@ export declare const PREDICATE: {
|
|
|
197
213
|
export declare const SHAPE: {
|
|
198
214
|
readonly CanonicalAgentId: "https://agenticprimitives.dev/ns/core#CanonicalAgentIdShape";
|
|
199
215
|
readonly CredentialFacet: "https://agenticprimitives.dev/ns/credential#CredentialFacetShape";
|
|
216
|
+
readonly ContentDescriptor: "https://agenticprimitives.dev/ns/content#ContentDescriptorShape";
|
|
200
217
|
};
|
|
201
218
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;CA0BL,CAAC;AAEX,4DAA4D;AAC5D,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ER,CAAC;AAEX,yCAAyC;AACzC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GZ,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;;;;CAKR,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,9 @@ export const NS = {
|
|
|
52
52
|
// Generic skills + geo substrate (spec 251)
|
|
53
53
|
aps: 'https://agenticprimitives.dev/ns/skill#',
|
|
54
54
|
apg: 'https://agenticprimitives.dev/ns/geo#',
|
|
55
|
+
// Generic verifiable-content substrate (spec 266) — content is scheme-anchored,
|
|
56
|
+
// NOT a Smart Agent facet (ADR-0033). Zero vertical/faith vocabulary.
|
|
57
|
+
apcnt: 'https://agenticprimitives.dev/ns/content#',
|
|
55
58
|
};
|
|
56
59
|
/** Class IRIs (T-box). Each is `<namespace><LocalName>`. */
|
|
57
60
|
export const CLASS = {
|
|
@@ -125,6 +128,12 @@ export const CLASS = {
|
|
|
125
128
|
AssociationCredential: `${NS.apatt}AssociationCredential`,
|
|
126
129
|
// Phase-1.5: VC envelope
|
|
127
130
|
VerifiableCredential: `${NS.apvc}VerifiableCredential`,
|
|
131
|
+
// Verifiable-content substrate (spec 266; FRBR Work/Manifestation/Item)
|
|
132
|
+
CanonicalLocus: `${NS.apcnt}CanonicalLocus`,
|
|
133
|
+
CorpusManifest: `${NS.apcnt}CorpusManifest`,
|
|
134
|
+
ContentDescriptor: `${NS.apcnt}ContentDescriptor`,
|
|
135
|
+
CitationAssertion: `${NS.apcnt}CitationAssertion`,
|
|
136
|
+
Entitlement: `${NS.apcnt}Entitlement`,
|
|
128
137
|
};
|
|
129
138
|
/** Predicate / property IRIs (T-box). */
|
|
130
139
|
export const PREDICATE = {
|
|
@@ -223,6 +232,17 @@ export const PREDICATE = {
|
|
|
223
232
|
citesValidation: `${NS.apatt}citesValidation`,
|
|
224
233
|
validatorKind: `${NS.apatt}validatorKind`,
|
|
225
234
|
offchainCredentialStatusList: `${NS.apatt}offchainCredentialStatusList`,
|
|
235
|
+
// Verifiable-content substrate (spec 266)
|
|
236
|
+
locusOf: `${NS.apcnt}locusOf`,
|
|
237
|
+
renderedBy: `${NS.apcnt}renderedBy`,
|
|
238
|
+
commitsTo: `${NS.apcnt}commitsTo`,
|
|
239
|
+
retrievalPointer: `${NS.apcnt}retrievalPointer`,
|
|
240
|
+
corpusRoot: `${NS.apcnt}corpusRoot`,
|
|
241
|
+
issuedBy: `${NS.apcnt}issuedBy`,
|
|
242
|
+
accessPolicy: `${NS.apcnt}accessPolicy`,
|
|
243
|
+
proofPolicy: `${NS.apcnt}proofPolicy`,
|
|
244
|
+
citesLocus: `${NS.apcnt}citesLocus`,
|
|
245
|
+
underEntitlement: `${NS.apcnt}underEntitlement`,
|
|
226
246
|
};
|
|
227
247
|
/** SHACL shape IRIs (C-box).
|
|
228
248
|
*
|
|
@@ -235,6 +255,8 @@ export const PREDICATE = {
|
|
|
235
255
|
export const SHAPE = {
|
|
236
256
|
CanonicalAgentId: `${NS.ap}CanonicalAgentIdShape`,
|
|
237
257
|
CredentialFacet: `${NS.apcr}CredentialFacetShape`,
|
|
258
|
+
// Verifiable-content substrate (spec 266) — encodes ADR-0033 R3 (no inline text).
|
|
259
|
+
ContentDescriptor: `${NS.apcnt}ContentDescriptorShape`,
|
|
238
260
|
};
|
|
239
261
|
// `ARTIFACTS` + `artifactPath` (Node-only, `node:url`) live in the
|
|
240
262
|
// `@agenticprimitives/ontology/artifacts` subpath — keep this entry browser-safe.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAC9E,2EAA2E;AAC3E,iDAAiD;AACjD,EAAE;AACF,OAAO;AACP,iDAAiD;AACjD,uFAAuF;AACvF,mGAAmG;AACnG,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,gFAAgF;AAChF,iFAAiF;AACjF,2CAA2C;AAE3C,+DAA+D;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAgB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,qBAAqB;IACrB,EAAE,EAAE,wCAAwC;IAC5C,IAAI,EAAE,4CAA4C;IAClD,IAAI,EAAE,8CAA8C;IACpD,KAAK,EAAE,8CAA8C;IACrD,KAAK,EAAE,2CAA2C;IAClD,K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AAY,EAAE,GAAG,EAAE,CAAC,KAAK,cAAc;IACvC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,aAAa;IACrC,UAAU,EAAE,GAAG,EAAE,CAAC,KAAK,YAAY;IACnC,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK,kBAAkB;CACvC,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,uBAAuB;IACjD,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,sBAAsB;IACjD,kFAAkF;IAClF,iBAAiB,EAAE,GAAG,EAAE,CAAC,KAAK,wBAAwB;CAC9C,CAAC;AAEX,mEAAmE;AACnE,kFAAkF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticprimitives/ontology",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Monorepo-wide formal vocabulary (RDFS/OWL T-box + SHACL/SKOS C-box + A-box fixtures) for agentic primitives. Off-chain source of truth the on-chain ontology (ADR-0009) instantiates. Ships TTL/JSON-LD artifacts + typed IRI constants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"build": "tsc -p tsconfig.build.json",
|
|
53
53
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
54
54
|
"test": "vitest run",
|
|
55
|
-
"test:unit": "vitest run test/unit",
|
|
55
|
+
"test:unit": "vitest run test/unit --passWithNoTests",
|
|
56
56
|
"test:integration": "vitest run test/integration --passWithNoTests",
|
|
57
57
|
"test:watch": "vitest",
|
|
58
58
|
"clean": "rm -rf dist"
|
package/tbox/content.ttl
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# T-box — generic verifiable-content substrate (spec 266). Names, resolves, and
|
|
2
|
+
# verifies CONTENT that lives off-platform and is controlled by third-party rights
|
|
3
|
+
# holders. NEUTRAL substrate — NO domain/faith/vertical vocabulary (ADR-0033 R4).
|
|
4
|
+
#
|
|
5
|
+
# FRBR-aligned: CanonicalLocus = Work (edition-independent coordinate, scheme-
|
|
6
|
+
# anchored, never an Agent); CorpusManifest = Expression/Manifestation (issuer-
|
|
7
|
+
# owned, committed); ContentDescriptor = Item (the deliverable leaf — points AT
|
|
8
|
+
# off-chain text, NEVER contains it; ADR-0033 R3).
|
|
9
|
+
|
|
10
|
+
@prefix apcnt: <https://agenticprimitives.dev/ns/content#> .
|
|
11
|
+
@prefix ap: <https://agenticprimitives.dev/ns/core#> .
|
|
12
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
13
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
14
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
15
|
+
|
|
16
|
+
apcnt:CanonicalLocus a rdfs:Class ;
|
|
17
|
+
rdfs:label "CanonicalLocus" ;
|
|
18
|
+
rdfs:comment "FRBR Work. An edition-independent coordinate into a structured corpus (a passage address). Identified by a deterministic locusId computed from a normalized (scheme, path) reference. SCHEME-anchored: never registered, never an Agent, has no owner (ADR-0033)." .
|
|
19
|
+
|
|
20
|
+
apcnt:CorpusManifest a rdfs:Class ;
|
|
21
|
+
rdfs:label "CorpusManifest" ;
|
|
22
|
+
rdfs:comment "FRBR Expression/Manifestation. A versioned body of renderings published by an issuer Smart Agent, committed by a Merkle corpusRoot + a signed manifestHash. Public anchor; the rendering text stays off-platform." .
|
|
23
|
+
|
|
24
|
+
apcnt:ContentDescriptor a rdfs:Class ;
|
|
25
|
+
rdfs:label "ContentDescriptor" ;
|
|
26
|
+
rdfs:comment "FRBR Item. The deliverable trust leaf for one (corpus, locus): commitment + retrievalPointer + issuer signature + access policy. Points AT off-chain text; NEVER contains it (ADR-0033 R3). Trust = issuer signature, not platform claim (R5)." .
|
|
27
|
+
|
|
28
|
+
apcnt:CitationAssertion a rdfs:Class ;
|
|
29
|
+
rdfs:label "CitationAssertion" ;
|
|
30
|
+
rdfs:comment "A provenance credential: a party cited a locus from a corpus, the rendering commitment matched, under a given entitlement. The AI-safe citation record (W3C VC 2.0 + PROV-O)." .
|
|
31
|
+
|
|
32
|
+
apcnt:Entitlement a rdfs:Class ;
|
|
33
|
+
rdfs:label "Entitlement" ;
|
|
34
|
+
rdfs:comment "A credential asserting a subject Smart Agent may access a corpus under stated terms. Gates the resolve/retrieve path for licensed/private corpora; optional for public ones." .
|
|
35
|
+
|
|
36
|
+
apcnt:locusOf a rdf:Property ; rdfs:domain apcnt:ContentDescriptor ; rdfs:range apcnt:CanonicalLocus ;
|
|
37
|
+
rdfs:comment "The CanonicalLocus (by locusId) this descriptor renders." .
|
|
38
|
+
apcnt:renderedBy a rdf:Property ; rdfs:domain apcnt:ContentDescriptor ; rdfs:range apcnt:CorpusManifest ;
|
|
39
|
+
rdfs:comment "The CorpusManifest (by corpusRef) this descriptor belongs to." .
|
|
40
|
+
apcnt:commitsTo a rdf:Property ; rdfs:domain apcnt:ContentDescriptor ;
|
|
41
|
+
rdfs:comment "keccak256 of the canonicalized off-chain rendering text. Binds the descriptor to a specific rendering WITHOUT revealing it." .
|
|
42
|
+
apcnt:retrievalPointer a rdf:Property ; rdfs:domain apcnt:ContentDescriptor ;
|
|
43
|
+
rdfs:comment "A URI/locator for the off-chain rendering text. NEVER the text itself (ADR-0033 R3)." .
|
|
44
|
+
apcnt:corpusRoot a rdf:Property ; rdfs:domain apcnt:CorpusManifest ;
|
|
45
|
+
rdfs:comment "Merkle root over the per-locus descriptor commitments of the corpus." .
|
|
46
|
+
apcnt:issuedBy a rdf:Property ; rdfs:domain apcnt:CorpusManifest ; rdfs:range ap:CanonicalAgentId ;
|
|
47
|
+
rdfs:comment "The issuer Smart Agent (Address) that published + signed the corpus/descriptors." .
|
|
48
|
+
apcnt:accessPolicy a rdf:Property ;
|
|
49
|
+
rdfs:comment "An apcnt:accessPolicy value (C-box codelist): public | licensed | private." .
|
|
50
|
+
apcnt:proofPolicy a rdf:Property ;
|
|
51
|
+
rdfs:comment "An apcnt:proofPolicy value (C-box codelist): signature | merkle-inclusion | zk." .
|
|
52
|
+
apcnt:citesLocus a rdf:Property ; rdfs:domain apcnt:CitationAssertion ; rdfs:range apcnt:CanonicalLocus .
|
|
53
|
+
apcnt:underEntitlement a rdf:Property ; rdfs:domain apcnt:CitationAssertion ; rdfs:range apcnt:Entitlement .
|