fix: the snippet candidate queue is un-reviewable (17k candidates, 25 ever encoded) #35

Closed
opened 2026-11-05 05:20:20 +00:00 by david · 0 comments
Owner

After the v2 port (#32) the candidate table holds 17,262 snippets, of which 25 have ever been encoded and 1,621 rejected. Nobody can review that, so the feature produces instead of curating.

Two distinct causes:

  1. Multi-line commands were never classified. trivialProbe returns false for anything containing a newline, so every transcript of cd X && sed -n … / git status && git log chores is filed as a "technique". Only 307 of 11,552 technique candidates were flagged trivial.
  2. Nothing ages out. 16,149 candidates were discovered 7–30 days ago and stay in the queue forever. Retention is what bounds a review queue; classification only improves what is in it.

Expected

  • Multi-line and single-line commands are judged by the same rule, so a sequence of inspections is still an inspection. sed (without -i) and read-only git subcommands (status/log/diff/show/rev-parse/…) count as inspections.
  • Context flags (-A/-B/-C, git log -p, --since, --graph, --all) still keep a command: git log -p --since=… | grep -B 50 is archaeology, not a chore.
  • knox snippets expire --days N rejects uncurated candidates older than the window, reversible like any other rejection, never touching encoded rows.
After the v2 port (#32) the candidate table holds **17,262** snippets, of which 25 have ever been encoded and 1,621 rejected. Nobody can review that, so the feature produces instead of curating. Two distinct causes: 1. **Multi-line commands were never classified.** `trivialProbe` returns false for anything containing a newline, so every transcript of `cd X && sed -n …` / `git status && git log` chores is filed as a "technique". Only 307 of 11,552 technique candidates were flagged trivial. 2. **Nothing ages out.** 16,149 candidates were discovered 7–30 days ago and stay in the queue forever. Retention is what bounds a review queue; classification only improves what is in it. ## Expected - Multi-line and single-line commands are judged by the same rule, so a sequence of inspections is still an inspection. `sed` (without `-i`) and read-only `git` subcommands (`status`/`log`/`diff`/`show`/`rev-parse`/…) count as inspections. - Context flags (`-A`/`-B`/`-C`, `git log -p`, `--since`, `--graph`, `--all`) still keep a command: `git log -p --since=… | grep -B 50` is archaeology, not a chore. - `knox snippets expire --days N` rejects uncurated candidates older than the window, reversible like any other rejection, never touching encoded rows.
david closed this issue 2026-11-05 05:20:41 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/knox#35