Skip to content

docs: document GENERIC as a registered, discoverable registry key - #186

Merged
abduznik merged 1 commit into
mainfrom
hermes/doc-generic-discoverability
Sep 5, 2026
Merged

docs: document GENERIC as a registered, discoverable registry key#186
abduznik merged 1 commit into
mainfrom
hermes/doc-generic-discoverability

Conversation

@abduznik

@abduznik abduznik commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

Issue #148 asked that "GENERIC" be a documented, discoverable key in
DriverRegistry. The code half was resolved in #142 (GenericDriver and
SimulatedGeneric both register under "GENERIC"), but the
documentation half was never done: the registry docstring documented no
keys at all, and docs/supported_instruments.md never mentioned GENERIC.
A caller still had to read factory.py source to know GENERIC exists.

This PR closes that gap:

  • src/instrumation/drivers/registry.py — the DriverRegistry
    docstring now documents the canonical type-key concept, points to
    factory.KNOWN_DRIVER_TYPES, and explicitly describes "GENERIC" as
    an always-registered fallback key with both registered classes.
  • docs/supported_instruments.md — new GENERIC (Universal
    Fallback)
    section: the driver, when it is selected (explicit
    driver_type="GENERIC" or unrecognized *IDN?), and its deliberately
    untyped SCPI passthrough API (safe default, never a silent
    DMM/SA misread).

Test Plan

  • Ad-hoc verification harness: get_drivers_by_type("GENERIC") returns
    both GenericDriver and SimulatedGeneric; the new docs section and
    registry docstring text are present. PASS.
  • Full suite: 518/518 tests pass (no regressions).

Fixes #148

Issue #148's code half was fixed in #142 (GenericDriver/SimulatedGeneric
register under GENERIC), but the acceptance criterion — 'GENERIC is a
documented, discoverable key' — was unmet: neither the DriverRegistry
docstring nor supported_instruments.md mentioned it.

- registry.py: DriverRegistry docstring now lists GENERIC as an
  always-registered key with both driver classes and its fallback role.
- supported_instruments.md: new 'GENERIC (Universal Fallback)' section
  covering the driver, when it is selected, and its intentionally
  untyped SCPI passthrough API.

Closes the documentation gap for #148.
@abduznik
abduznik marked this pull request as ready for review September 5, 2026 09:17
@abduznik
abduznik merged commit 856bbb3 into main Sep 5, 2026
6 checks passed
@abduznik
abduznik deleted the hermes/doc-generic-discoverability branch September 5, 2026 09:17
abduznik added a commit that referenced this pull request Sep 7, 2026
- #148 row marked Fixed in v0.9.0 (GENERIC discoverability docs landed
  in PR #186; issue closed 2026-09-05) instead of 'Open (partially
  addressed)'
- v0.9.0 version-planning row: in progress -> released 2026-09-05
- Header: Target Release -> Status: Released 2026-09-05
- Note re-verification against issue state (gh #188)

Co-authored-by: abduznik <abduznik@users.noreply.github.com>
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.

No GENERIC key ever registered in DriverRegistry, with no discoverability

1 participant