# application

**Selectable subject:** no

`application` is global bounded metadata available to template invocations. It is not a selection subject and must not expand into the application's entire semantic graph.

## Availability

```text
all template invocations
→ application: ApplicationContext
```

If Runtime IR contains multiple applications, usage/runtime resolution must identify one active application before this context can be materialized. Dryv must not select one by registry order.

## Context tree

| Context path                   | Type                        | Meaning / template use              |
| ------------------------------ | --------------------------- | ----------------------------------- |
| `application.id`               | `string`                    | Opaque stable semantic identity.    |
| `application.name`             | `NameContext`               | Active application identity/naming. |
| `application.description`      | `string\|null`              | Human purpose.                      |
| `application.tags`             | `string[]`                  | Semantic metadata.                  |
| `application.explanations`     | `ExplanationContext[]`      | Advisory metadata.                  |
| `application.group`            | `SemanticLinkContext\|null` | Optional root/owning group link.    |
| `application.facets.http.root` | `string\|null`              | Application HTTP scope root.        |

## Deliberately excluded

Do not expose aggregate membership here:

```text
application.groups
application.features
application.schemas
application.operations
application.views
application.surfaces
...
```

Those would turn global metadata into an enormous implicit context.

## Example

```hbs
//
{{application.name.qualified}}
export const API_ROOT = "{{application.facets.http.root}}";
```

## Runtime IR implications

- Generation usage/runtime needs an explicit active-application resolution when an IR contains more than one application.
