Skip to content

Document external extension workflow - #121

Merged
suraj-ranganath merged 2 commits into
feature/eegprep-extension-completionfrom
phase/4b-extension-docs-skill
Jun 3, 2026
Merged

suraj-ranganath merged 2 commits into
feature/eegprep-extension-completionfrom
phase/4b-extension-docs-skill

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

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

@claude

claude Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @suraj-ranganath's task in 2m 57s —— View job


PR Review: Document external extension workflow

  • Read review skill & gather context
  • Review changed files (docs, skill, test)
  • Verify doc claims against real SDK symbols
  • 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

@suraj-ranganath
suraj-ranganath merged commit 7000248 into feature/eegprep-extension-completion Jun 3, 2026
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