Code review ledger
The ledger commands persist and inspect the local reward history produced by review runs.
Commands
specfact code review ledger statusspecfact code review ledger updatespecfact code review ledger reset
Subcommands
| Command | Purpose |
|---|---|
specfact code review ledger status |
Print the current coins, streaks, and last verdict |
specfact code review ledger update --from <path> |
Update the ledger from a ReviewReport JSON file instead of stdin |
specfact code review ledger reset --confirm |
Delete the local fallback ledger |
Examples
specfact code review ledger status
specfact code review run --json --out /tmp/review-report.json packages/specfact-code-review/src/specfact_code_review/run/commands.py
specfact code review ledger update --from /tmp/review-report.json
specfact code review ledger reset --confirm
Notes
updaterequires either stdin JSON or--from.resetrefuses to delete the local ledger unless--confirmis present.statusalso prints the top violations when the ledger has enough history.