Skip to content

refactor: unify GUI<->subprocess IPC contract (single source of truth) #184

Closed

Description

@CameronBrooks11

Part of the Machine-I/O epic (Phase 5).

Scope

Define the GUI<->subprocess message contract once (e.g. JSON Schema or shared types) and generate/validate all three consumers from it: the Rust MarlinResponse enum (marlin.rs), the Python send_response emitter (interactive.py), and the TS types.

Why

Those three are hand-maintained copies today and drift silently.

Acceptance

  • A schema change fails CI on any side that is out of sync.

Activity

  1. added
    python
    gui
    rust
    on Jun 26, 2026
  2. CameronBrooks11 commented on Jun 26, 2026

    @CameronBrooks11
    MemberAuthor

    Folded into #195 (local-API GUI architecture). Once the GUI consumes the FastAPI via a generated OpenAPI client and the bespoke stdio subprocess protocol is retired, the "single source of truth IPC contract" goal is satisfied by OpenAPI — there's no separate GUI↔subprocess JSON contract left to unify. Superseded, not dropped.

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

    guipythonrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions