Repository navigation
补齐模拟账本只读核验与独立备份恢复 - #12
Merged
Merged
Conversation
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.
原有模拟盘可以从权威日志恢复投影,但没有独立、可验收的账本核验与备份恢复入口。新增只读
verify及backup/restore:核验使用真实回放结果比较全部投影;备份保存权威日志原字节及完整嵌套历史归档链;恢复先验证版本、摘要和成交规则,安装原始权威字节,再计算投影。备份目录独立且不得覆盖;恢复必须使用空状态目录。投影写入中断后保留权威日志与提交标记,可由
status继续重建。拒绝损坏备份、缺失归档、规则不匹配和现存账户;不从投影现金反推账户。验证:新增13项恢复测试全部通过,覆盖提交前后强制终止独立进程、锁释放、重试与不中断账户一致、投影重新签写后篡改、独立恢复、嵌套版本归档及CLI闭环。全量测试171项通过、4项Windows平台跳过,总分支合并覆盖率92.47%,原有state/execution/engine纯分支门禁均通过。Ruff、格式与锁定依赖闭包通过;Studio实际原生命令及账本核验集成通过。既有权威schema、版本白名单和锁定quant-execution@v0.5.1保持兼容。当前head的Python3.10/3.11/3.12及CodeQL远端检查共5项全部成功。