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.
There is no upload or grading service. Run the documented validator or checks where applicable, keep the results, and score your own evidence against the rubric below. A passing check by itself does not mean the project is complete. Suggested strong-evidence target: 90/100. Critical-condition rule: A high total is not sufficient if your work fails any critical or zero-tolerance condition the rubric lists.
Start here
Launch lesson: Production AI Operations Workshop
Prerequisite project: Interoperable Agent System
Prerequisites
Python help for this project:
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:
python projects/tests/l14/validate_submission.py \
projects/starters/l14/service.py \
projects/tests/l14/fixtures/passing/service-run.jsonStuck on a TODO?
Choose one function at a time. Hint 1 offers direction, hint 2 offers pseudocode, and hint 3 reveals only that function's reference implementation after confirmation.
service.py: validate_request()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: batch_requests()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: memory_admit()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: deployment_identity()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: aggregate_metrics()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: rollout_allowed()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: required_replicas()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
service.py: validate_run()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
Validation
Run these commands from the downloaded Project folder or the public materials repository root.
python projects/tests/l14/validate_submission.py \
projects/starters/l14/service.py \
projects/tests/l14/fixtures/passing/service-run.jsonCompare with a reference
First complete your own TODOs and run the submission validator above. Then open the published reference solution. Reference acceptance tests check the completed reference, not your submission:
python projects/tests/l14/test_reference.pyRubric
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.
Self-check before you call it done
- Can you demonstrate request rejection before costly execution, batching rules, and memory headroom accounting?
- Can you trace image/service/model/runtime/configuration identity across deployment and rollback?
- Can you recompute latency, success, capacity, and release gates from raw run records?
- Can you show a critical failure blocking rollout and rerun the offline tests while separating them from the Docker environment bridge?