Repository navigation
docs: point the plugin inventory reference at the module that exists - #448
Merged
chrisknvidia merged 4 commits intoNov 11, 2026
Merged
Conversation
Three docstrings cite `skillevaluator.plugin_components`, which was never created. The inventory lives in `skillevaluator.plugin_inventory`: the citations landed in NVIDIA#250 (2026-10-29) one day before NVIDIA#257 (2026-10-30) composed the inventory under the `plugin_inventory` name, so the references describe a module that the implementation replaced before either shipped. Two of the three are `:mod:` roles, where the fix is unambiguous, so those change here: - `plugin_mcp.py:13` - `plugin_paths.py:16` The third, `plugin_manifest.py:280`, points at `build_plugin_inventory` — a *function* that also does not exist. Its sentence describes that function taking an `additional` argument, while `plugin_inventory_for_root` takes `(path, *, allowed_private_hosts, hook_allowed_urls)`, so picking a replacement means guessing what the paragraph meant. Left alone rather than guessed at; say the word and I will take it separately once the intended signature is clear. Found by resolving Sphinx cross-reference roles in docstrings against the symbols the package actually defines, then checking dotted targets on the filesystem — the first version of that check reported `harbor.upload.db_client` as missing in another repo, which is how I learned to resolve module paths rather than symbol names. Signed-off-by: lxcxjxhx <[email protected]>
lxcxjxhx
requested review from
chrisknvidia,
mosheabr,
rmalani-nv and
rng1995
as code owners
November 10, 2026 09:00
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Three docstrings cite
skillevaluator.plugin_components. That module was never created — the inventory lives inskillevaluator.plugin_inventory.The timeline says why: the citations landed in #250 (
2026-10-29), and #257 (2026-10-30) composed the inventory under theplugin_inventoryname. The references were written one day before the implementation picked a different filename, and nothing went back to update them.Result today: a reader following the pointer finds no such module, and
grep plugin_componentsin the package returns only those three docstrings.Scope
Two of the three are
:mod:roles, where the intended target is unambiguous:plugin_mcp.py:13:mod:\skillevaluator.plugin_components``:mod:\skillevaluator.plugin_inventory``plugin_paths.py:16Deliberately not included:
plugin_manifest.py:280cites:func:\~skillevaluator.plugin_components.build_plugin_inventory`. That function does not exist either, and the sentence describes it as taking anadditional` argument — while the inventory module's entry point isNo
additional, different parameters, different return. Replacing the reference there means deciding what the paragraph was describing, which is a guess I would rather not make inside a docs fix. Happy to take it separately.How it was found
Resolved Sphinx cross-reference roles (
:class:/:func:/:mod:…) in docstrings against the symbols the package actually defines, then checked dotted targets on the filesystem.The first version of that check only compared symbol names, and in another repository it reported
harbor.upload.db_clientas missing — a module that exists atsrc/harbor/upload/db_client.py. Adding a filesystem resolution step for dotted targets removed that false-positive class; what is left here are references whose module genuinely is not present.Verification
The remaining 5 are unrelated: a third-party
richrole and a few identifiers named in prose that are not API symbols.Comment-only change, two lines, no behaviour affected.