Keeping What You Build
By the end of this lesson, you should be able to identify the materials needed for durable ownership, use a cautious review-and-commit sequence, and design a recovery check that does not depend on the original chat.
Ownership needs usable materials
Having a running program is only part of owning a project. You also need the source that produced it, instructions for building or running it, dependencies and their versions, relevant decisions, verification evidence, and a way to recover an earlier accepted state.
An exported binary without source may be usable today but difficult to repair. A repository without setup instructions may be hard for another person to build. A long chat may explain intentions while leaving the actual accepted state unclear. Preserve a small, coherent record in the project itself.
For our example, the handoff is compact: the function, tests, behavior specification, rejected and corrected candidates, exact commands, recorded results, a readable diff, and a README. Someone can extract the package, run the checks offline, and understand why the rejected result was unacceptable. None of that requires access to the assistant that helped create it.
Keep the project understandable from the outside
Write a README for a future maintainer who has not seen your chat. Explain what the tool does, its supported inputs, how to run it, how to test it, and where its boundaries are. State whether setup downloads anything and which files a command writes.
A useful dependency record distinguishes runtime needs from development tools. The example needs Python 3 and the standard library to run and test. It does not need ReportLab; that is a development tool used to build this course's PDF. Mixing those requirements would make the example appear harder to use and less portable than it is.
Record the reason behind decisions likely to be questioned. "Preserve first occurrence because order represents a study plan" explains why sorting is a defect. "Use casefold for comparison; do not normalize internal spaces" defines a deliberate boundary. You do not need to narrate every discarded variable name or intermediate typo.
Keep this record close to the source. A later worker should discover it through the repository's ordinary files. Documentation that only one person can locate in a private chat is fragile continuity.
Use version control as a decision record
Git records snapshots and their history. It helps you inspect changes, group an accepted change coherently, and identify a prior state. It does not automatically establish that a commit is correct, safe, or complete. Review comes before the commit, and recovery depends on preserving the repository and its history.
The following commands are Git-specific examples. Run them only inside a repository you recognize. The first commands inspect; they do not alter the working files:
git status --short --branch
git diff -- cleaner.py tests/test_cleaner.py README.md
git diff --check
status shows the branch and tracked/untracked changes. diff shows unstaged edits in the named paths; it does not show the contents of new untracked files, which you must open separately. diff --check checks whitespace errors, not program correctness. Read the output and resolve unexpected files before staging anything.
After you have reviewed and accepted the intended files, stage only those paths. Staging changes Git's index, not your working file contents. Inspect the staged change before committing:
git add -- cleaner.py tests/test_cleaner.py README.md
git diff --cached --stat
git diff --cached
git status --short --branch
git commit -m "Implement order-preserving reading-list cleanup"
These paths are illustrative for a small project laid out that way; the course package has separate candidate directories. Do not paste this sequence into a repository with different paths. The owner executes the commit after confirming that the staged diff contains only the accepted task. If other changes were already staged, explicit paths alone do not remove them from the eventual commit. Inspect the entire staged diff.
A commit creates a local history entry. It does not publish the project or make an off-device backup. A push is a separate action that sends commits to a configured remote. Deployment is another separate action. Do not treat permission for one of these as permission for all three.
Preserve unrelated work
Real repositories are often busy. A document may be half edited, another feature may be staged, or a local configuration may be intentionally untracked. Ask for a status inspection and a bounded change inventory. If the assignment overlaps existing work, stop and reconcile it with the owner.
Do not use a destructive reset or broad cleanup to make the diff easier to read. Do not let a worker overwrite a whole repository from a ZIP when only a few files should change. Work in a separate copy when that is the safest way to prepare a candidate, then integrate the precise reviewed delta.
Isolation has limits. A copied folder may still contain scripts that act on absolute paths or shared services. Inspect commands before running them. In this course, the example runner only loads a local candidate and executes tests; it neither writes your reading list nor contacts a service.
Design recovery before release
A recovery plan answers what state you want back, which materials restore it, who authorizes restoration, and how you will verify the result. "We can undo it" is not enough if the previous build, data, or credentials are missing.
For a source-only change, preserve the baseline and an exact diff. Test applying the diff and reversing it in a disposable copy, then compare the restored files with the baseline. That demonstrates a narrow recovery path without touching the owner's real work. It does not establish recovery of a production database, user uploads, or an external account.
For the reading-list tool, recovery is especially simple because it does not persist data. Keep the starter and corrected files, identify the accepted candidate, and run the same tests after restoring the intended version. If a later version writes files, backup and recovery requirements must expand with that consequence.
Git's history can support recovery, but choosing a recovery command depends on whether changes are committed, shared, or mixed with unrelated work. Do not paste a generic reset command from a tutorial into a real incident. Inspect the state and preserve a copy first; obtain approval for destructive or consequential actions.
Check portability with a fresh start
A practical portability test is to extract or clone the project into a new directory and follow only its README. Can you run the tests without the original working folder, hidden packages, assistant account, or chat history? Does the documentation distinguish optional tools from required ones?
For this course's ZIP, a reader can use the combined Markdown and PDF offline. An optional local run uses python3 example/run_checks.py corrected from the extracted root. The README explains the expected failure of the rejected candidate so a nonzero result is not confused with a damaged download.
Checksums help detect unintended byte changes when compared with an expected manifest. A checksum bundled with a download is not proof of who authored it: an attacker able to replace both could replace them together. Use it for integrity within the stated trust boundary, and do not confuse that with a signature or a guarantee about code behavior.
Practice: write a recovery card
Write five short lines for your own small change: current accepted baseline, candidate identity, verification command, materials needed to restore the baseline, and the check that confirms restoration. Add who must authorize the action if it affects shared or published work.
Now imagine that your assistant service disappears tomorrow. Could you still understand the result, run the checks, and explain the main decision? If not, identify the smallest missing record and add it to the project. Durable ownership is built through those concrete materials and practiced recovery, rather than confidence in a particular assistant.
You have now followed the full cycle: define the experience, delegate a bounded change, inspect and verify the result, make a human acceptance decision, and preserve the project. The next page gives you evidence to evaluate on your own.
