Skip to content

Require an EEGLAB parity run and Arno's approval for numerical changes - #860

Merged
suraj-ranganath merged 1 commit into
developfrom
suraj/agents-parity-rule
Nov 29, 2026
Merged

suraj-ranganath merged 1 commit into
developfrom
suraj/agents-parity-rule

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

#606 changed the average reference by 0.156 µV relative to EEGLAB and was merged without the MATLAB reference run its review asked for. After ASR, no subject in sccn/eegprep_parity_test matched EEGLAB.

This updates AGENTS.md so that:

  • any change that can move numerical output relative to EEGLAB, by any amount, gets a parity run against real EEGLAB in MATLAB before merging. That includes precision or dtype changes, summation order, rounding, defaults, and shared helpers. CI and the automated review do not replace it;
  • changes to the preprocessing chain also run sccn/eegprep_parity_test;
  • no numerical change compared with EEGLAB merges without Arno's explicit approval, and a MATLAB run requested by the review is done before merging.

Docs only; no code or numerical change.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @suraj-ranganath's task in 41s —— View job


🤖

Code review

  • Overall assessment: Needs changes. The intent is sound, but the new approval rule conflicts with the existing approval wording.
  • Highest-risk area: Inconsistent merge-approval rules in AGENTS.md (lines 120, 122, 165)
  • Merge recommendation: Needs changes

Blocking

None.

Important

  • AGENTS.md:165 (and :120): approval rule conflicts with the new rule at :122. Line 122 requires Arno Delorme's explicit approval for any numerical change. Line 165, which this PR edits, still says "until a human approves it", and line 120 still says "Core-function PRs need human approval". An agent reading only the GitHub/merge section could treat any human's approval as enough, which is the gap this PR is meant to close. Fix: name the same approver on lines 120 and 165 (inline suggestion posted). Fix this →

Nits

  • AGENTS.md:121: it's unclear what counts as a "parity run against real EEGLAB in MATLAB". Lines 118–119 define one specific run: eeglab-reference.yml, or the local --eeglab-backend=matlab command at the pinned commits. Line 121 uses a different term and gives no command, so an agent can't tell whether that same run satisfies it. Line 120 also still calls it "this single MATLAB reference run", but a preprocessing-chain change now needs a second run (eegprep_parity_test). Fix: say "the EEGLAB reference run described above" and drop "single" from line 120.
  • AGENTS.md:121: the sccn/eegprep_parity_test instruction has no how-to and no reporting location. It doesn't say how to run it, which commit or data to use, or where the result goes. Fix: add a one-line pointer (repo README or command), and require reporting the per-subject match result in the PR description, as line 119 does for the reference suite.

Test gaps

None. This PR only changes docs.

EEGLAB parity notes

None. No code or numerical change.

Comment thread AGENTS.md
- When using `gh` to inspect issues or PRs, prefer `--json <fields>` or explicit narrow flags such as `--comments`; avoid plain `gh issue view` or `gh pr view`, which can fail on this repo because GitHub classic project fields are deprecated.
- If you notice unrelated dead code or unrelated cleanup, mention it separately instead of changing it.
- Do not merge a PR that changes core function implementations until a human approves it. That approval includes the one pre-merge MATLAB reference-suite result described under Testing. PRs that do not change core functions do not need that run.
- Do not merge a PR that changes core function implementations, or any PR that can change numerical results compared with EEGLAB, until a human approves it. That approval includes the pre-merge EEGLAB parity results described under Testing. PRs that change only docs, tests, CI, or tooling and cannot affect numerical output do not need that run.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Important: This line still says "until a human approves it", but line 122 now requires Arno Delorme's explicit approval for the same kind of PR. An agent that reads only this GitHub/merge section could decide that any human's approval is enough, which brings back the gap described for #606. Line 120 ("Core-function PRs need human approval") has the same wording.

Suggested fix: name the same approver in both places, for example:

Suggested change
- Do not merge a PR that changes core function implementations, or any PR that can change numerical results compared with EEGLAB, until a human approves it. That approval includes the pre-merge EEGLAB parity results described under Testing. PRs that change only docs, tests, CI, or tooling and cannot affect numerical output do not need that run.
- Do not merge a PR that changes core function implementations, or any PR that can change numerical results compared with EEGLAB, until Arno Delorme explicitly approves it. That approval includes the pre-merge EEGLAB parity results described under Testing. PRs that change only docs, tests, CI, or tooling and cannot affect numerical output do not need that run.

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