Governance TEA EEG: cohorts, baselines zip, cluster health, jobs with progress, EDF upload #20

Merged
alberto merged 1 commits from feature/tea-eeg-analysis into dev 2026-11-23 09:38:32 -06:00
Member

New routes under /governance/tea/..., reusing the models and orchestration code:

  • reference cohorts: list the folders under TEA_REFERENCE_ROOT, upload EDFs and the ages table; a cohort name in a training request resolves to its folder and edades.csv;
  • baselines: export the bundle (hash in a header) and import one, with 409 for versions that already exist;
  • cluster health for the allowed schedulers, and a cluster choice per training, analysis and indicator-cycle request;
  • detached training and analysis jobs with a progress endpoint, analysis by scope or by chosen EEG ids, EDF upload through the import pipeline;
  • baseline curve, EEG metrics, EEG list and result summary queries.

EEG_ANALYSIS_CLUSTER=off keeps the indicator cycle from analysing, so EEGs wait until the baselines are in production.

Tests: tests/test_training_jobs*.py, test_tea_analyze_jobs.py, test_governance_tea_*.py, test_recomputation_cluster.py; 139 of 141 pass with the governance endpoint tests, the two failures are the notebook tests that need a writable /tmp/notebook-jobs.

Merge after the models pull request.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G7PSrY6FcR9Q2SE9y2t6yF

New routes under `/governance/tea/...`, reusing the models and orchestration code: - reference cohorts: list the folders under `TEA_REFERENCE_ROOT`, upload EDFs and the ages table; a cohort name in a training request resolves to its folder and `edades.csv`; - baselines: export the bundle (hash in a header) and import one, with 409 for versions that already exist; - cluster health for the allowed schedulers, and a cluster choice per training, analysis and indicator-cycle request; - detached training and analysis jobs with a progress endpoint, analysis by scope or by chosen EEG ids, EDF upload through the import pipeline; - baseline curve, EEG metrics, EEG list and result summary queries. `EEG_ANALYSIS_CLUSTER=off` keeps the indicator cycle from analysing, so EEGs wait until the baselines are in production. Tests: `tests/test_training_jobs*.py`, `test_tea_analyze_jobs.py`, `test_governance_tea_*.py`, `test_recomputation_cluster.py`; 139 of 141 pass with the governance endpoint tests, the two failures are the notebook tests that need a writable `/tmp/notebook-jobs`. Merge after the models pull request. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01G7PSrY6FcR9Q2SE9y2t6yF
alberto added 1 commit 2026-11-23 09:36:42 -06:00
alberto merged commit b0b797ac15 into dev 2026-11-23 09:38:32 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ISSSTELEON/WebApi#20