serving (MLflow), HK1K verification command and the tea-verify DaskJob
- serving: plans and biomarkers as MLflow "models from code" (standalone wrapper files), code_paths = only the module's package + contracts; plan.json artifact and plan params; biomarker models pin plan_uri and plan_hash. privacy: no study codes / dates / paths, binary artifacts refused, baselines from fewer than 5 children refused. - verify: python -m tea_modulo.verify hk1k lists HK1K in a worker task, runs the pipeline remotely (line 50 Hz), checks the remote run equals a plain sequential run in one task, summarizes the posterior rhythm by age group (groups < 5 suppressed) and writes the summary under processed/usuarios/. Any input prefix but raw/eeg-helsinki/ is refused. - deploy: Dockerfile.verify (dask:1.1 + antropy, fhir.resources, meegkit, pytest; tea-modulo from the local checkout), .dockerignore keeping .venv, eeg/ and any signal or patient file out, dask-verify.yaml (own 2x4-worker cluster, no eeg-data PVC, keys only on workers), verify.sh. Tests: MLflow round trips on sqlite, model loads with only its own code in a fresh interpreter, privacy refusals, verify guards.
This commit is contained in:
@@ -90,6 +90,8 @@ def test_imports_respect_boundaries(path):
|
||||
if top == "tea_modulo":
|
||||
if unit and unit[0] == "export":
|
||||
ok = mod == own or mod.startswith(own + ".")
|
||||
elif unit == ("verify",):
|
||||
ok = True # an application: it wires everything, like tests do
|
||||
elif not unit:
|
||||
ok = mod in ("tea_modulo", "tea_modulo.contracts") or mod.startswith("tea_modulo.contracts.")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user