ADR-0021: Mutators are written once against a public SDK, first-party sets live apart and can leave, and security mutants are held to a floor of their own
Status: Accepted
Date: 2026-09-30
Amends: 0001: its boundary rule A1, for the Mutator layer
Context
The gate leaves making mutants to its runners (ADR-0001, ADR-0004), and each
runner has its own mutator API. Read in the vendored sources of
pest-plugin-mutate 5.0.2, Infection 0.35.5 and infection/mutator 0.4.1:
- Pest's mutator is static.
Pest\Mutate\Contracts\MutatorhasnodesToHandle(),name(),set(),can(Node)andmutate(Node): Node|int, so it makes at most one change per node.--mutator=<a,b,…>takes fully qualified class names and expandsMutatorSetclasses. It replaces the configured list rather than adding to it.- Pest's traverser runs php-parser's
NameResolverwithreplaceNodes: false, so names carry aresolvedNameattribute, and aParentConnectingVisitor. - Pest re-parses a file once per mutation per mutator, and skips a mutator whose node classes the file does not contain.
- Pest ships a proof-of-concept
LaravelSetof two mutators ofStr::upper.
- Infection's mutator is an instance.
Infection\Mutator\MutatorhasgetDefinition(),getName(),canMutate(Node)andmutate(Node): iterable, which may yield several changes per node.- A custom mutator is enabled by its class name as a key of the config's
mutators, found withclass_existsand constructed with no arguments. - Infection offers a mutator only nodes inside a class method or on its signature: it does not traverse outside a class, and it skips plain functions. So a class constant, a property, an attribute or top-level code is never offered.
- Its
NameResolveralso runs withreplaceNodes: false.
- A custom mutator is enabled by its class name as a key of the config's
- Both runners mutate php-parser 5 trees, and both find a mutator by a class name that must load in the runner's own process.
Core,Port,ConfigandExtensionname nothing outside the package but PHP andPsr\Clock(ADR-0001, rule A1), so none of those public layers can name a php-parser node.- Presets are config fragments with a name (ADR-0008), each a typed layer of config laid before the config file (ADR-0002).
- Frameworks and security. A framework app's riskiest code is framework calls: an authorisation check, a validation rule, a transaction. A security defence (an escape, a password check, a constant-time comparison) is exactly the code whose survivor matters most, and a tree's score can hide it among thousands of mutants.
Decision
The SDK
A mutator is written once, against php-parser 5, in a public layer,
NightWorksIO\MutationGate\Mutator.- The layers are, in order:
Core,Attribute,Port,Mutator,Config,Extension,Adapter\<Name>,Cli. This amends ADR-0001 from seven layers to eight. - The
Mutatorlayer, and only it, may namePhpParser. This amends ADR-0001's first rule, A1 inARCHITECTURE.md. nikic/php-parser^5.9 is inrequire, since every runner process loads the SDK.- The layer is public API. This amends ADR-0011. ADR-0043 amends this:
the layer's engine,
Mutator\Engine, is internal.
- The layers are, in order:
The interface.
namespace NightWorksIO\MutationGate\Mutator; use NightWorksIO\MutationGate\Core\Mutant\MutatorFamily; use PhpParser\Node; interface Mutator { /** Its name in reports and ignores, `<set>/<Name>`, such as `laravel/GateAllowsToTrue`. */ public function name(): MutatorName; /** The family whose hint a survivor gets (ADR-0009). */ public function family(): MutatorFamily; /** What it is about, such as `security`. */ public function tags(): Tags; /** The node classes it looks at; no other node is ever offered to it. */ public function handles(): NodeClasses; /** The one change for this node, or none. It never changes the node it is given. */ public function mutate(Node $node): Node|Removal|Unchanged; /** A sentence for its survivors, or its family's. */ public function hint(): Hint|FamilyHint; }- A mutator makes at most one change per node. A mutator with two variants is two mutators, so it maps directly onto both runners.
- It is constructed with no arguments, as an
Extensionis. Removalbecomes Pest'sNodeTraverser::REMOVE_NODEand a yieldedNode\Stmt\Nopunder Infection.- A
MutatorSetis a named, typed list of mutator classes. - A mutator whose change other mutators also make implements
SameChangetoo. ItsmadeAlsoBy(): NamedMutatorsnames them as the gate names their mutants: a registered one<set>/<Name>, and a runner's own as that runner names it.
Sets are registered by name, and enabled by config.
Extensions::withMutators(Name $set, MutatorSet $mutators)adds an extension point, mutator set. This amends ADR-0001.mutators.sets, a list of set names,[]by default plus what presets add, turns sets on.mutators.except, a list of mutator names, turns single ones off.- An unknown set the config file names is exit 2 with the nearest name (ADR-0002). Installing a package never changes a score by itself.
defaultinmutators.setsis a config error, exit 2: that set is always on, and Pest and Infection run their own mutators in its place.mutators.exceptnames mutators held by a set inmutators.setsor by the default set, so the PHPUnit runner can turn off a single one of the default set's. A name neither holds is exit 2, with the nearest name where one is close.- Under Pest or Infection, which run their own mutators in place of the default set's, a name only the default set holds would turn nothing off, so it is a config error, exit 2.
The gate writes a bridge for each runner.
- For each enabled mutator the gate writes one bridge class per runner,
all of a runner's into
.mutation-gate/mutators/<runner>/bridges.php, each delegating to the SDK class. A bridge's class is the SDK class's own name underNightWorksIO\MutationGateBridge\Pest\orNightWorksIO\MutationGateBridge\Infection\. The generator writes class names from the registry, so it joins the files ARCHITECTURE.md's P2 allows dynamic names. - Pest: the adapter names the file in
MUTATION_GATE_MUTATORS, and the package's plugin, which boots in Pest's parent and in every mutant's child, loads it. The file registers each bridge in pest-plugin-mutate'sMutatorMap::$mapunder each node class its mutator handles and each php-parser subclass of one, since Pest drops a mutator the map does not hold and looks a mutator up by a node's exact class. That map is a public static of a class without a stability promise, covered by the contract suite and theconflictpin.--mutatorreplaces Pest's list, so a run of every mutator passes--mutator=Pest\Mutate\Mutators\Sets\DefaultSet,<bridges>, and a narrowed run names each mutator it applies, a bridged one by its bridge's class. Pest 5 configures its mutators only on the command line, so no project setting is lost.
- Infection: the config the adapter writes adds each bridge,
"<bridge class>": true, tomutatorsbeside the project's own settings, and keeps"@default": truewhere the project sets none. Itsbootstrapis the file of bridges, which declares them and then includes the project's own bootstrap. Infection loadsbootstrapbefore it resolvesmutators. - The runner contract suite runs a registered mutator through each bridge under the real runner.
- This amends ADR-0004.
- For each enabled mutator the gate writes one bridge class per runner,
all of a runner's into
A custom mutant looks the same under every runner.
- Its name is the SDK name, such as
laravel/GateAllowsToTrue, under both runners. The adapters map a bridge's class back to it. - That name is the mutator's full name in the gate's id (ADR-0004),
in
ignores.entries({"path": …, "mutator": "laravel/GateAllowsToTrue"}), and in every report. - Its family and hint are its own. ADR-0009's table test covers
registered mutators: one with
MutatorFamily::Nonesays so. - This amends ADR-0004, whose full name is otherwise the Pest class name or the Infection name.
- Its name is the SDK name, such as
A mutator may handle nodes one runner never offers. Under Infection, a mutator whose node classes are all ones Infection never offers is named once at
plan: under Infection,symfony/RemoveIsGrantedAttributesees no node. The Runner contract suite pins what each runner offers.Every input to a custom mutant is keyed.
mutators.setsandmutators.exceptaffect results, in key item 3 (ADR-0007).- A registering package's version is in
installed.json, item 5. A set inside this package moves with the gate's version, item 2. - A mutator class a project keeps under a test directory joins item 7, as files that define the runner do.
- This amends ADR-0007.
Authors get a testing kit.
NightWorksIO\MutationGate\Mutator\Testing\Mutatestakes a mutator and a PHP snippet, and returns the diffs both bridges produce, so an author can assert them without installing either runner. The package's own sets are tested with it. It is public API.A mutator is trusted as an extension is. It comes from Composer's
extraor the config'sextensions(ADR-0001), and runs in the runner's process, which already runs the project's tests.--no-extensionsturns off every set but those the first-party packages register: the gate's own and the plugins underplugins/, which count as first party while they ship here (ADR-0023). A mutator'shandles()stays narrow, because Pest re-parses a file once per mutation per mutator.
First-party sets that can leave
Each first-party set is a package in all but publication, under
plugins/.- The sets are
plugins/laravel/,plugins/symfony/andplugins/security/. Each has its owncomposer.json(nightworksio/mutation-gate-laravel,…-symfony,…-security), requiringnightworksio/mutation-gate^0.1 andnikic/php-parser^5.9, with its ownautoload, its ownextra.mutation-gate.extensions, andsrc/andtests/inside. - Their namespaces are
NightWorksIO\MutationGateLaravel\,NightWorksIO\MutationGateSymfony\andNightWorksIO\MutationGateSecurity\, outside the gate's own root. - The root
composer.jsonmaps those namespaces toplugins/*/src/in its ownautoload, and lists the three extension classes in its ownextra.mutation-gate.extensions. The directories ship in the root package's archive. - A set leaves by moving its directory to a repository of its own and deleting its autoload and extension lines from the root. No file inside it changes.
- The sets are
Three rules keep the boundary, each refusing a planted violation (ADR-0011).
- A6: nothing under
src/namesNightWorksIO\MutationGateLaravel\*,NightWorksIO\MutationGateSymfony\*orNightWorksIO\MutationGateSecurity\*. - A7: a set names only PHP,
PhpParser, theMutatorlayer,Extension\Extension,Extension\Extensionsand theCorevalues those signatures reach, such asCore\Config\NameandCore\Mutant\MutatorFamily, and never another set. - A8: each set's
composer.jsonvalidates on its own, andcomposer-dependency-analyserrun over the set alone finds every package it uses required. A set's tests use only the testing kit and fixtures inside the set. - The package's own gate holds four trees at 100:
src,plugins/laravel/src,plugins/symfony/srcandplugins/security/src. PHPStan, Rector, Pint and the Arch suite read the plugin paths too. This amends ADR-0011.
- A6: nothing under
Presets turn the sets on by name, softly.
libraryaddsmutators.sets: ["security"],laraveladds["laravel", "security"], andsymfonyadds["symfony", "security"]. This amends ADR-0008: the presets table gains a row for mutator sets.- A set a preset's layer names and nobody registered is skipped, with one
warning naming the package to install: The laravel preset turns on the
mutator set "laravel", which is not installed:
composer require --dev nightworksio/mutation-gate-laravel. - The same name in the config file is exit 2. The gate names a set only as data, never as a class.
- This amends ADR-0002: which layer an entry comes from decides what a missing name means.
A catalogue mutator matches on syntax and resolved names, and needs no framework installed.
- It matches a facade by its fully qualified name, a helper by its
function name, a method called on
$thisin a class whose resolved parent is the framework's base class, or a method name distinctive on any receiver. Nothing depends on a receiver's type. - Each has a family, its own hint sentence, a fixture it mutates, a
fixture it leaves alone, and a test that kills it. The sets require
neither
laravel/frameworknor anysymfony/*package. - A hint says what is missing in the framework's own terms, such as No test checks that the action is refused when the gate says no. It is fixed text, reviewed as code is, and a survivor gets it in place of its family's sentence (ADR-0009).
- It matches a facade by its fully qualified name, a helper by its
function name, a method called on
The
laravelset (NightWorksIO\MutationGateLaravel\Mutators). "Pest only" marks a node Infection never offers.Name Change Family Tag GateAllowsToTrueGate::allows(…),Gate::check(…)→true;Gate::denies(…)→falseCondition security RemoveAuthorize$this->authorize(…)(a class usingAuthorizesRequests),Gate::authorize(…)removedRemoved call security RemoveAbortabort_if(…),abort_unless(…)removed, but thoseRemoveAuthAbortmakesRemoved call none RemoveAuthAbortabort_if(…),abort_unless(…)whose code literal is 401 or 403 removedRemoved call security AuthCheckToTrueAuth::check()→true,Auth::guest()→falseCondition security HashCheckToTrueHash::check(…)→trueCondition security UnwrapEscapee($x)→$xUnwrap security RemoveValidationRuleone rule dropped from a validate([...])orValidator::make(…)rule list; a'a|b'string loses its first ruleCollection none FirstOrFailToFirst->firstOrFail()→->first(),->findOrFail(…)→->find(…)Exception none UnwrapTransactionDB::transaction(fn)→fn()Unwrap none UnwrapCacheRememberCache::remember($k, $t, fn)→fn()Unwrap none RemoveDispatchevent(…),dispatch(…),Event::dispatch(…),Bus::dispatch(…),Mail::…->send(…),Notification::send(…)removedRemoved call none RemoveMiddleware$this->middleware(…)in a controller's constructor removedRemoved call security RemoveGuardedEntryone entry dropped from a model's $guarded(Pest only)Collection security RemoveGuardedEntrydrops from$guarded, which widens mass assignment, and only a test that posts the guarded field notices. That is the vulnerability, so no mutator drops from$fillable.A tag belongs to a mutator, not to one of its mutants, so the aborts that refuse with 401 or 403 are a mutator of their own. A mutator makes one change per node, so a rule string loses its first rule only, and a rule list each of its items.
The
symfonyset (NightWorksIO\MutationGateSymfony\Mutators).Name Change Family Tag RemoveDenyAccess$this->denyAccessUnlessGranted(…)removed (anAbstractController)Removed call security IsGrantedToTrue->isGranted(…)→trueCondition security CsrfValidToTrue$this->isCsrfTokenValid(…)→trueCondition security RemoveIsGrantedAttribute#[IsGranted(…)]removed (on a class, Pest only)Removed call security RemoveAccessDeniedThrowthrow $this->createAccessDeniedException(…)removedException security PasswordValidToTrue->isPasswordValid(…)→trueCondition security FormValidToTrue$form->isValid()→trueCondition none RemoveFlush->flush()on an entity manager variable or property removedRemoved call none RemoveMessageDispatch->dispatch(…)on aMessageBusInterface-typed property or parameter removedRemoved call none An attribute of a method is inside the method, so Infection offers it; only one on a class is Pest's alone.
RemoveFlushtells an entity manager by its name:$em,$manager, a name ending inEntityManagerorObjectManager, a property of$thisso named, or whatgetManager()hands out.FormValidToTruetells a form the same way:$form, or a name ending inForm.
Security mode
A mutator tagged
security, from any set, makes security mutants, and they are judged twice.- A mutant is a security mutant when its mutator is a security-tagged
mutator the config turns on, from the
defaultset or a set inmutators.sets, or one that such a mutator'sSameChangenames. The mutatorsmutators.exceptturns off make none, and a mutator that stands down still names the others. - A security mutant counts in its tree as every mutant does.
- It is also judged in its package's security set, against a floor of its own, as new code is (ADR-0003). So a security survivor fails the security floor even where it does not move its tree's score.
- A package has a security set where its trees hold a security mutant or the baseline holds its floor. Where no package has one, one empty set at the root passes and says so. Where no security-tagged mutator is turned on, there is none.
- A mutant is a security mutant when its mutator is a security-tagged
mutator the config turns on, from the
Each package's security floor ratchets like a tree's.
- The baseline gains a top-level
"security"map, keyed by each package's path as"trees"is by each tree's, withloweredas trees have:"security": {".": {"floor": 97.5}}. The map is part of the baseline's"format": 1, and the file leaves it out where it is empty. A package's entry leaves it only when the package is gone. This amends ADR-0003. security.floor, a number from 0 to 100 with no default, is the declared minimum.extra.mutation-gate.securityFloorin a package'scomposer.jsondeclares it for that package's set in its place. A module's manifest that declares it stops the run with exit code 2, as a module shares its package's set (ADR-0005).- A first CI run with no security floor measures it and hands the entry over, as ADR-0017 does for trees. There is no default floor (ADR-0003).
- The security mutants on changed lines are already held to the new-code floor, 100 by default.
security.floorandsecurityFloorjudge only.
- The baseline gains a top-level
The generic
securityset.Name Change Family Killed by HashEqualsToTruehash_equals($a, $b)→trueCondition a test with a wrong token HashEqualsToIdenticalhash_equals($a, $b)→$a === $bCondition only a test that reads the source PasswordVerifyToTruepassword_verify(…)→trueCondition a test with a wrong password UnwrapHtmlspecialcharshtmlspecialchars($x, …)→$xUnwrap a test with markup in the input UnwrapHtmlentitieshtmlentities($x, …)→$xUnwrap a test with markup in the input UnwrapStripTagsstrip_tags($x, …)→$xUnwrap a test with markup in the input UnwrapShellEscapeescapeshellarg($x),escapeshellcmd($x)→$xUnwrap a test with a shell metacharacter UnwrapUrlEncodeurlencode($x),rawurlencode($x)→$xUnwrap a test with a reserved character FilterVarToInputfilter_var($x, FILTER_VALIDATE_…)→$xUnwrap a test with invalid input RemoveSessionRegeneratesession_regenerate_id(…)removedRemoved call a test of the session id around login Each is tagged
security.- A mutator that names others making its same change stands down wherever one of them runs that names none.
- What runs is what the gate enables for each runner: for its engine,
the
defaultset and the sets inmutators.sets; under Pest, Pest'sDefaultSetand those sets; under Infection, the mutators the project's Infection config turns on, its@defaultprofile where it turns on none, and those sets, less each mutator pinned by source. - The three HTML unwraps name the
defaultset's and Pest's own unwraps of the same function. They stand down for the engine and under Pest, and make their mutants under Infection, whose own mutators unwrap none of the three. A config that turns one of thedefaultset's unwraps off gets that function's unwrap from thesecurityset.
A constant-time comparison is pinned by a test that runs it and reads its source.
HashEqualsToIdenticalbehaves the same in every behavioural test: only timing differs. Every runner judges a mutant by the tests that cover its line, so a test that runs none of the code, such as a Pestarch()test, never runs against it. Only a test that runs the comparison and then reads its file kills it.- A mutator says so by implementing the SDK's optional
PinnedBySource, whosepin(): SourcePinnames what that test must find in the file.HashEqualsToIdentical's is a call tohash_equals. - Pest's stream wrapper and the gate's PHPUnit runner serve the mutant to every open of the file during its run, so the test reads it. Patched Pest serves a class file Composer autoloads with no wrapper (ADR-0004), but keeps the wrapper for a mutant whose mutator is pinned by source. This amends ADR-0023. Infection serves it to an include only, so a mutator pinned by source stands down under Infection.
- Its hint: Pin the constant-time comparison with a test that reads
the source: run the code, then assert that its file still calls
hash_equals. stubwrites that test in Pest's or PHPUnit's style: it calls the function, asserts on its result, and asserts that the function's file, found through reflection, still holds the pin. This amends ADR-0015.
--securityaudits the defences alone.plan --securityandrun --securitymake mutants with the security mutators alone, throughMutationRequest::narrowedTo, and judge only the security sets. Each tree is shown exempt, as--security judges only the security sets, and no commit is recorded as passed.- Under each runner, a named mutator that stands down there, or that only another runner has, makes no mutants. Where none of them runs, the runner runs nothing.
- A plan made with
--securityholds"security": trueinside its digest, which extends the plan file of ADR-0006. Every shard and the verdict follow it, so an audit can be sharded:run --plantakes no--security, andverdictreads it from the plan. pre-pushandwatchtake no--security:pre-pushmakes the judgement CI makes (ADR-0010), andwatchholds new code.- Its results are keyed by the narrowed mutator list, so they never stand in for a whole unit's proof. It teaches the cost model nothing, since its units' times are not those of a whole run.
Security survivors are reported apart.
- Each package's security set is a row of its own after new code in the
console (
Security, orSecurity in <package>), in JSON (asecuritylist of{package, declared, baseline, floor, score, raised, judgement, counts, mutants}) and in JUnit (asecuritysuite with onefloorcase per package). - SARIF results carry
properties.security: true, aterrorlevel when their security set fails. - The PR comment lists security survivors in a section before the trees. Annotations rank them after changed lines. A chat alert names a failing security set.
- This amends ADR-0009.
- The catalogue is public, and lists defences, not flaws. A survivor in a public repository's PR comment points at an untested defence, which is the purpose.
- Each package's security set is a row of its own after new code in the
console (
Alternatives considered
| Option | Why it lost |
|---|---|
| The gate's own node model, mirroring php-parser | A1 would hold as it is, at the cost of a second AST to write, document and keep in step with PHP's grammar. |
Declarative mutators in config ({"call": "Gate::allows", "becomes": "true"}) | Cannot express a condition, a resolved name or a parent check, which framework mutators need. |
| Each mutator written twice, once per runner | Two implementations per mutator, the problem the SDK exists to remove. |
An interface without tags and hint | Security mode would need a second way to name its mutators, and framework survivors would get only the family's sentence. |
| Several changes per node, with a declared variant count | Pest takes one per node, so its bridge would double in complexity for fewer classes to write. |
| Every registered mutator on as soon as its package is installed | A composer require would silently move every score. |
| SDK authors shipping both bridges by hand | Defeats the SDK. |
| Appending the bridges to Pest's configured mutator list through its configuration repository | Relies on an @internal class, and Pest 5 configures mutators only on the command line, so there is no project list to keep. |
| The bridge's class name in ids and ignores | Leaks a generated name, which changes if generation changes. |
| Only node classes both runners offer | Drops the attribute and property mutators the framework and security sets need. |
| Only the config keys in the proof key | A project's own mutator under tests/ could change without moving any key. |
| No testing kit | Every author would build one, and the first-party sets would test through something private. |
Sets under the gate's own namespace root, NightWorksIO\MutationGate\Laravel\ | The layer rules would need an exemption for a sub-namespace, and "nothing names the set" would be a prefix rule with an exception. |
Sets under src/Plugin/ | Leaving would change their paths, and they would share src's tooling until then. |
| Separate repositories from the start | A version matrix between the gate and its sets before 0.1.0, which ADR-0001 rejected for the runners. |
| A path repository in development | Tests the split for real, but a path repository cannot be published, so the root would need two ways to find one set. |
| A missing set always exit 2 | A zero-config run of a Laravel project without the set's package would stop. |
| A missing set always skipped | A misspelt set in the config would silently do nothing, which ADR-0002 refuses. |
| Framework sets opt-in by config only | Few projects would turn them on, and presets exist to give a framework app sensible defaults. |
| Mutators that need a receiver's type, from a static analyser | Ties mutation to the analyser of ADR-0020 and to the project's analyser config. |
| The family sentence only for catalogue mutators | True, and far less useful than the framework's own terms. |
Dropping entries from $fillable too | Narrowing mass assignment is not the vulnerability, and the $guarded form models it. |
| Security mutants kept out of tree scores | The same line would be scored in two unrelated places, and a tree's score would hide its most important mutants. |
| A fixed security floor of 100 with no baseline | Every existing app would fail on the day it turned the mode on. |
| A security floor over new code only | The new-code floor already does that, and nothing old would be judged. |
The generic set inside src/ | The first user of the SDK would sit inside the code the SDK stands apart from. |
| A constant-time finding from names instead of a mutant | It would guess from a variable's name. |
An arch test that expects hash_equals as the stub | It runs none of the code, so no runner runs it against the mutant. |
| Leaving the constant-time mutant out | "Constant-time comparisons" would then mean only HashEqualsToTrue. |
| No narrowed security run | A scheduled audit of the defences would pay for every other mutant. |
--only=security | --only filters the problems output, so one option would narrow the run with one value and the output with another, and the two could not be combined. |
--security on run alone | A security audit could not be sharded. |
Consequences
A mutator is written once and runs under both runners. Its survivors read the same in every report, and its ignores and ids do not depend on the runner.
php-parser is a dependency every user installs, and the SDK layer is the one public layer that names it.
The framework and security sets are proven extractable on every pull
request. Their rules and their own composer.json are checked with the
rest of the package.
A Laravel or Symfony app's first run judges its framework calls, and says in the framework's words what the tests miss.
Every app has a security score that only rises, with its survivors listed where a reviewer reads first.
Related
- ADR-0001: the eighth layer, A1 for it, and the mutator-set extension point
- ADR-0002: soft preset entries
- ADR-0003: the security set and its baseline entry
- ADR-0004: the bridges, the plugin's new job, and Infection's
bootstrapandmutators - ADR-0006: the plan's
securityfield - ADR-0007: the sets in the key
- ADR-0008: presets turn the sets on
- ADR-0009: families, hints, and the security row
- ADR-0010:
pre-pushandwatchtake no--security - ADR-0011: four trees at 100, the tool paths, and the SDK as public API
- ADR-0015: the stub that runs the code and reads its source
- ADR-0017: the first run that hands over a floor
- ADR-0023: the gate's own engine, built on this SDK, and its wrapper serving a read of the mutated file
- ADR-0043: the engine left out of the public API, which amends the layer's promise