Skip to content

Establish the Split Screen peer floor for focused multi-panel MIDI #40

Closed

Description

@cchacs

Target File / Section

  • plugin.json
  • README.md — compatibility/install guidance
  • CLAUDE.md:64-120 — Splitscreen focus-change integration
  • screen.js:1165-1205, screen.js:2846-2995

Category

Consistency | Omission

Flaw Analysis

Piano is standalone-compatible, but its correct multi-instance MIDI routing depends on Split Screen's six-method focus API: isActive, isCanvasFocused, panelChromeFor, settingsAnchorFor, onFocusChange, and offFocusChange.

The implementation safely treats a partial API as inactive, which prevents exceptions. That fallback also changes behavior: multiple Piano panels no longer have authoritative focus routing and the plugin falls back to its main-player single-instance assumptions. The README does not expose this peer dependency or degraded behavior.

CLAUDE.md says the surface was “verified present as of v1.14.5” and calls that the minimum version checked. Local Split Screen history shows the complete focus API in its earliest auditable snapshot, whose manifest is v1.10.6. The repository therefore has two different concepts left unresolved: lowest auditable provider version (1.10.6) and a later version manually verified by the Piano maintainers (1.14.5).

Remediation

  1. Add a README peer compatibility entry: Split Screen is optional for standalone Piano, but required for focused multi-panel MIDI routing.
  2. Validate the six-method contract against Split Screen v1.10.6 and current. If the older snapshot passes, publish v1.10.6 as the floor; otherwise identify the first passing version from history.
  3. State the degraded behavior for partial/older surfaces instead of describing the fallback only as safe.
  4. Add contract tests with absent, partial, minimum, and current Split Screen API stubs.
  5. Record the established peer floor in machine-readable metadata when the host supports feature-scoped optional dependencies.

Activity

  1. pullfrog commented on Sep 26, 2026

    @pullfrog
  2. added theissue type on Sep 26, 2026
  3. added
    documentation
    on Sep 26, 2026
  4. pullfrog commented on Sep 30, 2026

    @pullfrog

    PR: #45

    The floor is 1.10.6 — resolves the two conflicting numbers in the repo. All six focus methods are already present at the earliest auditable snapshot (54db8d2) with bodies byte-identical to main (1.14.21, aefac76), and all 26 version runs in between carry them, so it supersedes the 1.14.5 "checked floor" note from #34, which recorded a check rather than a floor.

    Done:

    • README requirement 4: Split Screen is an optional peer — not needed for the board, MIDI input or scoring, required for focus-routed multi-panel MIDI — with the six methods tabled, the floor, and the degraded behavior on a partial/older surface stated as behavior rather than "fail-soft" (focus stops being authoritative, so notes and scoring follow panel mount order; chrome falls back to the whole-player mount and shared control rail).
    • tests/host-compat.test.js pins all four states — absent, partial (5 of 6), the 1.10.6 floor, and the current 1.14.21 surface. The current-surface test asserts every method the plugin calls is one the floor already publishes.
    • screen.js comments name the floor and the fallback's cost; no behavior change, so no version bump.
    • CLAUDE.md records the floor, the audit, and the degradation; CHANGELOG.md has the entry.

    Skipped deliberately (marked as such in the list): the floor is not in plugin.json. feedBack's manifest schema has no feature-scoped optional-dependency field and closes capabilities.* to unknown keys (audited at af29496), so the tests are the executable record until the host learns to read one — README records the value a future field should carry.

    Verification: node --test tests/*.test.js → 104 pass / 0 fail (17 in host-compat, up from 13). Both new guards mutation-checked against screen.js and reverted — removing the full-surface validation fails the partial test; requiring a post-floor method fails 3 tests.

    Task list (1/7 completed)
    • Audit splitscreen history to find the earliest snapshot with the six-method focus API and its plugin.json version (v1.10.6 claim)
    • Read screen.js splitscreen helper wrappers, CLAUDE.md integration section, plugin.json, existing host-compat tests
    • Add README peer compatibility entry + degraded behavior statement
    • Update CLAUDE.md splitscreen section to record the established peer floor
    • Record peer floor in plugin.json machine-readable metadata if the manifest schema supports it
    • Add contract tests: absent / partial / minimum / current splitscreen API stubs
    • Run node --test tests/*.test.js, self-review diff, commit, push, open PR

    Pullfrog  | View workflow run | via Pullfrog | Using Big Pickle (free) | 𝕏

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

    documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions