Ratchet debt burn-down
get_ratchet_reportReport ratchet debt burn-down by listing open marks with ages, repayments, and policy findings so you can judge whether marked debt is repaid or piling up.
Instructions
Reports the ratchet debt burn-down: open marks with their age, repayments and policy findings. Use it to judge whether marked debt is repaid or piling up, and get_function_history for one function's mark. It reads the marks file and its git history only, and ages count from the newest commit touching that file, never the clock. Open marks are the file's rows, committed or not. A deleted or emptied file reports the marks its history last held as open, none repaid, and no file with no history reports zeros. repo may be any directory under the checkout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | path to the scored repo's root (default: the repo the server was started in); a leading ~ is the home directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open | No | marks open on disk, working tree included: an uncommitted seed counts | |
| oldest | No | up to 20 open marks, oldest first | |
| schema | No | payload schema version, 1 | |
| shallow | No | true when this checkout is a shallow clone: ages and repayments count only the commits the clone holds; set fetch-depth: 0 on the checkout or run git fetch --unshallow for the real counts, and crapkit ratchet report --enforce refuses to judge the debt policy there (exit 4) | |
| anchor_ts | No | unix seconds of the newest commit that touched the ratchet file; every age and window counts back from here, never from the wall clock; 0 with no ratchet history | |
| truncated | No | present only when the whole answer was longer than one tool result the server sends (7,500 characters): each list, string or object field it cut, at any depth, keeps its start, and full is the CLI command that prints the whole answer | |
| uncommitted | No | marks the working tree and the newest committed ratchet file disagree on: added, repaid or tightened but not committed | |
| dropped_total | No | marks repaid over the whole committed history | |
| dropped_last_30d | No | marks repaid in the 30 days before anchor_ts | |
| dropped_last_90d | No | marks repaid in the 90 days before anchor_ts | |
| policy_violations | No | null when no debt policy is configured, [] when the policy ran clean, else the findings as sentences |