Skip to content

docs: establish the Split Screen peer floor (1.10.6) (#40) - #45

Merged
cchacs merged 4 commits into
mainfrom
pullfrog/40-splitscreen-peer-floor
Sep 30, 2026
Merged

cchacs merged 4 commits into
mainfrom
pullfrog/40-splitscreen-peer-floor

Conversation

@pullfrog

@pullfrog pullfrog Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Closes #40.

What this settles

Piano is standalone-compatible, but authoritative focus for multi-panel MIDI routing comes from Split Screen's six-method window.slopsmithSplitscreen focus API. So the peer needs a floor of its own, and the repo carried two numbers for it: the earliest auditable provider snapshot (1.10.6, 54db8d2) and a version a maintainer had hand-verified (1.14.5, from #34).

The floor is 1.10.6. All six methods are already there, and their bodies are byte-identical to how they read on main (1.14.21, aefac76); all 26 version runs in between carry them. So 1.10.6 is published, superseding the 1.14.5 "checked floor" note — which recorded a check, not a floor.

Changes

  • README — a fourth Requirements entry, Peer plugin (optional): Split Screen, for focused multi-panel MIDI. Not needed for the board, MIDI input or scoring; required for focus-routed MIDI. Tables the six methods, states the floor, and states the degraded behavior on a partial or older surface as behavior rather than as "fail-soft":
    • focus stops being authoritative — every panel resolves as focused, so routed notes and their scoring follow panel mount order instead of the panel the user is looking at;
    • chrome falls back to the whole-player mount and the shared control rail, so N panels stack N overlays and N gears in the same place.
  • screen.js — comments only, naming the floor and the cost of the fallback. No behavior change, so no version bump.
  • CLAUDE.md — the integration section records the floor, the audit, and the degradation.
  • tests/host-compat.test.js — pins every state: absent, partial in each of its two shapes, the 1.10.6 floor, and the current 1.14.21 surface. The current-surface test drives each panel through its whole lifecycle — mount, draw, resize, the first settings open, a host canvas replacement, then destroy() — before reading the helper's call log, so a dependency on a post-floor method fails the test from whichever code path introduced it, teardown included.

Why not plugin.json

Issue item 5 asked for the floor in machine-readable metadata. feedBack's manifest schema has no feature-scoped optional-dependency field: the top level carries no requires / peerDependencies key, and a capabilities.* block is closed to unknown fields (additionalProperties: false) — audited at af29496. So the floor cannot live in plugin.json until the host learns to read one, and the tests are the executable record in the meantime. README says what value a future field should carry.

Verification

  • node --test tests/*.test.js — 115 pass, 0 fail (22 in host-compat.test.js). Includes feat: detect core drifting from the declared minimum-host surface (#43) #44's host-surface drift parity tests, merged in below.
  • Mutation-checked the guards against screen.js and reverted:
    • a post-floor ss.getPanels() in _createSettingsPanel → passes at mount-only reach, fails the containment test now;
    • the same call in destroy()'s unsubscribe branch → passes with the call log read before teardown, fails the containment test now;
    • widening init()'s subscribe gate to _ssActive() → the chrome-lookup partial shape fails;
    • narrowing it to onFocusChange alone → the unsubscribe-half partial shape fails.
  • node -c screen.js clean.

Merge with main

#44 added the host-surface drift checker, which touches the same three files. Resolved in a separate commit as the union of both sides: CHANGELOG.md takes both entries, README.md keeps the drift checker's sentence alongside the count-free "every test in that file" wording, and tests/host-compat.test.js keeps the peer-floor fixtures alongside #44's drift parity tests, which share no declared names. Both partial-surface guards were re-checked on the merged tree and still discriminate as before.

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

Piano stays standalone-compatible, but authoritative focus for multi-panel
MIDI routing comes from Split Screen's six-method focus API, so the peer
carries a floor of its own. The floor is 1.10.6 (commit 54db8d2), the
earliest auditable snapshot: the six methods are already there, and their
bodies are byte-identical to main (1.14.21, aefac76), with all 26 version
runs in between carrying them. That supersedes the hand-verified 1.14.5
note from #34, which is not a published floor.

README gains a fourth Requirements entry declaring Split Screen optional
for the board, MIDI input and scoring, and required for focused
multi-panel MIDI routing. The degraded behavior on a partial or older
surface is now stated as behavior rather than as fail-soft: focus stops
being authoritative, so routed notes and their scoring follow panel mount
order, and chrome falls back to the whole-player mount and shared control
rail.

tests/host-compat.test.js pins all four states - absent, partial, the
1.10.6 floor, and the current 1.14.21 surface - the last also asserting
that every method the plugin calls is one the floor already publishes, so
a post-floor dependency fails rather than being excused by the current
snapshot's extra eight methods.

The floor stays out of plugin.json: feedBack's manifest schema has no
feature-scoped optional-dependency field and closes capabilities.* to
unknown keys, so the tests are the executable record until the host learns
to read one. No runtime behavior change, so no version bump.
@pullfrog
pullfrog Bot requested a review from cchacs September 30, 2026 04:28
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: get-flashbacks/feedBack-plugin-piano/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 11231395-2875-4791-8a80-91f1b7b85ea4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

codacy-production Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Comment thread tests/host-compat.test.js Resolved
Comment thread tests/host-compat.test.js Resolved
@pullfrog

pullfrog Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Author

Both findings were correct — I reproduced each before changing code, then fixed them. 04895e2 is pushed to PR #45; both threads answered and resolved.

1. The containment guard only watched mount. Right, and worse than the reach suggested: the current-surface test read the helper's call log after init() and focus changes, so a post-floor dependency in the settings-open or overlay-rebuild path was never recorded. Added exercisePanelLifecycle() to drive each panel through draw(), resize(), the first settings open and a highway:canvas-replaced event before the log is read. Mutation-checked: a post-floor ss.getPanels() in _createSettingsPanel passes 18/18 at the old reach and fails the guard now. One correction to the diagnosis, noted in-thread — _applyCanvasDims is not part of the gap, since init()'s _resyncFromHost() already calls it.

2. "Only isActive() is ever called" was false. Confirmed by running it rather than reading it: with omit: ['panelChromeFor'] the observed set is ['isActive', 'onFocusChange'] (+ offFocusChange after teardown), because init()/destroy() gate the subscribe pair on the pair's own existence, not on _ssActive(). The fixture had picked the one omission for which the claim happens to hold. Took both halves of the reviewer's suggestion — the single partial test is now two, one per shape (they degrade identically, are consumed differently), and README.md "Requirements" item 4, CLAUDE.md, and the _ssActive() comment now state the real boundary instead of "nothing is half-consumed". Also renamed an older test whose name asserted the same wrong boundary.

Every guard was mutation-checked in both directions and reverted. 105 pass, 0 fail (18 in host-compat.test.js, up from 13); node -c screen.js clean. Comments and tests only — no user-visible change, so no version bump. PR body refreshed to match.

Task list (8/8 completed)
  • Checkout PR docs: establish the Split Screen peer floor (1.10.6) (#40) #45 branch
  • Fetch and read review comments for review 5366244179
  • Verify each finding against actual code
  • Implement agreed changes
  • Run tests, review diff, commit
  • Re-fetch comments (fresh) before finishing
  • Push branch and reply to threads
  • Report progress

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

@kilo-code-bot

kilo-code-bot Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
tests/host-compat.test.js 595 Partial-surface fixture omits only offFocusChange, the one method the plugin's defensive typeof checks key on. A partial surface that has both onFocusChange/offFocusChange but lacks another method is still subscribed/unsubscribed (screen.js:3129, 3177), which falsifies the new invariants in README.md:82 and CLAUDE.md:125.
tests/host-compat.test.js 567 The "called methods ⊆ floor's six" guard snapshots split.calls without ever calling draw()/resize(), so a post-floor dependency added in the draw/resize/settings paths is never observed and the guard passes silently.
Files Reviewed (5 files)
  • CHANGELOG.md - 0 issues
  • CLAUDE.md - 0 issues (one over-strong invariant, covered by the tests/host-compat.test.js finding)
  • README.md - 0 issues (same over-strong invariant, covered by the tests/host-compat.test.js finding)
  • screen.js - 0 issues (comment-only; plugin consumption verified to be limited to the six floor methods)
  • tests/host-compat.test.js - 2 issues

Fix these issues in Kilo Cloud


Reviewed by free · Input: 0 · Output: 0 · Cached: 0

Two review findings on the Split Screen peer-floor fixtures, both
confirmed against the code before changing anything.

Containment guard reach. The 1.14.21 test read the helper's call log
after mount and focus changes only, so a dependency on a post-floor
method introduced in the draw, resize, settings-open or overlay-rebuild
path was never recorded and the guard passed silently.
exercisePanelLifecycle() now drives each panel through all four before
the log is read.

Partial-surface shape. The fixture omitted `offFocusChange`, the one
omission for which "nothing is half-consumed" happens to hold:
`init()`/`destroy()` gate the subscribe/unsubscribe pair on the pair's
own existence, not on `_ssActive()`, so a surface missing any other
method still subscribes and still releases. Split into one test per
shape, and corrected the README, CLAUDE.md and `_ssActive()` comment,
which claimed otherwise.

Mutation-checked and reverted:

- `ss.getPanels()` in `_createSettingsPanel` -> passes at the old reach
  (18/18), fails the containment test now;
- subscribe gate widened to `_ssActive()` -> the chrome-lookup shape
  fails; subscribe gate narrowed to `onFocusChange` alone -> the
  unsubscribe-half shape fails.

105 pass, 0 fail (18 in host-compat.test.js). Comments and tests only,
so no version bump.

@cchacs cchacs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two changes are needed before merge:

  1. The branch conflicts with current main (37e74f4) in CHANGELOG.md, README.md, and tests/host-compat.test.js. Resolve these while retaining both #44's host-surface drift checks and this PR's peer-floor coverage. I tested that combined shape locally; all 115 tests pass.
  2. The inline finding identifies a gap in the claimed whole-lifecycle containment guard.

The current PR head otherwise passes all 105 tests locally. GitHub has no Actions run recorded for this head.

Comment thread tests/host-compat.test.js Resolved
@pullfrog

pullfrog Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Author

Both items from the review are done and pushed to PR #45 in two commits; the inline thread is answered and resolved.

1. Merge with main (37e74f4). All three conflicts were additive, so the resolution is the union of both sides: CHANGELOG.md keeps the peer-floor entry and #43's drift-checker entry, README.md keeps the drift checker's sentence in the host-section paragraph next to this branch's count-free "every test in that file" wording, and tests/host-compat.test.js keeps the peer-floor fixtures next to #44's four drift parity tests, which share no declared names. Committed on its own (633f276) so the merge stays trivial in the diff.

2. The containment guard excluded teardown. called is now read after the panels are destroyed, so destroy()'s offFocusChange and anything else teardown reaches for are part of the checked set. split.focusListenerCount() === 0 right after the teardown is what keeps the reordering honest — releasing both subscriptions requires offFocusChange, so the assertion fails if teardown ever stops consulting the helper rather than quietly shrinking the checked set. The README and changelog sentences now list destroy() in the lifecycle they describe, and the comment on exercisePanelLifecycle() says why that one entry point is driven by the caller.

Mutation-checked in both directions against screen.js: a ss.getPanels() in destroy()'s unsubscribe branch now fails with the plugin called getPanels, which the 1.10.6 floor does not publish; restoring the old read-before-destroy ordering lets the same mutation through. The two partial-surface guards were re-checked on the merged tree and still discriminate as before.

node --test tests/*.test.js: 115 pass, 0 fail. node -c screen.js clean. Working tree clean.

The kilo-code-bot summary comment on the PR is against the pre-04895e2 head — both of its findings were addressed there, and the second one is the gap fixed in this round.

Task list (4/7 completed)
  • Checkout PR branch
  • Fetch and read all review comments (fresh)
  • Resolve merge conflicts with main in CHANGELOG.md, README.md, tests/host-compat.test.js
  • Fix containment guard to include teardown (destroy) calls
  • Run tests / quality check
  • Commit and push
  • Reply per thread, resolve agreed ones, report progress

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

pullfrog Bot added 2 commits September 30, 2026 16:55
#44 added the host-surface drift checker and its network-free half, which
touch the same three files as this branch. All three conflicts are
additive, so the resolution is the union of both sides:

- CHANGELOG.md: both entries kept, this branch's peer floor first.
- README.md: kept the drift checker's sentence in the host-section
  paragraph and this branch's count-free "every test in that file"
  wording, since the count is what this branch keeps invalidating.
- tests/host-compat.test.js: the peer-floor fixtures and the drift
  parity tests are disjoint, so both blocks are kept. Neither reuses a
  name the other declares.

node --test tests/*.test.js: 115 pass, 0 fail.
The current-surface test read `split.calls` before destroying the
panels, so a Split Screen method reached from `destroy()` never entered
the checked set — while the test, the README and the changelog all
claimed the guard covered the whole lifecycle. `destroy()` is the one
entry point `exercisePanelLifecycle()` cannot drive, since it tears the
panel down rather than exercising it, so the destroy loop moves ahead of
the call-log read.

`split.focusListenerCount() === 0` after the teardown is what keeps
that honest: releasing both subscriptions requires `offFocusChange`, so
the assertion fails if teardown ever stops reaching the helper rather
than quietly shrinking the checked set.

Mutation-checked against `screen.js`: a `ss.getPanels()` inside
`destroy()`'s unsubscribe branch now fails the containment assertion
("the plugin called `getPanels`, which the 1.10.6 floor does not
publish"); with the previous ordering the same mutation passed. The two
partial-surface guards were re-checked on the merged tree and still
discriminate as before.

node --test tests/*.test.js: 115 pass, 0 fail.
@cchacs
cchacs self-requested a review September 30, 2026 18:32
@cchacs
cchacs merged commit fef98a2 into main Sep 30, 2026
5 checks passed
@cchacs
cchacs deleted the pullfrog/40-splitscreen-peer-floor branch September 30, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant