Read this as one student’s submission
Everything on this page comes from the author’s own docs/midcourse/ folder and tests. The brief is the authority on what is required; this page shows what meeting it looked like for one person. The author used Claude Code for repository inspection, planning, implementation and test drafting, pytest for the backend, and a headless Chrome browser driven over the DevTools Protocol for browser checks because no browser tool was otherwise available. Some of the work goes well beyond the brief, such as four Break Tests and a 53-check browser matrix; treat that as optional depth.
Read with careThe numbers here are the author’s recorded results on their own repository in July 2026. They are not targets, and your repository will differ.
The two features chosen
The author chose Due dates + overdue filtering and Search + combined filters, and made both visible on the board. Their roadmap gives the reasons.
- Due dates + overdue One optional backend field, create and update validation, a visible form and card change, a meaningful filter, and clear boundary tests.
- Search + combined filters Extends the existing list endpoint instead of a new subsystem; query validation; a visible filter bar; deterministic tests; no new persistence model.
Key ideaBoth features extend what the Task Tracker already has. Neither needs a new model or dependency, so the effort goes into evidence, not plumbing.
User stories, reconciled with the repository
Four stories per feature, each with acceptance criteria. Feature 1: create with an optional due date; edit or clear it; see due dates and the overdue state on cards; filter to overdue. Feature 2: search title and description; combine filters; a compact filter bar that keeps the board; a single Clear action. Before marking them final, the author checked every assumption against the code: the real routes, the completed status value “Done”, the status and priority enums, the existing nullable-field convention, the single-file frontend, the test fixtures and the 422 and 404 responses.
| Feature | Likely AI assumption | Correction |
|---|---|---|
| Due dates | A required timestamp/datetime field, and a stored overdue boolean. | An optional date-only field. Overdue is derived from due date, today and status, never stored. Confirm status strings and schema conventions from the repository. |
| Search + filters | Fetch all tasks once and filter only in JavaScript. | Extend the backend list endpoint and test the query behavior. The frontend sends filters and renders the server result. |
Read with careThe stories label these “likely” AI assumptions: defaults the author anticipated and wrote prompts against. The reflection confirms the AI did propose both when unconstrained.
Mini-ADR: decisions and rejected alternatives
Five short decision records, each with context, the decision, the alternatives and the consequences. The backend is treated as the source of truth throughout.
| Decision | What was decided | Rejected alternatives |
|---|---|---|
| ADR-1 · due_date | Optional date-only field on create, update and response, mirroring the existing nullable assignee. Invalid dates rejected with 422. | A required datetime (a deadline is a day, not an instant, and required would break existing creates); a separate parallel model. |
| ADR-2 · overdue | Derived, never stored: one predicate powers both the response field and the filter. Strict “before today”; Done is never overdue; today in UTC. | Computing overdue in the frontend (rules would diverge); a stored boolean (goes stale as the date advances). |
| ADR-3 · overdue filter | An optional overdue query parameter on the existing GET /tasks, AND-composed with the other filters. | A parallel route. |
| ADR-4 · search | Optional case-insensitive substring search over title and description, trimmed; blank means no search; plain substring matching, no regex. | Regex search (ReDoS risk and a 500 on characters like “[”); a separate /search endpoint; fuzzy search (out of scope). |
| ADR-5 · assignee and filter bar | Exact, case-insensitive, trimmed assignee filter; every filter AND-composed and skipped when blank; a filter bar sending enum values, omitting empty params, with a stale-response guard and debounce. | Substring assignee matching (too noisy); a framework or debounce library. |
The single overdue predicate · mini-adr.md, ADR-2def is_overdue(due_date, status, today) -> bool: if due_date is None or status == TaskStatus.DONE: return False return due_date < today # strict '<' → due today is NOT overdue
The weak prompt and its rewrite
The author’s logged weak prompt bundled both features and every phase. Their notes on why it is weak: it combines two features and every development phase; it names no repository contract, files, edge cases or scope; it invites a large rewrite and invented architecture; and “test everything” is not measurable. The rewrite reads the real files first, narrows to Feature 1, states the overdue rule, asks for a plan with facts marked separately from assumptions, and stops.
Prompts from the author’s prompt-log.mdWeak: Add due dates and filters to my task app and test everything. Stronger rewrite: Read AGENTS.md, CLAUDE.md, the actual task schemas/routes, existing pytest tests, and the current frontend. Work read-only first. For Feature 1 only, produce a repository-grounded implementation plan for an optional date-only due_date field and overdue filtering. Confirm exact files, completed-status value, nullable-field convention, current task-list route, test fixtures, and frontend modal/card functions. Use this target overdue rule unless the repository proves a conflict: due_date is before today and status is not completed; due today is not overdue. Return acceptance criteria, exact likely files/symbols, risks, proposed targeted tests, browser evidence, and the smallest phase order. Do not edit code, add dependencies, or plan Feature 2 yet. Mark assumptions separately from repository facts and stop after the plan.
A prompt sequence, one phase at a time
The author kept a numbered prompt sequence and used it one prompt at a time, planning first where marked. Each feature had a plan prompt, a backend-only prompt, a tests prompt, a frontend prompt, a verify prompt, and a Break Test split into two prompts: propose, then execute only after explicit approval. Every prompt ends with “Stop”.
- Read the durable instructions and confirm scope; audit the repository read-only.
- Create the branch and capture the baseline.
- Feature 1: plan, backend only, focused pytest, frontend, verify, Break Test propose → approve → execute.
- Feature 2: the same seven prompts.
- Pre-refactor contract and checkpoint; plan one refactor, then apply it.
- Complete the docs from evidence; final README and submission audit.
Prompt 08A from the author’s claude-prompts.mdSelect one important passing Feature 1 test for controlled Break Test evidence. Do not edit. Propose exactly one minimal temporary application-source mutation that should make the selected test fail for a semantic reason. Do not modify the test. Explain: - current passing command/result; - exact source file/symbol/change; - expected assertion failure; - restoration method; - Git/checkpoint safety requirements. Stop and wait for explicit approval.
Accepted, edited, rejected
Each logged prompt records what the AI returned and the decision. Most entries were accepted as proposed after review and testing, which the log states plainly rather than inventing edits. The decisions that changed the outcome are the useful ones to study.
| Prompt | AI returned | Decision |
|---|---|---|
| F1 plan | A read-only plan: optional date field, derived overdue predicate, filter on GET /tasks. | Accepted; the required-datetime and stored-flag default rejected; “today” fixed to UTC. |
| F1 tests | 16 tests across create, invalid dates, update and clear, overdue rules and the filter. | Accepted, with assertions on status plus body and state, never status alone. |
| F2 plan | Search and assignee params, AND composition, server-side only, a filter bar. | Accepted; client-only filtering rejected. |
| F2 backend | Search and assignee filters, plus a review suggestion to trim the stored assignee too. | Accepted, including the hardening. |
| Refactor | A setIf helper in the frontend query builder, or a backend filter-chain rewrite. | Helper accepted; the riskier backend alternative rejected. |
| Debugging | Three browser-check failures diagnosed as harness problems, not app bugs. | Edited: the test harness was fixed, never the application. |
Read with careA log where most entries say “Edited: none” is only credible if the surrounding evidence shows real review. Here it does: each decision cites a test run or browser check.
Tests: from 25 to 60
The baseline suite had 25 passing tests. Feature 1 added 16 in tests/test_due_dates.py, and Feature 2 added 19 in tests/test_search_filters.py, for 60 in total, well above the brief’s four. Dates are computed relative to the same UTC “today” the app uses, so the tests need no frozen clock and no new dependency. Search tests compare sets of titles, because the storage order is not part of the contract.
- Baseline: 25 passed, with 3 pre-existing deprecation warnings recorded as unrelated.
- After Feature 1: 41 passed. After Feature 2: 60 passed.
- The baseline browser check was honestly recorded as NOT RUN; later browser passes covered it.
Code from the author’s testsdef test_due_today_is_not_overdue(client): body = client.post("/tasks", json={"title": "Today", "due_date": _iso(0)}).json() assert body["overdue"] is False def test_search_matches_description_only(client): _seed(client, [ {"title": "Standup", "description": "discuss the roadmap"}, {"title": "Lunch", "description": "tacos"}, ]) # 'roadmap' is present only in a description, in no title assert _titles(client, search="roadmap") == {"Standup"}
Break Tests: four mutations, four semantic failures
The brief asks for at least two. The author ran three for Feature 1, each on a different rule, and one for Feature 2. Each followed the same sequence: pass on correct source, one temporary source change with the test untouched, the expected failure, restoration from git, pass again, and an empty git diff.
| Test | Temporary source mutation | Observed failure | Why it is semantic |
|---|---|---|---|
| test_due_today_is_not_overdue | In is_overdue, < became <=. | assert True is False | A task due today became overdue: the strict boundary rule. |
| test_completed_past_due_is_not_overdue | Removed the Done clause from the guard. | assert True is False | A Done past-due task became overdue: the completed-exclusion rule. |
| test_overdue_filter_returns_only_past_due_incomplete | In the filter, == became !=. | AssertionError: the complement set was returned | The filter returned non-overdue tasks; status 200 alone would have passed. |
| test_search_matches_description_only | Removed the description clause from search. | assert set() == {'Standup'} | A description-only match disappeared: the “search covers description” rule. |
Key ideaThe third row shows why assertions matter: the mutated filter still returned 200. Only the assertion on the returned ids caught it.
Behavior contract and the focused refactor
The author extended the Module 3 contract to 16 items: the Module 1-3 suite, unfiltered GET /tasks, existing flows, each due-date and search behavior, valid empty states, visible network errors, and the Break Tests. All 16 passed before the refactor. The refactor was one function, the frontend query builder: a repeated “read, trim, set only if non-empty” rule became a small setIf helper. After it, every request URL the board produced was captured and compared, and all ten were byte-identical; the suite stayed at 60 passed.
- Contract 16/16Before the refactor.
- CheckpointClean working commit.
- One functionbuildTaskQuery → setIf helper.
- 10/10 identical URLsPlus 60 passed.
- Contract 16/16After the refactor.
Debugging from evidence
During Feature 1 browser verification, three checks failed on the first run; one reported that clearing a due date left the old date on the card. The author gave the assistant the captured page snapshot, the exact assertion detail, the seed data and the relevant code paths. None was an application bug: the check read the board before it repainted, one seeded task was legitimately overdue so the expected count was wrong, and a regex in the assertion matched a JSON null. The decision was recorded as Edited: the harness was fixed, never the application, and the re-run passed.
Key ideaA failing check is evidence to diagnose, not a reason to change the app. Sometimes the bug is in the check.
Key moments from the reflection
The author’s reflection is 409 words, inside the brief’s 250-500. It covers each required moment with something specific.
- Tools Claude Code to inspect the repository and run phased prompts; pytest; a headless browser over the DevTools Protocol to observe the UI and capture request URLs.
- AI helped Design and adversarial review: a test matrix and edge cases such as whitespace-only search, a null assignee, regex characters, and never sending overdue=false.
- AI slowed things down Weak defaults that had to be rejected, and browser “failures” that turned out to be bugs in the author’s own harness.
- Review changed the result Empty filter selects must omit their parameter instead of sending an empty value that returns 422; the strict “due today is not overdue” boundary was pinned.
Key ideaThe author’s closing line: AI-assisted coding is a controlled feedback loop. Define observable behavior, supply real context, inspect the output, test the smallest change, and document the human decision.
The author’s submission checklist
Before pushing, the author walked a strict Met / Not Met checklist. The items map directly onto the brief.
- Branch named exactly mid-course-project, pushed, repository public.
- No secrets, .env files or temporary Break Test mutations; tracked OS files removed and ignored.
- Both features complete end-to-end and visible; existing behavior preserved.
- All existing tests kept; 35 new tests; full suite passing.
- At least three logged prompts per feature, one weak → strong rewrite, a decision for every prompt.
- A corrected AI assumption for each feature and one real debugging example.
- verification.md with baseline, tests, browser checks, contract before and after, and Break Tests.
- Reflection between 250 and 500 words; no TBD or bracketed placeholders left.
- README with the real install, backend, frontend and test commands, naming the features and linking docs/midcourse/.