Free · 13 phases · 98 lessons · 23 runnable repos · about 27 weeks
DevOps to AI Engineer
A roadmap that starts from what you already run
You already know half of this
The hard parts of AI engineering in production are the parts you've spent years on: unreliable dependencies, capacity, rollouts, observability, least privilege, change control. They show up under new names. Here is the translation.
What's genuinely new is smaller than it looks: a component that can be wrong while returning 200, tests that pass or fail by a margin rather than exactly, and an attacker who can steer your code with plain text. The roadmap puts most of its weight there.
How every lesson works
- Bridge. Each phase opens with what you already know that carries over, so you learn the difference, not the whole thing.
- Read. Each lesson is a post on this site with its sources linked inline. Where the post reports a number, it shows the script that produced it.
- Run. Where there's a repo, clone it and reproduce the result before you change anything. Then change one thing and predict what happens first.
- Keep. Each phase ends with an artifact for your own portfolio repo. By the end you have twelve, built on one problem from your own on-call.
Pick a route
The full path takes about 27 weeks at six to eight hours a week. If you need something sooner, follow one route and come back for the rest.
Platform route
You run infrastructure and want to run AI infrastructure: model serving, gateways, GPU capacity, cost.
0. Orientation 2. How LLMs work, at operator depth 8. Serving models: AI infrastructure 9. Observability, reliability and cost 12. The AI platform
Builder route
You want to ship AI features and agents yourself, end to end, with evals in CI.
0. Orientation 1. Python and the math you will use 2. How LLMs work, at operator depth 3. Building on model APIs 4. Retrieval and context 5. Evals: testing non-deterministic systems 6. Agents 7. MCP and the tool-call plane
Governance route
You work in a regulated industry and will be the one asked to sign off on an agent acting alone.
0. Orientation 6. Agents 7. MCP and the tool-call plane 10. Security and identity 11. Governance and bounded autonomy
The phases
Phase 0 Orientation Know what the job is before you study for it.
The bridge. You already operate systems you did not write and cannot fully inspect. A model is one more of those, with an unusual failure mode: it can be wrong while returning 200.
- Separate the model, the loop, the tools and the memory.
- Learn where a model helps an operator and where it only adds risk.
- Write down the three places in your stack where you would refuse it, and why.
- Python 3.12, uv, one API key with a hard spend cap, and one local model.
Keep: A one-page problem statement: one toil-heavy workflow from your own on-call, what it costs today, and what good would look like. Every later phase builds on it.
Phase 1 Python and the math you will use Arithmetic on lists, a little calculus, and enough statistics to know when a result is real.
The bridge. You read Bash, Go and HCL. Python is the language of this ecosystem, and most of the math is loops you could write in any of them.
- Python for infrastructure engineersType hints, asyncio and typed request and response models; write one async HTTP client with retries.
- See where precision runs out, and why a diverging loss ends in NaN.
- Compute dot products and cosine similarity by hand on three sentences.
- Stop averaging percentiles; the same habit applies to eval scores.
- Train a model in forty lines, check the gradient, break it with the learning rate.
- Compare two systems case by case with a paired test before you believe a two-point gain.
- Work out why exact nearest-neighbour search stops being an option.
Keep: The gradient-descent script extended to a second input feature, with the finite-difference check still passing.
Phase 2 How LLMs work, at operator depth Enough of the internals to debug cost, latency and strange output.
The bridge. You do not write a kernel to tune one. You will not train a transformer to run one well, but you do need to know what it spends memory and money on.
- Build a BPE tokenizer and measure what your log lines and JSON cost.
- Attention and the transformer blockRead the original paper for the block diagram, then find it in a small working implementation.
- See what temperature, top-p and min-p do, and why temperature 0 was never deterministic.
- Constrain decoding to a JSON schema and learn what the guarantee does not cover.
- Assemble context under an enforced token budget instead of appending until it fails.
- Reorder a prompt so its stable prefix is cacheable, and measure the difference.
- Run the open-book test on ten failures before you decide what to build.
Keep: A one-page model sheet for the model you will use: token cost of your real data, context limit, sampling defaults, structured-output support.
Phase 3 Building on model APIs Treat the model as the unreliable, metered dependency it is.
The bridge. An LLM API is a rate-limited, slow, occasionally wrong external dependency that bills per call. You have wrapped worse.
- Rewrite one prompt with explicit structure, examples and a defined output.
- Give a model two tools and log every call it makes.
- Wrap every model call; decide which errors are retryable.
- Propagate one deadline through a request that calls the model twice.
- Model your provider limit as a bucket and shape traffic to it.
- Sweep a similarity threshold and count wrong answers served from cache.
- Inventory every model ID you call and its retirement date.
- Ship your first end-to-end tool on real data.
Keep: An incident-scribe-style tool running on your own data, with retries, timeouts, a spend cap and pinned model versions.
Phase 4 Retrieval and context Most of what looks like a model problem is a retrieval problem.
The bridge. RAG is an ingestion pipeline plus a search index. Freshness, ownership, monitoring and SLOs all apply, and you already know how to run both.
- Build the smallest useful version over a folder of Markdown.
- Compare chunking strategies at a fixed token budget, not a fixed k.
- Choose between flat, IVF and HNSW for your corpus size and update rate.
- Add BM25 and a reranker, and measure where each actually helps.
- Model ownership and dependencies as a graph and answer blast-radius questions with a traversal.
- Find the runbooks that are lying before an agent reads them.
- Decide which context is retrieved, which is assembled, and who owns each.
Keep: Retrieval over your own runbooks with a 30-question eval set, and recall@5 tracked on every commit.
Phase 5 Evals: testing non-deterministic systems If you cannot measure a change, you cannot ship it safely.
The bridge. You already gate deploys on tests and canaries. Evals are the test suite and shadow mode is the canary. The new part is that the same input can give different outputs.
- Write the test suite your on-call bot does not have.
- Work out how many cases you need to detect the change you care about.
- Run an agent beside humans and score agreement, not just log it.
- Size a canary by how often the failure you fear occurs.
- Find what a headline score leaves out before you quote it.
- Measure what reviewing AI output costs your team.
- A regression corpus from real failuresTurn public agent incidents into replayable test cases.
Keep: An eval suite in CI that blocks a prompt or model change on a statistically real regression.
Phase 6 Agents A loop that calls tools, and everything that goes wrong with loops.
The bridge. An agent is a control loop whose actuator is a tool call. You have debugged control loops that oscillate, stall, restart mid-step and double-apply.
- See why level-triggered loops converge; agents should too.
- Pick the simplest pattern that solves your phase-0 problem.
- Read the production failure for each pattern before you build it.
- Decide which of the five memory types your agent needs, and which it must not have.
- Kill your agent at every step boundary and make it resume correctly.
- Do the math before adding a second agent.
- Version, review and test the agent workflow like any other code.
- Give an agent operational knowledge it can load, and lint it against the repo.
- Separate the model from the harness that verifies and constrains it.
- Measure what your agent forgets when its context is compacted.
Keep: A read-only diagnostic agent for your phase-0 problem that survives being killed at any step.
Phase 7 MCP and the tool-call plane Tools are APIs. Treat the protocol that exposes them like one.
The bridge. MCP is an API contract for tools. Gateways, versioning, schema compatibility and chaos testing are things you already do to APIs.
- Run a server, connect a client, and read the JSON-RPC on the wire.
- Understand what changes for load balancing and routing.
- Place tool access and agent-to-agent delegation in the right layer.
- Put authentication, policy, audit, rate limits and routing in one place.
- Publish what a server does before anyone connects to it.
- Inject faults into the tool-call plane and define reliability SLIs for it.
- Schema driftCatch a tool schema that changed under a pinned version.
- Count your servers and score each one.
Keep: A read-only MCP server for one internal system, behind a gateway, with a chaos test in CI.
Phase 8 Serving models: AI infrastructure Where DevOps engineers start ahead of everyone else.
The bridge. GPUs are capacity, the KV cache is memory, the inference server is a service with SLOs, and Kubernetes still schedules it. This phase is mostly your existing job with new units.
- Namespaces, cgroups and layers, before you add GPUs to them.
- Predict weights and KV cache from config.json, then check the server log.
- Walk through serving an open-weight model to paying users.
- Check it against the Kubernetes AI conformance list.
- Route by KV cache locality and queue depth, not round-robin.
- Work out cost per million tokens at your real utilization.
- Find the traffic that does not need a frontier model.
- Find the saturation signal you are currently throwing away, and shed load on it.
- Size model and dataset storage so GPUs are not waiting on it.
Keep: vLLM serving an open-weight model on one GPU, load-tested until the KV cache saturates, with the concurrency predicted on paper first.
Phase 9 Observability, reliability and cost Same discipline, applied to a component that can be wrong while returning 200.
The bridge. Traces, SLOs, error budgets and postmortems carry over unchanged. What is new is a quality signal next to latency and errors, and a third budget measured in tokens.
- Add the signals your dashboards are missing.
- Instrument with the GenAI semantic conventions.
- Record decisions and tool calls, not just requests.
- Give wrong answers an MTTD, not just crashes.
- Trip on garbage that arrives with a 200.
- Attribute spend to teams, tasks and agents.
- Add an admission check so an agent never starts what it cannot afford to finish.
- Write one, including the decision evidence the agent left behind.
Keep: A dashboard with tokens, cost and an answer-quality SLI beside latency and errors, plus one SLO on quality.
Phase 10 Security and identity The attacker can now talk to your service in plain English.
The bridge. Least privilege, short-lived credentials and supply-chain hygiene all still apply. The new part is that untrusted text can steer what your code does.
- Reproduce one against your own agent, then fix it outside the prompt.
- Replace a shared API key with a per-agent identity.
- Use token exchange so the agent acts on behalf of a user, visibly.
- Narrow what each sub-agent can reach, not just what it may do.
- Put egress controls around fetch-style tools.
- Pin, review and scan what your agents install.
- Map each risk to a control your platform owns.
- Find and close any model endpoint without authentication.
Keep: A threat model for your agent: every tool, its credential, its blast radius, and the injection path to it.
Phase 11 Governance and bounded autonomy Deciding what the agent may do alone, and proving it stayed inside the line.
The bridge. This is change management and separation of duties, for a change author that never gets tired and never gets bored of approvals. Your auditors already know the vocabulary.
- List the evidence you would need before it does.
- Define the actions the agent may take alone, with approval, or never.
- Grant and revoke authority from measured reliability.
- Replace per-action approval with policy plus sampling.
- Move your five most important rules from the prompt to the gateway.
- Drill it on a busy agent and count side effects after STOP.
- Record what the agent knew and why it acted, before it acts.
- Write the safety argument and the conditions that would defeat it.
- Find which of your logs a regulator will ask for.
Keep: An autonomy policy for your agent: what it may do alone, on what evidence, and how it is stopped, reviewed by someone who signs off on change today.
Phase 12 The AI platform Everything above, offered to other teams as a golden path. This is the job title.
The bridge. You have built internal platforms before. An AI platform is the same product job: paved roads, sensible defaults, guardrails people do not have to think about.
- Design the golden path for agents, not just for the teams that build them.
- Map each layer of the reference stack to what you run today.
- Inventory every agent in your organisation and its owner.
- Compare your design with a published one.
- Evaluate a vendor agent with your own incidents, not their demo.
- Self-healing loops and stabilitySimulate a remediation loop and find where it oscillates.
Keep: A template repository that gives a new team model access, evals, tracing, a budget and a kill switch on day one.
Four projects
Each project pulls several phases together into something you could demo in an interview or put in front of your own team. Do them on your phase-0 problem, not a toy. The starting repos are reference implementations to read, not templates to copy.
Project 01 On-call copilot
An engineer is paged at 3 a.m. and the answer is in a runbook somewhere. Build the tool that finds it, cites it, and proves it got better before each release.
- Ingest your runbooks with ownership and last-reviewed dates
- Hybrid retrieval with reranking, with citations in every answer
- An eval set of real past pages, and recall tracked per commit
- A paired comparison that blocks a release on a real regression
- Two weeks in shadow mode on live alerts, scored against what the human did
Read first: runbook-rag-starter · hybrid-retrieval-bench · eval-compare
Project 02 Governed MCP server
Agents need to read your service catalogue and cluster state. Expose it as tools a security review will approve.
- A read-only MCP server over one internal system
- Per-user authentication and per-tool authorization
- An audit record for every call, with the caller and the arguments
- A gateway in front, with rate limits and policy
- Fault injection in CI, with reliability SLIs for the tool-call plane
Read first: catalog-context-graph · mcp-chaos · self-healing-infra-labs
Project 03 Inference platform on Kubernetes
Three teams want to run open-weight models and nobody knows how many GPUs that takes. Answer it with arithmetic first and a load test second.
- Predict weights, KV cache and concurrency from config.json
- Serve one model on one GPU node and load-test to saturation
- Compare measured concurrency with the prediction and explain the gap
- Model-aware routing across two replicas
- Per-team budgets with an admission check, and GenAI traces end to end
Read first: inference-slo · agent-spend-guard
Project 04 Bounded remediation agent
Let an agent fix one class of incident by itself, and be able to defend that decision to an auditor.
- Diagnose only: the agent explains, a human acts
- Propose: the agent drafts the change, a human approves
- Act behind a reversibility gate, with a probe that rolls back
- A decision record written before every action
- A kill-switch drill and an autonomy budget that revokes authority on its own
Read first: sre-harness · autonomy-budget · durable-agent-loop
What this roadmap leaves out
Training foundation models, computer vision, speech, generative image and video, and reinforcement learning. They're real fields, and a platform engineer rarely needs them to ship production AI systems. If you want them, Rohit Ghumare's AI Engineering from Scratch covers twenty phases including all of them, and its from-scratch, ship-an-artifact approach shaped this page.
Certifications aren't on the list either. Exam names and syllabi change faster than this page can, and some of the ones worth having a year ago have since been retired. The artifacts you keep from each phase are better evidence of the skill than a badge.
Why this order
I made this move myself. I spent fifteen years in cloud and infrastructure, most recently designing the AI-enabled cloud platform at a global aviation-software company, where the work shifted from running services to building MCP servers, graph-backed context for agents, and the platform other teams build AI features on. The order here is the one I'd follow again: learn what the model does just well enough to measure it, then spend most of your time on the parts that decide whether it's safe to run. That's also where an operations background is worth the most. More about me, or read the book for the long version of phases 6, 7 and 11.
Published December 4, 2026. New lessons are added as the posts behind them are published. The same roadmap is on GitHub, with a checklist you can fork to track your progress.