# Extend Dryv without changing its meaning

Dryv is designed so new authoring languages, renderer implementations, packs,
clients, and engine implementations can be added without creating parallel
semantic systems.

Extensibility is valid only when the same canonical contracts remain intact.

## Authoring languages

Current authoring implementations are:

- Python;
- TypeScript.

A future Rust, JavaScript, or other authoring implementation
must compile into the same Canonical Dryv Runtime IR.

It can provide language-native ergonomics without creating private semantics.

## Template renderers

Current renderer implementations are:

- Jinja;
- Handlebars;
- Liquid;
- Mustache.

A new renderer must consume the same bounded context contract and remain
semantically narrow.

Renderer-specific syntax belongs inside the renderer or template, not in
canonical Runtime IR.

## Output languages are pack-defined

Dryv does not need a hard-coded registry of every language that can be
generated.

A pack decides what its templates emit. That may be TypeScript, Python, Rust,
Java, Dart, YAML, Markdown, Terraform, or another target representation.

This is why renderer support and output-language support are different ideas.

## Engine implementations

The current backbone implementation is organized under `engine/python/` with
separate engine and API packages.

A future engine implementation in another language must preserve the same
Canonical Runtime IR, validation semantics, planning contracts, protocols, and
observable behavior.

There is still one Dryv semantic model.

## Clients

Clients can include:

- the CLI;
- editor integrations such as VS Code;
- web interfaces;
- future desktop or mobile surfaces;
- automated agents.

Clients can discover project resources, display diagnostics and plans, receive
artifacts, show diffs, and apply changes.

Clients do not own semantic selection or Runtime IR meaning.

## Pack sources

Packs can be loaded through supported local or repository-based sources.

Private repository access should rely on the user's existing Git credentials
rather than a separate Dryv credential system.

## Humans and AI use the same system

Dryv should not create a hidden AI-only execution path.

Humans and agents use the same authored meaning, Runtime IR, usage
configuration, generation plans, diagnostics, template context, and traces.

That shared contract makes automation more reliable without making an AI model
the semantic authority.

## Extension rule

Every extension should preserve these equations:

```text
new authoring implementation → same Runtime IR
new renderer                → same context contract
new client                  → same plans and artifacts
new pack                    → same canonical vocabulary
new engine implementation   → same semantics and protocols
```

If an extension weakens determinism, portability, explainability, or
architectural separation, it is not a compatible Dryv extension.
