Skip to content

M1: Decompose god files into deep modules #59

Backlog

Description

@h45sh

Context

Four modules mix routing, execution, and policy, which makes changes hard to review and test:

  • src/ether/cli/router.py — 1,002 lines
  • src/ether/mcp/server.py — 926 lines
  • src/ether/core/session.py — 1,128 lines
  • src/ether/gateway/preflight.py — 852 lines

Acceptance criteria

  • Split cli/router.py into command groups behind one dispatcher.
  • Split mcp/server.py into domain modules with a central operation-to-tool registry.
  • Decompose core/session.py and gateway/preflight.py; move installation hints into manifests.
  • No behavior change; tier0 and fast tests pass.

Out of scope

The GraphStore split; see the storage backlog item.

Part of #24

Activity

  1. added this to the M1 Truth milestone on Nov 29, 2026
  2. added
    type:debt
    area:hygiene
    priority:P1
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:hygienepriority:P1type:debt

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions