Appendix B. Self-check answers and explanations

Chapter 1

1-1. (B) contains Done criteria. This is because anyone can confirm whether an email arrives the day after turning off notifications and whether the state remains after a refresh. In (A), there is no way to confirm 'easy to use'. Change it to an observable result, such as: "Each notification type has an on/off toggle switch, changes take effect immediately without a save button, and the state persists even after a refresh."

1-2. Empty state (if there is no reservation history, an informational message and a button to make a reservation are shown), loading (a loading indicator is displayed and the button cannot be pressed), failure (an error notice with a retry button is shown), and unauthorized (navigates to the login screen, then returns to the history screen after login). Any answer that describes an observable outcome for each state is correct.

1-3. Example: ① When a customer submits an inquiry form, "Received" appears and an entry is created in the administrator list. ② When an administrator opens the inquiry and changes it to 'Reviewed', the display in the list changes. ③ Upon receipt, an informational email is sent to the customer (in tests, confirm via the dispatch log). It is sufficient if each task produces an outcome that the user can use. If tasks were divided in the order of table, API, and screen, they were sliced by technical layer, so divide them again.

1-4. Open the plan in a text editor with Ctrl+G, edit it directly, and then proceed. Tasks that can be delegated immediately without a plan are those whose diff can be summarized in a single sentence, such as adding a single line of debugging log.

1-5. ③ is out-of-scope cleanup that touches the entire app and is not paired with any requirement (Questions 1, 2, and 5). In addition, it lacks a verification step (Question 4). Return feedback with step numbers and reasons, such as: "Remove Step 3. Before Step 4, insert steps to add tests confirming application saving, run npm test, and capture a screenshot."

1-6. If any of CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md exists in the working directory or above it, Claude Code reads that instead of AGENTS.md by default. Because CLAUDE.local.md is also included here, the team rules were omitted from that team member's session. Either place a CLAUDE.md at the root that imports @AGENTS.md, or have that team member change their personal setting to the value that reads both files together (claude-md-and-agents-md).

1-7. For Codex, add TEAM_GUIDE.md to project_doc_fallback_filenames in ~/.codex/config.toml. In each folder, it searches for this name after AGENTS.override.md and AGENTS.md. For Gemini CLI, add TEAM_GUIDE.md to context.fileName in settings.json (as a single name or a list).

Chapter 2

2-1. It means another process is already using port 5173. Often, a previously started development server is still running. Confirm the PID with lsof -i :5173 and terminate only that process with kill <PID>, or start the server on a different port. Avoid terminating processes in bulk by name pattern, as this can shut down unrelated programs as well. Reinstalling dependencies is usually useless.

2-2. Since zero tests were executed, nothing was confirmed. 'No failures' and 'Verified' are different. First suspect the possibility that test file locations, naming conventions, or test configurations are broken, or that no tests were selected due to a filter, and confirm the number of executed tests.

2-3. In the console, check whether a JavaScript error occurs on click; in the Network tab, check whether the request was sent and inspect its status code. If there is an error in the console or no request was sent at all, it is UI code; if it is a 4xx status code, check the submitted content or permissions; if it is a 5xx status code, it is a server-side problem, so inspect server output and logs.

2-4. Line 47 of src/checkout/summary.ts. In the stack trace, the uppermost line within your own code is where the error actually occurred, OrderPanel is where that function was called, and node_modules is a library. Because it attempted to read price on a target that is null, investigate cases where an order item is passed as null.

2-5. Confirm the exit code. If echo $? immediately after the command returns 0, it is a success. Warnings are not failures, and the absence of error messages does not mean success. CI also determines success or failure based on the exit code.

2-6. Temporarily revert the fixed code or reintroduce the bug, then run the test to see if it fails. If it fails, the test catches the bug; if it is a Pass, the test is unrelated to the bug. After confirming, restore the code to its original state.

2-7. Linux distinguishes case in file names, whereas macOS's default APFS format is case-insensitive. On a Mac, ./components/header found Header.tsx, but on Linux it cannot find it. Correct the import path to match the actual file name: ./components/Header.

Chapter 3

3-1. git diff compares the working tree with the staging area to show changes that have not yet been staged; git diff --staged compares the staging area with the last commit to show changes that will go into the next commit; and git diff HEAD compares the working tree with the last commit. To view both at once, use git diff HEAD. Untracked new files do not appear in either.

3-2. New files do not appear in git diff because Git is not yet tracking them. Confirm whether they are displayed as ?? in git status, stage them with git add, and inspect their contents with git diff --staged.

3-3. Ignoring whitespace differences with git diff -w leaves only the real changes. Separate functional changes from formatting changes across commits. Selectively stage only functional hunks with git add -p to commit them first, and commit formatting changes separately or revert them.

3-4. Specify the parent number to serve as the baseline (usually 1, representing main) with -m. This is because a merge commit has more than one parent, so you must specify which side to revert against. Git documentation warns that reverting a merge acts as a declaration that you do not want the changes brought in by that merge in the future, so even if you merge the same branch again later, the changes from the already merged commits will not be reintroduced.

3-5. It is git stash apply. apply applies the changes and keeps them in the stash list, allowing you to reapply them to other branches. pop removes them from the list if application succeeds. Clean up with git stash drop once you are done.

3-6. It is git reset --keep HEAD~2. It discards commits while preserving uncommitted modifications. If a file whose contents differ between the current HEAD and the target commit has uncommitted modifications, it aborts the reset without overwriting them.

3-7. 125. According to Git documentation, exit code 125 indicates that the current commit cannot be tested, so it skips that commit. 0 is normal (good), 1 to 127 excluding 125 are abnormal (bad), and any other value aborts the bisect.

Chapter 4

4-1. It will not execute. Claude Code evaluates rules in the order of deny → ask → allow, and the first matching rule determines the outcome. If there is a matching deny rule, it is blocked even if a broader allow rule exists, and an allow rule cannot create an exception to a deny rule.

4-2. No. The official documentation states that .claudeignore has no effect, and instructs moving its contents to a Read deny rule such as Read(./secrets/**). If you also need to block other programs running in the shell, use the sandbox's read restriction as well.

4-3. The value of a NEXT_PUBLIC_ variable is baked and frozen into the code sent to the browser during next build. Furthermore, in Vercel, environment variable changes take effect only in new deployments. You must rebuild and make a new deployment to see the new value.

4-4. That is incorrect. The default settings of the Claude Code sandbox restrict writing to the working directory and temporary directory, and restrict network access to an allowlist, but reading is allowed across most of the computer, including ~/.ssh and cloud credential files. Block sensitive paths with sandbox read restrictions, and block the agent's file tools with Read deny rules.

4-5. Push protection for user accounts is enabled by default, and it blocks pushes to public repositories if they contain secrets. Repository-level push protection is disabled by default, so an administrator must enable it, and it requires GitHub Secret Protection.

4-6. It does not filter them. According to npm documentation, --audit-level does not filter the reported output; rather, it is the threshold determining at or above which severity level of vulnerability the command terminates with a non-zero exit code. If vulnerabilities of high or above exist, CI will fail.

4-7. Example: (A) For typo fixes, allow only editing documents within the working directory, block access outside the directory and to the network, and auto-approving edits is acceptable. (B) For investigations, keep it read-only (plan mode or read-only), open the network only to package registries and official documentation, and prohibit installation. (C) For bug fixes, allow writing within the working directory and test commands, block access outside the directory and unnecessary network access, and require human approval for adding dependencies and pushing. Any answer is correct as long as it opens only the bare minimum required for each task and provides a justification.

Chapter 5

5-1. Production. Vercel always makes the first deployment of a new project a production deployment, regardless of which branch it is deployed from and even without --prod. After that, commits to the production branch or vercel --prod create production deployments, while other branches, PRs, and vercel without --prod create preview deployments.

5-2. The branch URL. It continuously points to the latest deployment of that branch. Because a commit URL is fixed to the deployment of a specific commit, it is used when comparing two points in time or recording that "a problem occurred in this version."

5-3. They are not applied. A rolled-back deployment runs with the configuration of that time, and environment variable changes are reflected only in new deployments. Creating a new deployment and promoting it reflects the new values and also clears the rollback state.

5-4. The Hobby plan can only roll back to the immediately preceding deployment. Pro and Enterprise can roll back to any deployment that has ever been connected to a production domain. Preview deployments that have never been connected to production are not eligible under any plan.

5-5. By default, vercel logs shows the latest 100 entries from the last 30 minutes. Widen the range, such as with --since 3h. If they are still not found, the plan's log retention period may have passed.

5-6. Turn off Auto-assign Custom Production Domains under Branch Tracking for the Production environment. When deploying from the production branch, it awaits promotion without connecting the domain, so confirm on the generated deployment URL and then promote. Promotion moves only the domain without rebuilding. Note that because this deployment uses production environment variables, it touches production data.

5-7. Example (flower arrangement class reservation app): ① Tests, type check, build Pass ② Directly confirm the class registration and registration cancellation flow in the preview ③ Newly used text message sending key exists in Production ④ No changes to the student table structure (if any, confirm compatibility with the previous code) ⑤ Payment webhook points to the production address and production key ⑥ Confirm the immediately preceding normal deployment and rollback method. If each line contains an actual feature name and whether it is confirmed can be determined as true or false, it is correct.