Repository navigation
fix(sections): track per-section stats on the desktop engine path - #82
Closed
mattromano wants to merge 1 commit into
Closed
mattromano wants to merge 1 commit into
mattromano wants to merge 1 commit into
Conversation
currentSection only advanced at the tail of checkMisses(), which returns early under the engine verifier, so desktop sessions recorded no per-section stats and notedetect:session.sections was always empty. Keep the section tracker running on that path, and bin each judgment by the section its note sits in (engine verdicts land after the playhead may have crossed into the next section), falling back to the playhead's section when the note time is unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: mattromano <42412983+mattromano@users.noreply.github.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
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 |
Author
|
Consolidated into #84 (commits kept, rebased onto main, plus the review fixes). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes #81
On the desktop engine-verifier path,
checkMisses()returns before its section scan, socurrentSectionnever advanced and everyupdateSectionStat()call did nothing.sectionStatsandnotedetect:session.sectionswere always empty on desktop._ndTrackSection(t), using a small_ndSectionNameAt(t)lookup.checkMisses()still calls it at the same point on the browser path. On the engine path it now calls it with the same corrected playhead before returning, so the playhead's section row still opens with 0/0.updateSectionStat(type, noteTime)now bins a judgment by the section its note is in (judgment.noteTime), and falls back to the playhead'scurrentSectionwhen the note time is unknown. Engine verdicts land after a note's window closes, often once the playhead is in the next section. Without this, a section's last notes would be credited to the following one. On the browser path, the judgments that carry a note time now bin by the note too, which is the same or more accurate.sectionStats/notedetect:session.sectionsshape.No version bump: there's no stylesheet change. #72, #74, #76 and #78 all bump to 1.33.0, so the maintainer can re-bump after those land if they want one. This branch merges cleanly with all four and with the technique-flags fix (checked with
git merge-tree).Note: #78 adds a top-level
_ndSectionAt(sections, t)for thesectionfield on hit/miss payloads, with the same semantics. Once both land, the two lookups can be merged into one.Tests
test/engine_section_stats.test.js(2 tests). It uses the engine-verifier harness: a stubbedfeedBackDesktop.audiowith queued verdicts and a chart with Intro/Verse sections.[{Intro 1/1}, {Verse 2/0}]. Before the fix this was[].main. With the tracker change but without note-time binning, both still fail.npm test: 355/355 pass.node --check screen.jsis OK, andfeedBack-plugin-spec/tools/validate.pyreportsok.Checklist
git commit -s)🤖 Generated with Claude Code