Skip to main content
Unit tests can be all green while the delivery is still wrong—an edge case was quietly dropped, a document ended up in the wrong path or format, or a fix introduced a regression. Native’s Verify stage looks beyond test exit codes. It checks the implementation against your original request, the confirmed brief.md, target Specs, and every acceptance criterion so that what ships matches what you agreed to. The Agent and Runtime handle the verification and repair loop automatically; you only decide at key checkpoints whether to request independent review, accept the result, or revise requirements.

What Verify actually checks

When a change enters Verify, the verifier evaluates four dimensions in order:
  1. Prevent drift against your original request: When a task is created, the Agent saves your original prompt verbatim in the Run and hands it directly to the Verifier. The Verifier reads the original request first, then compares it with the Specs and code to catch missing requirements, unapproved scope reductions, or interface drift.
  2. Evaluate every acceptance criterion: Covers every confirmed acceptance ID for the change, giving each item an individual verdict and verifiable evidence.
  3. Check agreed artifact paths and formats: If brief.md requires specific file paths, sections, or formats, Verify inspects the file at that exact location rather than accepting similar content elsewhere. Missing sections or wrong paths cannot pass.
  4. Treat Builder handoff as clues, not conclusions: The Builder’s summary, check records, and known limitations help orient the review, but the Verifier independently confirms the actual code and results.

Choosing a review method: current session or independent review

Choose the review method based on change risk—just tell the Agent in chat without typing CLI flags manually: Two strict rules keep reviews trustworthy:
  • Independent review cannot be quietly dropped: Once you explicitly ask for independent review—or the Builder submits with the independent-review flag—the Runtime persists that requirement in the Run record. Even if later steps omit the flag, an independent read-only session must still claim verification.
  • Verify keeps a read-only perspective: Verification itself does not modify application code; any defect must return to Build to be fixed and resubmitted as a new candidate. If the project sets native.document_writes to revert, Hook Guard also strictly blocks code writes during Verify (under the default allow, manual edits are preserved for the Agent to assess impact).

Running checks, reusing evidence, and status values

1. Running commands directly with Agent platform tools

Builds, unit tests, type checks, linters, and end-to-end tests are executed directly by the Agent via platform tools. The Runtime does not re-run ordinary commands on the Agent’s behalf, does not track command PIDs, and does not skip tests mechanically based on file hashes. If Project Knowledge or repository policies inject active verification commands (<verification command="...">), the Agent includes them in Verify as well. Each check recorded in checks includes three required fields and up to two optional evidence fields:
  • name: Check name;
  • result: Observed outcome;
  • note: Command run, working directory, exit status, and log reference;
  • acceptanceIds (optional): List of related acceptance criterion IDs;
  • reason (optional): Reason for adding or rerunning the check.
If an earlier check still applies to the current code and runtime environment, the Agent can cite the existing result. Checks affected by code edits, not yet run, or impacted by environment changes must be executed again.

2. Allowed status values

The Runtime strictly validates enum values in submissions so unrun or unknown checks can never be reported as passing: Note: Passing unit tests only prove the behaviors those tests cover. Acceptance criteria outside test coverage—such as UI copy, error-code mappings, required document sections, or config compatibility—must still be backed by code inspection or observed execution evidence.

3. Example: a failed round and repair re-verification

Consider round 1 of Verify for login-error-message: Because A2 failed, the overall verdict is fail, and the Runtime sends the failed item back to Build. After the Builder adds the 429 branch and submits round 2, the Verifier checks the 429 behavior and confirms the shared error handler did not break the 401 message. Unaffected API tests can cite their earlier record, while frontend UI tests rerun against the new candidate.

Do existing checks stay valid after editing code or docs?

When manual edits occur during Build, Verify, or pre-Archive, Comet does not wipe approvals and check records just because file bytes changed. Instead, the Agent inspects the Git diff, edited text, and affected call paths to judge impact:

Repair loop, failure limits, and post-verification actions

Once Verify submits a verdict, the Agent shares the result and you decide the next step in natural language (the Agent runs the corresponding commands in the background):

Failure limits and progress handling

  • Failure budget: native.max_verify_failures in .comet/config.yaml limits how many real Verify failures are allowed for the same confirmed acceptance target (default 5). Reaching the limit pauses the automatic repair loop so you can decide whether to try another approach, narrow scope, or cancel.
  • No mechanical progress penalty: Across repair rounds, even if the set of failing acceptance IDs stays the same temporarily, the Runtime does not force a stop solely for non-shrinking ID sets; the Agent uses the actual diff and error output to guide repair.

About verification.md

verification.md is a human-readable view generated by the Runtime from structured verification results. Editing this Markdown file directly does not alter the verdict stored in the Runtime. If writing the report file fails, the submitted structured verdict is still preserved and the report regenerates automatically on the next step. See Archive and delivery for archiving and Git delivery details, and Native task recovery for troubleshooting.
Last modified on December 1, 2026