Project skeleton with a live probe #74

Open
opened 2026-11-27 16:43:18 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

A runnable hAPI app exists: a uv project with one pyproject.toml, Ruff (including DTZ), pyright strict, import-linter domain contracts, pre-commit, and just dev/test/lint recipes. The app serves GET /livez on the internal :8081 listener, in the same event loop as the API on :8000.

Acceptance criteria

  • just lint runs Ruff, pyright strict, and import-linter, and passes on a clean tree
  • import-linter contracts encode the module rules: domains import only platform and other domains' public service API; bots/ imports nothing from hapi.*
  • pre-commit runs the same checks plus gitleaks
  • A test drives the ASGI app and gets a constant 200 from /livez
  • /livez isn't served on :8000
Part of #73 (spec: #72) ## What to build A runnable hAPI app exists: a uv project with one `pyproject.toml`, Ruff (including `DTZ`), pyright strict, import-linter domain contracts, pre-commit, and `just dev/test/lint` recipes. The app serves `GET /livez` on the internal `:8081` listener, in the same event loop as the API on `:8000`. ## Acceptance criteria - [ ] `just lint` runs Ruff, pyright strict, and import-linter, and passes on a clean tree - [ ] import-linter contracts encode the module rules: domains import only `platform` and other domains' public service API; `bots/` imports nothing from `hapi.*` - [ ] pre-commit runs the same checks plus gitleaks - [ ] A test drives the ASGI app and gets a constant `200` from `/livez` - [ ] `/livez` isn't served on `:8000`
bobby added the ready-for-agent label 2026-11-27 16:43:18 -05:00
bobby added a new dependency 2026-11-27 16:43:19 -05:00
bobby added a new dependency 2026-11-27 16:43:20 -05:00
bobby added a new dependency 2026-11-27 16:43:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#74