From 1d2b3beebc3ad3ed500127fc40491659418d7eb5 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Wed, 7 Oct 2026 15:35:13 +1000 Subject: compact-labels: rebalance negative history to the per-feed ceiling The single documented exception to labels.jsonl's append-only rule: trims feeds over the ceiling (keeping each one's NEWEST negatives), positives untouched, LABELS.bak written first, idempotent, --dry-run. Existence justified by the ceiling only bounding the future, while pre-cap history would otherwise never age out. --- main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index efd8118..8a7d54f 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,8 @@ func main() { cmd = &cmds.RetrostarCommand{} case "feeds": cmd = &cmds.FeedsCommand{} + case "compact-labels": + cmd = &cmds.CompactLabelsCommand{} default: fmt.Fprintf(os.Stderr, "Unknown command: %s\n\n", cmdName) printHelp() @@ -72,6 +74,7 @@ Commands: serve Poll Miniflux, score, serve recommendations RSS (server) retrostar Model-ranked candidates for retroactive starring (cold start) feeds Subscription audit: per-feed volume + star stats (pruning aid) + compact-labels Trim per-feed negative over-representation in labels.jsonl Usage: echo "some title" | fluxrec score --model model.json -- cgit v1.2.3