diff options
| author | Sam Scholten | 2026-10-07 15:35:13 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-10-07 15:35:13 +1000 |
| commit | 1d2b3beebc3ad3ed500127fc40491659418d7eb5 (patch) | |
| tree | 3009d98111756b178914c2ceb3306ffceb4d77eb /main.go | |
| parent | c465409aaa5672e3466b6f8744b737fa84993f2b (diff) | |
| download | fluxrec-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.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
