The engine is Adept's internal Python process and background-worker foundation.
Phase 1 provides Python 3.14, FastAPI health/readiness, SQLAlchemy access to the shared database, safe job-claim/retry primitives, tests, and a container image. The running worker intentionally remains idle until real handlers arrive in Phase 5.
The API's Flyway migrations exclusively own the schema. The engine supports schema versions 7 and 8 during the forward-compatible rollout and must not add Alembic or create tables.
uv sync --lockedCI and the image use uv 0.11.16. The lockfile is the dependency source of truth.
Start PostgreSQL and the API first, then:
set -a
source ../.env
set +a
uv run uvicorn app.main:app --reload --port 8000GET /healthchecks only process liveness.GET /readyrequires PostgreSQL and a supported Flyway V7 or V8 schema.
uv run ruff format --check .
uv run ruff check .
uv run mypy app tests
uv run pytest -m "not integration"Database integration tests require a disposable API-migrated database, TEST_DATABASE_URL, and ENGINE_TEST_DATABASE_ALLOWED=true.
docker build -t adept-engine:phase1 .