# group

**Selectable subject:** no

A group is structural scope metadata. It is exposed when the generation partition is explicitly grouped by `collects.group`, or as the owner of a `collects.feature` partition.

## Availability

```text
scope: collects.group
→ group: GroupContext

scope: collects.feature
→ group: GroupContext
   feature: FeatureContext
```

## Context tree

| Context path             | Type                        | Meaning / template use                    |
| ------------------------ | --------------------------- | ----------------------------------------- |
| `group.id`               | `string`                    | Opaque stable semantic identity.          |
| `group.name`             | `NameContext`               | Group identity/naming.                    |
| `group.description`      | `string\|null`              | Scope purpose.                            |
| `group.tags`             | `string[]`                  | Semantic metadata.                        |
| `group.explanations`     | `ExplanationContext[]`      | Advisory metadata.                        |
| `group.parent`           | `SemanticLinkContext\|null` | Parent group link.                        |
| `group.facets.http.root` | `string\|null`              | HTTP scope root contributed by the group. |

## Deliberately excluded

Do not embed:

```text
group.children
group.features
group.schemas
group.operations
group.policies
...
```

The selected subject array already describes what this invocation is generating. Group metadata only describes the partition.

## Example

```jinja
# package for {{ group.name.qualified }}
ROUTE_ROOT = "{{ group.facets.http.root }}"
```

## Runtime IR implications

- Group identity/metadata remains canonical, but declaration membership should not leak into template context by default.
