# property.tuple

## Intent

A reusable ordered heterogeneous tuple.

Exact selection subject:

```yaml
subject: property.tuple
```

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.tuple: TuplePropertyContext`      |
| `all`                 | `properties.tuples: TuplePropertyContext[]` |
| 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.tuple.id`            | `string`                    | Opaque stable semantic identity.                     |
| `property.tuple.name`          | `NameContext`               | Stable semantic identity and finite naming variants. |
| `property.tuple.description`   | `string\|null`              | Human semantic description.                          |
| `property.tuple.tags`          | `string[]`                  | Semantic classifiers; empty when none.               |
| `property.tuple.explanations`  | `ExplanationContext[]`      | Advisory usage/security/implementation notes.        |
| `property.tuple.group`         | `SemanticLinkContext\|null` | Owning semantic group.                               |
| `property.tuple.feature`       | `SemanticLinkContext\|null` | Canonical owning feature, when present.              |
| `property.tuple.lifecycle`     | `LifecycleContext`          | Deprecation/removal semantics.                       |
| `property.tuple.items`         | `TupleItemContext[]`        | Ordered elements.                                    |
| `property.tuple.items[].index` | `integer`                   | Canonical position.                                  |
| `property.tuple.items[].type`  | `TypeContext`               | Element type.                                        |

## Usage rules

- Tuple item order is semantic and must be preserved exactly.

## Runtime IR implications to audit

- Properties should gain universal metadata.

## Template example — Jinja / TypeScript tuple

```jinja
export type {{ file.symbol }} = [
{% for item in property.tuple.items %}
  {{ render_type(item.type) }}{{ "," if not loop.last else "" }}
{% endfor %}
];
```

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