fix(sqlite): 收口长期状态数据库版本化迁移契约
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

This commit is contained in:
2026-09-16 21:02:22 +08:00
parent 99355effe4
commit 7f7d757f15
10 changed files with 2487 additions and 421 deletions
+8
View File
@@ -46,6 +46,14 @@ TextUnit scope、source history 和 approved review。worker、TM 复用、人
按当前 QA 精确校验 identity。`translation.glossary.*` 已通过
`bat.sock` 暴露,Go `bat-api` 仅做鉴权 typed forwarding。
三个长期 SQLite owner 现在统一使用只读 schema preflight、精确 component
fingerprint 和 `BEGIN IMMEDIATE` writer transactionTranslation Tasks 从 V1
按显式 `v1 -> v2` step 迁移,当前版本为 V2Translation Memory 和 Glossary
当前版本均为 V1。future、未知或版本与结构不一致的数据库在任何 schema/data
mutation 前 fail closedmigration 失败会 rollback,已知无
`schema_migrations` 表的历史 fingerprint 可安全补建版本表后重试。正式 schema
路径不再使用 `ensure_column` 隐式补列。
`localized.status` 现将 generic manifest schema/contract 与已发布 artifact integrity
分开报告;current、state 和 identity 存在但文件被截断或手工修改时返回
`localized.degraded`,只读检查不会自动回滚、删除或修复。双 release 的