007: A feature is a submodule of the project it extends¶
Status: accepted, 2026-11-08.
Context¶
The suite ships features two ways. Submodules live in the sites project
and release with it: sites_content, sites_ui, sites_language, but also
sites_metatag and sites_pathauto, which depend on contrib modules.
Satellites are projects of their own: sites_redirect,
sites_simple_sitemap, sites_linkit and others, each with its own issue
queue, CI and release tags.
A satellite costs a project: a second CI setup, a release per change in
Sites core it follows, and a lag before its CI sees a new sites 1.x-dev on
packages.drupal.org. Nothing written said when a feature earns that cost, so
some satellites carry it without a reason: sites_shield and
sites_analytics depend on nothing but sites, and sites_diff extends
sites_content_overrides.
Decision¶
A feature is a submodule of the project it extends. It becomes a project of
its own only for an audience of its own or a release cadence of its own. A
contrib dependency alone does not decide: a submodule may depend on a contrib
module, as sites_metatag does.
Consequences¶
- A new feature starts as a submodule of
sites(or of the satellite it extends) unless it names its own audience or release cadence. sites_shield,sites_analyticsandsites_diffare candidates for submodules. Moving them changes their Composer package names and needs an upgrade path for sites in production; that waits for 2.x.- Satellites that copy upstream code pin it in an
UpstreamForkTest(Write a satellite module); a submodule does the same. - The core reaches a submodule through an interface of its own that the
submodule registers its service under (
SubSitePrefixInterface,SitePreviewAccessInterface), never through the submodule's class, service id ormoduleExists().CoreNamesNoSubmoduleClassTestholds the line, with the few exceptions where the answer is the submodule itself.
Rejected options¶
- Move the candidates now: three package renames and upgrade paths in the RC phase, for less CI and fewer releases.
- One project per contrib integration: gives every integration its own queue, and every core change a release per integration.
Reopen when¶
Planning for 2.x starts, or a satellite gains an audience of its own, such as a maintainer outside the suite.
Last updated 2026-11-09