aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorSam Scholten2026-10-07 15:35:13 +1000
committerSam Scholten2026-10-07 15:35:13 +1000
commit1d2b3beebc3ad3ed500127fc40491659418d7eb5 (patch)
tree3009d98111756b178914c2ceb3306ffceb4d77eb /main.go
parentc465409aaa5672e3466b6f8744b737fa84993f2b (diff)
downloadfluxrec-1d2b3beebc3ad3ed500127fc40491659418d7eb5.tar.gz
fluxrec-1d2b3beebc3ad3ed500127fc40491659418d7eb5.zip
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.
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
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