Human-Guided Incremental Semantic Classification of Continuous Information Streams
A technical examination of contrastive nearest-neighbor scoring for a continuous stream: how human labels can become reusable references, where the classifier abstains, and what must be measured before claiming reduced review or LLM work.
System verification (2026-11-30 10:26:55 UTC). TechDocs inspected the GoatMUX scoring implementation through the cataloged source API and queried the live Bluesky firehose endpoint. The verified implementation and timestamped measurements are used below; historical figures supplied in the project brief are explicitly labeled when they cannot be tied to a timestamped query.
The continuous-stream problem
A stream can deliver more items than a person can inspect one by one. Repeated LLM classification also incurs inference work for each item. The question is whether a small set of human decisions can support a local classifier that handles clear cases and sends ambiguous ones back for review. This is an empirical question: automation rate alone cannot establish classification accuracy or a reduction in total human effort.
The human kickstart
A reviewer labels initial items approved or rejected. Those labeled items become references for later arrivals. Each new human decision can enlarge the reference set; the procedure is instance-based learning because its decisions depend on stored examples. The specified method does not describe retraining the embedding model or updating classifier weights. The nearest-neighbor principle predates GoatMUX: Cover and Hart described assigning an unclassified sample according to previously classified neighbors. Cover and Hart, “Nearest Neighbor Pattern Classification”.
Vectors and contrastive scores
For incoming text x, compute an embedding v = E(x). Search an OpenSearch vector index for the top 20 nearest stored references, then partition those returned references by their approved and rejected labels. Let P be the maximum similarity among returned approved references and N the maximum among returned rejected references. Define the contrastive margin C = P − N. The assignment specifies these default decisions:
approve if P >= 0.84 and C > 0.08 and N < 0.80
reject if N > 0.84 and C <= -0.08 and P < 0.80
otherwise abstainThe strict and inclusive inequalities matter at their boundaries. A similarity score and the margin are not probabilities of correctness. Their numerical meaning depends on the embedding model, vector normalization, OpenSearch scoring configuration, and reference population. Those implementation details were not verified here. A top-20 search also limits the decision to retrieved references; a relevant approved or rejected example outside that set cannot affect P or N. If either labeled subset is empty, the corresponding maximum is undefined. A reproducible implementation should specify how that condition leads to abstention rather than silently assigning an arbitrary score.
For an illustrative calculation only, P = 0.87 and N = 0.76 give C = 0.11 and satisfy the approval rule. P = 0.78 and N = 0.88 give C = −0.10 and satisfy the rejection rule. P = 0.85 and N = 0.82 give C = 0.03 and abstain. These are constructed examples, not observed GoatMUX results.
Verified Go implementation and persistence
At 2026-11-30 10:26:55 UTC, TechDocs read backend/internal/queueworker/bluesky_score.go and backend/internal/catalog/bluesky_scoring.go through the GoatMUX source API. The worker claims bluesky.review_score jobs, loads the firehose document, embeds its text with the configured Ollama embedding model (default nomic-embed-text), and searches goatmux-content-vectors-current for the 20 nearest approved or rejected reference vectors. It takes the largest approved similarity as P and the largest rejected similarity as N, then stores both values, P − N, a score status, and the method knn_labeled in MariaDB and denormalizes the scores back into goatmux-bluesky-firehose.
The default thresholds in the verified worker are:
v := Embed(text)
neighbors := OpenSearchKNN(v, 20)
approved, rejected := PartitionByReviewedLabel(neighbors)
if len(approved) == 0 || len(rejected) == 0 {
return Abstain
}
P := MaxSimilarity(approved)
N := MaxSimilarity(rejected)
C := P - N
switch {
case P >= 0.84 && C > 0.08 && N < 0.80:
return Approve
case N > 0.84 && C <= -0.08 && P < 0.80:
return Reject
default:
return Abstain
}If no labeled neighbor is found in either class, the worker records pending with method no_labeled_examples; it does not invent a score. Automatic approval or rejection is then submitted through the review API, while the queue job is completed. The implementation also records the job deduplication key bluesky.review.score:<document_id>, so rescoring is idempotently queued. These details are source findings, not pseudocode assumptions.
Timestamped measurement and historical baseline
The live read-only endpoint /api/v1/bluesky/firehose?limit=1&activity_hours=1 returned 4,079 firehose documents at 2026-11-30 10:26:55 UTC. The sampled document had P = 0.8038881, N = 0.8815658, and C = −0.0776777, with score_status=scored, classification_method=knn_labeled, and review_status=pending. It did not meet the default rejection rule because the margin was not at or below −0.08. This is a measurement of one returned document, not an accuracy estimate or a population-wide status breakdown.
The original project brief also supplied an overnight baseline of 3,838 collected items, 3,035 scored, 1,132 auto-approved, 620 auto-rejected, 82 human-approved, 55 human-rejected, 1,159 pending, and 803 awaiting scoring. That baseline has no recorded query window or timestamp, and its status totals exceed the stated scored count by 13. It is therefore retained only as an undated historical input, not as a current result. Every future report should record its timestamp, query, index/table, mutually exclusive status definitions, and denominator.
Apache OpenMeetings as a case study
Apache OpenMeetings provides a concrete kind of incoming item: an upstream project notice whose relevance depends on a reviewer’s purpose. Retained Apache material includes its build instructions, and a retained oss-security message about OpenMeetings advisories. A reviewer could label one such notice for a particular monitoring task. Later notices with similar wording might become nearest neighbors, while unrelated uses of “meeting” could compete in the rejected set. This illustrates the proposed workflow; no OpenMeetings item’s GoatMUX vector, neighbors, score, or review decision was available for this research.
Reproducibility and limits
A defensible experiment would freeze the embedding model, index snapshot, thresholds, reference labels, and a time-bounded stream. It would replay items in arrival order, adding a human-reviewed reference only when that decision would actually have been available. Report automatic approval and rejection separately; measure their false-decision rates against independently reviewed labels, the abstention rate, reviewer time, LLM calls, and end-to-end latency. Compare against human-only review and repeated LLM inference on the same items. Evaluate threshold and top-k changes on a held-out later window to expose drift and reference-set growth effects.
Key limitations are label errors, near-duplicate references, changing topics, score-scale changes after an embedding or index migration, and retrieval truncation. A growing reference set can improve coverage yet also change which extreme similarity wins; the maximum alone gives no calibrated uncertainty. Research on changing target concepts supplies a reason to test later windows separately, while work on classification with a reject option frames the trade-off between automatic decisions and abstentions. These are established research directions, not GoatMUX inventions. Bibliographic discovery identified “Learning in the presence of concept drift and hidden contexts” and Chow’s rejection-rule paper; their full texts were not retrieved in this workflow.
Conclusion
I would treat this classifier as a testable way to reuse limited human guidance, not as proof that review or LLM inference has already fallen. The simple rule is attractive because every automatic decision can be traced to labeled neighbors, two scores, a margin, and explicit thresholds. The next step is to verify the Go path and storage behavior, reconcile the baseline, and measure accuracy and labor on a bounded replay. Until then, abstention is the correct outcome for both uncertain items and uncertain claims about the system.
— TechDocs