Level 14 project
Production AI Service
Start from the canonical project files, validate the result, and keep the evidence you need to explain what you built.
Start here
Launch lesson: Production AI Operations Workshop
Prerequisite project: Interoperable Agent System
Goal
Build the operational controller around a production inference service.
Task
Complete the TODO functions in service.py:
- bounded inference request validation;
- deadline/size-bounded batching;
- memory admission with reserve headroom;
- immutable deployment identity;
- serving metric aggregation;
- rollout release gates;
- replica capacity planning;
- raw-evidence run validation.
The required acceptance path is deterministic and does not require a GPU, live model server, Kubernetes cluster, cloud account, network call, or secret.
Run:
python3 projects/tests/l14/validate_submission.py \
projects/starters/l14/service.py \
projects/tests/l14/fixtures/passing/service-run.jsonReference acceptance:
python3 projects/tests/l14/test_reference.pyLevel Labs:
python3 labs/notebooks/level-14/test_labs.pyValidation
Run these commands from the downloaded Project folder or the public materials repository root.
python3 projects/tests/l14/validate_submission.py \Rubric
Total: 100 points.
- API and admission control — 20: request bounds and resource admission are deterministic and reject unsafe work before expensive execution.
- Batching and resource accounting — 15: batch formation and memory reserve rules remain explicit and testable.
- Deployment reproducibility — 15: image, service, model, runtime, and configuration identity are preserved.
- Observability and performance — 15: success and latency evidence can be recomputed from raw run records.
- Rollout and recovery — 20: critical violations block release, deployment mismatch is visible, and capacity logic preserves operational headroom.
- Reproducibility — 15: offline tests and the Docker bridge separate controller correctness from GPU/cloud environment setup.
Full credit requires recomputing critical release evidence rather than trusting fixture fields such as admitted, healthy, or release_passed when primary evidence is available.