修复:稳定 V1 P0 数据安全整改 - #47
Closed
damingishere-coder wants to merge 1 commit into
Closed
Conversation
Owner
Author
|
该堆叠 PR 的变更已由完整集成 PR #60 合并到 master,现作为 superseded 收口。保留分支,不删除历史。 |
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.
结果\n\n封住工程审计确认的三个 P0 数据安全风险:Pytest 误连活动库、SQLite 孤儿外键、永久删除文件与数据库半成功。\n\n## 主要改动\n\n- Pytest 每进程独立 sandbox,危险整表清理二次 fail-closed 校验\n- 永久删除改为同卷隔离暂存、数据库提交失败恢复、最终清理失败保留 manifest\n- 新增默认 dry-run、数量门禁、锁内备份的外键修复工具\n- SQLite Online Backup 固定为 journal_mode=DELETE 的便携单文件快照\n- 活动库 17 条孤儿引用已用 8 个不可见 tombstone 修复,保留发布/字幕/NEED_REVIEW 历史\n\n## 验证\n\n- P0 定向:42 passed\n- 全量:512 passed\n- Ruff:通过\n- compileall:通过\n- git diff --check:通过\n- 活动库:quick_check=ok,foreign_key_check=0\n- 运行态:http://127.0.0.1:8001/health=ok,Scheduler running=true,Windows Worker 8765=ok\n\n## 边界\n\n未触发真实 AI、真实投稿或平台操作;未改变 NEED_REVIEW 人工确认语义。