AI-Assisted Coding · Module 4Lesson 1

Study explanation · Lesson 01 · 14 min

The delivery layer and the right AI surface

Module 4 wraps the existing Task Tracker in CI, containers, documentation, review and decision notes. These artifacts can look correct while being quietly wrong, so three strict rules apply, and the AI tool you pick should match the scope of the task.

Listen to this lesson

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

Narrated by an AI voice.

A different kind of work

Earlier modules were about requirements, scaffolded code, tests and features. Module 4 is about the delivery layer around the app: continuous integration, containerization, documentation, code review and technical decisions. You are not adding product features. You are wrapping the existing Task Tracker in the engineering artifacts it needs to be shared, maintained, reviewed and eventually shipped.

Key ideaWe are not adding new product features. We are wrapping the existing Task Tracker in the engineering artifacts it needs.

Why this layer is deceptive

Delivery artifacts fail quietly. Each one can pass a casual glance while doing the wrong thing, which is why the module keeps returning to verification.

  • CI Shows a green check while skipping failures.
  • Dockerfile Builds, but runs the app as root.
  • Documentation Sounds confident while describing behavior the code does not have.

Read with careThe notes say they are a student-facing guide to read alongside the Module 4 videos, not a transcript. The videos were not supplied, so nothing here is attributed to them.

Three strict rules

The notes set three rules for the whole module. They matter more here because a terminal agent can change several files in one turn.

Three strict rules · Lecture notes p. 4
RuleWhat it means in Module 4
Read the diff before approving.Claude Code may edit multiple files in one turn. The broader the scope, the higher the cost of careless approval.
Verify before moving on.Generated artifacts are not done just because they exist.
AI never approves.Claude can propose commands, diffs, reviews, and documentation, but it does not own the result.

One repo, six connected parts

Everything happens in the same Task Tracker repository, in a deliberate order: project memory first, then CI, then Docker, then documentation, then review, then a technical note. Each step leaves an artifact that later steps can inspect or explain.

The hands-on sequence and its evidence · Lecture notes p. 4
PartFocusMain evidence
4.1Set up Claude Code and create reliable project memory.CLAUDE.md and two verified interactions.
4.2Create CI and prove it catches broken tests.green -> red -> green CI evidence.
4.3Containerize the app safely.Docker build/run, /health, non-root whoami.
4.4Generate and verify documentation.docstrings, README, claim-vs-reality log.
4.5Use AI-assisted review as triage.Useful / Noise / Wrong review log.
4.6Write a technical decision note.Decision note linked from README and rewritten in your voice.

What you hand in

The module’s outputs table lists seven deliverables. Each one is about evidence, not just the file existing.

Module outputs · Lecture notes p. 3
OutputWhat it should containWhy it matters
Claude Code setupClaude Code installed/authenticated, correct repo opened, CLAUDE.md committed, and two Claude answers verified against actual files.Gives the terminal agent real project memory before it edits or runs anything important.
CI workflow evidence.github/workflows/ci.yml plus evidence of green -> intentional red -> restored green runs.A green check only matters if a broken test turns it red.
Docker artifactsMulti-stage Dockerfile, .dockerignore, local build/run evidence, /health check, and non-root whoami check.Shows the app can run consistently and more safely outside your local environment.
Docker security logA short log confirming non-root user, slim runtime base, and no baked secrets.Turns “it builds” into “it is closer to shippable.”
Verified documentationDocstrings and README updates plus a claim-vs-reality log with inaccuracies caught and fixed.Prevents fluent false documentation from becoming official.
Annotated review logEvery Claude review comment categorized as Useful, Noise, or Wrong, with a short justification.Builds judgment about where AI review helps and where it distracts.
Technical note and reflectiondocs/decisions/<short-name>.md linked from README, rewritten in your own voice, plus a tool-fit reflection comparing Copilot, Cursor, and Claude Code.Preserves the “why” behind decisions and turns tool use into engineering judgment.

Choosing the right AI surface

The module compares tools by scope rather than ranking them. Autocomplete works at the line, IDE chat at the file or visible project, and a terminal agent at the whole repository. The broader the scope, the stricter your verification habit has to be.

Same loop, wider scope, stricter evidence · Lecture notes p. 5

Copilot

  • Scope: a line or small function
  • Check: the exact inserted code

Cursor

  • Scope: a file or visible project
  • Check: returned diffs, then run it

Claude Code

  • Scope: the whole repo and the shell
  • Check: CLAUDE.md, plan mode, permissions, diffs, evidence

Ask → inspect → run → test → refine, whichever tool you use.

Three AI surfaces by scope · Lecture notes p. 5
AI surfaceBest fitNot ideal forWhat to verify
Copilot / autocompleteLine-level help, small functions, familiar patterns, filling in repetitive code.Work that crosses files or requires running commands.Inspect the exact code it inserted.
Cursor / IDE chatFile-level or project edits inside the editor, sidebar chat, explanations, diffs over visible code.Terminal-heavy work such as CI, Docker, git, and test loops.Review returned diffs and run the project.
Claude Code / terminal agentRepo-level tasks: reading files, planning, editing multiple files, running pytest, Docker, git, or gh.Tiny one-line edits where a full terminal agent adds unnecessary risk.Use CLAUDE.md, plan mode, permissions, diffs, commands, and evidence.

Read with careTools are described as the notes describe them at their date.

Which artifact is most dangerous?

The notes end Part 1 with a review question worth answering before you start: if one artifact looked correct but was wrong, which would hurt most — CI, Docker, documentation, review, or the technical note? A false-green CI run lets broken code merge while everyone believes it is tested. Confident documentation turns a missing behavior into an official claim. There is no single right answer; the point is to notice that each one fails silently.

Key ideaThe loop stays the same across tools: ask, inspect, run, test, refine. The scope changes, so the cost of skipping a step increases.

Key takeaways

  • Module 4 adds no features; it wraps the Task Tracker in delivery artifacts.
  • CI, Docker and docs can all look right while being wrong.
  • Read the diff before approving, verify before moving on, and never let AI approve.
  • Pick the AI surface by scope; the wider the scope, the stricter the evidence.

Built from the Module 4 lecture notes, prompt library and additional readings; page references are to the supplied PDFs.

Your study checkpoint

Ready to continue?

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

Next · Lesson 2