Skip to content

engine: remove the unused patch messages from project_io.proto #538

Open

Description

@bpowers

project_io.proto defines patch messages that nothing uses: ProjectPatch, ModelPatch, ProjectOperation, ModelOperation, and the *Op payloads (UpsertStockOp, RenameVariableOp, ...).
Every real patch goes through JSON into the hand-written Rust types in patch.rs, so the proto versions are dead and mislead anyone extending the patch API.

Fix

Delete these messages from project_io.proto and regenerate (pnpm build:gen-protobufs).
This is wire-safe: only Project is stored in the database, and the payloads reuse Variable.*, View, SimSpecs, and Source, which stay.
Alternative: make protobuf the patch wire format; only worth it if a binary patch format is ever needed.

Pointers

  • src/simlin-engine/src/project_io.proto: the messages after Source
  • src/simlin-engine/src/project_io.gen.rs: generated
  • Live path: src/simlin-engine/src/patch.rs, src/libsimlin/src/patch.rs, src/engine/src/json-types.ts

Activity

  1. added
    engine
    hygiene
    on Jun 8, 2026
  2. changed the title [-]engine: protobuf ProjectPatch/ModelPatch/ModelOperation messages are dead schema[/-] [+]engine: remove the unused patch messages from project_io.proto[/+] on Oct 12, 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

    enginehygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions