Repository navigation
Follow-up to v1.5.0. Fixes three things that release got wrong or left undone.
Availability was still lying under the local backend
v1.5.0 made /health/ backend-aware but left /api/v1/availability/ untouched, so production kept rendering a service-availability graph describing an external API this deployment does not call. Worse, the series survived the backend switch: the cache outlives it, so a series captured under llm was served afterwards as though it described local inference.
The applicability check now runs before the cache read, for that reason. The response carries an applicable flag because the three cases were otherwise conflatable — all HTTP 200 with an empty data:
| Response | Meaning |
|---|---|
applicable: false |
Nothing to measure under the active backend |
applicable: true, data: [] |
Queried successfully; nothing recorded in the window |
| HTTP 503 | Prometheus unreachable |
The SPA renders an explanatory state naming the backend rather than an empty chart frame.
CI was not running the real-model tests
RealDetectorTest and RealModelLocalBackendTest are gated on the ONNX artifacts being present, and without them they skip silently — so the job went green while proving nothing about the decoder. CI now fetches and verifies the artifacts, then fails if those classes did not execute. Skips dropped 28 → 19; the remainder are font tests (Noto absent on the runner) and four corpus tests needing the gitignored OPENLPR_TEST_CORPUS.
Worth noting how this assertion was built: it reads __unittest_skip__ off the class object. loadTestsFromName returns a TestSuite, which never carries the flag, so a first attempt that counted tests passed trivially — verified by running it with artifacts absent and confirming it fails.
Canary container was permanently unhealthy
Its healthcheck shelled out to wget, which python:3.11-slim does not ship. Failing streak was 134 and climbing. Replaced with an in-image Python check.
Breaking change, restated
api_healthy is absent under PIPELINE_BACKEND=local. Clients reading it must branch on backend first. This is deliberate — a field named api_healthy meaning "artifacts present" is the misreading this work exists to prevent.
Full detail in CHANGELOG.md, API_DOCUMENTATION.md, and AGENTS.md.