Skip to content

feat: early PSYCLE-LINUX Listening Lab for human-ear diagnostics - #93

Merged
EmergentMonk merged 6 commits into
mainfrom
feature/early-listening-lab-gui
Nov 9, 2026
Merged

EmergentMonk merged 6 commits into
mainfrom
feature/early-listening-lab-gui

Conversation

@EmergentMonk

@EmergentMonk EmergentMonk commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Objective

Bring forward a bounded, usable desktop GUI so the maintainer can listen to the existing Linux C++ candidate player and report what sounds wrong. This explicitly departs from the October deferred-UI sequence by maintainer request, without accelerating the full Qt tracker UI or altering frozen compatibility evidence.

Changes

  • Add a small native Tk GUI using Python standard library only: choose a local .psy song, pick ALSA/JACK/dummy, choose audio device, play, stop, optionally render a fresh WAV, inspect player diagnostics.
  • Drive the existing psycle-player --wait CLI through an argument-vector subprocess, with graceful newline stop and bounded forced-stop fallback.
  • Default to no configured third-party plugin paths, with explicit unsafe opt-in.
  • Save structured listening JSON: user observations, SHA-256 of song and executable, device/driver, stop/exit code, diagnostics. Reports declare candidate-only evidence / parity UNKNOWN.
  • Add fake-player subprocess unit tests and Xvfb/Tk GUI-construction CI smoke.
  • Document setup, limitations, and three introductory listening tests in docs/LISTENING_LAB.md.

Preservation & scope

  • No engine, frozen manifest, original executable, copyrighted song, plugin, or compatibility-matrix change.
  • This is a temporary listening instrument, not a claim of Psycle UI or sonic equivalence.
  • Linux desktop + C++ Phase 6B player binary required; no real-ear test or hardware validation performed by CI.

Test plan

  • python3 -m unittest discover -s tests -p 'test_listening_lab.py' -v
  • python3 -m py_compile ui/listening_lab.py
  • xvfb-run -a python3 ui/listening_lab.py --smoke-test
  • Human: build candidate player, open local song, select ALSA, listen, compare dummy, record findings.

Please review before merging; do not auto-merge.

Summary by Sourcery

Introduce a bounded experimental Listening Lab to support human-ear diagnostics of the existing Linux candidate player without changing the engine or compatibility evidence.

New Features:

  • Add an experimental standard-library Tk desktop listening lab for playing local Psycle songs through the existing Linux candidate player with selectable audio backends, optional WAV rendering, diagnostics, and structured listening reports.

Enhancements:

  • Keep third-party plugin paths disabled by default and clearly label generated reports as candidate-only evidence with unknown parity.
  • Provide bounded graceful and forced subprocess shutdown plus validation for songs, devices, drivers, and WAV destinations.

CI:

  • Add Ubuntu CI coverage for syntax checks, fake-player subprocess tests, and headless Tk GUI construction under Xvfb.

Documentation:

  • Document Linux setup, listening procedures, safety limitations, evidence boundaries, and introductory auditory tests.

Tests:

  • Add subprocess contract tests covering argument handling, path safety, plugin-path isolation, WAV overwrite protection, and graceful shutdown.

@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Sorry @EmergentMonk, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 hours and 53 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T05:37:00.224113Z 4772100 Manual request
🔒 Security Review ❌ Failed 2026-11-09T05:33:54.771854Z
We couldn’t complete this review. Comment @codex security review to try again.
7d07b49 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Review the Tk listening app and its playback controller together, including playback configuration, subprocess lifecycle, diagnostics, and candidate-only report generation.

  • ui/listening_lab.py L1-403

Configuration

Review the workflow that installs Tk and Xvfb, runs the controller tests, and smoke-tests GUI construction.

  • .github/workflows/listening-lab.yml L1-37

Documentation

Review the setup, listening procedure, safety limitations, and evidence boundaries alongside the README entry that introduces the experimental tool.

  • README.md L11-22
  • docs/LISTENING_LAB.md L1-121

Tests

Review the fake-player regressions for command construction, validation, plugin-path handling, WAV protection, and graceful shutdown.

  • tests/test_listening_lab.py L1-97

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@EmergentMonk

Copy link
Copy Markdown
Member Author

@codex Please Review this exact SHA f43613e against the existing contract. Report only actionable correctness defects, with a minimal reproduction, expected versus actual behavior, and affected lines. State whether each reproduction was executed or statically inferred. Don’t repeat fixed findings without a new failing case. Keep architectural suggestions separate and non-blocking.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: f43613e87f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EmergentMonk
EmergentMonk merged commit 86f9599 into main Nov 9, 2026
45 checks passed
@EmergentMonk
EmergentMonk deleted the feature/early-listening-lab-gui branch November 9, 2026 05:36
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 4772100ee6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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