Five `from <runtime_module> import` statements in adapter.py + claude_sdk_executor.py were never qualified when the template was extracted to its own repo (#87). They worked when the runtime was bundled into workspace/ where bare imports resolved against sibling files; in the template repo they explode at startup with ModuleNotFoundError as soon as Python reaches the import. Caught by manual provision after pipeline-3 wire-real E2E. The plugins import was the first one tripped because it sits in adapter.setup() — earlier bare imports inside claude_sdk_executor.py are deferred until the executor is constructed. Pattern: any `from <X> import Y` where X is a workspace/ module -> `from molecule_runtime.X import Y`. Fixes: - adapter.py:97 plugins - claude_sdk_executor.py executor_helpers, heartbeat, a2a_client, platform_auth Same class of bug as the runtime's TOP_LEVEL_MODULES drift but inverted — instead of forgetting to rewrite imports IN the wheel, the template authors forgot to qualify imports IN the template code (the build script's rewriter only runs on workspace/ -> wheel). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .github/workflows | ||
| .molecule-ci/scripts | ||
| runbooks | ||
| __init__.py | ||
| .gitignore | ||
| adapter.py | ||
| claude_sdk_executor.py | ||
| CLAUDE.md | ||
| config.yaml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| known-issues.md | ||
| README.md | ||
| requirements.txt | ||
template-claude-code-default
Molecule AI workspace template for the claude-code-default runtime.
Usage
In Molecule AI canvas
Select this template when creating a new workspace — it appears in the template picker automatically.
From a URL (community install)
Paste this URL when creating a workspace:
github://Molecule-AI/template-claude-code-default
Files
config.yaml— workspace configuration (runtime, model, skills, etc.)system-prompt.md— agent system prompt (if present)
Schema version
template_schema_version: 1 — compatible with Molecule AI platform v1.x.
License
Business Source License 1.1 — © Molecule AI.