迁移到 SQLite 事实源并加入原生备份 - #1
Merged
Merged
Conversation
本次变更: - 将 SQLite 明确为正常运行时的本地事实源 - 新增 backup create / verify 与完整性检查 - doctor 改为只读检查数据库,init 防止 demo 覆盖已有组合 - 将 ledger 降级为显式、有损的旧版互操作导出/导入 - 同步更新 CLI、README、中文文档、Skill 和合成 demo 验证: - pnpm -r test(63 core + 4 connector-yzyx + 11 CLI tests passed) - pnpm typecheck - pnpm -r build - CI skill-drift check - git diff --check - 隔离临时数据库上的 init / doctor / backup create / backup verify smoke test 范围: - 单用户、本地 MVP;不引入多用户、分布式事务或高强度安全模型 - 未包含个人账户、九坤资料、内部 endpoint 或真实数据
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
finsight backup createandfinsight backup verifyfor native SQLite recovery copies.doctorread-only for SQLite health checks.init --demofrom replacing an already populated portfolio database.Privacy boundary
MVP boundary
This PR is for a single-user, local-only, Agent-first MVP. It does not add multi-user auth, distributed transactions, hostile-process hardening, or ABA/TOCTOU defenses.
Verification
pnpm -r testpnpm typecheckpnpm -r buildgit diff --checkinit → doctor → backup create → backup verifyReview boundary
Please review this as one migration slice. Do not merge unrelated FX, screenshot/OCR, personal-data, package-release, or security-hardening work into this PR.