Repository navigation
Closed
8 / 88 of 8 issues completed
Copy link
Description
🤖
Epic: Complete EEGPrep Remaining EEGLAB Core Parity Gaps
Summary
This epic completes the first seven items in .notes/eeglab-migration-gap-audit.md:
- Long-tail EEGLAB helper coverage
- Missing or legacy
pop_*entry points - Unsupported options in implemented functions
- STUDY and group-level depth
- Statistics package
- Time-frequency internals
- File format and channel-location long tail
This is an audit-driven porting epic, not a blind one-file-to-one-file MATLAB clone. EEGPrep should port functions that are user-facing, workflow-supporting, documented, or required by parity tests. Stale MATLAB-only helpers, obsolete aliases with no user path, external-toolbox-only features, and purely MATLAB GUI/runtime shims must be explicitly classified instead of adding bloat.
Branching Model
- Epic branch:
feature/eeglab-core-parity-completion - Phase PR target:
feature/eeglab-core-parity-completion - Final epic PR target:
origin/develop
Phase PRs should close their own phase issue. The final epic PR should close this parent issue after all phase branches integrate and pass the epic-level verification.
Phase Issues
- Phase 1: Parity matrix, staleness triage, and porting contracts #132: Phase 1: Parity matrix, staleness triage, and porting contracts
- Phase 2: File format and channel-location long tail #133: Phase 2: File format and channel-location long tail
- Phase 3: Statistics package #134: Phase 3: Statistics package
- Phase 4: Time-frequency internals and legacy time-frequency entry points #135: Phase 4: Time-frequency internals and legacy time-frequency entry points
- Phase 5: Unsupported options in existing user-facing functions #136: Phase 5: Unsupported options in existing user-facing functions
- Phase 6: STUDY and group-level depth #137: Phase 6: STUDY and group-level depth
- Phase 7: Remaining long-tail core helpers and missing pop_* wrappers #138: Phase 7: Remaining long-tail core helpers and missing
pop_*wrappers - Phase 8: Epic closeout, docs, QA, and final evidence #139: Phase 8: Epic closeout, docs, QA, and final evidence
Required Project References
- AGENTS.md:
/Users/suraj/Desktop/eegprep/AGENTS.md - Feature workflow:
/Users/suraj/Desktop/eegprep/.agents/skills/eegprep-feature-development/SKILL.md - GUI visual parity workflow:
/Users/suraj/Desktop/eegprep/.agents/skills/eeglab-gui-visual-parity/SKILL.md - GUI mixed-flow QA workflow:
/Users/suraj/Desktop/eegprep/.agents/skills/gui-agent-flow-qa/SKILL.md - Migration gap audit:
/Users/suraj/Desktop/eegprep/.notes/eeglab-migration-gap-audit.md - EEGLAB reference source:
src/eegprep/eeglab/
Global Rules
- Use EEGLAB as the parity oracle during development, but package runtime code must work standalone without
src/eegprep/eeglab/. - Preserve EEGPrep's mixed GUI plus
eegprep-consoleworkflow. GUI actions, console commands, dataset selection,EEG,ALLEEG,CURRENTSET,LASTCOM,ALLCOM,STUDY, andCURRENTSTUDYmust stay synchronized. - GUI features must match EEGLAB alignment, arrangement, labels, text fields, buttons, defaults, enabled states, workflow, and visual feel before adding EEGPrep-native polish.
- Attach GUI side-by-side images to PRs as GitHub user attachments. Do not commit visual artifacts.
- Do not port stale functions just because same-name MATLAB files exist. Classify them with rationale.
- New user-facing functions need help Markdown under
src/eegprep/resources/help/. - New feature code should have focused tests aiming for more than 90% coverage and MATLAB parity tests where meaningful.
Parallelization And Merge Order
- Merge Phase 1 first.
- After Phase 1, run Phases 2, 3, and 4 in parallel.
- Start Phase 5 after Phase 2 and Phase 4 APIs are stable; merge it after both.
- Start Phase 6 after Phase 3 and Phase 4 merge; it may overlap with late Phase 5 work if conflicts are managed.
- Run Phase 7 after Phases 2-6 expose helper needs.
- Run Phase 8 last.
Recommended merge order: 1 -> 2 + 3 + 4 -> 5 + 6 -> 7 -> 8 -> final epic PR.
Epic-Level Acceptance Criteria
- EEGPrep covers useful EEGLAB core parity gaps 1-7 without adding stale MATLAB bloat.
- Every ported feature works standalone in Python without runtime dependence on
src/eegprep/eeglab. - GUI, Python API, and
eegprep-consoleremain synchronized for user-facing workflows. - EEGLAB users can predict names, behavior, history, dialogs, defaults, and outputs.
- Remaining non-ported functions are intentionally classified with clear rationale, not silently forgotten.
- Final branch passes:
uv run --no-sync ruff check .uv run --no-sync ruff format --check .uv run --no-sync ty checkEEGPREP_SKIP_MATLAB=1 uv run --no-sync pytest -m "not slow"- MATLAB-enabled parity suite where available
- visual parity suite for GUI changes
./pre-commit.py --changed-from origin/develop
/goal Prompt For Epic Closeout
/goal Complete the remaining EEGLAB core parity epic for gaps 1-7. Ensure every phase has merged into feature/eeglab-core-parity-completion, validate the parity matrix, docs, help resources, GUI evidence, mixed GUI/console QA, MATLAB parity, lint/type checks, non-slow tests, and final integration behavior. Fix real issues from review without expanding scope beyond audit-approved EEGPrep standalone parity, then open the final epic PR to origin/develop with phase evidence.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 8 sub-issues
Activity
claude commentedon Jun 5, 2026
🤖 Plan:
Research
#131 is a multi-phase porting epic, not a fixable defect. It already names its own scope (audit gaps 1–7), branching model (
feature/eeglab-core-parity-completion), acceptance criteria, and merge order. Eight child phase issues (#132–#139) carry the actual deliverables; this parent is a roadmap and closeout tracker.Relevant code
.notes/eeglab-migration-gap-audit.md— 570-line gap audit driving all 7 phasessrc/eegprep/functions/{popfunc,sigprocfunc,studyfunc,timefreqfunc,adminfunc}/— porting targetssrc/eegprep/functions/guifunc/menu_placeholders.py— placeholder inventory referenced by audit.agents/skills/eegprep-feature-development/SKILL.md— workflow the epic mandatesProposed Approach
Do not open a PR against #131. The epic spans 7 audit areas across hundreds of MATLAB sources (
miscfunc111,sigprocfunc99,studyfunc105 missing by same-name check) and explicitly requires standalone-runtime classification per function — this is design + multi-week implementation work, far beyond the >100-line single-agent boundary in the fix-issue skill.Recommended path:
feature/eeglab-core-parity-completion, fan out Phase 2: File format and channel-location long tail #133/Phase 3: Statistics package #134/Phase 4: Time-frequency internals and legacy time-frequency entry points #135 in parallel per the epic's stated merge order.develop.Agent-resolvable subtasks live in the phase issues, not here. The epic should remain open until #139 lands.
Duplicate-work preflight: no open PR targets
feature/eeglab-core-parity-completionor any phase scope. Only open PR is #130 (EEGBrowser visual parity, unrelated).suraj-ranganath commentedon Jun 5, 2026
🤖 Phase 3 statistics package note for PR #141: statcondfieldtrip remains an external-dependency skip because it depends on FieldTrip-style machinery outside the core parity package; statcond cluster correction is intentionally not implemented in Phase 3 because no Phase 4/6 consumer needed it and it needs a separate correction design; root-level exports such as eegprep.statcond were not added to avoid broad root API churn, with public imports available under eegprep.functions.statistics.