Build a small lab you can repeat
Start a local web service, observe one request and write down enough detail to rebuild the experiment.
Choose one question for the first run
Begin with a small question. Can a client retrieve a text file from a local service, and can you connect the response to a server log entry? This gives you a known result to build on when you later add a tool, an Ai client or a network boundary.
Use a POSIX shell on a Linux or WSL lab machine with Python 3.7 or newer and curl installed. Keep two terminals available. Record the tool versions and the expected result before starting. For this run, the expected response body is “Lab ready”.
python3 --version
curl --versionCreate a fresh directory and a local service
In the first terminal, create a temporary directory containing one synthetic file. Keep the printed path in your notes. The server is explicitly bound to 127.0.0.1 and serves that directory. Leave this terminal running while you make requests from the second.
Python’s built-in server is intended for simple development use. Use it for this short local experiment. Keeping the served directory separate makes it easy to see exactly which file the client can retrieve.
lab_dir=$(mktemp -d)
printf 'Lab ready\n' > "$lab_dir/index.html"
printf 'Lab directory %s\n' "$lab_dir"
python3 -m http.server 8080 --bind 127.0.0.1 --directory "$lab_dir"Observe both ends of one request
In the second terminal on the same lab machine, request the page. You should see an HTTP response followed by the text from the file. Look back at the server terminal for the request entry and status.
Save the command and a short observation in your notebook. Include the URL, status, response text and approximate time. If port 8080 was already occupied, choose an available port and update both commands. Record that change so someone repeating the lab can follow the same setup.
curl --silent --show-error --max-time 5 --include http://127.0.0.1:8080/Introduce one controlled failure
Request /missing.txt from the same service. Expect a 404 response and a matching server log entry because the fresh directory contains only index.html. Compare that result with your successful request.
Use the pair as a small baseline for future tools. An Ai client that summarizes the results should identify the successful page and the missing file from these observations. Keep the supplied log excerpt short and synthetic so its answer can be checked line by line.
curl --silent --show-error --max-time 5 --include http://127.0.0.1:8080/missing.txtStop and rebuild
Stop the server with Ctrl+C in the first terminal. Record the temporary directory path with the run notes. On your next run, use a fresh directory and follow the written steps. Add any detail you had to recall from memory, then compare the two response statuses and bodies.