# Context catalog

This is the pack-author index for renderer-facing context paths.

It is intentionally organized by root and nested collection. The subject files remain the authoritative contract pages; this page helps a template author find the right path quickly.

## Always Available Metadata

| Path                       | Type                                                                       | Contract                                                      |
| -------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------- |
| `application`              | `ApplicationContext`                                                       | [metadata/application.md](/pack-builders/context/application) |
| `application.name`         | [`NameContext`](/pack-builders/context/shared-name)                        | Active application name.                                      |
| `application.description`  | `string\|null`                                                             | Application description.                                      |
| `application.tags`         | `string[]`                                                                 | Application tags.                                             |
| `application.explanations` | [`ExplanationContext[]`](shared-explanation.md)                            | Advisory metadata.                                            |
| `application.group`        | [`SemanticLinkContext\|null`](/pack-builders/context/shared-semantic-link) | Optional root/owning group link.                              |
| `file`                     | `FileContext`                                                              | [metadata/file.md](/pack-builders/context/file)               |
| `file.path`                | `FilePathContext`                                                          | Planned output path metadata.                                 |
| `file.symbol`              | `string\|null`                                                             | Single generated symbol when the template declares one.       |
| `file.symbols`             | `map<string,string>`                                                       | Named generated symbols.                                      |
| `file.dependencies[]`      | `GeneratedArtifactReferenceContext[]`                                      | Planned generated dependencies.                               |
| `file.exports[]`           | `GeneratedArtifactReferenceContext[]`                                      | Planned generated exports.                                    |
| `pack`                     | `PackContext`                                                              | [metadata/pack.md](/pack-builders/context/pack)               |

## Scope Metadata

| Path            | Type                                                                       | Contract                                                                                             |
| --------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `group`         | `GroupContext`                                                             | [metadata/group.md](/pack-builders/context/group), available for group or feature collection scopes. |
| `group.name`    | [`NameContext`](/pack-builders/context/shared-name)                        | Group identity and naming variants.                                                                  |
| `group.parent`  | [`SemanticLinkContext\|null`](/pack-builders/context/shared-semantic-link) | Parent group link.                                                                                   |
| `feature`       | `FeatureContext`                                                           | [metadata/feature.md](/pack-builders/context/feature), available for feature collection scopes.      |
| `feature.name`  | [`NameContext`](/pack-builders/context/shared-name)                        | Feature identity and naming variants.                                                                |
| `feature.group` | [`SemanticLinkContext`](/pack-builders/context/shared-semantic-link)       | Owning group link.                                                                                   |

## Selection Roots

| Selection            | Each root            | All root                  | Contract                                                           |
| -------------------- | -------------------- | ------------------------- | ------------------------------------------------------------------ |
| `schema`             | `schema`             | `schemas[]`               | [schema.md](/pack-builders/context/schema)                         |
| `property.primitive` | `property.primitive` | `properties.primitives[]` | [property.primitive.md](/pack-builders/context/property-primitive) |
| `property.enum`      | `property.enum`      | `properties.enums[]`      | [property.enum.md](/pack-builders/context/property-enum)           |
| `property.composite` | `property.composite` | `properties.composites[]` | [property.composite.md](/pack-builders/context/property-composite) |
| `property.literal`   | `property.literal`   | `properties.literals[]`   | [property.literal.md](/pack-builders/context/property-literal)     |
| `property.union`     | `property.union`     | `properties.unions[]`     | [property.union.md](/pack-builders/context/property-union)         |
| `property.record`    | `property.record`    | `properties.records[]`    | [property.record.md](/pack-builders/context/property-record)       |
| `property.tuple`     | `property.tuple`     | `properties.tuples[]`     | [property.tuple.md](/pack-builders/context/property-tuple)         |
| `property.generic`   | `property.generic`   | `properties.generics[]`   | [property.generic.md](/pack-builders/context/property-generic)     |
| `property.temporal`  | `property.temporal`  | `properties.temporals[]`  | [property.temporal.md](/pack-builders/context/property-temporal)   |
| `operation`          | `operation`          | `operations[]`            | [operation.md](/pack-builders/context/operation)                   |
| `event`              | `event`              | `events[]`                | [event.md](/pack-builders/context/event)                           |
| `failure`            | `failure`            | `failures[]`              | [failure.md](/pack-builders/context/failure)                       |
| `policy`             | `policy`             | `policies[]`              | [policy.md](/pack-builders/context/policy)                         |
| `expression`         | `expression`         | `expressions[]`           | [expression.md](/pack-builders/context/expression)                 |
| `workflow`           | `workflow`           | `workflows[]`             | [workflow.md](/pack-builders/context/workflow)                     |
| `view`               | `view`               | `views[]`                 | [view.md](/pack-builders/context/view)                             |
| `view.part`          | `view.part`          | `views.parts[]`           | [view.part.md](/pack-builders/context/view-part)                   |
| `surface`            | `surface`            | `surfaces[]`              | [surface.md](/pack-builders/context/surface)                       |

## Common Subject Fields

Most selectable subjects expose these paths:

| Path suffix     | Type                                                                       | Contract                                        |
| --------------- | -------------------------------------------------------------------------- | ----------------------------------------------- |
| `.id`           | `string`                                                                   | Opaque semantic identity.                       |
| `.name`         | [`NameContext`](/pack-builders/context/shared-name)                        | Semantic naming variants.                       |
| `.description`  | `string\|null`                                                             | Human description.                              |
| `.tags`         | `string[]`                                                                 | Semantic tags.                                  |
| `.explanations` | [`ExplanationContext[]`](shared-explanation.md)                            | Advisory notes.                                 |
| `.group`        | [`SemanticLinkContext\|null`](/pack-builders/context/shared-semantic-link) | Owning group link.                              |
| `.feature`      | [`SemanticLinkContext\|null`](/pack-builders/context/shared-semantic-link) | Canonical owning feature link.                  |
| `.lifecycle`    | [`LifecycleContext`](/pack-builders/context/shared-lifecycle)              | Deprecation/removal metadata, where applicable. |

## Schema Paths

| Path                              | Type                                                                   |
| --------------------------------- | ---------------------------------------------------------------------- |
| `schema.name`                     | [`NameContext`](/pack-builders/context/shared-name)                    |
| `schema.extends`                  | `SchemaContext\|null`                                                  |
| `schema.source`                   | `SchemaSourceContext\|null`                                            |
| `schema.fields[]`                 | `SchemaFieldContext[]`                                                 |
| `schema.fields[].name`            | [`NameContext`](/pack-builders/context/shared-name)                    |
| `schema.fields[].value`           | [`SemanticValueContext`](/pack-builders/context/shared-semantic-value) |
| `schema.fields[].optional`        | `boolean`                                                              |
| `schema.fields[].nullable`        | `boolean`                                                              |
| `schema.fields[].array`           | `ArrayBoundsContext\|null`                                             |
| `schema.fields[].default`         | `DefaultValueContext\|null`                                            |
| `schema.fields[].mutation`        | `create-only\|system\|null`                                            |
| `schema.fields[].query`           | `FieldQueryContext\|null`                                              |
| `schema.fields[].sensitive`       | `boolean`                                                              |
| `schema.fields[].policy.read`     | `PolicyContext\|null`                                                  |
| `schema.fields[].policy.write`    | `PolicyContext\|null`                                                  |
| `schema.fields[].relation`        | `RelationContext\|null`                                                |
| `schema.fields[].related`         | `RelatedContext\|null`                                                 |
| `schema.fields[].sources[]`       | `FieldSourceContext[]`                                                 |
| `schema.facets.storage`           | `SchemaStorageContext\|null`                                           |
| `schema.facets.storage.namespace` | `string\|null`                                                         |
| `schema.invariants[]`             | `SchemaInvariantContext[]`                                             |
| `schema.invariants[].name`        | [`NameContext`](/pack-builders/context/shared-name)                    |

## Property Paths

All property roots use the same family prefix:

```text
property.<kind>
properties.<plural_kind>[]
```

Each property kind documents its own fields:

| Kind      | Notable paths                                                                            | Contract                                                                                                     |
| --------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Primitive | `property.primitive.kind`, `property.primitive.constraints`                              | [property.primitive.md](/pack-builders/context/property-primitive)                                           |
| Enum      | `property.enum.values[]`, `property.enum.values[].name`, `property.enum.values[].value`  | [property.enum.md](/pack-builders/context/property-enum)                                                     |
| Composite | `property.composite.fields[]`, `property.composite.fields[].value`                       | [property.composite.md](/pack-builders/context/property-composite)                                           |
| Literal   | `property.literal.value`, `property.literal.value_json`                                  | [property.literal.md](/pack-builders/context/property-literal), [derived.md](/pack-builders/context/derived) |
| Union     | `property.union.discriminant`, `property.union.members[]`                                | [property.union.md](/pack-builders/context/property-union)                                                   |
| Record    | `property.record.keys`, `property.record.values`                                         | [property.record.md](/pack-builders/context/property-record)                                                 |
| Tuple     | `property.tuple.items[]`                                                                 | [property.tuple.md](/pack-builders/context/property-tuple)                                                   |
| Generic   | `property.generic.parameters[]`, `property.generic.body`, `property.generic.arguments[]` | [property.generic.md](/pack-builders/context/property-generic)                                               |
| Temporal  | `property.temporal.kind`, `property.temporal.point`, `property.temporal.constraints`     | [property.temporal.md](/pack-builders/context/property-temporal)                                             |

## Operation Paths

| Path                                | Type                                                |
| ----------------------------------- | --------------------------------------------------- |
| `operation.name`                    | [`NameContext`](/pack-builders/context/shared-name) |
| `operation.input`                   | `OperationInputContext\|null`                       |
| `operation.output`                  | `OperationOutputContext\|null`                      |
| `operation.failures[]`              | [`SemanticLinkContext[]`](shared-semantic-link.md)  |
| `operation.emits[]`                 | [`SemanticLinkContext[]`](shared-semantic-link.md)  |
| `operation.facets.http`             | `HttpFacetContext\|null`                            |
| `operation.access.policies[]`       | [`SemanticLinkContext[]`](shared-semantic-link.md)  |
| `operation.execution.invalidates[]` | [`SemanticLinkContext[]`](shared-semantic-link.md)  |

## Derived Paths

Derived context sits next to semantic context and is documented in [derived.md](/pack-builders/context/derived).

| Path family                           | Meaning                                                                    |
| ------------------------------------- | -------------------------------------------------------------------------- |
| `*.is.*`                              | Classification booleans.                                                   |
| `*.has_*`                             | Presence booleans that are safe for falsey values such as `0` and `false`. |
| `*_json`                              | JSON literal strings safe for JSON-compatible generated code.              |
| `facets.http.path.segments[]`         | Normalized route path pieces.                                              |
| `schema.fields[].storage.primary_key` | Effective storage facts.                                                   |
| `<subject>.generated.*`               | Planning-aware generated representations.                                  |

## Absence and Demand

Context is demand-driven. A path exists in this catalogue only as a contract. Dryv still materializes only the roots and branches requested by template analysis.

When a requested value is absent:

| Shape                  | Value  |
| ---------------------- | ------ |
| optional scalar/object | `null` |
| collection             | `[]`   |

Templates should use the documented paths and should not parse Runtime IR pointers, map keys or generated filenames.
