You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: remove the unused patch messages from project_io.proto #538
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
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
Activity
[-]engine: protobuf ProjectPatch/ModelPatch/ModelOperation messages are dead schema[/-][+]engine: remove the unused patch messages from project_io.proto[/+]