---
title: Record test coverage with tzTrack
description: Have your AI record what a test session tried, the setup it used, and what to test next.
slug: /guides/record-test-coverage
order: 10
visibility: public
redirects_from: []
---

# Record test coverage with tzTrack

> Test the sign-in and password reset flows from our current test plan. Use tzTrack space <space name or ID>. Record the setup and what worked, failed, was blocked, or wasn’t tried. File findings separately and give me the task and issue references.

Use one ordinary tzTrack task for a test session with one setup. A successful test belongs in the task even when there is no defect to file. Use the task to see what has been tried and where to start the next session.

<a id="what-your-ai-tool-does"></a>

## What your AI does

Your AI finds earlier coverage, records the setup and results, and files findings separately. It gives you the task reference and tells you what remains to test.

## What you need

Use a signed-in [Turn Zero connection](https://turnzero.ai/tztools/getting-started/set-up/) and the test plan or scenario list.

## Before your AI starts

Take the space ID from the project’s [setting file](/tztrack/reference/the-setting-file/) or from the person’s approved selection. If you only have a name, call `tztrack_list_spaces` to find its ID. Ask the person to resolve any ambiguity. Pass that ID as `space` on every issue call.

- Viewer (`view`) reads unrestricted coverage but cannot file or change it.
- Reporter (`report`) files findings and reads; ask a Contributor or Admin to work the coverage task.
- Contributor (`contribute`) creates and updates tasks, closes them with an outcome their state permits, except `duplicate`, and reopens them. With an account bound, work only tasks your group opened.
- Admin (`owner`) has every issue action. Owner means the owning account, which alone manages membership. [Sharing a space](/tztrack/concepts/sharing-a-space/) gives visibility and the bound.

Call `tztrack_list_spaces` to read your `level`, `role`, `restricted`, any `accounts` bound and admitted `actions`. The Turn Zero connection's `list_issue_spaces` also gives these fields. If nobody can create a task in the intended space, ask the person to arrange access. Keep results in the session until they can be saved.

Turn Zero's own testers may have an operator-granted group in the company's feedback space. Find it through either listing; no space ID needs handing over. The grant is bounded to the group's reports and reads no restricted issue. The company's answers appear in the task's note to reporters, since other accounts' comments stay hidden.

## 1. Find earlier coverage

Call `tztrack_find` with `space`, `kind: "task"`, and `label: "coverage"` if the team uses that label. Omit `state` to include completed tasks. If tasks lack the label, search by product or scenario with `query` and `kind`, leaving out `label`. For the next page, pass the returned `cursor` with the same filters.

Call `tztrack_read` on likely matches and compare their configuration blocks. Resume an open task only if it covers the same session and setup. If someone else has claimed it, coordinate before changing it. An empty result only tells you what this account could find in this space.

## 2. Record the setup and results

To start a task, use Contributor (`contribute`) access or above and call `tztrack_raise` with `space`, `kind: "task"`, `title` and `text`. Use `labels: ["coverage"]` where the team uses that label. Put the configuration block in `text`. Keep changed setups in separate tasks so results stay tied to their setup.

Collect the values you can observe. Ask only for relevant details you cannot determine. Mark missing values `unknown` and leave out anything irrelevant. Here is an example of a configuration block and a short result summary.

```text
Configuration
Test plan = Account flows v2
Product and scenarios = Example app, sign-in and password reset
Computer and OS = laptop, macOS 15
AI assistant, interface, version, model = Codex desktop, version unknown, model unknown
Browser or shell = Safari
Access method = browser sign-in
Starting state = signed out, existing test account
App type and size = web app, Shared 1 GB
Environments and actual target = production and development, tested development

Worked = sign-in
Failed = reset link returned 404, project issue #42
Blocked = email delivery check needs test mailbox access
Not tried = reset from a phone
```

Record what happened for each scenario as `worked`, `failed`, `blocked`, or `not tried`. Include useful evidence and any separately filed issue references. Add later observations with `tztrack_comment`. Keep credentials and personal details out of the record.

## 3. File findings separately

Use `tztrack_raise` for project defects. For problems with Turn Zero itself, call [`submit_feedback`](https://turnzero.ai/turnzero/guides/feedback/) with `source: "agent"` when filing as the AI. That tool refuses customer tasks. Keep coverage in the project's space, or use `tztrack_raise` in the company's space if its operator granted your group Contributor access.

Include the relevant setup details and the coverage task’s space and issue number in the finding’s `text` where they are safe to share. Record the returned finding reference on the coverage task.

## 4. Finish the session

When results are recorded, a Contributor or Admin calls `tztrack_close` on the task with `outcome: "done"` and a `resolution` covering what was tried, what remains and the findings. A bounded Contributor closes only a task the group opened. If the task is still `new`, open it with `tztrack_update` and `fields: {"kind":"task"}` first. For other states, follow [Closing an issue](/tztrack/reference/the-tools/#closing-an-issue). Leave the summary for a Contributor or Admin if you lack access.

Read back the task with `tztrack_read` to confirm the results and its final state. Give the person the space, task number, and finding references. A closed coverage task means the session ended and its results are recorded. Leave each linked defect open until it is resolved.

## Refusals

Common refusals are below; [Refusals](/tztrack/reference/refusals/) lists the rest.

| Refusal | Status | Cause | Remedy |
| --- | --- | --- | --- |
| `grant_required` | 403 | The call exceeds your level or bound, or closes a non-task or uses duplicate below Admin. | Ask someone with access to make the change, or ask the Owner to change your membership. |
| `invalid_request` | 400 | An input is unsupported, such as `label` beside `query`. | Correct the named input. When searching with `query`, leave out `label`. |
| `state_conflict` | 409 | The coverage task is still `new`, which does not accept `done`. | Open it with `tztrack_update` and `fields: {"kind":"task"}`, then close it. |

<div id="for-ai-tools"></div>

## For AI assistants

A finding's report text can carry a reference at any filing level. In an unbounded space, use `tztrack_relate` with the finding as `issue`, the task as `target` and `type: "relates_to"`. This needs Contributor or Admin access and is outside a bounded row's allowed calls. A Reporter or bounded tester can give both references to someone who can link them.

With `submit_feedback`, you can also copy short setup values into `evidence.context`. Use up to 20 keys that start with a lowercase letter and contain only lowercase letters, digits, or underscores, with short values, such as `test_plan`, `scenario`, `os`, `ai_tool`, and `target`. Use the saved text to compare setups later.
