LEM/pkg/lem
Snider 3606ff994b fix: memory, error handling, and signal improvements across pkg/lem
- Stream parquet export rows instead of unbounded memory allocation
- Replace QueryGoldenSet/QueryExpansionPrompts with iter.Seq2 iterators
- Remove legacy runtime.GC() calls from distill (go-mlx handles cleanup)
- Replace log.Fatalf with error return in tier_score.go
- Add SIGINT/SIGTERM signal handling to agent and worker daemon loops
- Add error checks for unchecked db.conn.Exec in import.go and tier_score.go
- Update tests for iterator-based database methods

Co-Authored-By: Gemini <noreply@google.com>
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 04:46:51 +00:00
..
agent.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +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 refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
attention.go fix: raise GQA threshold to ≤4 KV heads for position-wise analysis 2026-02-23 01:02:13 +00:00
attention_test.go fix: raise GQA threshold to ≤4 KV heads for position-wise analysis 2026-02-23 01:02:13 +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
cmd_attention.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +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 lems configs 2026-02-23 04:38:37 +00:00
consolidate.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
conv.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +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: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
convert_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
coverage.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +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 fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
db_test.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
distill.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +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 fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
expand_status.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
expand_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00
export.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
export_test.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
features.go feat: add 19D full feature vector (grammar + heuristic + attention) 2026-02-23 00:34:22 +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 fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +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: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +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: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +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 refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
normalize.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
parquet.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +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 refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
query.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
score_cmd.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
seed_influx.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +00:00
status.go refactor: migrate all 25 commands from passthrough to cobra framework 2026-02-23 03:32:53 +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 fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
types.go refactor: move Go library to pkg/lem, thin main.go 2026-02-15 16:30:09 +00:00
worker.go fix: memory, error handling, and signal improvements across pkg/lem 2026-02-23 04:46:51 +00:00
worker_test.go refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:17 +00:00