tracewatch
v0.2.2Observability, tracking, and root-cause for Security Wave scans and findings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ingest_scan
Run hookcheck, actionpin, injectcheck, mcpvet, depguard, and flowcheck against a local repo path and store the results as a timestamped scan record with stable finding IDs. Returns the scan record and every finding observation. Use this to start or refresh tracking for a repo.
| Parameter | Type | Description |
|---|---|---|
path * | string | Local path of the repo or directory to scan |
name | string | Repo key to file the scan under (default: GitHub slug from the git remote, else the directory name) |
tools | array | Subset of tools to run (default: all six) |
diff_scans
Diff two scans of a repo (default: the last two). Reports NEW, RESOLVED, and CHANGED findings, verdict moves, and action ref events with both refs spelled out, including pin regressions (PINNED to MUTABLE or BRANCH) and bare ref moves on pinned actions.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repo key used at ingest |
from | string | Earlier scanId (default: the scan before `to`) |
to | string | Later scanId (default: the latest scan) |
finding_provenance
Root-cause provenance for one finding: the introducing commit from git pickaxe on the finding's content, the current-line commit from git blame, the associated GitHub PR when the API answers, and the finding's ref history from the scan store. Confirmed evidence, inferences, and unestablished items are reported separately; nothing is guessed.
| Parameter | Type | Description |
|---|---|---|
findingId * | string | Full findingId (tw_...) or a prefix of at least 8 characters |
repo * | string | Repo key used at ingest |
path | string | Local clone path to run git evidence against (default: the path recorded at ingest) |
repo_health
Health report for a repo across all its scans: verdict trend, open findings by tool and severity, resolved count, mean time open for resolved findings, all action ref events, and watch detection latency stats (count, median, max time-to-detect).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repo key used at ingest |
watch_status
Summarize the tracewatch store: every tracked repo with its scan count, last scan time, open finding count, detection count, and median time-to-detect. Use this to see what is being watched and tracked before drilling into one repo.
list_findings
List tracked findings for a repo with derived status. Filter by tool, severity, and status (open, resolved, or all; default open). Each entry carries the stable findingId usable with finding_provenance and explain_finding.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repo key used at ingest |
severity | string | |
status | string | |
tool | string |
explain_finding
The full evidence bundle for one finding, written to act on: the tracked finding (status, first and last seen, content versions), its scan history is summarized in the provenance record, and the provenance itself (introducing commit, PR, ref history, confirmed versus inferred versus not established).
| Parameter | Type | Description |
|---|---|---|
findingId * | string | Full findingId (tw_...) or a prefix of at least 8 characters |
repo * | string | Repo key used at ingest |
path | string | Local clone path for git evidence (default: the path recorded at ingest) |