One student’s submission
This page walks through the author’s final-project branch. The author is the person who took this course; their repository was supplied with the course material. Everything here is what the author did and recorded, read from their files. Where a choice goes beyond the brief, such as which documents to write, it is the author’s reading of the assignment, not the requirement. Some parts of the evidence contradict each other; those are pointed out at the end, because noticing them is part of learning what evidence-backed means.
Read with careThe author presumably had the assignment file that was not supplied here. Their deliverable list may reflect it, but nothing on this page should be read as the official list.
How the repository is organized
The branch keeps the product exactly where earlier modules left it and adds release infrastructure and evidence around it. Documentation lives in a tracked Docs/ folder with an uppercase D, which the author’s AGENTS.md insists on keeping.
- Root README.md (with a Final Project section), AGENTS.md, CLAUDE.md, Dockerfile, .dockerignore, .gitignore, requirements.txt, pytest.ini.
- .github/workflows/ ci.yml, the single test workflow.
- app/ main.py, models.py, storage.py, business_rules.py, api/routes/health.py.
- frontend/ index.html, the single-file Kanban board, unchanged in the release.
- tests/ conftest.py and five test files: health, tasks, due dates, search filters and the new null-rejection tests.
- Docs/ (release) release-evidence.md, final-ai-review.md, ai-playbook.md.
- Docs/ (Module 5, kept) security-review.md, governance-worksheet.md, decisions/comments-feature-plan.md, module-5/ evidence.
- Docs/ (earlier, kept) Module 1 to 3 folders and artifacts, midcourse/ evidence.
What AGENTS.md instructs
The author rewrote AGENTS.md for the release. It states the purpose, the active branch, the actual stack, exact commands verified on the branch, the business rules, frontend behavior that must not regress, an explicit allowed and prohibited scope, guardrails and the deliverables. The excerpt below is the scope and part of the guardrails, verbatim.
AGENTS.md excerpt, from the author’s repository> Working rule: AI proposes; the human owner verifies and grades. The > repository, tests, and observed evidence are the source of truth. Report > conflicts before changing behavior or documentation. […] ## Final-project scope Allowed changes: 1. Create required missing release deliverables (CI, Docker, evidence docs). 2. Documentation-accuracy corrections. 3. CI corrections. 4. Docker/runtime corrections. 5. Test corrections that fix a verified problem. 6. A minimal, verified bug or security correction. Prohibited (out of scope — reject): - Adding comments, authentication, notifications, a production database, deployment infrastructure, pagination, or unrelated UI changes. - Replacing in-memory storage, migrating the frontend framework, broad visual redesign, mass reformatting of unrelated files, or opportunistic dependency modernization not tied to a failing requirement. […] ## Guardrails - Begin investigations read-only; read the repository and docs before editing. - Keep normal writes within `Docs/`, `AGENTS.md`, `README.md`, and the release infrastructure (`.github/`, `Dockerfile`, `.dockerignore`). - **Protect `app/` and `frontend/`.** Change them only for a small, verified fix, and explain every such change in `Docs/final-ai-review.md`. […] - Record browser/runtime behavior as `PASS` only when observed; otherwise use `NOT RUN` or `NEEDS OWNER VALIDATION` with exact manual steps. Never convert `NOT RUN` into `PASS`. Never claim a check passed without running it. - Never paste or commit credentials, tokens, private keys, `.env` files, production logs, or real personal/customer data. Describe a sensitive category without copying its value.
Key ideaThe scope list turns the brief’s single sentence, no new product features, into rules an AI agent and a teammate can both check.
What CI runs
One job on ubuntu-latest, triggered on every push and pull request, using Python 3.9 to match the project’s documented target, installing the single requirements file and running the full suite. The comments record why each choice was made. Module 4’s red flags are absent, and the author added least-privilege permissions and a timeout.
.github/workflows/ci.yml, from the author’s repositoryname: CI # Runs the full pytest suite on every push and on pull requests so that a # broken change cannot merge unnoticed. No deployment, no secrets required. on: push: pull_request: # Least privilege: the test job only needs to read the repository. permissions: contents: read jobs: test: runs-on: ubuntu-latest timeout-minutes: 10 steps: - name: Check out repository uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: # Matches the project's documented Python 3.9 compatibility target # (README "Setup", Dockerfile base image). python-version: "3.9" - name: Install dependencies run: | python -m pip install --upgrade pip # requirements.txt carries both runtime and test dependencies # (fastapi, uvicorn, httpx, pytest) on this branch. pip install -r requirements.txt - name: Run tests # The real, full suite. No continue-on-error, no "|| true", no # --exit-zero: a failing test fails the job. run: pytest -v
Read with careThe author’s evidence records green CI runs and the number of tests collected, but it does not record a deliberate red run on this branch. Module 4’s green-red-green proof would make the CI evidence stronger.
The Docker setup
A two-stage build on a pinned python:3.9-slim base. The builder installs dependencies into an isolated prefix; the runtime stage copies them in, creates a non-root user, copies only the app package and runs uvicorn without reload on 0.0.0.0 port 8000. The image serves the API only; the frontend stays a separate static server.
Dockerfile, from the author’s repository# syntax=docker/dockerfile:1 # ---------- builder: install dependencies into an isolated prefix ---------- FROM python:3.9-slim AS builder ENV PIP_NO_CACHE_DIR=1 \ PYTHONDONTWRITEBYTECODE=1 WORKDIR /build COPY requirements.txt . RUN python -m pip install --upgrade pip && \ pip install --prefix=/install -r requirements.txt # ---------- runtime: slim image, non-root, app code only ---------- FROM python:3.9-slim AS runtime ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 # Non-root runtime user. RUN useradd --create-home --uid 10001 app WORKDIR /app # Installed Python packages from the builder (lands on the default sys.path). COPY --from=builder /install /usr/local # Application package only — no tests, frontend, docs, or local files. COPY --chown=app:app app/ ./app/ USER app EXPOSE 8000 # Production-style command: no --reload. Binds to 0.0.0.0 so the port is # reachable when the container port is published. CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
What stays out of the image
The .dockerignore keeps version control, environments, caches, build artifacts and secrets out of the build context, and also excludes tests, the frontend, docs and Markdown, which the API does not need. The comment notes it also keeps a temporary operator prompt file out of the build.
- Recorded run evidence: build exit 0, container up, /health 200 with the documented JSON shape.
- Runtime user recorded as app, uid 10001, non-root; no reload flag in the command.
- Image size recorded (273 MB) but not treated as proof of anything.
.dockerignore, from the author’s repository# Version control / CI .git .gitignore .github # Python environments and caches .venv venv __pycache__ *.pyc .pytest_cache .mypy_cache .coverage htmlcov # Build artifacts dist build node_modules # Secrets / local-machine files .env .env.* # Not needed in the API image (the app does not serve the frontend; the # frontend is served separately as static files). Also keeps operator input # such as CLAUDE_FINAL_PROJECT_AUTOPILOT.md out of the build context. tests frontend Docs *.md Dockerfile .dockerignore
The security review: findings and grades
The Module 5 security review, kept in the release, graded five AI findings against real files and probes. The manual scan found nothing distinct, and the author left the You-only column empty with an explanation rather than inventing a finding. The top-three backlog uses only Valid findings.
| ID | Finding | Author’s grade | Disposition |
|---|---|---|---|
| S1 | Explicit null updates can replace required stored values and trigger later HTTP 500 responses. | Valid | Backlog + tests (later fixed in the release) |
| S2 | Task routes have no authentication or authorization. | Valid | Backlog + documentation |
| S3 | Descriptions, assignees, task accumulation and list responses lack explicit resource bounds. | Valid | Backlog |
| S4 | Storage is not durable and has no concurrency-safe write strategy. | Valid | Documentation + backlog |
| S5 | Lower-bound dependencies, no lockfile, CI or dependency scanning. | Noise | No security action now |
Read with careIn the later final AI review, missing authentication is graded Noise as a security finding because it is documented course scope. Both reviews give reasons; a careful reader notices the change.
The one app/ change: an explicit-null fix
S1 was reproduced live: a PATCH with title set to null returned 200 and stored null, and a later search returned 500. An explicit null status also skipped the transition guard. The author fixed it with one validator in app/models.py on both the create and update models, kept null valid for assignee and due_date where it legitimately clears a value, and added a regression test file. The suite grew from 60 to 71 tests and CI ran green on the fix. The test file’s docstring calls it a reviewer-reported defect.
app/models.py, TaskUpdate validator, from the author’s repository @field_validator("title", "description", "status", "priority") @classmethod def reject_explicit_null(cls, value: object) -> object: # Partial updates may OMIT a field (it stays unchanged: the default # ``None`` skips validators and is dropped by ``exclude_unset``). But # explicitly sending ``null`` for one of these four fields reaches this # validator and is rejected with HTTP 422 instead of corrupting the # stored task. ``assignee`` and ``due_date`` are intentionally excluded: # a null there legitimately clears the value. if value is None: raise ValueError("must not be null; omit the field to leave it unchanged") return value
Key ideaA minimal, verified security correction is the one kind of app/ change the author’s scope allowed, and it came with its own regression tests and an explanation in the AI review.
The governance worksheet
The worksheet reconstructs what the author shared with AI across the course and classifies each row. Three rows are Low, course toy-project material. Two are Medium: sharing the whole repository when a few files would have done, and browser-debugging evidence whose seed data could not be proven synthetic. No High-risk sharing is evidenced. Module 4 artifacts were not on the branch it was based on, so no Module 4 row was invented. A Received table records what was accepted, modified or rejected in each module.
| ID | Task | Final risk | Safer future version |
|---|---|---|---|
| G1 | Module 1 requirements, stories, architecture, skeleton | Low | Share only the requirement and small design excerpt needed. |
| G2 | Module 2 models, CRUD, tests, debugging | Low | Share only the failing test, smallest functions and a redacted traceback. |
| G3 | Module 3 frontend and browser debugging | Low | Share the failing handler, exact console error and minimal reproduction. |
| G4 | Midcourse repository inspection, planning, implementation | Medium | Approve a short list of anchor files per task instead of the whole repository. |
| G5 | Midcourse browser-verification debugging | Medium | Reproduce with clearly synthetic tasks and share only the failing fragments. |
The block the author chose to own
For the line-by-line trace, the author picked an AI-generated stale-response guard from the midcourse filter bar. Each load takes a sequence number; an older response or error is dropped if a newer load has started. The trace ended with a limitation the author had not stated before: filter changes use this guarded loader, but create, edit, drop and delete use a different refresh path, so the guard does not coordinate every refresh. A browser race test was recorded as NOT RUN.
The block as quoted in Docs/governance-worksheet.md (frontend/index.html lines 965-982, re-indented), from the author’s repositorylet loadSeq = 0; async function loadBoard() { const seq = ++loadSeq; setBannerState("loading", "Loading tasks…"); let tasks; try { tasks = await fetchTasks(); } catch (error) { if (seq === loadSeq) setBannerState("error", `Couldn't load tasks: ${error.message}`); return; } if (seq !== loadSeq) return; // a newer load started; drop this stale result renderBoard(tasks); setBannerState("ready", ""); }
The final AI review
The final AI review covers four things: a check that AGENTS.md contains each guardrail, an AI code-review mini-log, an AI security mini-review, and the owner’s independent check. Each table records the AI-recommended grade and the owner’s grade separately. It also lists what was checked and found safe, such as text-only rendering of task values, a two-origin CORS allow-list, the non-root container and the clean CI file, so the review is honest about what was inspected.
| ID | AI comment | Owner grade | Decision |
|---|---|---|---|
| R1 | README links used lowercase docs/midcourse/ but the tracked folder is Docs/midcourse/; breaks on case-sensitive systems. | Useful | Fixed: all seven references normalized. |
| R2 | Test-only packages are installed into the runtime image because one requirements file holds both. | Useful | Downgraded to backlog to keep the release minimal. |
| R3 | CI runs tests only and does not build the Docker image. | Useful (Low) | Optional future improvement. |
| R4 | Builtin generics like list[...] look like Python 3.10+ but are valid on 3.9. | Useful (no change) | Verified false positive; prevented a needless edit. |
Key ideaThe recorded “one AI output downgraded” is R2’s suggestion to split and pin requirements: plausible and accurate, but dependency modernization not tied to a failing requirement, so it became a documented backlog item.
The release evidence
Docs/release-evidence.md is the author’s single place for release facts. It records the source branch and the validated commit, a scope-control list answering No to every banned feature category, a baseline before edits, test, CI and Docker evidence, a hygiene section and a claim-vs-reality log for the docs.
- Baseline: 60 tests passed on Python 3.9.6 before edits; backend /health 200; frontend served with the three columns and modal present, and an owner visual check recorded as owner-confirmed.
- After the fix: 71 collected, 71 passed, locally and in CI on the validated commit, with a note that the evidence commit itself moves the branch head past it.
- CI: push and pull-request triggers, Python 3.9, shortcut scan clean, run and commit matched, test count confirmed so a zero-test success could not hide.
- Hygiene: current tree and history scanned clean; the dedicated scanner was not installed, which is recorded as a limitation; no .env, credentials, logs or personal data tracked.
- Claim-vs-reality: one inaccurate claim found, a README limitation still saying there was no Docker configuration, corrected.
The AI playbook
The one-page playbook follows Module 5’s sections and ends with a Decision Card and a 30-day reread date. Its evidence section ties rules to course moments: generated structure that did not run in Module 1, Python 3.10 syntax caught in a 3.9 project in Module 2, a drag-and-drop bug only a browser showed in Module 3, and the explicit-null defects in the final review.
Docs/ai-playbook.md Decision Card, from the author’s repository## Decision Card - For a new feature I reach for: repository-grounded AI draft, then I own scope, business rules, tests, and final acceptance. - For a code review I reach for: AI review plus my own evidence check before any grade counts. - For debugging I reach for: the exact failing test/error and the smallest relevant code path, not the whole repo. - For infrastructure I reach for: AI draft, then I verify versions, commands, CI logs, Docker runtime user, and no failure masking. - I will never paste credentials, private keys, `.env` files, production config, logs, or real personal/customer data into an AI tool. - My one rule is: if I cannot explain it or point to evidence for it, it does not ship.
Where the evidence drifted
The submission is careful, and it still shows how easily evidence goes stale once a late fix lands. These are worth noticing, not copying.
- The “Final release result” section of release-evidence.md still reports 60 passed and the earlier CI run, while the top of the same file reports 71 after the fix.
- The ownership statement in final-ai-review.md says the application code and frontend are unchanged; the same file’s application-change section records the app/models.py fix, and a closing note still says no app/ change was made.
- CLAUDE.md still scopes Claude Code to the Module 5 branch and its guide, while AGENTS.md was updated for the final project.
- The README’s project-structure tree predates the release and lists only some test files and Docs folders.
- Module 5’s notes name a docs/ai-usage.md for the three AI rules; the author kept them in the governance worksheet and the final review instead.
Read with careNone of this shows the work was wrong; the underlying checks were run. It shows that every late change must be followed by a reread of every document that quotes the old state, especially when the reviewer gives no detailed feedback.