Risk ranking of every function
list_worklistLists the risk-ranked worklist from the latest trusted run, ordered by complexity and churn. Use it to survey a repository, split work by file, and select the next item to fix.
Instructions
Lists the newest trusted run's whole risk ranking, every admitted function ordered by ccn times recency-weighted churn. Use it to survey a repo or split work by file, and get_next_item for the one crap-ranked packet to fix now. It runs no tests, keeps finished rows so it never empties, and reads the churn cache, not git. scope narrows before top caps, so scope ["core"] with top 20 returns the 20 riskiest in core, an unknown scope name is a config error, and repo may be any directory under the measured checkout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | cap the active list (default: the config's worklist_top, 50) | |
| repo | No | path to the scored repo's root (default: the repo the server was started in) | |
| scope | No | restrict the ranking to these declared scopes (exact [[scope]] names from crapkit.toml, one --scope each) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| floor | No | the effective worklist_floor: rows under this ccn are listed only when over their ceiling or in a hot file | |
| stale | No | true when the run's commit is not HEAD, so cov, crap and uncovered_lines describe an older tree; crapkit coverage --reuse-unchanged (get_function_brief's commands.refresh) clears it | |
| active | No | the ranking: functions in files with churn in the window, risk descending, cut at top or worklist_top | |
| commit | No | that run's commit, full sha | |
| run_id | No | id of the run these numbers come from: the newest trusted run (a coverage run, or a verify run whose verdict passed) | |
| schema | No | payload schema version, 1 | |
| dormant_top | No | the first 10 dormant functions, same shape as active: sleeping hazards kept out of the queue | |
| active_total | No | active rows admitted before the cap: what top or worklist_top hid | |
| dormant_count | No | ranked functions whose file had no commits in the window | |
| churn_window_months | No | months of git history the churn weights cover |