From 9753d58539f71cf7cb17f10b253b1cc6694afacc Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 3 May 2026 00:19:30 -0700 Subject: [PATCH] fix(build): register event_log in TOP_LEVEL_MODULES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wheel-build drift gate caught it correctly: any new top-level module under workspace/ must be listed in TOP_LEVEL_MODULES so its `from event_log import …` statements get rewritten to `from molecule_runtime.event_log import …` at package time. Without this entry, the published wheel ships event_log.py un-rewritten and crashes at runtime with ModuleNotFoundError on first heartbeat. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/build_runtime_package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_runtime_package.py b/scripts/build_runtime_package.py index e95c5195..e8e793c0 100755 --- a/scripts/build_runtime_package.py +++ b/scripts/build_runtime_package.py @@ -62,6 +62,7 @@ TOP_LEVEL_MODULES = { "configs_dir", "consolidation", "coordinator", + "event_log", "events", "executor_helpers", "heartbeat",