fix: make the snippet queue reviewable (#35) #36
Reference in New Issue
Block a user
Delete Branch "fix/snippet-queue-signal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #35.
17,262 candidates, 25 ever encoded. Two causes, both fixed.
1. Classification
trivialProbereturned false for anything containing a newline, so multi-line commands were never judged and everycd X && sed -n …chore became a "technique".;sedcounts as an inspection unless it has-igitsubcommands count (status,log,diff,show,rev-parse,describe,blame,shortlog,ls-files,grep,cat-file,reflog) — deliberately notbranch/tag/remote/config, where the flag decides-A/-B/-C,-p,-F,--since,--until,--graph,--author,--follow,--allMeasured over the live corpus: 307 → 1,081 trivial verdicts out of 11,552 techniques, and the archaeology worth keeping (
git log --all -p --since=… | grep -B 50 "class …") still survives.2. Retention
Nothing aged a candidate out; 16,149 were 7–30 days old.
knox snippets expire --days N [--dry-run]rejects uncurated candidates older than the window.It never touches
encodedrows and is reversible like any rejection (knox snippets reopen, orscope=techniquesfor every rejected technique). Retention is not judgement — the code did not change, the window moved past it.Tests
TestTrivialProbe— 18 cases: single/chained/multi-line reads, git chores, test runs, archaeology, context grep, ssh read vs ssh diagnostic, heredoc,sed -i, redirection, substitution,docker compose up.TestExpireSnippets— expires the old candidate only; recent candidate and encoded snippet untouched; reason recorded.go build ./... && go vet ./... && go test ./...pass.