Debt trend per run
get_trendTrack the repo's CRAP score trajectory across all trusted runs, oldest first, with per-scope grades. See whether overall code health improves or declines over time.
Instructions
Returns per-run totals for every trusted run, oldest first, with a grade per scope. Use it for the whole repo's trajectory. Use get_function_history for one function and get_ratchet_report for marked debt. It runs no lane and spawns no git. The first call on a large store sums every run into a rollup cache and takes seconds. Later calls read the cache back. repo may be any directory under a checkout where crapkit init and crapkit coverage have run. An unmeasured one answers isError true with the setup pointer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | path to the scored repo's root (default: the repo the server was started in) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | one row per trusted run, oldest first | |
| schema | No | payload schema version, 1 | |
| target | No | the [crapkit] target: the default ccn ceiling every scope inherits unless it sets its own |