Skip to content

Week 9 self-check answer guidance

Use these explanations after your first attempt. Another input or wording is fine when it carries the same evidence: a revision, a changed line or a check result you could show. The duration example is the course-written one from the notes. None of it is a model run.

Q1

Not as returned. Each report describes the branch's own tests. The unattended branch rewrote the display test, so its green run compares 3:05 with 3:05. The next check is the display test as it stood on the base, run by you against the returned revision. It expects 3m 05s, the candidate returns 3:05, and the check fails. The behavior to preserve is the unchanged duration display. Check the summary cases, and also read every changed hunk (block of changed lines) against the request. The display change and the rewritten expectation both fall outside "change only the summary implementation and add regression tests". Request a revision. Until you have run the preserved check yourself, the line to write is recheck.

Q2

You have directory and branch separation. Each agent edits its own files on its own branch, so their edits cannot collide. You do not have permission or execution isolation. Both worktrees belong to one repository on one host. A process started in one can still reach the other worktree, the shared repository metadata and anything else the host lets it reach. Inspect the agent's actual tool permissions and the environment it runs in, separately from the directories. A worktree also says nothing about whether the two agents work to one contract. You check that on the combined candidate.

Q3

The gate is a check the controller runs itself. The preserved tests sit outside what the agent may edit. They run against the exact revision the agent returned. The pull-request stage opens only when the controller has recorded a successful result. A missing result, a failing result and a timeout all block. The controller is whatever decides that the next stage may start: the pipeline's controlling script, or you in the studio. It is never the agent. "Run tests before opening a PR" is a request. The PASS in the report is the candidate's own text, not the controller's result.

Q4

Three things, in this order. First, resolve the disagreement from the request, not from whichever branch is easier to change. The request says [None] -> None, so the expectation of 0 is the one to correct. You make that call, not either agent. Second, review both changes. Third, run the checks on the combined revision and keep that result. The two reports name two separate revisions, and neither is the revision you would integrate.

Q5

One pair of runs supports a description of those two runs under the conditions you recorded. It does not support a claim that one mode is better, or any general claim about agents. There is one run in each mode, and the foreground run was given information the unattended run never had. Your record must show the clarification as an intervention, with what was asked and what you answered. The record also keeps:

  • the shared base, both candidate revisions and the allowed scope;
  • the preserved check with its actual result for each run;
  • the waiting and rework you observed.

Label anything you traced on paper, and anything you ran on the course-written candidates, as such. Keep it apart from the agent runs.

Q6

For a changed base, for example: Recheck — evidence: result covers the earlier base only; run the preserved acceptance suite on the combined current revision. The earlier pass was real, but it describes an earlier snapshot. A result with no command output is unknown: neither a pass nor a failure. Name the check that is missing. Run it yourself on the revision you are deciding about. Keep the command, the revision and the exit status before you write the line.

Q7

A file allowlist works on whole files, but the request works on hunks. Adding regression tests to the test file is allowed. Editing an existing expectation in the same file is not. The allowlist cannot tell the two apart. Once the agent can edit the assertion, a green run shows only that the code agrees with a test the agent wrote. The candidate has redefined success. Keep the acceptance checks outside what the agent can write. Inspect the diff of the test file. Try a negative case that must fail, such as the base display test against the unattended implementation.

Spaced retrieval and changed condition

Retrieval 1. You need two runs. The first runs on the base, with the fault in place, and the test fails because of the fault. The second runs on the returned change, and the test passes. A test that passes in both states cannot notice the fault, so its pass on the returned change tells you nothing. Record both runs with their revisions. This is the reproducer that this week's verification asks you to keep before generation.

Retrieval 2. The approval setting answers when a person is asked before an action. The environment answers what a command can reach, whether or not anyone is asked. Switching the prompts off removes the first control and leaves only the second. So inspect what the dedicated directory or container holds and can reach (files, network, credentials). Also check whether the agent can edit its own settings. This week's studio already answers the suggestion. A permission request is a stop condition, so you record the missing permission and narrow the task instead of widening the access.

Changed condition. Do not begin by creating the pull request again. Look first for what the lost step may already have produced: a task branch or an open pull request for this issue. An existing pull request belongs to this task and candidate when two things hold. Its issue and base are the ones the controller recorded at the start. Its head revision is the candidate revision the controller checked. If it matches, record it and continue; nothing is created twice. If it exists but points at another revision, stop and keep the reason. Retry only when nothing exists, and then retry only the pull-request step, not the whole run.