Skip to content

ci: install coherence-membrane spine so tests can import studio_engine - #5

Merged
HarperZ9 merged 1 commit into
mainfrom
fix/ci-install-coherence-membrane
Jul 3, 2026
Merged

HarperZ9 merged 1 commit into
mainfrom
fix/ci-install-coherence-membrane

Conversation

@HarperZ9

@HarperZ9 HarperZ9 commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Problem

CI on main is red. python -m unittest discover -s tests fails at import time:

ModuleNotFoundError: No module named 'coherence_membrane'

across every test that imports studio_engine (test_engine, test_compose, test_criteria, test_native_render, test_certify, ...).

Root cause

studio_engine/__init__.py -> .engine -> (line 22) from .certify import world_certificate -> certify.py imports coherence_membrane. So any import studio_engine needs the spine. CI only ran pip install -e ., which installs studio-engine but not coherence-membrane. coherence-membrane is an internal peer flagship ("the spine"), not a third-party dependency, and is not published to PyPI, so it was never installed.

Fix

Add a CI step to install coherence-membrane from source (pip install git+https://github.com/HarperZ9/coherence-membrane.git) before running the suite. This is intended internal composition; "zero-dependency" means no external deps, which still holds.

Verified locally (with the spine present)

  • python -m unittest discover -s tests -> 169 OK
  • python test_forward_delivery_contract.py -> 4 OK
  • node --test showcase/tests/*.test.mjs -> 18 pass, 0 fail

studio_engine.certify composes the coherence-membrane spine (an internal
peer flagship, not third-party and not on PyPI). engine.py imports certify
eagerly, so importing studio_engine at all requires the spine. CI only ran
'pip install -e .', so every test that imports studio_engine died with
ModuleNotFoundError: No module named 'coherence_membrane'. Install the spine
from source before running the suite.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HarperZ9
HarperZ9 merged commit 5ab4077 into main Jul 3, 2026
2 checks passed
@HarperZ9
HarperZ9 deleted the fix/ci-install-coherence-membrane branch July 3, 2026 03:20
HarperZ9 added a commit that referenced this pull request Jul 27, 2026
#5)

studio_engine.certify composes the coherence-membrane spine (an internal
peer flagship, not third-party and not on PyPI). engine.py imports certify
eagerly, so importing studio_engine at all requires the spine. CI only ran
'pip install -e .', so every test that imports studio_engine died with
ModuleNotFoundError: No module named 'coherence_membrane'. Install the spine
from source before running the suite.

Co-authored-by: Zain Dana Harper <zain@aurora-framework.dev>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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