Commit Graph
3 Commits
Author SHA1 Message Date
Noel Sabia 2bcf66c550 feat: repeatable small-model, figures, and training e2e scripts
- make small trains from a CSV and prints metrics + confusion matrix
- make figures renders dependency-free SVGs from metrics.json
- scripts/e2e_train.py boots a real server and checks snapshot, robustness,
  auth, one-job-at-a-time, and both training jobs with hot-swap
- CI/ruff/compileall now include scripts/
2026-11-14 06:35:19 +01:00
Noel Sabia 2b9617fd71 ci: add ruff static gate to make check and Gitea workflow
ci / check (push) Failing after 40s
ci / check (pull_request) Failing after 6s
Adds ruff as a dev dependency with an explicit py312 E/F rule set, so the
gate stays stable across ruff releases. make check now runs uv sync --frozen,
ruff, compileall, and pytest; make lint runs ruff alone.

The Gitea job splits the same checks into named steps for readable failures
and has a 10-minute timeout. No secrets, image push, or cluster access.
2026-11-14 06:04:15 +01:00
Noel Sabia 8656d9bc8a feat: add /bootstrap snapshot, numeric UID 10001, CI gate
GET /bootstrap returns the 8 sensors, hourly series for all of them,
context, meta, and versions in the CONTRACT.md shape. Snapshot artifacts
are projected to contract fields once at boot; incomplete artifacts return
503. Adds tests for shape, sensor count, hourly alignment, and versions.

Dockerfile now creates UID/GID 10001, uses COPY --chown=10001:10001, and
runs as USER 10001:10001. Adds make check and a minimal Gitea Actions
workflow that runs the same local gate: uv sync --frozen, compileall, pytest.
2026-11-14 06:00:14 +01:00