Ratchet debt burn-down
get_ratchet_reportTrack marked debt burn-down: open marks with age, repayments, and policy findings show if 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 log only, ages count back from the newest commit touching that file, never the clock, and no marks file means zeros. repo can be any directory under a measured checkout, and 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 |
|---|---|---|---|
| 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 | |
| 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 | |
| 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 |