AI-Assisted Coding · Final projectPart 2

Study explanation · Part 02 · 16 min

What the branch must contain

The brief lists what the final-project branch must contain. Each item is something a module already taught you to build and verify; this lesson connects each one to its module and to the check that makes it trustworthy.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

The brief’s list

The brief asks you to “Confirm the branch contains README.md, AGENTS.md, CI, Docker files, app/, frontend/, tests/, and the required docs/ files.” It also says to push a branch called final-project to the same public GitHub repository you used for the course project. The table below maps each item to the module that taught it. The mapping is the study guide’s, not the brief’s.

Required branch contents and where each was taught · Project brief p. 1 with Module 1-5 lecture notes
Brief itemWhat it is forTaught in
README.mdSetup, run, test, container and CI commands a newcomer can followModule 4 (verified documentation); Module 1 skeleton
AGENTS.mdRepo-level instructions an AI agent follows: stack, commands, rules, boundariesModule 5 (AGENTS.md); Module 4 (CLAUDE.md as project memory)
CI.github/workflows/ci.yml running the real suite on push and pull requestModule 4 (Part 4.2)
Docker filesMulti-stage Dockerfile and .dockerignore for a safe API containerModule 4 (Part 4.3)
app/The FastAPI backend: models, storage, routes, business rulesModules 1 and 2
frontend/The Kanban boardModule 3
tests/The pytest suite, proved by Break TestsModules 2 and 3, extended in the midcourse project
required docs/ filesNot listed in the briefModule 4 and Module 5 documents are the course’s docs/ outputs

README.md and AGENTS.md: two readers

README.md is written for a human teammate; AGENTS.md is written for an AI agent. Module 4 asked you to generate README updates and then verify every command against the repository: would a new teammate be able to run the app with only these instructions? Module 4 also made CLAUDE.md the agent’s project memory, and Module 5 asked for AGENTS.md with the stack and commands, project rules, module boundaries and review expectations: cite files, avoid invented structure, ask before broad edits. For the release, both files must describe this exact project as it now is, including the CI and Docker commands you added.

  • Every command in README.md has been run on this branch.
  • AGENTS.md names the real stack, real file paths and the real test command.
  • AGENTS.md states the release scope: what may change and what must not.
  • Neither file still describes an earlier module’s scope.

CI: a check that can fail

Module 4’s key takeaway for CI: a green check only matters if failure turns it red. The expected workflow lives at .github/workflows/ci.yml, runs on push and pull request, has one test job on ubuntu-latest, uses the project’s exact Python version, installs the real requirements including pytest and httpx, and runs pytest so a failing test returns a non-zero exit code. Module 4 lists red flags to reject on sight: continue-on-error, || true, --exit-zero, a latest or vague Python version, a missing push or pull-request trigger, and deployment steps.

Key ideaCI is proved by green, then a deliberate red, then green again without changing the workflow to hide the failure.

Docker files: builds is not the same as safe

Module 4’s Docker part says a Dockerfile can build and still be poor engineering. The checks: a multi-stage build, an explicit slim Python base rather than latest, a non-root user with USER app before CMD, no baked secrets, and a production-style uvicorn command on 0.0.0.0 port 8000 with no reload flag. The .dockerignore is part of the security story: it keeps .env, .git, virtual environments, caches, build artifacts and, when not needed at runtime, tests out of the image. Verify with a build, a run, a curl of /health and a whoami inside the container that returns app, not root.

Local verification commands · Module 4 lecture notes p. 10docker build -t task-tracker:dev . docker run --rm -d -p 8000:8000 --name tt-dev task-tracker:dev curl -i http://localhost:8000/health docker exec tt-dev whoami docker stop tt-dev

app/, frontend/ and tests/: unchanged but proven

The application folders are on the list because the release must contain the working product, not because you should change them. What a teammate needs is proof they still work: the full pytest suite passing, the backend’s /health returning 200, and the board working in a real browser. Module 2 taught the Break Test: after the suite is green, deliberately break production code and confirm the matching test fails, then restore it. Module 3 taught the behavior contract, a checklist confirmed before and after a change. If your security review found a real defect, a minimal fix with new regression tests is the kind of change that belongs here.

Read with careBefore any deliberate breakage of source code to prove a test, keep it temporary, on a branch, and restore it before you commit. Record it as evidence; never ship it.

The docs/ files the brief does not list

The brief requires “the required docs/ files” without naming them; the list is in the missing assignment file. What the course itself produced in docs/ gives a reasonable picture of what evidence is expected, but treat it as the course’s outputs, not as the final project’s list.

  • From Module 4: a claim-vs-reality log for documentation, an annotated AI review log, and a technical decision note in docs/decisions/ linked from the README.
  • From Module 5: docs/security-review.md, docs/governance-worksheet.md, AI-usage rules (the notes name docs/ai-usage.md), a decision plan in docs/decisions/, context-strategy documents, and docs/ai-playbook.md.
  • From the author’s submission: Docs/release-evidence.md, Docs/final-ai-review.md and Docs/ai-playbook.md, which the author’s AGENTS.md lists as the release deliverables.

Read with careOnly the brief’s wording is a requirement here. The three bullets are course outputs and one student’s choices; check the assignment file for the real list.

Key takeaways

  • The branch must hold README.md, AGENTS.md, CI, Docker files, app/, frontend/, tests/ and the required docs/ files.
  • Each item was taught in a module, along with the check that makes it trustworthy.
  • CI must be able to fail; a container must run non-root with no baked secrets.
  • The brief does not name the docs/ files; do not guess and call it the requirement.

From the end-of-course project brief and the Module 1-5 lecture notes; the detailed assignment file was not supplied.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Part 3