Files
memoryweave/go
小唯 ece2da12ac fix(distill): narrow short-fact exemption to structured prefixes only
The <20-char exemption added earlier for human-side soulful facts also
carried a 'hasStatementSubject && !status && !question' fallback.
hasStatementSubject only checks for a subject word - it does not check
that the content is a fact - so fragments, questions and status
reports all passed:

  '用户喜欢喝咖啡'            (7 chars, fragment)
  '用户重启了系统'            (7 chars, fragment)
  '用户今天完成了一次系统检查工作' (14 chars, fragment)
  '用户要不要升级系统吗'       (question)
  '小唯a06与all桥接状态同步完成' (status report)

Five assertions in the distill suite were failing because of this
(TestIsQualityFact_ShortFragmentsRejected, _PureQuestionRejected,
_StatusReportRejected, and TestDistillOne_QualityGateBlocksFragments
which kept 2 facts where the gate should keep 1).

The exemption is now limited to daemon-written structured prefixes
(画像规则:/心迹:/牵挂:/偏好:/习惯:/目标:/行为规则:) - strong signals that
cannot be confused with noise. Natural short sentences are weak signals
and are rejected as fragments; if a writer genuinely needs one kept, it
should supply the structured prefix rather than loosen this gate.

go test ./... now passes (TEST_EXIT=0, 8 packages ok).
2026-09-20 08:55:37 +08:00
..