Files
memoryweave/go
小唯 d472996f80 fix(distill): SCORE line root causes - truncation guard drops last line; placeholder echo corrupts 5D scores
AC3 evidence for t_23f6bce3: two production bugs that made 5D scores all-zero.
(1) ParseLineFormat truncation detection dropped the last line when no END marker was present, but the production prompt never requires END, so a complete final SCORE line was always stripped. Now only drop the last line when it is a FACT/ENTITY (half-record), keep SCORE.
(2) The 2B model copies the example placeholder names is|su|pa|vd|ru into its SCORE line, producing a 7-field line that SplitN limit-6 mis-parses into the placeholder names, giving non-numeric all-zero scores. Now detect the echoed placeholder prefix, take the real trailing 5 fields, and validate each with isValidScoreField (0.0-1.0 float) - invalid fields discard the whole line instead of storing junk.

engine.go: prompt format string reorganized to outer 3-slot + inner content slot (text byte-identical, removes the one-arg-three-slots hazard). Test anchors in engine_echo_test.go and rawscore_liveprobe_test.go updated to the inner format string. New parser tests: echoed placeholder, no-END SCORE preserved, junk field discarded. New liveprobe test TestLiveScoreNotEcho (6 distinct contents, >=3 distinct vectors, no echo vector).
2026-10-08 16:13:31 +08:00
..