Slice 85 Review Fixes
Findings#
Must-fix: remove the events.py compatibility facade#
events.py was split into a thin SDK message dispatcher, but ClaudeSdkClient
still imported run-state and result helpers through events.py. That kept the
old grab-bag import surface alive after the owning modules existed.
Fix shape:
client.pyimportsClaudeRunStatefromstate.py.client.pyimportsClaudeMessageandsession_id_for_messagefromsdk_messages.py.client.pyimports result helpers fromresult.py.events.pyonly dispatches one SDK message into normalized events.- The architecture test rejects result helper exports in
events.py.
Verification#
uv run pytest tests/test_claude_adapter.py tests/test_architecture.pyuv run ruff check src/codealmanac/integrations/harnesses/claude tests/test_claude_adapter.py tests/test_architecture.pyuv run pytestuv run ruff check .git diff --check