tracewatch

v0.2.2
io.github.CloudCorpRecords/tracewatch Checked 3 days ago Published 1 month ago

Observability, 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.

ParameterTypeDescription
path *stringLocal path of the repo or directory to scan
namestringRepo key to file the scan under (default: GitHub slug from the git remote, else the directory name)
toolsarraySubset 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.

ParameterTypeDescription
repo *stringRepo key used at ingest
fromstringEarlier scanId (default: the scan before `to`)
tostringLater 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.

ParameterTypeDescription
findingId *stringFull findingId (tw_...) or a prefix of at least 8 characters
repo *stringRepo key used at ingest
pathstringLocal 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).

ParameterTypeDescription
repo *stringRepo 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.

ParameterTypeDescription
repo *stringRepo key used at ingest
severitystring
statusstring
toolstring

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).

ParameterTypeDescription
findingId *stringFull findingId (tw_...) or a prefix of at least 8 characters
repo *stringRepo key used at ingest
pathstringLocal clone path for git evidence (default: the path recorded at ingest)