Skip to content

Kit tracer: OSC codec, Coordinator, mapping JSON, Play in → Play LED #13

Closed

Description

@Skeyelab

Parent

#12

What to build

The Swift package that holds all bridge logic exists and proves the full path with one control, entirely under swift test. A Play press reaching the Coordinator sends Syndicate PlayPause, and Playing feedback lights the Play LED. The OSC codec and the default mapping are real, not stubs.

Acceptance criteria

  • The package has a Core module, with no CoreMIDI, Network or UI imports, and builds and tests from the terminal with swift test.
  • The OSC codec encodes int32, float32 and string arguments. Its byte tests use literals worked out by hand from OSC 1.0. It decodes messages and bundles, skips unknown type tags, and matches addresses without regard to case.
  • Multi-argument routes (HotCue n 1/0, SetCueLoop n) encode correctly.
  • The default mapping is ported value for value from the Python default mapping into bundled JSON. It decodes into a Codable model. A user override merges over it the same way the Python config merge does.
  • The Coordinator takes a fake MIDI system, an OSC sender, a clock and a log sink. It holds a list of Bridges, one for now.
  • Tests show that a Play press sends /Syndicate/Deck/1/PlayPause 1, that the release sends nothing, and that /Syndicate/Deck/1/Playing 1 turns the Play LED to full (127). While stopped it stays dim (1).
  • Start sends /Syndicate/Feedback/Resend 1.
  • CI runs swift test on pull requests.
  • Written test-first with /tdd, at the agreed seams (the Coordinator with fakes, and OSC packet bytes).

Blocked by

None (can start immediately).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions