fix: restrict explicit force release to verified user document clients
This commit is contained in:
1 parent
e4266ae88c
commit
e53c5d0e92
18 files changed
+2090
-1623
No files matched your search
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"review_comment": "https://git.simgreek.com/Skyworth_Digital_Hardware/cbb-refresh-verify-795/pulls/3#issuecomment-249",
|
||||
"version": "0.2.4b1",
|
||||
"base_main": "a56fd17b60d9f67997d7f48c862f3367d4502f84",
|
||||
"tests": {
|
||||
"infrastructure": {
|
||||
"tests": 491,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "12c2cd40542cb01d4fa374e98908c8a77a8deb83f95d0833645b1666ea5574e9",
|
||||
"xml_file": "codex-review-infrastructure-pytest.xml",
|
||||
"seconds": 52.986
|
||||
},
|
||||
"native_backend": {
|
||||
"tests": 1376,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "8db65d11dd918d2a1b141d72627654a990ea903b68e20511e982dfb927d6be58",
|
||||
"xml_file": "codex-review-native-backend-pytest.xml",
|
||||
"seconds": 275.957
|
||||
},
|
||||
"ui_integration": {
|
||||
"tests": 1545,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "5a3e6d58d611240c6e34cc9bd2350a8bf605516ef453240333836c1f88233af6",
|
||||
"xml_file": "codex-review-ui-integration-pytest.xml",
|
||||
"seconds": 325.065
|
||||
},
|
||||
"final_stack": {
|
||||
"tests": 1601,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "bab74328facfbf512416b62a074fb5cb65ea39b04f0039d42083f96b5349c351",
|
||||
"xml_file": "codex-review-residual-release-pytest.xml",
|
||||
"seconds": 246.75
|
||||
},
|
||||
"umbrella": {
|
||||
"tests": 1601,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "566f50b4ba537d4e54939946a5b48cad9ed6dbd8fb69c5ffbabcc5da0fbaf507",
|
||||
"xml_file": "r10-pr-pytest.xml",
|
||||
"seconds": 313.479
|
||||
},
|
||||
"force_boundary": {
|
||||
"tests": 43,
|
||||
"errors": 0,
|
||||
"failures": 0,
|
||||
"skipped": 0,
|
||||
"xml_sha256": "832425306b5fea3a150cc2188e00c97a771bb6d953e54b69c091d36e8062dca9",
|
||||
"xml_file": "pr249-force-focused.xml",
|
||||
"seconds": 3.231
|
||||
}
|
||||
},
|
||||
"compileall": "passed",
|
||||
"git_diff_check": "passed",
|
||||
"final_content": {
|
||||
"file_count": 195,
|
||||
"sha256": "2784b81ff0ae4d47f85ac8ea4b217292bbd9a1e716667e729863bfd4a6a372cd",
|
||||
"umbrella_equals_stack": true
|
||||
},
|
||||
"post_test_formatting": "MainWindow line endings aligned with UI review base (AST equality asserted); unchanged README lines retain main line endings",
|
||||
"regression_red": {
|
||||
"baseline": "e4266ae",
|
||||
"selected_new_ownership_tests": 3,
|
||||
"expected_failures": 3,
|
||||
"method": "in-memory baseline module; no production files or native processes modified"
|
||||
},
|
||||
"force_contract": {
|
||||
"clients_only": true,
|
||||
"same_user_sid_and_windows_session": true,
|
||||
"servers_never_terminated": true,
|
||||
"durable_consent_before_action": true,
|
||||
"independent_library_release_proof_required": true
|
||||
},
|
||||
"not_validated": [
|
||||
"field server-session loss recovery",
|
||||
"Windows 10",
|
||||
"cross-machine shared-library concurrency",
|
||||
"actual Mentor force termination",
|
||||
"new frozen package"
|
||||
],
|
||||
"delivery_policy": "Draft review only; no merge, publish, automatic issue closure or native production-library operation"
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
# v0.2.4-beta.1(0.2.4b1)开发候选说明
|
||||
|
||||
状态:待评审、待现场验收。不是自动发布指令,工单保持开放。
|
||||
|
||||
## 用户可见变化
|
||||
|
||||
- 检验、ICDB 维护、中心库管理为独立入口。ICDB 检查在后台逐项运行,其他原生任务可排队,搜索/筛选保持可用。
|
||||
- 检查以当前 PCB 打开情况和本次原生错误为依据,只有明确 ICDB 错误才标记问题;不自动 Repair、Restore 或选择版本,CHECKED 不等于 READY。
|
||||
- 停止队列同时停止后续后台检查;执行前再次排除 READY,校验排队不隐藏检查进度;释放失败显示实际原因。
|
||||
- 原生新增、同名替换、移除和备份恢复继续要求确认及人工备份,失败结果和未完成任务逐项保留。
|
||||
- 默认残留释放为正常关闭。单独确认的强制结束仅允许属于当前 Windows 用户和会话、已确认作用域和精确身份的受支持文档客户端;服务器、后台导入器和未知进程不可强制结束。
|
||||
|
||||
## 强制客户端操作的契约
|
||||
|
||||
支持 Expedition PCB、Library Manager、viewdraw 和 iCDB Project Backup。操作员须知晓客户端中其他工程可能一并退出、未保存更改可能丢失、写入中的工程可能需要恢复。确认名单先持久记录为库外 `consent.json`,失败则不执行;派发与进程句柄两处复核,PID 复用、用户或 Windows 会话变化时拒绝。
|
||||
|
||||
数据库服务器可能服务同库其他用户,命令行归属不构成独占授权。本工具不会强制结束任何 ICDB 服务器;它仍活跃或库状态未知时保留 PARTIAL,不能通过结束客户端伪造释放或修复成功。
|
||||
|
||||
## 安全状态和回退
|
||||
|
||||
单项失败且本任务确已释放时可继续独立项;未释放时保留现场、检查点、映射和证据。客户端强制结束不可撤销,恢复使用人工一致备份或原生历史版本;不会自动重新导入、回退共享库或重放未完成写操作。
|
||||
|
||||
程序回退:先关闭正在使用的客户端,再使用此前候选包;程序回退不恢复原生事务或丢失更改。工程恢复:保留故障现场、选择确认过的备份,在隔离副本验证后恢复并重新校验。
|
||||
|
||||
## 验证与限制
|
||||
|
||||
PR #3 comment 249 的修复通过服务器排除、确认记录失败、PID 复用、客户端/服务器混合名单等 fake 边界回归;没有为了验证本功能终止真实 Mentor 客户端或服务器。
|
||||
|
||||
此前 r10 的原生隔离检查与界面排队证据只证明该候选包已记录的打开/释放行为,不能当成新强制客户端功能的现场验收。现场服务器失联恢复、ICDB 自动修复、Windows 10 和共享库跨机器并发仍未验收。
|
||||
|
||||
规范:[SOP](../../SOP.md)、[ICDB 手动修复手册](../ICDB-MANUAL-REPAIR-AND-UPDATE.md)。依赖和拆分顺序见 PR #3 的独立审查链。
|
||||
Reference in new issue
Block a user