Write a verification command that can run
Status: Ready
Article ID: 048
Truth label: Current
Audience: Workflow builder
Reader outcome: Choose a platform-correct verification command that independently tests the requested behavior on the assigned worker.
Related articles: 034, 047, 084
Target week: 19
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Verify the acceptance claim
A useful command checks the behavior named in the task, not merely syntax or a clean diff. Prefer the smallest test target that would fail before the change and pass after it. Add broader regression checks when the change can affect shared behavior.
Match the worker platform
The command runs on the assigned worker inside the project path. Use binaries,
virtual-environment paths, quoting, and separators valid for that host. Do not
copy a Windows command into a macOS worker or assume python resolves to the
project interpreter.
The executor prepends an appropriate project virtual environment to PATH when present, which helps both the agent and the independent check use the intended runtime.
Keep execution explicit
The worker parses the configured command into argv and runs it independently after the CLI. A nonzero exit turns the run into a failed result. Capture the command, exit, and concise output as verification evidence.
Test the command first
Run the command manually in a disposable or trusted checkout on the same host. Confirm it collects the intended tests, returns nonzero for a known failure, and does not mutate production data. Then attach it to the task.
Current limits
Verification executes repository code with the worker account and can have side effects. One command cannot prove every acceptance criterion. Passing in the working tree does not prove committed HEAD includes all required files.
Next lesson
Continue with Understand the worker prompt layers.
Derivative map
- Weekly package: WEEK-19
- Long video: VIDEO-W19-LONG
- Shorts: SHORT-W19-PROBLEM, SHORT-W19-MECHANISM, SHORT-W19-WARNING
- Email: EMAIL-W19
- LinkedIn: LI-W19-A, LI-W19-B
- X: X-W19-A, X-W19-B
- Visual: VISUAL-W19
Review record
- Command parsing, project path, environment, independent execution, and failure behavior checked against current source.
- Platform, side-effect, coverage, and working-tree limits reviewed.
- Procedure proves a known failure before attaching the command.
- Internal links and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13