Skip to content

fix: isolate compiler passes during runtime recompilation - #10

Merged
brianvarskonst merged 1 commit into
mainfrom
fix/compiler-pass-isolation
Oct 6, 2026
Merged

brianvarskonst merged 1 commit into
mainfrom
fix/compiler-pass-isolation

Conversation

@brianvarskonst

Copy link
Copy Markdown
Member

The kernel rebuilds a candidate container when compilation discovers additional
resources. Compiler passes were reused across candidates, so stateful native
passes could update Definition objects retained from the discarded container.
Doctrine event listeners then disappeared from the final runtime container.

Clone each compiler-pass prototype for every candidate build. Pass order and
the original application builder remain unchanged. Add a regression that forces
resource discovery, checks isolated pass state, and reloads the cached container.

Validation: composer qa passed (78 tests, 372 assertions; seven existing PHPUnit
notices and one environment-dependent skip). The consuming Doctrine bundle's
SQLite integration suite passed, including real listener invocation, Messenger,
Maker generation and a fresh-process cached-container reload.

Signed-off-by: Brian Schäffner <burnify.design@gmail.com>
@brianvarskonst
brianvarskonst merged commit 3aca3d9 into main Oct 6, 2026
3 checks passed
@brianvarskonst
brianvarskonst deleted the fix/compiler-pass-isolation branch October 6, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant