Update: 将子项目从 submodule 转为完整内容
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
-- Migration 002: write-back "eagerness" (回写意识) for knowledge bindings.
|
||||
--
|
||||
-- Adds a SECOND, orthogonal write-back axis to `knowledge_bindings`. The
|
||||
-- existing `writeback_mode` controls WHERE agent writes land (`staged` inbox
|
||||
-- vs `direct` body); this new `writeback_eagerness` controls HOW EAGERLY the
|
||||
-- agent writes at all, while write-back is enabled:
|
||||
-- * 'conservative' — the historical, restrained default: only persist
|
||||
-- knowledge the model judges clearly worth keeping.
|
||||
-- * 'aggressive' — capture anything plausibly relevant to a mounted base
|
||||
-- without much hesitation; the user prunes later.
|
||||
-- Both are purely prompt-contract wording (rendered by
|
||||
-- nomifun-knowledge::context); the column only persists the user's pick.
|
||||
--
|
||||
-- Additive on purpose: editing 001_baseline would change its checksum and
|
||||
-- trip the pre-baseline rebuild path (database.rs), wiping existing dev DBs.
|
||||
-- SQLite allows ADD COLUMN with a NOT NULL DEFAULT + CHECK; the default
|
||||
-- satisfies the CHECK for every pre-existing row.
|
||||
ALTER TABLE knowledge_bindings
|
||||
ADD COLUMN writeback_eagerness TEXT NOT NULL DEFAULT 'conservative'
|
||||
CHECK(writeback_eagerness IN ('conservative', 'aggressive'));
|
||||
Reference in New Issue
Block a user