# property.temporal

## Intent

A reusable temporal value such as date, instant, duration, interval, or zoned date-time.

Exact selection subject:

```yaml
subject: property.temporal
```

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

## Scope envelope

| Scope                 | Context                                          |
| --------------------- | ------------------------------------------------ |
| `each`                | `property.temporal: TemporalPropertyContext`     |
| `all`                 | `properties.temporal: TemporalPropertyContext[]` |
| collection candidates | `collects.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 path                              | Type                                                                                         | Meaning / template use                               |
| ----------------------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| `property.temporal.id`                    | `string`                                                                                     | Opaque stable semantic identity.                     |
| `property.temporal.name`                  | `NameContext`                                                                                | Stable semantic identity and finite naming variants. |
| `property.temporal.description`           | `string\|null`                                                                               | Human semantic description.                          |
| `property.temporal.tags`                  | `string[]`                                                                                   | Semantic classifiers; empty when none.               |
| `property.temporal.explanations`          | `ExplanationContext[]`                                                                       | Advisory usage/security/implementation notes.        |
| `property.temporal.group`                 | `SemanticLinkContext\|null`                                                                  | Owning semantic group.                               |
| `property.temporal.feature`               | `SemanticLinkContext\|null`                                                                  | Canonical owning feature, when present.              |
| `property.temporal.lifecycle`             | `LifecycleContext`                                                                           | Deprecation/removal semantics.                       |
| `property.temporal.kind`                  | `date\|time\|date-time\|instant\|zoned-date-time\|duration\|interval\|year-month\|month-day` | Temporal kind.                                       |
| `property.temporal.precision`             | `second\|millisecond\|microsecond\|null`                                                     | Precision when meaningful.                           |
| `property.temporal.point`                 | `SemanticLinkContext\|null`                                                                  | Interval point temporal type.                        |
| `property.temporal.constraints.range`     | `TemporalRangeContext\|null`                                                                 | Min/max temporal bounds.                             |
| `property.temporal.constraints.past`      | `boolean\|DurationContext\|null`                                                             | Past-only rule.                                      |
| `property.temporal.constraints.future`    | `boolean\|DurationContext\|null`                                                             | Future-only rule.                                    |
| `property.temporal.constraints.time_zone` | `string\|null`                                                                               | Timezone rule.                                       |

## Usage rules

- Normalize temporal rules under `constraints` for a predictable tree.

## Runtime IR implications to audit

- Properties should gain universal metadata.
- Consider canonical normalization of temporal constraints.

## Template example — Jinja / Python temporal alias

```jinja
{% if property.temporal.kind == "instant" %}
{{ file.symbol }} = datetime
{% elif property.temporal.kind == "date" %}
{{ file.symbol }} = date
{% endif %}
```

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.temporal 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?
