Skip to content

refactor: modularize the core while preserving standalone SSH - #148

Merged
abruption merged 2 commits into
mainfrom
refactor/112-modular-core
Sep 22, 2026
Merged

abruption merged 2 commits into
mainfrom
refactor/112-modular-core

Conversation

@abruption

Copy link
Copy Markdown
Owner

Closes #112.

Summary

  • split the canonical core into ordered functional segments under session_peer_core/, including dedicated Codex, Claude, Antigravity, SSH, reply, diagnostics, update, registry, send, and CLI boundaries
  • add a deterministic stdlib-only generator that keeps session_peer.py as the directly executable, remote-streamable single-file artifact
  • reject stale generated source in the supported test matrix, package job, and PyPI release build
  • keep canonical segments and the generator in the sdist while leaving the wheel runtime contract unchanged
  • document the flat shared-namespace composition and update the translated architecture ADR

The flat composition deliberately preserves the single module global namespace used by existing imports and behavior-focused monkey-patching tests. The generated runtime has no new dependency or destination-side installation requirement. cc_peer.py, relay/OAuth behavior, and live infrastructure are unchanged.

Verification

  • python3 -m unittest discover -s tests -v — 377 passed, 14 optional skips
  • relay extra suite — 80 passed
  • MCP extra suite — 14 passed
  • Python 3.9 generator check and standalone tests — 3 passed
  • deterministic generator check and translated-doc structural checks — 8 passed
  • wheel/sdist exact-content tests — 3 passed
  • fresh Python 3.13 wheel and sdist installs both report session-peer 1.0.0b1

@abruption
abruption merged commit 2e1c1e2 into main Sep 22, 2026
24 checks passed
@abruption
abruption deleted the refactor/112-modular-core branch September 23, 2026 02:38
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.

refactor: modularize the core while preserving the standalone SSH artifact

1 participant