On this page

property.generic

Intent

A reusable generic definition or a reusable application of another generic definition.

Exact selection subject:

yaml
subject: property.generic

The current Runtime IR is evidence, not authority. Target improvements needed for a usable template contract are called out explicitly.

Scope envelope

ScopeContext
eachproperty.generic: GenericPropertyContext
allproperties.generics: GenericPropertyContext[]
collection candidatescollects.group, collects.feature

For collects.<dimension>, the singular collector is added beside the plural selected-subject array. A collector is valid only when ownership is semantically provable.

Context tree

Context pathTypeMeaning / template use
property.generic.idstringOpaque stable semantic identity.
property.generic.nameNameContextStable semantic identity and finite naming variants.
property.generic.descriptionstring|nullHuman semantic description.
property.generic.tagsstring[]Semantic classifiers; empty when none.
property.generic.explanationsExplanationContext[]Advisory usage/security/implementation notes.
property.generic.groupSemanticLinkContext|nullOwning semantic group.
property.generic.featureSemanticLinkContext|nullCanonical owning feature, when present.
property.generic.lifecycleLifecycleContextDeprecation/removal semantics.
property.generic.kinddefinition|applicationStructural variant.
property.generic.parametersGenericParameterContext[]Definition parameters.
property.generic.parameters[].nameNameContextParameter name.
property.generic.parameters[].descriptionstring|nullParameter meaning.
property.generic.valueTypeContext|nullDefinition body.
property.generic.targetSemanticLinkContext|nullGeneric definition referenced by an application.
property.generic.argumentsTypeContext[]Application arguments.

Usage rules

  • Definition/application remain one subject because they are structural forms of the same semantic concept.
  • Raw #/properties/generics/... is resolved to a semantic link.

Runtime IR implications to audit

  • Properties should gain universal metadata.

Template example — Handlebars / TypeScript generic

hbs
{{#if (eq property.generic.kind "definition")}}
export type {{file.symbol}}<{{#each property.generic.parameters}}{{name.pascal}}{{#unless @last}}, {{/unless}}{{/each}}> =
  {{renderType property.generic.value}};
{{/if}}

The example uses semantic context only. Any renderType/render_type helper shown is a pack-owned macro/partial consuming the documented TypeContext, not hidden Dryv context.

Audit questions

  • Can a real property.generic pack generate code without parsing raw IR storage conventions?
  • Is any field here present only because the current IR happens to store it?
  • Does any nested item need first-class selection of its own?
Search in