Skip to content

StreamWatch 0.2.0: correct track scoring, queue notice metrics, license - #2

Merged
troylefevre65 merged 2 commits into
mainfrom
release/0.2.0
Nov 29, 2026
Merged

troylefevre65 merged 2 commits into
mainfrom
release/0.2.0

Conversation

@troylefevre65

Copy link
Copy Markdown
Owner

Purpose

StreamWatch 0.2.0. The comparison view scored tracks against the wrong boundaries, the predictor had nothing to measure, and the repository had no license.

Scoring

  • track_formats took the collector's late observation of a track change for the boundary, so the next track's first, still-unknown RateCue snapshot was credited to the track that had just ended. Over two days it reported 194 of 427 plays as ratecue_unknown and 6 as MISMATCH, where RateCue had ended 139 of 399 plays without a depth and had published no wrong lossless depth. A track now runs from its estimated start to the next one's.
  • The decoder report is selected by when it was logged (the audible boundary), not by when Music began buffering the item.
  • Rows that are not plays of their own are left out: Music showing the previous track with the new position for a moment, and one play recorded twice.
  • A report with a rate and no depth is a lossy rendition, scored as such.

Prediction

  • queue_prediction_metrics scores Music's own advance notice of a queue item's format, when it queues the item and when it starts buffering it, against the item's first decoder report. No track identity is involved. Existing databases are scored once from the log lines they already hold.

Release

  • GPL-3.0-only license, matching RateCue; NOTICE with attribution to RateCue and LosslessSwitcher and the licenses of the agent's Python packages; contribution guidelines, code of conduct, issue and pull request templates, changelog, SPDX identifiers.
  • Works with RateCue 0.2.0 (explicit display fields, new menu title) and earlier.

Validation

  • python3 -m unittest discover -s tests passes (33 tests; 10 new)
  • A focused test covers a changed pattern, view, gate rule or agent tool: track boundaries, lossy reports, duplicate starts, the restart debounce, queue notices, both menu-title formats, and the new view through the SQL gate
  • Nothing the agent can read or send carries track metadata, device identity, paths or credentials: the view tells tracks apart by duration, not persistent ID, and the gate test reads the new view and table
  • StreamWatch still only observes
  • Applied to a copy of a two-day database, then deployed on one Mac: 764 queue notices scored at startup, the buffered variant matched for all 321 items that reported

Not exercised on a live system

  • The agent's use of the new metrics over more than a few minutes.
  • The Linux model-host path; only the collector, gate and agent on one Mac were run.

Private vulnerability reporting is not enabled on this repository, so the issue template points to the security policy. Enabling it under Settings → Code security would let SECURITY.md drop its interim note.

🤖 Generated with Claude Code

troylefevre65 and others added 2 commits November 29, 2026 14:59
…otices

Comparison view
- track_formats selects the decoder report by when it was logged, which is
  the audible boundary, instead of by when Music began buffering the item.
- A track runs from its estimated start to the next one's. The view had
  taken the collector's late observation of a track change for the
  boundary and credited the next track's first RateCue snapshot to the
  track that had just ended: 194 of 427 plays reported unknown and 6
  mismatched, where RateCue had ended 139 of 399 without a depth and had
  published no wrong lossless depth.
- Leave out two kinds of row that are not plays of their own: Music showing
  the previous track with the new position for a moment at a boundary, and
  one play recorded twice.
- A report with a rate and no depth is a lossy rendition. Displaying no
  depth for it is a match; displaying one is a mismatch.

Collector
- queue_prediction_metrics scores Music's advance notice of a queue item's
  format, at queueing and at buffering, against the item's first report. A
  database that predates the table is scored once from raw_log.
- A same-track restart is recorded once a second poll confirms it.
- Read the displayed format from the explicit fields RateCue 0.2 publishes,
  and understand both the new and the earlier menu title.

Gate and agent
- Allow RateCue's read-only decoder-status command.
- Describe the new semantics and tables in the agent's schema notes.

Adds SPDX license identifiers to every source file.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
- License StreamWatch under GPL-3.0-only, matching RateCue.
- NOTICE: copyright and warranty statement, attribution to RateCue and to
  LosslessSwitcher for the log patterns the collector follows, the licenses
  of the Python packages the agent installs, and trademarks.
- Contribution guidelines, code of conduct, issue and pull request
  templates.
- Changelog, in Keep a Changelog form.
- README: introduction and badges, the corrected comparison, the queue
  notice metrics, a project guide, and license and credits.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@troylefevre65
troylefevre65 merged commit 5c971a4 into main Nov 29, 2026
2 checks passed
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.

1 participant