You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document external extension installation, package format, trust states, and no zip-hosting policy. Add the eegprep-extension-development skill and a lightweight check tying docs and skill text to real extension SDK symbols and install commands.
Check the new test's assertions against the source
Post review feedback
Code review
Overall assessment: Looks good. Documentation, the agent skill, and the guard test are accurate and internally consistent with the real eegprep.extensions SDK.
Highest-risk area: the new test's coupling to docs/SDK strings (verified consistent).
Merge recommendation: Safe to merge.
I verified every example and claim against src/eegprep/extensions.py and src/eegprep/__init__.py:
All 11 SDK_SYMBOLS in tests/test_extension_docs.py are exported from both eegprep (lazy-export map in __init__.py) and eegprep.extensions, and each appears in the combined doc/skill text. ✅
EXTENSION_ENTRY_POINT_GROUP == "eegprep.extensions" matches extensions.py:16 and the docs. ✅
Every ExtensionStatus value (bundled, installed, curated, disabled, incompatible, failed_import, invalid_spec, missing_dependency, unknown) is referenced in extensions.rst, so test_extension_docs_cover_registry_status_language will pass. ✅
All five INSTALL_COMMANDS are present verbatim in extensions.rst. ✅
The constructor examples are signature-correct: ExtensionMenu(path, action, label), ExtensionAction(name, target=LazyImport(module, attr)), ExtensionPopFunction(name, target), ExtensionResource(package, path), and the ExtensionSpec(...) field names (package_name, eegprep_requires, actions, menus, pop_functions, help_resources) all match the dataclasses. ✅
Behavioral claims hold: validate_extension_spec(..., check_resources=True) does flag missing ExtensionResources (extensions.py:516-525), required deps surface as missing_dependency (extensions.py:511-514), and pop_* names are enforced to start with pop_ (extensions.py:560). ✅
Blocking
None.
Important
None.
Nits
tests/test_extension_docs.py:13 — hard dependency on a file outside this PR._extension_text() calls path.read_text() on docs/source/api/extensions.rst, which is not added by this PR. It exists on the base branch so the test passes today, but if that file is ever renamed/removed the test fails with a FileNotFoundError rather than a clear assertion message. Optional: assert existence first (e.g. assert path.exists(), path) so the failure points at the cause. Low priority.
Test gaps
None. The three tests are well-targeted: they tie the prose to importable SDK symbols, the real entry-point group constant, the live ExtensionStatus enum, and the supported uv add install paths — exactly the things that silently rot when the SDK changes.
EEGLAB parity notes
None — docs-only change. The pop_* history/console guidance (return_com=True, (EEG, com), 1-based EEGLAB-facing indices converted to 0-based internally, EEGPrepSession sync) correctly restates the AGENTS.md conventions.
Note: I couldn't execute uv run pytest tests/test_extension_docs.py — Bash was gated in this run — so the pass/fail above is from manually checking each assertion against the source rather than a live run. Everything I checked lines up, so I expect it green; worth a local confirmation.
· phase/4b-extension-docs-skill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document external extension installation, package format, trust states, and no zip-hosting policy. Add the eegprep-extension-development skill and a lightweight check tying docs and skill text to real extension SDK symbols and install commands.
Closes #119