Help us shape the future of Go! Take the 2026 Go Developer Survey

negcases

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package negcases supplies absent-concept queries for false-confidence measurement, and — crucially — verifies per repo that each concept really is absent before it counts as a negative.

DECISION(2026-07): a global "these concepts don't exist anywhere" list is invalid by construction. Measured on cockroach: gRPC bidirectional streaming, reconcile loops and batch-index retries all exist there, so 4 of 12 "negatives" had correct answers and the tool was penalized for being right. Verification is lexical (SQL LIKE over the index) and therefore independent of the semantic ranking under test: if a distinctive term appears nowhere in the indexed text, the tool cannot legitimately answer.

Index

Constants

This section is empty.

Variables

View Source
var Default = []Case{
	{"kafka consumer group rebalance listener", []string{"kafka"}},
	{"stripe payment webhook signature verification", []string{"stripe"}},
	{"graphql schema resolver for mutations", []string{"graphql"}},
	{"kubernetes operator reconcile loop", []string{"kubernetes", "reconcile"}},
	{"webrtc peer connection ice negotiation", []string{"webrtc"}},
	{"elasticsearch bulk indexing with retries", []string{"elasticsearch"}},
	{"blockchain wallet transaction signing", []string{"blockchain"}},
	{"smtp email delivery retry queue", []string{"smtp"}},
	{"grpc bidirectional streaming handler", []string{"grpc"}},
	{"saml single sign-on assertion parsing", []string{"saml"}},
	{"terraform state locking backend", []string{"terraform"}},
	{"mqtt topic subscription with qos", []string{"mqtt"}},
	{"opengl shader compilation pipeline", []string{"opengl", "shader"}},
	{"bluetooth device pairing handshake", []string{"bluetooth"}},
	{"pdf page rendering to bitmap", []string{"pdf"}},
	{"midi note event scheduling", []string{"midi"}},
	{"lidar point cloud downsampling", []string{"lidar", "point cloud"}},
	{"payroll tax withholding calculation", []string{"payroll", "withholding"}},
}

Default is the candidate pool. Each entry names a technology or domain concept specific enough that its absence is checkable by a literal term.

Functions

This section is empty.

Types

type Case

type Case struct {
	Query string
	Terms []string
}

Case is one plausible-sounding query plus the terms whose total absence from the index makes it a valid negative.

func Verify

func Verify(indexPath string, cases []Case) (valid []Case, dropped map[string]string, err error)

Verify returns the subset of cases whose every term is absent from the index, plus the dropped ones with the term that disqualified them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL