Skip to content

Epic: Complete EEGPrep remaining EEGLAB core parity gaps #131

Closed
8 of 8 issues completed
Closed

Description

@suraj-ranganath

🤖

Epic: Complete EEGPrep Remaining EEGLAB Core Parity Gaps

Summary

This epic completes the first seven items in .notes/eeglab-migration-gap-audit.md:

  1. Long-tail EEGLAB helper coverage
  2. Missing or legacy pop_* entry points
  3. Unsupported options in implemented functions
  4. STUDY and group-level depth
  5. Statistics package
  6. Time-frequency internals
  7. 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

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-console workflow. GUI actions, console commands, dataset selection, EEG, ALLEEG, CURRENTSET, LASTCOM, ALLCOM, STUDY, and CURRENTSTUDY must 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

  1. Merge Phase 1 first.
  2. After Phase 1, run Phases 2, 3, and 4 in parallel.
  3. Start Phase 5 after Phase 2 and Phase 4 APIs are stable; merge it after both.
  4. Start Phase 6 after Phase 3 and Phase 4 merge; it may overlap with late Phase 5 work if conflicts are managed.
  5. Run Phase 7 after Phases 2-6 expose helper needs.
  6. 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-console remain 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 check
    • EEGPREP_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

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. added
    epic
    P1
    on Jun 5, 2026
  2. claude commented on Jun 5, 2026

    @claude
    Contributor

    🤖 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

    Proposed Approach

    Do not open a PR against #131. The epic spans 7 audit areas across hundreds of MATLAB sources (miscfunc 111, sigprocfunc 99, studyfunc 105 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:

    1. Start with Phase 1: Parity matrix, staleness triage, and porting contracts #132 (Phase 1). It produces the parity matrix and staleness triage that gate all later phases — without it, Phases 2–7 cannot decide which MATLAB files to port vs. classify as stale.
    2. After Phase 1: Parity matrix, staleness triage, and porting contracts #132 merges to 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.
    3. Phase 5: Unsupported options in existing user-facing functions #136 and Phase 6: STUDY and group-level depth #137 follow Phases 2/4 and 3/4 respectively; Phase 7: Remaining long-tail core helpers and missing pop_* wrappers #138 sweeps remaining helpers; Phase 8: Epic closeout, docs, QA, and final evidence #139 is closeout + final PR to 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-completion or any phase scope. Only open PR is #130 (EEGBrowser visual parity, unrelated).

  3. suraj-ranganath commented on Jun 5, 2026

    @suraj-ranganath
    MemberAuthor

    🤖 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1epic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions