SPECTRA mixes a mature tgarchive package with newer GUI/orchestration work in
src/spectra_app. Prefer incremental changes with explicit verification over
large repository-wide refactors.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .python3 -m compileall tgarchive src/spectra_app spectra_app tests setup.py
python3 tests/test_readme_gui.py
python3 tests/test_local_only_gui.py
python3 tests/test_spectra_gui_simplified.pyIf you touch the launcher or machine-control API, also verify:
python3 -m spectra_app.spectra_gui_launcher --helptgarchive/: primary archiving/discovery packagesrc/spectra_app/: orchestration and local web interface implementationspectra_app/: compatibility package for repo-root importstemplates/: launcher HTML templatesdocs/: Docusaurus docs source plus legacy compatibility docstests/: repository-level smoke/integration scripts
- Keep import-time side effects low.
- Preserve repo-root compatibility paths unless you update all call sites.
- Prefer structured JSON/OpenAPI surfaces over custom AI-specific protocols.
- Do not commit runtime databases, logs, or virtualenv contents.
- Explain user-visible behavior changes.
- Include verification commands you ran.
- Call out any remaining gaps, especially dependency-optional paths.