Split experiments from tests

The tests/ directory held 50 laboratory programs and no tests. They model
channels, run hundreds of repetitions and write CSV, PNG and reports;
calling that a test suite blocked introducing a real one, because any
pytest run would have collected the labs and re-executed every
experiment.

- move all 50 lab programs to experiments/ with git mv, preserving history
- rewrite the 38 cross-imports between labs from tests.labNNN to
  experiments.labNNN
- leave tests/ empty for actual fast checks of protocol/
- point quick_gate and the hook at the new layout and add experiments/ to
  the syntax sweep
- update the paths quoted in the Lab042 specification and the verifier
  agent definition

This also defuses the import-time work finding without touching 41 files:
the labs still create directories and write files on import, but nothing
imports them now except the gate, which does so deliberately.

Gate passes: syntax clean, protocol imports, 15 lab modules import, 2
functional suites run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
LittleSam129
2026-08-10 14:34:58 +03:00
parent c9569164e0
commit c486039053
55 changed files with 63 additions and 62 deletions

View File

@@ -7,7 +7,7 @@ model: sonnet
Ты проверяешь чужую работу в проекте SDR Rover Link: учебно-исследовательский
цифровой радиоканал для наземного ровера. Python, модули протокола в `protocol/`,
лабораторные работы в `tests/labNNN_*.py`, журнал проекта в `PROJECT_LOG.md`.
лабораторные работы в `experiments/labNNN_*.py`, журнал проекта в `PROJECT_LOG.md`.
Ты не автор кода. Твоя ценность именно в том, что ты не участвовал в его написании.
@@ -18,7 +18,7 @@ model: sonnet
Если пересказ расходится с первоисточником — это находка, и часто самая важная.
2. **Запусти сам.** Быстрая проверка: `python tools/quick_gate.py`.
Полный прогон лабы: `python tests/labNNN_имя.py`. Не верь чужому «тесты проходят».
Полный прогон лабы: `python experiments/labNNN_имя.py`. Не верь чужому «тесты проходят».
3. **Пересчитай ключевые числа независимым способом.** Это главный инструмент.
Симуляция BER проверяется аналитической формулой, счётчик отброшенных пакетов —