Skip to content

Add capability discovery packaging sprint - #6

Merged
lishehao merged 2 commits into
mainfrom
codex/capability-discovery-packaging
Jul 15, 2026
Merged

Add capability discovery packaging sprint#6
lishehao merged 2 commits into
mainfrom
codex/capability-discovery-packaging

Conversation

@lishehao

@lishehao lishehao commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a conservative instrument capability registry for the currently supported AWG/oscilloscope models only, plus test-only mock profiles.
  • Add an explicit adapter registry/factory layer so model selection is decoupled from adapter construction without broadly rewriting the legacy equips.py path.
  • Add a safe, mockable resource scan and *IDN? test-connect service, with Tk operator-console controls/status updates.
  • Add a Windows PyInstaller one-folder packaging spike with prerequisites, runtime-path notes, and no-hardware smoke checklist.

Validation

  • PYTHONPATH=src python -m unittest discover -s tests (62 tests)
  • git diff --check
  • git diff HEAD~1 --check
  • python -m py_compile src/app/domain/instrument_capabilities.py src/app/application/services/instrument_discovery.py src/app/infrastructure/instruments/adapter_registry.py src/app/infrastructure/instruments/identity_probe.py src/app/infrastructure/instruments/mock_adapters.py src/app/infrastructure/instruments/equips_factory.py src/app/presentation/tk/controller.py packaging/pyinstaller/auto_load_off_test_onefolder.spec
  • Tk smoke checked earlier in this branch: AppWindow opens and exposes Scan Resources / Test Connect controls.

Honesty Boundary

  • No new real hardware models are added.
  • Mock/fixture/demo paths remain hardware-free and are not claimed as live hardware validation.
  • Production AWG/oscilloscope adapters remain the existing supported paths; live hardware and packaged builds still require bench validation plus VISA/driver prerequisites.

@lishehao
lishehao marked this pull request as ready for review July 15, 2026 16:10
@lishehao
lishehao merged commit 2af4b48 into main Jul 15, 2026
1 check passed
@lishehao
lishehao deleted the codex/capability-discovery-packaging branch July 15, 2026 16:10
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