# feature

**Selectable subject:** no

A feature is structural collection metadata for `collects.feature`. It describes the current partition; it does not recursively enumerate everything in the feature.

## Availability

```text
scope: collects.feature
→ group: GroupContext
   feature: FeatureContext
   <selected-subject plural>: [...]
```

## Context tree

| Context path           | Type                   | Meaning / template use           |
| ---------------------- | ---------------------- | -------------------------------- |
| `feature.id`           | `string`               | Opaque stable semantic identity. |
| `feature.name`         | `NameContext`          | Feature identity/naming.         |
| `feature.description`  | `string\|null`         | Feature purpose.                 |
| `feature.tags`         | `string[]`             | Semantic metadata.               |
| `feature.explanations` | `ExplanationContext[]` | Advisory metadata.               |
| `feature.group`        | `SemanticLinkContext`  | Owning group link.               |

## Deliberately excluded

Do not expose membership lists such as:

```text
feature.properties
feature.schemas
feature.operations
feature.events
feature.workflows
feature.views
...
```

Those arrays can become extremely large and duplicate the selected-subject collection already present in the invocation.

## Example

```hbs
// feature:
{{feature.name.qualified}}
// group:
{{group.name.qualified}}
export const featureName = "{{feature.name.local}}";
```

## Runtime IR implications

- Keep feature identity and ownership canonical.
- Artifact planning/Runtime inspection must provide deterministic feature partition identity without requiring templates to inspect feature membership.
