`wai registry export` now writes the pin terms into v2 as v1 states them: the ParameterSetPin class, wai:prior and the members pinId, pinSha256, pinDeterminism, pinForm, pinTier and pinSupersedes in v2.ttl; a scoped `prior` term in v2.jsonld whose members are the manifest's own names; and ParameterSetPinShape and SupersedesShape in v2.shapes.ttl, with the tier list taken from codecs::TIER_TOKENS. v1 keeps its additive pin terms. vocab_pin_terms_match_prior_members reads v1 and v2 and holds each scoped term to the pin's serialized members and each shape's tier list to the registered tokens. check_shapes.py gains pin cases (a full and a minimal pin, an unregistered tier, an uppercase digest, a missing determinism, a supersedes with no digest, and a WAI2 component's pin); against the v2 files before this change, the five non-conforming cases conform. The vocab README says what each version carries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
76 lines
2.3 KiB
Text
76 lines
2.3 KiB
Text
{
|
|
"@context": {
|
|
"@version": 1.1,
|
|
"@vocab": "https://wai.transaction.science/vocab/v2#",
|
|
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
"Manifest": "https://wai.transaction.science/vocab/v2#Manifest",
|
|
"Component": "https://wai.transaction.science/vocab/v2#Component",
|
|
"model_requirement": "@nest",
|
|
"capability": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#capability",
|
|
"@type": "@vocab"
|
|
},
|
|
"fallback": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#fallback",
|
|
"@type": "@vocab"
|
|
},
|
|
"companion_of": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#companionOf",
|
|
"@type": "@vocab"
|
|
},
|
|
"media": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#media",
|
|
"@type": "@vocab",
|
|
"@context": {
|
|
"@vocab": "https://wai.transaction.science/vocab/v2#media-"
|
|
}
|
|
},
|
|
"intent": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#intent",
|
|
"@type": "xsd:string"
|
|
},
|
|
"kind": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#payloadKind",
|
|
"@type": "xsd:string"
|
|
},
|
|
"role": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#componentRole",
|
|
"@type": "xsd:string"
|
|
},
|
|
"renditions": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#renditions"
|
|
},
|
|
"target": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#target",
|
|
"@type": "@json"
|
|
},
|
|
"ParameterSetPin": "https://wai.transaction.science/vocab/v2#ParameterSetPin",
|
|
"prior": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#prior",
|
|
"@context": {
|
|
"id": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinId",
|
|
"@type": "xsd:string"
|
|
},
|
|
"sha256": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinSha256",
|
|
"@type": "xsd:string"
|
|
},
|
|
"determinism": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinDeterminism",
|
|
"@type": "xsd:string"
|
|
},
|
|
"form": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinForm",
|
|
"@type": "xsd:string"
|
|
},
|
|
"tier": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinTier"
|
|
},
|
|
"supersedes": {
|
|
"@id": "https://wai.transaction.science/vocab/v2#pinSupersedes"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|