功能: 支持受密码保护模型交互加载 - #203
Draft
ypwhs wants to merge 3 commits into
Draft
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.
C#
Model将可选model_password写入现有加载 JSON,并透传原生结构化错误;DlcvTest在需要密码时弹窗重试,取消或失败时保留当前模型且不持久化密码。.dvst、.dvso、.dvsp在加载期向每个流程模型节点传递同一密码;加载成功或失败后均清理流程上下文,带密码节点绕过流程模型缓存。保护错误码保持为MODEL_PASSWORD_REQUIRED或MODEL_PASSWORD_INVALID,使现有重试交互可用。原DvsModel.Load(string, int)和LoadFromRoot(JObject, int)签名保留,并新增带密码重载。验证:
dvs-model-password-selftest通过,覆盖流程成员密码透传、缓存绕过、成功与失败上下文清理、旧加载重载,以及缺失/错误密码错误码;该测试仅使用系统临时目录中的最小.dvspfixture,不加载原生推理 DLL。model-channel-order-selftest通过。PasswordBox验证错误密码重试、取消保持和正确密码透传;正确密码进入 Sentinel 授权层后因无加密狗返回MODEL_DECRYPT_FAILED,未标记为加载成功。MODEL_DECRYPT_FAILED。限制:正确密码后的完整模型加载、推理与正式交付仍需要可用的 Sentinel 或深盾加密狗及对应正式环境。