#74 (1/4): uv project with a /livez probe app #194

Open
bobby wants to merge 1 commits from 74-1-probe-app into main
pull from: 74-1-probe-app
Owner

Part of #74. Stack for #74 (merge in order): 1. probe app → 2. hapi serve → 3. module boundaries → 4. pre-commit

Summary

src/hapi/
├── app.py              create_api_app()    public API (:8000), no probes
│                       create_probe_app()  internal listener (:8081)
└── platform/health.py  GET /livez -> 200 {"status":"ok"}  (ADR-0009)

Tooling: a uv project on Python 3.14, Ruff (incl. DTZ), pyright strict, and just test|lint. All of it is a dev dependency, so uv is the only tool needed outside the venv. uv.lock is marked as generated in .gitattributes (414 of the 553 lines).

Evidence

  • Before: no app.
    After: uv run just test, driving the ASGI app with httpx.ASGITransport:
livez returns constant ok on the probe listener   PASSED
livez is not served on the public api (404)        PASSED   # fails if probe router is mounted on the API

uv run just lint: Ruff and pyright strict are clean.

Merge Danger

Door: two-way

Blast Radius: none (greenfield)

🤖 Generated with Claude Code

Part of #74. Stack for #74 (merge in order): **1. probe app** → 2. `hapi serve` → 3. module boundaries → 4. pre-commit ## Summary ```text src/hapi/ ├── app.py create_api_app() public API (:8000), no probes │ create_probe_app() internal listener (:8081) └── platform/health.py GET /livez -> 200 {"status":"ok"} (ADR-0009) ``` Tooling: a uv project on Python 3.14, Ruff (incl. `DTZ`), pyright strict, and `just test|lint`. All of it is a dev dependency, so `uv` is the only tool needed outside the venv. `uv.lock` is marked as generated in `.gitattributes` (414 of the 553 lines). ## Evidence - **Before:** no app. **After:** `uv run just test`, driving the ASGI app with `httpx.ASGITransport`: ```text livez returns constant ok on the probe listener PASSED livez is not served on the public api (404) PASSED # fails if probe router is mounted on the API ``` `uv run just lint`: Ruff and pyright strict are clean. ## Merge Danger **Door:** two-way **Blast Radius:** none (greenfield) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bobby added 1 commit 2026-11-27 17:01:31 -05:00
uv project on Python 3.14 with Ruff (incl. DTZ), pyright strict, and
`just test/lint` as dev dependencies. The internal probe app serves a
constant `/livez`; the public API app doesn't serve it (ADR-0009).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 74-1-probe-app:74-1-probe-app
git checkout 74-1-probe-app
Sign in to join this conversation.