Skip to content

Split CoreBridge models and dispatch policy from runtime coordination #78

Closed

Description

@yansfil

Context

macos/Sources/HerdrMacOS/CoreBridge.swift is more than 4,200 lines. Snapshot DTOs and dispatch policies occupy most of the file before the CoreBridge observable object begins.

Scope

  • Move snapshot DTOs into domain-oriented Swift files for workspace, terminal, editor, changes, status, remote, and agent-hook data.
  • Move local mutation and dispatch policy types into their own file.
  • Keep CoreBridge as the runtime lifecycle, dispatch, snapshot application, and terminal delivery coordinator.
  • Preserve Codable shapes, access levels, and public behavior.

Non-goals

  • No snapshot schema change.
  • No UI redesign.
  • No Rust runtime behavior change.

Acceptance criteria

  • CoreBridge.swift contains coordination behavior rather than the full wire model catalog.
  • Existing decode, dispatch policy, and macOS tests pass.
  • The development app builds successfully.
  • No unrelated formatting or generated artifacts enter the diff.

Activity

  1. added
    enhancement
    on Sep 16, 2026
  2. added a commit that references this issue on Sep 17, 2026
    c861505
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions