On this page

property.record

Intent

A reusable key/value mapping type.

Exact selection subject:

yaml
subject: property.record

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

Scope envelope

ScopeContext
eachproperty.record: RecordPropertyContext
allproperties.records: RecordPropertyContext[]
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.record.idstringOpaque stable semantic identity.
property.record.nameNameContextStable semantic identity and finite naming variants.
property.record.descriptionstring|nullHuman semantic description.
property.record.tagsstring[]Semantic classifiers; empty when none.
property.record.explanationsExplanationContext[]Advisory usage/security/implementation notes.
property.record.groupSemanticLinkContext|nullOwning semantic group.
property.record.featureSemanticLinkContext|nullCanonical owning feature, when present.
property.record.lifecycleLifecycleContextDeprecation/removal semantics.
property.record.keysTypeContextAllowed key type.
property.record.valuesTypeContextMapped value type.

Usage rules

  • Keep the tree semantic; no JavaScript/Python map spelling belongs here.

Runtime IR implications to audit

  • Properties should gain universal metadata.

Template example — Handlebars / TypeScript record

hbs
export type {{file.symbol}} =
  Record<{{renderType property.record.keys}}, {{renderType property.record.values}}>;

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.record 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