tap_doctor
Validate tap health by running examples against health contracts. Returns assessment annotations with verdicts like healthy, broken, stale, or layer-mismatch. Use after forge.save or when tap.run returns errors.
Instructions
Health check for taps. Runs each tap's examples against its health contract. Returns {ok, annotations[], issues[], suggestions[]}. Each annotation is a W3C Web Annotation (motivation:'assessing') with body.tap:verdict in {healthy, broken, stale, layer-mismatch}. Use when tap.run returns empty/error rows, or after forge.save to validate. ALWAYS specify site+name — unscoped checks scan all user taps and are expensive. PIPE TAPS: annotations include recursive sub-tap diagnosis via body.children[]. Use tap.explain for static analysis without running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site to check. Always specify — omitting scans all user-forged taps. | |
| name | No | Tap name within site (optional — omit to check all taps for the site) | |
| timeout | No | Timeout per tap in ms |