Skip to content

Stabilize backend adapter contracts and filter Tauri events by job #4

Description

@blackopsrepl

Summary

Define and normalize backend-facing contracts, with special attention to schedule creation and Tauri event handling.

Problem

createSolver() appears to assume schedule creation returns a raw job ID, and the Tauri event stream does not reliably filter against the requested job. Those assumptions create correctness risks in real integrations.

Scope

  • Document the expected backend adapter contract shape
  • Normalize schedule creation responses instead of relying on implicit raw values
  • Filter Tauri events by the active job identifier
  • Add tests for mismatched jobs, missing IDs, and malformed backend responses

Acceptance Criteria

  • Backend adapter inputs and outputs are explicitly defined in code and docs
  • Schedule creation handles structured responses predictably
  • Tauri event listeners ignore events for unrelated jobs
  • Integration tests cover happy path and contract mismatch scenarios

Notes

This issue should be resolved before promoting the adapter surface as stable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions