Agentiqa Docs

QA review in CI

Have AI Quality Manager review every CI run against the code you deployed, in the same job. It leaves one card per test step, and a person approves each one.

AI Quality Manager reviews your test runs after they finish. In the same CI job that runs your saved plans, agentiqa review reads two things:

  • what changed in your repository since the last review, up to the commit you deployed: the commits and the pull requests behind them;
  • what the run saw: every step that passed or failed, with the tester's notes and screenshots.

It judges what your users get, not the quality of the code. For each test step it decides at most one thing, and leaves it as a card:

CardWhenWhat a person decides
Update test?A step failed because a change in the app replaced what the step checks, for example a renamed button. The card names the change, shows what the tester saw, and the exact edit to the plan.Approve the edit, or reject it.
Possible bugA step failed, and the change behind it looks unintended, or no change explains it. The card names the suspect change.Keep the test and fix the app.
Add test?A change your users will see, such as a new page, that no plan covers. The card is named after the new page, else after the commit that made the change (its pull request's title).Approve copies a prompt for your coding agent: it explores the app from the card's brief and saves the test. Or reject it.

Nothing changes until a person approves. The review never edits a plan, never changes the result of a run, and never fails your job. People decide in the Agentiqa app (the job summary links every card, and the project's Suggestions page with every card still open), or through a coding agent that follows the agent skill and asks them first.

Some failed steps are Agentiqa's fault, not your app's. For example, the tester reported a step as passed but never graded its checks, so the run marked the step failed. The review never makes such a step a Possible bug and never files an issue for it. Agentiqa looks into it instead. There is one exception: when your code shows that a change replaced what the step checks, the step can still get an Update test? card. That card links to the run but does not quote the tester's notes.

A failed step that gets no Update test? card becomes a Possible bug only when the plan ran again in the same job and the step failed again. One failed run is not enough, even for a step that passed on its earlier runs. The review records such a failure only for the Agentiqa team and leaves no card or issue for it. The Action runs each plan once, so its review leaves no Possible bug card. With the CLI, run the failed plans again in the same job (agentiqa run --plan-id <ids>) and pass that second batch after the first: --batch <batch>,<rerun batch> (CLI reference).

Every red test gets one line under Why tests failed, open near the top of the review's job summary. The line names the test and the step, then whose the failure is read to be, then what the review saw in the run. The same line replaces the run's own text in the Reason column and the error annotation of that test's row in the run table: in a job that runs the plans and reviews them, the Action writes the table after the review. It also appears on the run's page and under the run on the batch page in Agentiqa. A red test the review found no cause for says so; in the run table its row keeps the run's own text, followed by "(QA review: no cause found)".

The job summary also names each failed step the review keeps for the Agentiqa team, under Failed steps the Agentiqa team checks: the plan, the step, and the cause the review read for it. Each line says first whose the failure is read to be (Agentiqa's tester, the test environment, or this run of your app), then what the review saw in the run. One failed run is never called a bug in your app. A step the review read no cause for says so.

Under Runs without a verdict, each line says in plain words why the run has no verdict (for example, that Agentiqa's run supervisor stopped it, or that the run ended with an error) and how many runs in a row ended that way. When the review read a cause for that run, the line also names the step the run stopped at and the cause, in the same form.

When Agentiqa stops a run because its tester got stuck, the review lists it as a run without a verdict and blames nothing in your app. A series of such stops is never filed as an issue in your project. A step the tester graded in that run can still get an Update test? card, but only when your code replaced the text the step names, that text is gone from your app's code, and the tester saw the new text there.

When a plan ends without a verdict for another reason three runs in a row, the review files one issue for the series. The issue names the step the runs stop at and, when earlier runs stopped elsewhere, where. It lists the review's own earlier predictions that a commit changes a step the runs no longer get past, and what the review saw at the stopping step. The stopping step is the one Agentiqa stopped the run on, not an earlier step that failed while the run went on. When the review cannot tell why the runs stop, the issue says so instead of pointing at your environment. When it reads the latest run as a fault of Agentiqa's tester, the issue says that too and still points at the step: not every run of the series ended that way.

An issue is not a card: no edit to a test fixes it, so there is nothing to approve. The project's Suggestions page lists it under Issues to check, after the cards, with what the review concluded. This covers the issues the review files and the issues of a run that the review adds its note to. Open the issue to see the evidence, then confirm or dismiss it. A confirmed issue stays on the page until it is resolved.

Before you start

  • Same job, same project. The review reads the batch that agentiqa run recorded, so it runs in the same job, right after the run. Use the service key of the project the run used.
  • A full-history checkout of your app's repository, with the deployed commit in it: actions/checkout with fetch-depth: 0. A shallow checkout does not have the history between two reviews.
  • The deployed commit. Pass the commit that is deployed at the URL your plans ran against. In a scheduled workflow, github.sha is the tip of the default branch, and that is not always what is deployed. Read the commit from your deploy instead, for example from a version endpoint of your app.
  • contents: read and pull-requests: read. The review reads the pull requests behind the commits with the job's GITHUB_TOKEN. List both scopes in the workflow's permissions: a permissions block sets every scope it does not list to none, and actions/checkout needs contents: read.
  • No model key. The review runs on Agentiqa's managed model access for your account. You configure nothing for it.

With the GitHub Action

Set review: true and deployed-sha on agentiqa/qa-action@v1:

name: Nightly QA
on:
  schedule:
    - cron: '0 4 * * *'
  workflow_dispatch:

permissions:
  contents: read
  pull-requests: read

jobs:
  qa:
    runs-on: ubuntu-latest
    steps:
      # Only the review needs these two steps. If one fails, the job stops here
      # and no plans run, so check the setup by hand before the first night.
      # timeout-minutes: a step that hangs fails when its time is up.
      - uses: actions/checkout@v4
        timeout-minutes: 10
        with:
          fetch-depth: 0

      # Replace with however your deploy tells you the commit it serves.
      - name: Find the deployed commit
        id: deployed
        timeout-minutes: 2
        run: echo "sha=$(curl -fsS --max-time 30 https://app.example.com/version.txt)" >> "$GITHUB_OUTPUT"

      - uses: agentiqa/qa-action@v1
        with:
          service-key: ${{ secrets.AGENTIQA_SERVICE_KEY }}
          review: true
          deployed-sha: ${{ steps.deployed.outputs.sha }}
          # Where plans without a starting point start. Keep it recent (see below).
          review-since: v2.14.0

The review step runs after the run, also when plans failed. It does not change the run's outcome or how fail-on gates the job. Its cards appear in the job summary under the run table, and the Action exposes:

  • batch-run-id: the batch the run recorded;
  • review-exit-code: 0 the review finished, 2 it could not run (setup, permission or account limit; a retry does not help), 3 it did not finish (transient; safe to retry), 124 it was stopped at review-timeout-minutes. Empty when review is off;
  • review-json-path: the review's JSON envelope, also uploaded with the artifacts as agentiqa-review.json;
  • setup-check: ok, or missing when a line of the setup check is missing.

deployed-sha and review-since take a full or short sha or a tag that is in the checkout. The review records its progress per repository and branch: the workflow's repository and branch. If you deploy from a branch other than the one the workflow runs on, call the CLI directly and pass --branch. For the first nights, set review-dry-run: true (Start with dry runs). Every input is on the Action reference.

A step that fails skips every later step of the job, the Action included. So if the checkout or the step that finds the deployed commit fails, no plans run that night. Check the whole setup by hand on a day run before the first night, and fix what fails there. Give both steps a timeout-minutes: a step that hangs does not fail until its time is up, so without one it would hold the job until the job's own timeout cancels it.

A review usually takes a few minutes. The review step stops a review still running after review-timeout-minutes (default 40) and reports review-exit-code 124. The CLI is given 2 minutes less (AGENTIQA_REVIEW_MAX_MINUTES, unless your job sets it), so the review wraps up on its own before the step stops it. A job that reaches its own timeout-minutes is cancelled before the Action's gate runs, so keep review-timeout-minutes below the time your job has left after its longest run.

With the CLI

The same job, step by step. agentiqa run exits 1 when a plan fails, so the review step uses if: ${{ !cancelled() }} to run after a red run too. The review is advisory, so its step must never fail the job: it exits 2 when it cannot run and 3 when the model or the network fails, and a red QA review step would turn a night where every plan passed into a red job. The step below warns instead, and continue-on-error covers anything it did not foresee:

jobs:
  qa:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: read
    env:
      AGENTIQA_SERVICE_KEY: ${{ secrets.AGENTIQA_SERVICE_KEY }}
    steps:
      # Only the review needs these two steps (see above).
      - uses: actions/checkout@v4
        timeout-minutes: 10
        with:
          fetch-depth: 0

      - name: Find the deployed commit
        id: deployed
        timeout-minutes: 2
        run: echo "sha=$(curl -fsS --max-time 30 https://app.example.com/version.txt)" >> "$GITHUB_OUTPUT"

      - name: Run the test plans
        run: npx -y agentiqa@latest run --json > run.json

      - name: QA review
        if: ${{ !cancelled() }}
        # Advisory: never fails the job.
        continue-on-error: true
        env:
          GITHUB_TOKEN: ${{ github.token }}
          DEPLOYED_SHA: ${{ steps.deployed.outputs.sha }}
        run: |
          batch="$(jq -r '.batchRunId // empty' run.json 2>/dev/null || true)"
          head="$(git rev-parse --verify --quiet "${DEPLOYED_SHA}^{commit}" || true)"
          # Where plans without a starting point start. Keep it recent (see below).
          since="$(git rev-parse --verify --quiet "v2.14.0^{commit}" || true)"
          if [ -z "$batch" ] || [ -z "$head" ] || [ -z "$since" ]; then
            echo "::warning::QA review skipped: no batch, or a commit is not in this checkout."
            exit 0
          fi
          code=0
          npx -y agentiqa@latest review --batch "$batch" --head "$head" --since "$since" \
            --summary "$GITHUB_STEP_SUMMARY" --json > review.json || code=$?
          if [ "$code" != 0 ]; then
            echo "::warning::QA review exited $code (2: could not run, 3: did not finish). See review.json."
          fi

--head and --since take a full 40-character sha, so the step resolves them with git rev-parse first. The batch id is the run envelope's top-level batchRunId; with artifacts on, the run also writes it to <artifacts dir>/last-batch.json. The repository and branch default to GITHUB_REPOSITORY and GITHUB_REF_NAME; --repo and --branch override them, and --repo-path points at a checkout outside the working directory. For the first nights, add --dry-run (Start with dry runs). Every flag is on the CLI reference.

Where a review starts

For each plan, a review covers the commits from the last review that reached a result for that plan, up to the deployed commit. Some plans have no such point: every plan on the first review, a plan you add later, and a plan whose runs never reach a verdict, for example a plan whose steps are always skipped. Then the review stops with exit 2 (no_base) until you give it one: set review-since (Action) or --since <sha> (CLI) to the commit to start from.

The review reads one set of changes for all plans, from the oldest starting point. So while any plan starts from review-since, the whole review reads every change since that commit, and the first line of its job summary says since <sha>. A fixed old value makes every such review read months of changes: the review analyzes only as much as fits its input limit, so recent changes that matter to the other plans can go unread. Keep review-since recent and move it forward, for example to your latest release tag with each release, or to the commit you deployed before the current one.

A plan's own starting point can be older than the commit the review started from: a plan whose runs had no verdict in the last review still starts at the review before it. The review then reads back to that older commit, and the first line of its job summary says both numbers: the commits that are new, and how far back it read, for example 78 new commits on main since <sha> (review window: 186 commits back to Nov 17, for tests whose last verdict is older).

The review first lists what every changed file does, reading the changes in parts, so the old limit of about 500,000 tokens no longer applies to that first step; it still reads at most about 6,000 tokens from any one file. Its later step, which judges failed tests, still reads up to about 500,000 tokens: the code behind the pages where steps failed first, then the code your plans reach, then the rest. The job summary counts the files cut short as read in part, and any file the review could not read, with the reason.

A review that did not finish moves nothing forward: the next review covers the same changes again.

Several projects in one workflow

Some teams keep one Agentiqa project per tenant or environment of the same application, and one GitHub Actions workflow runs the plans of each project, for example as a matrix. One review then covers all of them. You set nothing up: start the review as you do for one project, with that project's service key.

Every batch that agentiqa run starts inside GitHub Actions records the workflow run it belongs to. The review looks for batches of the same workflow run in your other projects and reads their plans and runs together with its own. The summary names the other projects in an Also reviewed line.

  • A card for a plan appears on the Suggestions page of the project that holds the plan. A card for a new test appears in the project the review was started for.
  • The review itself, with its result for every plan, is saved in the project the review was started for. That project's review instructions apply to all the plans.
  • The service key that starts the review must have access to the other projects. A project the key cannot read is left out.
  • A project whose batch has not finished when the review starts is left out for that night, and the job log says so in a warning: line. Start the review after all the runs, for example with needs: on the job that runs the plans.

Batches started outside GitHub Actions, or in different workflow runs, are not joined: each review covers its own project.

Start with dry runs

For the first nights, run the review without adding anything to your project: set review-dry-run: true (Action) or add --dry-run (CLI). The job summary and the review JSON show the cards it would leave, and the line under the summary's title says Dry run: nothing was added to your project. No card, issue or review reaches your Agentiqa project and no starting point moves forward, so each dry run continues from where the previous one ended (or from review-since on the first night). When the cards look right, turn it off: delete review-dry-run: true. If your review is a job of its own with review-only: true, set review-dry-run: false instead: a review-only run is a dry run unless it says false.

Every review of a batch, dry or saved, also sends one copy of the review to the Agentiqa team, so we can check its cards with you and find the cause of a wrong or missed card. A saved review sends it after its writes. The copy holds what a saved review holds: the cards, the summary and the failed steps it looked at. It also holds a trace of how the review reached its cards: the paths of the changed files, commit subjects, pull request titles, how the review linked your test plans to files, the reasoning of the AI model behind the review, and, under each card, possible bug and decision, the parts of the diff it rested on (the changed lines as the model read them, or the one commit's change a check compared). Each hunk is stored once, values that look like secrets are redacted, and the lines and hunks are capped. It also holds the review's change journal: what each pull request changed and how the review sorted it, so the next night does not read the same change again. The copy holds no whole files or prompts. Like a saved card, it can quote the short text the review cites as evidence: a changed line, or a sentence from a commit message, a pull request description or a code comment.

The diff hunks go only into the copy for the Agentiqa team: never into your project, the job summary, the review JSON or the --trace-out file. review-trace-hunks (Action) and --trace-hunks (CLI) are accepted and change nothing: every copy holds the hunks.

Only the Agentiqa team reads the copy. It does not appear in your project, and it is deleted after 30 days. The summary line ends with A copy was sent to the Agentiqa team. (a saved review: A copy of this review was sent to the Agentiqa team.). If the copy cannot be sent, the review still finishes the same way, with a warning.

Before the first night

Check the setup in the day, before the first night. One run started by hand checks every line the review needs, then reviews your latest batch as a dry run. It runs no test plan, and it adds nothing to your project. Like every dry run, it sends one copy of the review, with its trace, to the Agentiqa team (Start with dry runs). The copy is deleted after 30 days.

The change to your nightly job

Add these lines to the nightly workflow (+). Change nothing else:

 on:
   schedule:
     - cron: '0 4 * * *'
+  workflow_dispatch:
+    inputs:
+      setup-check:
+        description: Check the QA review setup only (runs no test plan)
+        type: boolean
+        default: false

 permissions:
   contents: read
+  pull-requests: read

 jobs:
   qa:
     runs-on: ubuntu-latest
     steps:
+      - uses: actions/checkout@v4
+        timeout-minutes: 10
+        with:
+          fetch-depth: 0
+
       - uses: agentiqa/qa-action@v1
         with:
           service-key: ${{ secrets.AGENTIQA_SERVICE_KEY }}
+          review: true
+          review-dry-run: true
+          deployed-sha: ${{ github.sha }}
+          review-since: v2.14.0
+          review-only: ${{ inputs.setup-check == true }}
  • workflow_dispatch: if your workflow already has it, add inputs: under the one it has.
  • deployed-sha: github.sha is the tip of the branch the workflow runs on. If your deploy serves another commit when the night starts, pass that one (Before you start).
  • review-since: a recent tag or commit (Where a review starts).
  • review-only is true only in a run you start by hand with the box ticked. The scheduled night, and a run by hand with the box left empty, run as before. If the workflow has other jobs, a run by hand starts them too: then put the check in a workflow file of its own, a copy of this job with review-only: true.
  • Do not add continue-on-error. The review step never fails the job: when something it needs is missing, it warns and skips. A step you add, such as the checkout, fails the job when it fails. The check run finds that first.

Start the check by hand

In GitHub: Actions, your nightly workflow, Run workflow. Tick setup-check. Or from a terminal:

gh workflow run nightly-qa.yml -f setup-check=true

The run starts with a table in its job summary: one line per check, ok or missing, and the workflow line that fixes each missing one. Then comes the dry review of the project's latest finished batch that holds a run: the cards it would leave. A newer batch that finished with no run (a night whose plans could not start) is skipped, and the batch line names it. To review another batch, set review-batch: batch_....

The run is green when every line is ok and the dry review finished. Otherwise it is red, and the summary names what to fix. Fix it and run the check again. In the nightly, the same table appears above the review only when a line is missing. It never fails the night.

What each line checks

CheckIt is ok whenWhat fixes it
reviewreview is true.review: true
review-dry-runThe value is true or false. A quoted 'True', or a value from an expression, is neither: the review then runs dry and adds nothing to your project, to be safe.review-dry-run: true
checkoutThe workspace root is a checkout of the workflow's own repository, with commits.- uses: actions/checkout@v4 before the Agentiqa step, without path:. No commits: contents: read
full historyThe checkout is not shallow.fetch-depth: 0 in the checkout step
deployed-shaIt is set, and it is a commit in the checkout.deployed-sha: ${{ github.sha }}, or the commit your deploy serves
review-sinceIt is set, it is a commit in the checkout, and it is on the history of deployed-sha.review-since: a recent tag or commit
service keyAgentiqa accepts the key. The line names the key's project: check it is the right one.service-key: ${{ secrets.AGENTIQA_SERVICE_KEY }} with a key of that project
model accessYour account has Agentiqa's managed model access.Not a workflow line: contact Agentiqa
pull requestsThe job token can read the repository's pull requests.pull-requests: read under permissions:, next to contents: read
batchThe project has a finished batch to review.Run the nightly once, or set review-batch:

The check cannot tell whether the checked-out repository holds your app's code. A workflow that lives in a separate repository, such as a QA suite, and checks itself out passes every line. The review then reads the wrong commits and pull requests. So run the nightly in the repository your app is built from.

The checks make no model call and write nothing. Only the dry review after them calls the model. With the CLI, agentiqa review check --batch latest checks the service key, model access, pull requests and the batch the same way.

How the review learns your repository

You do not need a configuration file. Before it reads the changes, the review works out a map of your repository from your saved plans and the repository itself:

  • which code is your product, which is your test code, and which paths are not worth reading, such as docs, CI workflows and migrations;
  • which hosts your plans test, and which app in the repository serves each one;
  • for each plan, the files behind the pages and flows it exercises. The review follows the imports of those files itself.

For this, the AI model gets the file paths at the deployed commit, your plans, and a few files it asks to read: package manifests, build configuration and route files. The review checks every path in the answer against your repository and drops what does not exist. The job summary lists the result under Repository map. The map costs two extra AI calls per review. A review with no changes to read needs no map and makes no map calls.

If the map cannot be made (the AI call fails, or it names nothing that exists), the review still runs. It uses your .agentiqa/review.json if it describes the repository (lists app, tester, ignored, hosts or routeFiles), else general defaults, and the job summary says so. A file with only deny still withholds its paths.

Withhold files

The content of common secret files (.env files, private keys, credentials files) is never sent. To withhold more paths, commit .agentiqa/review.json with a deny list. The review reads it at the deployed commit. deny never depends on the AI model. A file with only deny does not change how the map is made.

{ "deny": ["config/secrets/", "fixtures/customers/"] }

The map step does not see the names of withheld files. When a withheld file changes, the review still gives the AI model its path, so the model knows that the file changed and was not read. Do not put secrets in file names.

Optional: describe your repository yourself

If your .agentiqa/review.json also lists app, tester, ignored, hosts or routeFiles, the review uses the file as written and does not make the map. To make the map anyway, set AGENTIQA_REVIEW_REPO_MAP: survey in the environment of the review step (or pass --repo-map survey to the CLI). The review then reads only deny from the file.

{
  "app": ["src/", "public/"],
  "tester": ["e2e/", "tests/"],
  "ignored": ["docs/", "**/migrations/", "*.lock"],
  "deny": ["config/secrets/", "fixtures/customers/"],
  "hosts": ["app.example.com"]
}
KeyWhat it lists
appThe code of the product your plans test.
testerYour test code and test tooling. A failure that only a change here explains is never reported as a bug in your app.
ignoredPaths the review names but does not read, such as lockfiles, generated files and migrations.
denyPaths whose content never leaves your runner, whichever way the map is made.
hostsThe hosts your plans test, so the review can tell which code serves which plan.
routeFilesOptional. The files that register your app's routes, so a new page can become an Add test? card.

A pattern without / matches a file name at any depth (*.lock). A pattern with / starts at the repository root (docs/ is the top-level docs directory), and so does one that starts with ./ (./README.md is only the top-level file). A trailing / means everything under that directory, and ** matches any number of directories.

Lockfiles, generated code and vendored code (vendor/, third_party/) are never read, and neither are files your .gitattributes marks linguist-generated or linguist-vendored. If a directory with one of those names holds your own code, such as a vendor/ route, mark it -linguist-vendored (or -linguist-generated) and the review treats it as source.

Review instructions

Review instructions tell the review, in your own words, what matters in your project. They are optional: without them the review works as before. They are stored in the project, and every save is a new version. Anyone who can open the project can edit them. They apply from the next review, with no commit and no CI change.

Edit them on the Review instructions tab of the Suggestions page, or from a terminal:

agentiqa project update <project> --review-instructions instructions.md
agentiqa project get <project> --review-instructions    # prints the current text

--review-instructions - reads the text from stdin, and an empty file clears it.

What to write

Write the parts that apply to you, a line or a short paragraph each:

  • About the app: its areas, roles and terms, and what is experimental.
  • What matters and what does not: the areas that matter most, and the changes that need no card.
  • How you write tests: which login for which area, test data, cleanup.
  • Cards: what not to propose.
A shop: a storefront for customers and an admin area under /admin.
Checkout and payments matter most. Settings pages are low priority.
Use the `admin` login for anything under /admin, the `customer` login elsewhere.
Each test creates its own products and deletes them at the end.
No Add test cards for marketing pages.

Where the review reads them

  • Which cards it shows.
  • How it designs the test an Add test? card proposes.

The switches

Two switches sit next to the text: which card kinds the review shows (Update test?, Possible bug, Add test?), and at most how many cards it shows a night. They are applied in code, before anything else. From the CLI:

agentiqa project update <project> --review-cards update,possible_bug   # no Add test? cards
agentiqa project update <project> --review-max-cards 5                 # `none` removes the cap

What you can see

The job summary names the version of the instructions the review read. Every card your instructions hid is listed under Not shown because of your instructions, with the line of your text it rests on, or the switch. The review hides a card only on a line of your text it can quote exactly.

What they never change

  • Test results.
  • Which files the review may read (deny, see Withhold files).
  • The review's time and spending limits.
  • The copy the Agentiqa team receives.

Limits

The text holds at most 4,000 characters. The review shows at most 30 cards a night, whatever the switch says.

What leaves your runner

To judge a change, the review sends the parts of it that it needs to the AI model behind AI Quality Manager: commit messages, pull request titles and descriptions, and the diffs and file excerpts of the changed code. To map your repository it also sends the file paths at the deployed commit and the few files the map step reads. Values that look like secrets (API tokens, keys, passwords) are replaced with a marker in all of this text before it is sent, pull request titles and descriptions included. The content of paths in deny and of common secret files is never sent. Their paths are sent only when they change (see Withhold files). The review stores its cards and their evidence in your Agentiqa project.

A dry run stores nothing in your project. Every review of a batch, dry or saved, sends one copy to the Agentiqa team with a trace of how the review reached its cards and the parts of the diff each decision rested on (see Start with dry runs), and it is deleted after 30 days.

Exit codes and output

agentiqa review follows the same contract as run, without the 1:

CodeMeaning
0The review finished, whatever it found.
2It could not run: a missing or wrong flag, no batch, no starting point (no_base), the deployed commit not in the checkout (head_missing), or an account limit. A retry does not help.
3It did not finish: the model or the network failed. Safe to retry.

With --json, stdout is one JSON document (schemaVersion: 1): review (its id, status and head), counts, proposals (the cards it wrote, each with its id), regressions and warnings. On a failure it is the usual { "ok": false, "error": { "code", "message" } } envelope. --summary <file> writes the job summary: the cards, with links into Agentiqa. A saved review also links the project's Suggestions page, right under its card count, with how much is open there, including what earlier reviews left: the cards and the issues to check, for example 3 open (1 issue to check).

--trace-out <file> also writes the review's trace to a local JSON file. It shows how the review reached its cards: the paths of the changed files, commit subjects, pull request titles, how the review linked your test plans to files, the reasoning of the AI model behind the review, what became of each card, and the tokens each step used. Values that look like secrets are redacted. The trace holds no whole files, diffs or prompts, and no commit message bodies or pull request descriptions; it does hold the short texts the review compared, such as a button label before and after. A review of a batch sends the same kind of trace in its copy to the Agentiqa team (Start with dry runs), with the diff hunks each decision rested on; the hunks go only into that copy, never into this file. agentiqa review trace <file> prints a trace as text; add --price <in>/<out> (USD per million input and output tokens) to see what each step cost. If the file cannot be written, the review says so in a warning and its exit code does not change.

Deciding on the cards

Open a card from the job summary, from the Suggestions page it links, or from the test plan in the Agentiqa app, and approve or reject it there. An approved Update test? card changes the plan at once; the next review checks it against a run.

From a terminal or a coding agent, with your own login (agentiqa login):

agentiqa review list --status proposed --json     # the open cards of the project
agentiqa review show <proposalId>                 # one card: the change, the evidence, the exact edit
agentiqa review approve <proposalId> --revision <n>
agentiqa review reject <proposalId> --reason "The new label is a bug"

With --json, every card carries url, its link in the Agentiqa app: an open card on the Suggestions page, a decided one on its test plan. approve takes the revision show printed, so it never applies a version of the card you did not see. A card that weakens the test also needs --accept-weakening. A service key cannot approve or reject: a person decides. A coding agent that follows the agent skill approves only after you say yes to that card in the conversation.

The issues under Issues to check are read from a terminal too, with your login or a service key:

agentiqa review issues --json            # the open issues the review filed or added its note to
agentiqa review issue <issueId> --json   # one issue in full

review issue gives a coding agent what it needs to act without opening the app: the issue's text with the review's advice, the plan step as it is saved now, the run the issue points at (its status, how it ended, its summary, what it recorded at that step and the step's screenshots) and the commits the review suspects. expected is the step and its criteria; seen is what the run recorded there. Both are the stored text, not a rewrite. run.otherFailedSteps lists the run's other failed steps: an issue the run filed itself can name the step after the one that failed. A plan or a run that was deleted since is null and is named in missing. Both commands only read: you confirm or dismiss an issue in the Agentiqa app.

On this page