Skip to content

[fuzz] clean_asr|oracle-only:MatlabExecutionError|na #583

Closed

Description

@github-actions

Confirmed differential fuzz divergence. EEGLAB output is the oracle.

oracle MatlabExecutionError: Index in position 1 is invalid. Array indices must be positive integers or logical values.

Activity

  1. added
    fuzz
    fuzz-unconfirmed
    on Nov 10, 2026
  2. suraj-ranganath commented on Nov 11, 2026

    @suraj-ranganath
    Member

    🤖

    Research

    The likely oracle defect has two stages: clean_windows.m uses sort(wz) without a dimension, which sorts across time when there is only one channel, then ASR reaches the known zero-width fit. Applying that MATLAB sort rule to the captured 17 Python z-scores predicts 124 retained samples (129:218, 825:858, 1-based), three calibration windows, and m=0 at X(m,:). EEGPrep sorts across channels, retains 37 samples, and falls back to all 858 samples; its result is bit-identical to its explicit all-data calibration result.

    Proposed Fix

    Capture the MATLAB reference mask and full stack before adding a narrow oracle-defect classifier; preserve EEGPrep's channel-axis sorting. Keep this case distinct from #582 because it also exposes the single-channel sorting defect. The 124-sample MATLAB path is a source-based prediction, not a live capture: access to jamming is currently blocked.

  3. suraj-ranganath commented on Nov 11, 2026

    @suraj-ranganath
    Member

    🤖 Confirmed on jamming, MATLAB R2025b Update 7, EEGLAB d0963be9, clean_rawdata 85eab7d2.

    MATLAB retains exactly the predicted 124 samples, 129:218 and 825:858 (1-based): sort(wz) sorts the single-channel scores across time. The three calibration windows then raise MATLAB:badsubscript at asr_calibrate>fit_eeg_distribution:395, followed by asr_calibrate:206 and clean_asr:180. MATLAB with reference selection off produces exactly equal sample values to EEGPrep's full-recording fallback after its correct channel-axis selection leaves 37 samples; five zero samples differ only in their sign bit.

    Verdict is now confirmed: EEGLAB sorting and calibration defects. Keep EEGPrep's explicit sorting dimension and classify the oracle failure without changing tolerances. Implicit sorting dimension, invalid index.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzfuzz-unconfirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions