Conversation
Greenfield FastAPI service at services/grader/ following the services/petdata/ pattern: uv-managed src/grader/ layout, GRADER_ env prefix, /health, /llms.txt via fast-llms-txt, structlog single-line JSON logging, OpenTelemetry API-only tracing, Dockerfile and docker-compose on host port 8003, and a CLAUDE.md with build/test commands. No domain logic (#294), data layer (#296), or auth (#298). Refs #293
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #293
Greenfield FastAPI service at
services/grader/, scaffolded to the tech-stack standard following theservices/petdata/pattern. No domain logic (#294), data layer (#296), or auth (#298).uv-managedsrc/grader/layout, Python 3.14, hatchling.GRADER_.GET /healthandGET /llms.txt(viafast-llms-txt).opentelemetry-instrumentation-*).Dockerfile(non-root user) anddocker-compose.ymlon host port 8003 (8001 retriever, 8002 petdata are taken).CLAUDE.mdwith build/test commands.Every file in this PR is under
services/grader/; nothing outside the issue's stated scope was touched.Pipeline phases
services/petdata/directly/simplifydeltapytest-asyncio, Dockerfile layer/port fixes); delta re-reviewed APPROVETest results
Repo-wide configured gates (
.daedalus/config.json), both exit 0:lint— retriever (ruff check, ruff format --check, mypy --strict) + petdata (ruff, mypy, bandit) + stacker (npm run check): exit 0test— retrieverpytest(385 passed, 10 deselected) + stackernpm run build(built in 2.40s / 5.58s): exit 0Grader's own gates, run from
services/grader/(grader is not yet in the bound commands: that is #316):uv run ruff check src/ tests/— exit 0uv run ruff format --check src/ tests/— exit 0uvx bandit -r src/ -q— exit 0uv run mypy src/— exit 0 (strict)uv run pytest— 10 passedAcceptance criteria were also graded against a real container, not just proxies.
docker build+docker run -p 8003:8000:Eval scores
No evals configured in this repo.
Follow-ups
.github/workflows/ci.yml, the bound daedalus gates, and the one-command local stack (Makefile +docs/local-development.md)."*"inGRADER_ALLOWED_ORIGINS(latent until auth lands in T6: Port the API routes with auth, tightened CORS, typed responses #298); uvicorn/stdlib startup and access logs still render as plain text rather than JSON, so only application logs are single-line JSON today;Dockerfilepullsghcr.io/astral-sh/uv:latestunpinned; compose publishes 8003 on0.0.0.0rather than127.0.0.1.