# NameContext

`NameContext` is the shared renderer-facing shape for a semantic name.

It is for semantic identity and naming variants, not for generated symbols. A template that needs the actual declaration emitted by the current file should use `file.symbol` or `file.symbols.<key>` from [../metadata/file.md](/pack-builders/context/file).

## Fields

| Path             | Type     | Meaning                                                                        |
| ---------------- | -------- | ------------------------------------------------------------------------------ |
| `name.raw`       | `string` | Original semantic name before derived casing variants; never the subject `id`. |
| `name.local`     | `string` | Unqualified semantic name.                                                     |
| `name.qualified` | `string` | Human-readable qualified identity, never JSON-pointer syntax.                  |
| `name.camel`     | `string` | `camelCase` local name.                                                        |
| `name.pascal`    | `string` | `PascalCase` local name.                                                       |
| `name.snake`     | `string` | `snake_case` local name.                                                       |
| `name.kebab`     | `string` | `kebab-case` local name.                                                       |
| `name.constant`  | `string` | `CONSTANT_CASE` local name.                                                    |
| `name.title`     | `string` | Human display title.                                                           |

Only requested variants are calculated.

## Use

Use semantic names for semantic intent:

```jinja
{{ schema.name.pascal }}
{{ field.name.camel }}
{{ operation.name.kebab }}
```

Use file metadata for generated declarations:

```jinja
{{ file.symbol }}
{{ file.symbols.model }}
```

Do not reconstruct generated symbols from semantic names when `file.symbol` or `file.symbols` is available. Planning owns generated symbol identity.
