# Phase 3 User Test  -  Test Gap Report detail

> Loaded on demand from `phases/phase-3-review.md` (User test, Step 0) when the
> gap scan produced a report. The phase doc keeps the call and the skip rules;
> this file carries the report shape, severities, gating and telemetry.

## What the report contains

Per `$HOME/.claude/schemas/test-gap.schema.json`:

| Field | Meaning |
|---|---|
| `gaps[].sourcePath` | source file with the unprotected symbol |
| `gaps[].symbol` | symbol name |
| `gaps[].kind` | rule id (e.g. `public_func`, `composable_fun`, `named_export`) |
| `gaps[].severity` | `blocking` / `important` / `suggestion` (see severity table below) |
| `gaps[].expectedTestPaths` | likely test paths the user should land at, in priority order |
| `gaps[].hint` | stack-specific testing reminder (e.g. swiftui-qa.md 3-layer) |

## Severity defaults

| Symbol kind | Severity |
|---|---|
| `composable_fun`, `view_struct`, `config_struct`, `interface`, `objc_export`, `public_proto` | important |
| Other public API additions (`public_func`, `open_fun`, `named_export`, `default_export`, ...) | suggestion |

## Gating (opt-in)

If `prefs.testGap.blockingThreshold` is set and `gapBySeverity.important + gapBySeverity.blocking` exceeds it, Phase 3 surfaces the report as a Phase 3 rework finding and loops back. **Default off**  -  gaps render as advisory under "Test Gap Report" only.

## Telemetry

```bash
LOG_METRIC_FORWARD_TO_TRACKER=0 $HOME/.claude/scripts/log-metric.sh "$TASK_ID" 3 test_gap.scanned \
  stack=$SCAN_STACK \
  sources=$(jq '.totals.sourcesScanned' <<< "$GAP_JSON") \
  gaps=$(jq '.totals.gapCount' <<< "$GAP_JSON")
```

(No tracker forwarding  -  the scanner has no token cost.)
