You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phase 5d: STUDY end-to-end parity fixtures and GUI/console QA #80
🤖 Phase issue for the STUDY and standalone integration epic #78.
Goal
Harden STUDY end-to-end behavior with realistic multi-dataset fixtures, MATLAB parity checks, GUI/console flow QA, and cross-phase integration fixes.
Target branch and PR flow
Create the phase branch from feature/study-standalone-completion after Phase 5a, 5b, and 5c land.
Open the phase PR back into feature/study-standalone-completion.
The phase PR should close this issue.
Dependencies
Depends on Phase 5a, 5b, and 5c.
Coordinates with Phase 6a/6b for docs/help/API consistency.
In scope
End-to-end STUDY workflows using realistic multi-dataset fixtures.
MATLAB parity hardening for deterministic STUDY structures, design metadata, precompute outputs, and cluster metadata.
GUI Agent mixed GUI/console QA for common STUDY user paths.
Regression tests for bugs discovered during realistic use.
STUDY-specific documentation/help corrections discovered during QA.
Out of scope
New large STUDY feature families not already represented by Phase 5a/5b/5c unless needed to close a parity hole.
Final package-wide release evidence; see Phase 6c.
Acceptance criteria
A representative end-to-end STUDY workflow succeeds from load/create through design, precompute, plotting, clustering, save/load, and console inspection.
GUI and eegprep-console stay synchronized throughout mixed user flows.
MATLAB parity checks exist for deterministic data structures and document tolerances or intentional deviations.
GUI Agent QA report is attached to the PR, with fixes for any actionable issues found.
Required lint/type/test commands pass.
/goal prompt
/goal Harden EEGPrep STUDY workflows end to end after Phase 5a, 5b, and 5c: build realistic multi-dataset fixtures, compare deterministic structures to EEGLAB/MATLAB, run GUI Agent mixed GUI/eegprep-console QA, fix discovered bugs, update STUDY help/docs where needed, and verify with ruff/format/ty plus focused and non-slow pytest before opening the PR to the STUDY epic branch.
Phase 5c is an epic phase, not a self-contained fix. It is gated on two open, unmerged dependencies and on a base branch that does not exist yet, so opening a PR now would be premature.
Target base branch `feature/study-standalone-completion` does not exist on `origin` (only `feature/eeglab-completion` and the various `phase/*` branches do). The issue says to create the phase branch from it after 5a/5b land.
No open PRs reference Phase 5/STUDY work — no parallel implementation to coordinate with.
Current STUDY surface (pre-5a):
`src/eegprep/functions/studyfunc/` — only stub `pop_` modules: `pop_study.py`, `pop_studywizard.py`, `pop_studyerp.py`, `pop_loadstudy.py`, `pop_savestudy.py`. No `std_` helpers, no `std_precomp`, no clustering, no design metadata module.
No `tests/test_study` files exist.
No `STUDY`/`CURRENTSTUDY` synchronization tests in `tests/test_console_workspace.py`.
No multi-dataset STUDY fixtures under `tests/fixtures.py` or `sample_data/`.
The data/session contract that 5c is meant to harden does not yet exist. Phase 5c cannot reasonably start until 5a establishes `STUDY` dict semantics, file I/O, and `EEGPrepSession` sync, and 5b adds the precompute/plot/cluster surface that 5c's end-to-end fixtures would exercise.
Proposed approach (for human review before any code)
Treat #80 as a planning/holding issue until #65 and #79 merge into `feature/study-standalone-completion`. Concrete steps:
Then open the 5c branch `agent/-fix-80` from `feature/study-standalone-completion` and scope 5c to:
Build 2–3 multi-dataset STUDY fixtures (subjects × sessions × conditions) reusing `tests/fixtures.py` patterns; small enough to commit.
Add a single end-to-end test (`tests/test_study_end_to_end.py`) that exercises load/create → design → precompute → plot → cluster → save/load → console inspection in one flow, asserting `ALLEEG`/`STUDY`/`CURRENTSTUDY` stay consistent.
Add MATLAB parity tests for deterministic structures only (`STUDY.design`, `STUDY.cluster` shapes, precompute output keys) under `tests/matlab/`, gated by `EEGPREP_SKIP_MATLAB` and the existing `matlab`/`parity` markers.
Run `gui-agent-flow-qa` once against the integrated 5a+5b+5c branch and attach the report + side-by-side screenshots as PR comment attachments (not committed files).
Fix only regressions surfaced by the above. Larger design changes go back into 5a/5b or get their own issue.
Open questions for the issue author before implementation:
What dataset shape should the multi-dataset fixture use (subjects/sessions/conditions/channel counts)? Should it derive from an existing `sample_data/` set or be synthesized?
Which deterministic STUDY substructures are in-scope for MATLAB parity here vs in 5a/5b? Suggest: `STUDY.design`, `STUDY.cluster.{name,parent,child,sets,comps}`, precompute output filenames/keys. Numerical parity (ERP/spectrum values) seems better-owned by 5b.
Is GUI Agent QA expected to run inside CI, or only as a one-off attached to the PR? CI integration would be a separate scope.
No PR will be opened from this issue until #65 and #79 merge and the above scope is confirmed.
changed the title [-]Phase 5c: STUDY end-to-end parity fixtures and GUI/console QA[/-][+]Phase 5d: STUDY end-to-end parity fixtures and GUI/console QA[/+]on May 28, 2026
Activity
claude commentedon May 28, 2026
🤖 Plan:
Research
Phase 5c is an epic phase, not a self-contained fix. It is gated on two open, unmerged dependencies and on a base branch that does not exist yet, so opening a PR now would be premature.
Blockers:
Current STUDY surface (pre-5a):
The data/session contract that 5c is meant to harden does not yet exist. Phase 5c cannot reasonably start until 5a establishes `STUDY` dict semantics, file I/O, and `EEGPrepSession` sync, and 5b adds the precompute/plot/cluster surface that 5c's end-to-end fixtures would exercise.
Proposed approach (for human review before any code)
Treat #80 as a planning/holding issue until #65 and #79 merge into `feature/study-standalone-completion`. Concrete steps:
Open questions for the issue author before implementation:
No PR will be opened from this issue until #65 and #79 merge and the above scope is confirmed.
[-]Phase 5c: STUDY end-to-end parity fixtures and GUI/console QA[/-][+]Phase 5d: STUDY end-to-end parity fixtures and GUI/console QA[/+]