Repository navigation
docs: add the Python library reference page (#260) - #284
Merged
Merged
Conversation
docs/ covered the CLI, config and MCP server but had no library reference; it existed only as README snippets and the agent-facing skill playbook. docs/python-library.md is the public-surface map: import surface, every driver kind with its constructor, the capability protocols + VideoScope, the KVMClient method surface, the safety gate (dry_run first, then confirm; EffectClass), run_healthcheck/preflight, the full error hierarchy, the vision contract and sensing hierarchy, the two SSH channels, the auto-detection probe table (detect.py's docstring), and the evidence-data helpers. Every snippet was executed against the fake driver before it went in. Named python-library.md rather than library.md: the skill playbook already publishes to the wiki as library.md and wiki links map by stem. Registered in PAGES (Reference), docs/README.md and llms.txt. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 5
✨ Finishing Touches
Comment |
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.
Closes #260.
What
docs/python-library.md— the reference page the audit found missing:docs/covered CLI, configuration and the MCP server, but a library user had only README snippets and the agent-facing skill playbook (which is about driving safely, not about what exists).Sections: the public import surface (
kvm_pilot.__all__+ subpackages, underscore = private) · building a driver (make_driver,resolve_hostprecedence,make_driver_from_configincl.auto,register_driver) with a table of every kind and its constructor · capabilities and the protocol → method table,VideoScopesemantics · theKVMClientmethod surface grouped, destructive ones marked · safety (dry_runfirst, thenconfirm;allow_alldefault means unattended;EffectClass/effect_of) · health (run_healthcheck,HealthReport,preflight/HealthGateError,AutoFix) · the full error hierarchy with when-raised · vision (make_backendkinds,VisionBackendcontract,ScreenAnalyzeroptions,ALL_PHASES, the sensing hierarchy andDEFAULT_OCR_RULES, consensus) · the two SSH channels · the auto-detection probe table fromdetect.py· evidence-data helpers (load_registry,rollup,compute_maturity) · a complete safe script.This closes the "sensing-hierarchy prose home" half of #13 and the library half of #152's best-practices ask, as the issue anticipated.
Why
python-library.md, notlibrary.mdThe skill playbook
src/kvm_pilot/skill/references/library.mdalready publishes to the wiki aslibrary.md, and wiki link rewriting maps by file stem, so a secondlibrary.mdwould collide. The reason is recorded next to thePAGESentry.Verification
SafetyError;dry_runflip skips;effect_of;run_healthcheck(...).worst;KeyErroron an unknown profile;ValueErroron an unknown kind;wait_for_stateraiseskvm_pilot.TimeoutError; the powered fake withphase="grub_menu"resolves without a model call;rollup(vendor="gl.inet", product="RM1PE")returns rows).PAGES(Reference),docs/README.md,llms.txt;build_wiki.py --checkand the docs guards pass.🤖 Generated with Claude Code