Skip to content

den.ctx (Compatibility Shim)

den.ctx was the original API for declaring aspects and binding them to entity resolution stages. It combined aspect definitions, cross-entity providers, and pipeline transitions in a single namespace.

The compatibility shim in modules/compat/ctx-shim.nix accepts den.ctx.* entries and forwards them:

den.ctx.<name> = { ... }
den.schema.<name>.includes = [ <value with deprecation warning> ]

Each forwarded value emits a lib.warn at evaluation time telling you exactly what to change.

The den.ctx namespace was split into three independent concerns: den.aspects for aspect definitions, den.policies for entity topology, and den.schema.<kind>.includes for explicit activation.

For the full old→new mapping and step-by-step migration instructions, see Migrating from den.ctx.

Contribute Community Sponsor