feat: PreZero priority snapshot and internal API #4

Merged
Noel merged 1 commits from feat/prezero-api into main 2026-11-14 18:25:06 +00:00
Owner

Summary

  • Commit the derived PreZero priority artifact and loader.
  • Add internal /prezero/summary, /prezero/priority, and /prezero/containers/{id} routes.
  • Add the generator and docs; raw CSV stays out of Git.

Verification

  • make check: 51 tests pass.
  • Counts: 11,701 rows, 449 containers, 1,192 overfull; 88 high / 248 medium / 113 low.
  • Go proxy integration verified.

Image pulsecast-ml:v1.2-prezero is built and pushed; not rolled out yet.

## Summary - Commit the derived PreZero priority artifact and loader. - Add internal `/prezero/summary`, `/prezero/priority`, and `/prezero/containers/{id}` routes. - Add the generator and docs; raw CSV stays out of Git. ## Verification - `make check`: 51 tests pass. - Counts: 11,701 rows, 449 containers, 1,192 overfull; 88 high / 248 medium / 113 low. - Go proxy integration verified. Image `pulsecast-ml:v1.2-prezero` is built and pushed; not rolled out yet.
Noel added 1 commit 2026-11-14 18:06:49 +00:00
feat: prezero priority snapshot and internal API
ci / check (push) Successful in 30s
ci / check (pull_request) Successful in 29s
ad63d1caf3
Build artifacts/prezero_priority.json from the anonymized glass fill-level export (11,701 rows, 449 containers, 1,338 location/material series). The contract tier rule yields high 88, medium 248, low 113 with 1,192 overfull readings.

Add /prezero/summary, /prezero/priority, and /prezero/containers/{id} to the internal FastAPI service, with startup validation, filtering/pagination, recent reading history, and 503 isolation when the artifact is missing. Raw CSV stays gitignored; the derived 1.1 MB artifact is the source of truth. This is a priority proof, not a route: the dataset has no coordinates.
Noel merged commit 603b1c8cee into main 2026-11-14 18:25:06 +00:00
Noel deleted branch feat/prezero-api 2026-11-14 18:25:07 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Future-City-Hackathon-2026/ML-py#4