LEM/pkg/lem
Snider c701c2e0af feat(lem): integrate Poindexter for spatial score indexing and analytics
- Add feature vector extraction (6D grammar, 8D heuristic, 14D combined)
- Add KDTree ScoreIndex with cosine distance for probe clustering
- Add score distribution analytics (percentiles, variance, skewness)
- Add grammar-profile dedup filtering to distill pipeline
- Add spatial gap detection (FindGaps) for coverage analysis
- Wire analytics into coverage CLI (PrintScoreAnalytics)

New files: features.go, cluster.go, analytics.go + tests
Modified: distill.go (dedup filter), coverage.go (analytics output)
Dep: github.com/Snider/Poindexter

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 21:26:06 +00:00
..
agent.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
agent_test.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
analytics.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
analytics_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
approve.go feat: convert all pipeline.py commands to Go 2026-02-15 17:12:03 +00:00
backend_metal.go feat: native Metal distillation command + .core/ai config 2026-02-21 23:42:55 +00:00
client.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
client_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
cluster.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
cluster_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
compare.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
compare_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
config.go feat(distill): add Metal memory limit config fields 2026-02-22 17:59:11 +00:00
consolidate.go feat: convert all pipeline.py commands to Go 2026-02-15 17:12:03 +00:00
conv.go feat: add lem conv command for conversational training data 2026-02-15 16:42:46 +00:00
conv_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
conversations.go refactor: remove Vi identity from calm conversations 2026-02-15 16:48:23 +00:00
convert.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
convert_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
coverage.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
coverage_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
db.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
db_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
distill.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
engine.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
engine_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
exact.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
exact_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
expand.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
expand_status.go feat: convert all pipeline.py commands to Go 2026-02-15 17:12:03 +00:00
expand_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
export.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
export_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
features.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
features_test.go feat(lem): integrate Poindexter for spatial score indexing and analytics 2026-02-22 21:26:06 +00:00
grammar.go feat: native Metal distillation command + .core/ai config 2026-02-21 23:42:55 +00:00
heuristic.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
heuristic_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
import.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
influx.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
influx_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
ingest.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
ingest_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
inventory.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
io.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
io_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
judge.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
judge_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
metrics.go feat: add parquet, publish, metrics, convert commands 2026-02-15 17:05:08 +00:00
normalize.go feat: convert all pipeline.py commands to Go 2026-02-15 17:12:03 +00:00
parquet.go feat: add parquet, publish, metrics, convert commands 2026-02-15 17:05:08 +00:00
parquet_test.go feat: add parquet, publish, metrics, convert commands 2026-02-15 17:05:08 +00:00
probe.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
probe_test.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
probes.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
probes_test.go feat: add scoring agent + 23 capability probes (replaces scoring_agent.py) 2026-02-15 17:22:40 +00:00
prompts.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
publish.go feat: add parquet, publish, metrics, convert commands 2026-02-15 17:05:08 +00:00
query.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
score_cmd.go fix: handle error in score resume merge path 2026-02-22 19:03:41 +00:00
seed_influx.go feat: convert all pipeline.py commands to Go 2026-02-15 17:12:03 +00:00
status.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
status_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
tier_score.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
types.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
worker.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
worker_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00