Build core features as modules
- Created
- Decided
- Versions
- History
Context
The engine is the foundation the rest of the panel is built on, and the module system is its extension mechanism, open to first-party and third-party modules alike.
Some of the panel's functionality is low-level framework machinery that everything else depends on. Other features are more complex: they typically combine several components, and many of them are heavy on configuration or face the user.
Decision
I will keep the engine to base framework functionality, the low-level parts everything else depends on, and build every feature that combines several components, especially one heavy on configuration or facing the user, as a module on the same module system third parties use. Auth and servers will be modules.
Alternatives
No alternatives were weighed.
Consequences
Easier:
- The engine will stay limited to the low-level parts that everything else depends on.
Harder:
- Engine components will provide mechanism without meaning, and leave the meaning to modules.
Constrained:
- First-party features will ship as bundled modules: inside the binary, with their manifests declared in code and a core flag set.
Sources
- Brainstorming session, date not recalled, not publicly available and first written down on : the reasoning for the decision.
- Issue #35, Engine - Modules, original text of in its edit history: the first written record of the
decision. It is both
createdanddecided, because the date of the brainstorming session is not recalled. It also names permissions as a module; whether permissions will be a module of its own is not settled. - Issue #36, Engine - Modules - Discovery and Manifest, : bundled modules with manifests declared in code and a core flag.
Source adr/0013-core-modules.md · commit d6910e4 · exported