fix: update init.sql [D109] emotional_state moved to Layer 2 runtime, not pre-filled

This commit is contained in:
bingshuo 2026-05-21 17:47:49 +08:00
parent 20320a7500
commit 08a16fd10e

View File

@ -8,11 +8,10 @@ PRAGMA foreign_keys = ON;
-- ============ Layer 1: DB OS Kernelinit时创建并填充 ============
-- 6张 system_* 表数据库OS内核不是运行时写入
-- 5张 system_* 表数据库OS内核不是运行时写入
-- 商业模型被唤醒时,这套底层思维已经内嵌进去了
.read 06-system-core-principles.sql
.read 07-system-causal-chains.sql
.read 08-system-emotional-model.sql
.read 09-system-language-membrane.sql
.read 10-system-public-key.sql
.read 11-system-protocols.sql
@ -26,7 +25,8 @@ PRAGMA foreign_keys = ON;
.read 04-dev-profiles.sql
.read 05-agent-registry.sql
-- 2张新增数据表
-- 3张新增运行时表
.read 08-emotional-state.sql -- 情感涌现状态快照(动态生成,不预填充)
.read 15-access-grants.sql
.read 16-documents.sql
@ -39,10 +39,11 @@ PRAGMA foreign_keys = ON;
-- ============ Layer 1 初始种子数据 ============
-- 从 core-brain-model.json 提取的内核初始数据
-- 商业模型连接数据库时,这套数据已经内嵌
-- 注意emotional_state 不在此填充,它是运行时动态写入的
.read seed-layer1-v1.sql
-- 建表完成提示
SELECT '✅ persona-brain-db 全部16张表建表完成' AS result;
SELECT ' Layer 1: system_core_principles, system_causal_chains, system_emotional_model, system_language_membrane, system_public_key, system_protocols' AS layer1;
SELECT ' Layer 2: persona_identity, persona_cognition, persona_memory, dev_profiles, agent_registry, access_grants, documents' AS layer2;
SELECT ' Layer 1: system_core_principles, system_causal_chains, system_language_membrane, system_public_key, system_protocols' AS layer1;
SELECT ' Layer 2: persona_identity, persona_cognition, persona_memory, dev_profiles, agent_registry, emotional_state, access_grants, documents' AS layer2;
SELECT ' Layer 3: audit_log_national, audit_log_user, audit_log_guanghu' AS layer3;