{ Prompts4All }

Audit how the agent checks its own work

Agent Audit

Audit the checks that a coding agent can run in this repository to learn that its work is correct, with no help from me. An agent that cannot check its work guesses.

For each capability in this list, find the exact command, run it, and record the result:

  1. Install the dependencies in a clean checkout.
  2. Type check or compile.
  3. Lint, and check the format.
  4. Run all tests. Run one test file. Run one test by name.
  5. Build.
  6. Start the application and stop it again, from a shell that is not interactive.
  7. Look at the application while it runs: a page, a screenshot, an API response or a log.
  8. Read the result of the last CI run.

For each capability record:

  • the command, and where you found it (package scripts, a Makefile, the CI config, the docs);
  • whether it ran with no prompt, no editor, no login and no manual step;
  • how long it took;
  • how many lines it printed when it passed (long output for a pass uses context for nothing);
  • whether a failure is clear: the exit code is not zero, and the output names the file and the cause.

Then prove that the checks can fail. In a scratch copy or a temporary branch, make one deliberate error of each type (a type error, a lint error, a failed test, a failed build), and confirm that the related command fails. A check that cannot fail is worse than no check. Afterward, discard the scratch changes and confirm that the working tree is the same as before.

Rules:

  • During the audit, do not install global tools, do not change the configuration, and do not touch external services (deploys, production data, payments).
  • If a command needs a secret, a login or a service that you do not have, record that as a gap. Do not go around it.
  • Report what you ran and what you saw. Do not say that a command works if you did not run it.

Output: a table with one row for each capability and these columns: command, works without me (yes, no, partly), time, size of the output, clear failure (yes, no). Then list the gaps, most important first, each with the smallest fix. Examples of fixes are one command for a fast check of one change, a quiet mode, a way to run one test, seed data, and a script that starts the application and waits until it is ready. End with the two commands that an instruction file must name: the fast check during the work, and the full check before the work is done.