Skip to main content

Module mode

Module mode 

Source
Expand description

Experience modes and capability-aware action exposure.

One runtime serves five audiences without forking into five products. Audience differences are expressed as modes – Household, Builder, Systems – that change which lenses, controls, and verbosity are shown, gated by capability and role. Modes never change the underlying value: the same value renders at different depth, but it is the same value.

Enums§

Exposure
Whether and how an action is exposed.
Mode
An experience mode. Modes change depth and control exposure, not the value.

Functions§

action_exposure
Decide how to expose an action, given the capabilities it requires, the granted set, whether it is dangerous, and the active mode.
denied_scene
A clear “action denied” Scene – never a blank dead end.
readonly_scene
A read-only rendering: the value at the mode’s depth, clearly marked read-only, with no committing controls.
universal_scene
Render a value through the universal default lens at the depth of mode. Household shows a friendly summary and the canonical text; Builder adds the structure tree; Systems adds the operations inspector. The value is never changed.