Repository navigation
docs: establish the Split Screen peer floor (1.10.6) (#40) - #45
Conversation
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.
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Repository: get-flashbacks/feedBack-plugin-piano/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Up to standards ✅🟢 Issues
|
|
Both findings were correct — I reproduced each before changing code, then fixed them. 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 2. "Only Every guard was mutation-checked in both directions and reverted. 105 pass, 0 fail (18 in Task list (8/8 completed)
|
Code Review SummaryStatus: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (5 files)
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
left a comment
There was a problem hiding this comment.
Two changes are needed before merge:
- The branch conflicts with current
main(37e74f4) inCHANGELOG.md,README.md, andtests/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. - 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.
|
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 2. The containment guard excluded teardown. Mutation-checked in both directions against
The Task list (4/7 completed)
|
#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.

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.slopsmithSplitscreenfocus 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
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, thendestroy()— 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.jsonIssue 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/peerDependencieskey, and acapabilities.*block is closed to unknown fields (additionalProperties: false) — audited ataf29496. So the floor cannot live inplugin.jsonuntil 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 inhost-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.screen.jsand reverted:ss.getPanels()in_createSettingsPanel→ passes at mount-only reach, fails the containment test now;destroy()'s unsubscribe branch → passes with the call log read before teardown, fails the containment test now;init()'s subscribe gate to_ssActive()→ the chrome-lookup partial shape fails;onFocusChangealone → the unsubscribe-half partial shape fails.node -c screen.jsclean.Merge with
main#44added the host-surface drift checker, which touches the same three files. Resolved in a separate commit as the union of both sides:CHANGELOG.mdtakes both entries,README.mdkeeps the drift checker's sentence alongside the count-free "every test in that file" wording, andtests/host-compat.test.jskeeps 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.Big Pickle(free) | 𝕏