Level 00 · Foundations
Software Engineering Fundamentals
This level teaches the ordinary software skills an AI engineer uses every day. You will write Python programs, talk to the web with HTTP, build a small API, save rows in a database, track your files with Git, and run the app in a container. A model cannot help anyone until your program can call it, check the answer, and hand it back. Start here even if you have never typed a command.
Assumes Nothing. If you have never written code, start here. · 22 study sessions · 7 modules
Ship it
Capstone: Ship a No-AI REST Service
You will build a small web service that stores real records, such as tasks or bookmarks, and you will run it somewhere a browser can reach. The app uses Python, FastAPI, a database, Git, and Docker. It must not call a language model. A free coding chat may help you type, but you still read every change and run the checks yourself.
Pick a domain you can explain in a few sentences. By the end a stranger can open your README, start the service, and create a row that is still there after a restart. You are finished when you can explain the path from the request to the database with the chat closed.
1. The full no-AI stack
1. Create a folder and a file main.py that will become the web app. Write one sentence at the top of README.md that says the runtime is Python, FastAPI, and a database, with Docker and Git around it.
2. Search the folder for words such as openai, anthropic, and any model client. Delete those dependencies if they appear.
3. Run py -c "import fastapi" after a free install, or python3 -c if py is missing, so you know the stack imports.
4. You are done when README states the stack and a search finds no model client import.2. Choosing a realistic domain
1. Choose one domain: tasks, bookmarks, expenses, inventory, notes, or support tickets.
2. Write a paragraph at the top of the README that names the main resource and two fields a person would edit.
3. Read the paragraph out loud. If you cannot finish it in twenty seconds, shorten it.
4. You are done when the paragraph is above any install steps and names the resource and both fields.3. REST endpoints with persistent CRUD
1. Add list, create, read, update, and delete routes for that resource. Use pydantic models for the body and the response.
2. Store rows in sqlite or PostgreSQL, not in a Python list. Use placeholders in SQL.
3. Create a row, stop the process, start it, and read the row back.
4. You are done when create returns 201, a missing id returns 404, and the row survives a restart.4. An external API integration
1. Pick one free public HTTP API that is not a language model, such as https://httpbin.org/json or another key-free demo.
2. Call it with httpx from an async path. Set timeout=5.
3. Include one field from that response in your route's JSON.
4. You are done when curl shows that field and the route still answers if you temporarily point the URL at a closed port and return a controlled error.5. Handling every failure path
1. Make bad input return 422 or 400, a missing row return 404, a failed upstream call return 502 or 503, and an unexpected exception return 500.
2. The 500 body must be a short message. Log the real reason on the server only.
3. Hit each case with pytest or curl and save the status lines.
4. You are done when four saved responses show those four families and none of them contains a stack trace.6. Tests, config & logging
1. Read a required setting such as APP_NAME from the environment. Exit or refuse to start when it is missing.
2. Add pytest cases for a successful create and for one validation failure, using TestClient.
3. Log the method, path, and status for each request. Call one route and read the log line.
4. You are done when pytest passes, a missing APP_NAME prevents a normal start, and the log line shows the status you returned.7. Clean repo and README
1. Lay the repo out with app code, a tests folder, a Dockerfile, and pyproject.toml or requirements.txt. Add a .gitignore for .env and virtualenvs.
2. Write the README so a stranger can install, configure, create tables, run, test, and call the API.
3. Run git status and remove anything you did not mean to share.
4. You are done when a new terminal can follow the README through the test command and .env is not tracked.8. Docker packaging & deployment
1. Write a Dockerfile whose process listens on 0.0.0.0 and port 8000, or the port the platform assigns if you deploy.
2. Build the image and run it with the environment variables the app needs. Do not put passwords in the Dockerfile.
3. Confirm the container stays running. docker ps should show it, or the host status should say the process is up.
4. You are done when a curl to the published port returns JSON and the container did not exit after boot.9. Verifying the deployed API
1. Open /docs or /openapi.json from the running service.
2. Create one row with curl and read it back with a second curl against the same base URL.
3. Paste both commands and the responses into the README or a file named DEPLOY.md.
4. You are done when someone else could copy those commands and see the same title you created.10. Coding agent during the build
1. Use any free coding chat for one real change: a route, a test, the Dockerfile, or the README. Paste a spec first.
2. Apply the change yourself. Do not add a model call to the request path.
3. Save the prompt in prompts.md.
4. You are done when the prompt is saved, the change is in Git, and a search of the request handlers still finds no model client.11. Diff review before accepting
1. Before you commit an assisted change, run git diff and read every hunk.
2. Delete anything you cannot explain, especially a secret, a bare except, or a surprise dependency.
3. Write a commit subject that states the purpose, not the name of the tool.
4. You are done when git show has that subject and the diff contains nothing you cannot explain out loud.12. Validating generated code
1. Run pytest and a syntax check, py -m compileall or python3 -m compileall, on code the assistant wrote.
2. Make two manual API calls: one success and one failure.
3. If a check fails, fix it or send the failure back to the chat and review the next diff the same way.
4. You are done when the test summary is green and your note says a chat reply alone was not treated as a pass.13. Explain it without the agent
1. Close the chat window. On paper or in EXPLAIN.md, trace one request from the route function through SQL to the response.
2. Write why that handler is async or not, and which line reads configuration.
3. Time yourself for five minutes. If you get stuck, open the code, then close it and try again.
4. You are done when EXPLAIN.md covers the route, the SQL, the response, async, and config without quoting the chat.14. Document one AI failure
1. Create AGENT_NOTES.md. Describe one suggestion that was wrong, incomplete, unsafe, or heavier than the problem.
2. Include what it proposed, why that was a problem, how you noticed, what you changed, and the lesson you kept.
3. Name the file and the bad idea specifically. 'It was wrong' is not enough.
4. You are done when the note names a real file from this project and the fix is visible in git diff or git log.