Repository navigation
Set up parity testing harness for agentic development - #43
suraj-ranganath wants to merge 9 commits into
Conversation
Code Review: PR #43 — Parity Testing HarnessThis is a well-structured infrastructure PR that establishes the right foundations for agentic EEGLAB parity work. The architecture is sound and the layering (config → compare → oracle → report) is clean. Below is detailed feedback organized by file and theme. OverviewThe PR introduces:
Issues and Suggestions
|
| Category | Status |
|---|---|
| Architecture | ✅ Well-layered, clean separation |
| Type annotations | Dict vs dict, Optional vs |) |
| Resource loading | importlib.resources |
resolve_oracle_backend() logic |
|
| Top-level namespace | |
| Known deviations | ❌ issue = "TBD" must be resolved before merge |
| Machine paths in HARNESS.md | ❌ Should not be committed as absolute paths |
| Test coverage | |
| Security | ✅ Path traversal check in ArtifactOracle is correct |
| CI wiring | ✅ Parity manifest inspection step is a good gate |
The harness design is solid. The two blocking items before leaving draft are the issue = "TBD" deviations and the machine-specific paths in HARNESS.md. The remaining items are improvements rather than blockers.
Reviewed by Claude Sonnet 4.6
|
Addressed the review feedback in Changes made:
Validation:
|
|
Pushed Root cause: Fix: Validation:
|
|
@claude review |
Code Review: Parity Testing Harness (#43)Overall this is a well-architected PR. The manifest-driven governance model, oracle backend abstraction, and recursive comparator design are all solid choices. The notes below are ranked roughly by severity. Potential Bugs / Correctness
Deviation tolerances are stored but never enforced
Code Quality
except Exception:
return FalseA broad
Performance
Test Coverage
No test for Minor / Style
SummaryThe harness foundation is solid. The manifest-driven approach, oracle backend abstraction, and path-traversal protection in
|
|
Closing because this PR is no longer relevant. |
Summary
This PR sets up the foundational testing harness needed to guide agentic development of EEGPREP toward EEGLAB parity.
eegprep.paritypackage for manifest loading, known deviations, oracle backend selection, comparison utilities, and parity reporting.pytest.HARNESS.md.Why
The goal is to make EEGPREP a production-quality Python equivalent of EEGLAB. Before broad agentic conversion work, we need a rigorous harness that makes expected parity behavior explicit and continuously testable across math, data structures, workflows, saved artifacts, and eventually visual/UI behavior.
Validation
python -m eegprep.parity --format jsonmanifest inspection path.