From f5bedbbbae9b17b149e59ec5b66a7a7d066ccfdc Mon Sep 17 00:00:00 2001 From: yunyingk Date: Fri, 11 Sep 2026 15:06:22 +0800 Subject: [PATCH] Refine staging guidance to recommend rather than enforce - Change dogmatic rules to strong recommendations - Emphasize that final decision belongs to the user and direct publish requests must be respected --- skills/seal-use/SKILL.md | 2 +- skills/seal-use/references/staging-simulation-workflow.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index 3fc77ae..8997ac0 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -60,7 +60,7 @@ seal-use corps list - Never treat “Seal 协助/Seal 授权/委托” as a 合思授权入口. They are different links and must use different commands. - In the default stateless mode, every enterprise command requires `--corp `. In stateful mode, omitting `--corp` uses the configured default enterprise and is unsafe for an explicitly named enterprise. - For an explicitly named enterprise, first resolve it with `seal-use corps list`, then pass its exact `corpId` to every command. After creation, verify the returned URL host matches that enterprise's Seal tenant; if the host is the current/default tenant or cannot be verified, do not present the link as the target enterprise's link. -- 生产规则演进必须遵循“生产仅改草稿 -> 一键同步测试企业 -> 真实单据模拟验证 -> 生产发布投产”安全闭环,绝不允许跳过测试环境模拟验证直接在生产企业发布规则版本。 +- 生产规则变更建议优先遵循“生产改草稿 -> 同步测试企业 -> 真实单据模拟验证 -> 生产发布投产”安全闭环;Agent 应主动提示并建议在测试环境中验证,但最终操作权与决策权在用户手中,绝不代替用户做决定。若用户明确要求直接在生产环境发布,尊重用户意图并严格执行。 - 测试环境合思模拟安全隔离:`corps sync-test` 自动将生产企业合思凭证以 `assisted` 模式注入测试企业,名称格式为 `{企业名前缀}(Seal测)`。该配置仅保存在测试 Seal 侧,绝对不执行 `deploy hosecloud sync`,杜绝向生产合思费控推送 EBot 节点或创建外发 webhook。 ## Route By Intent diff --git a/skills/seal-use/references/staging-simulation-workflow.md b/skills/seal-use/references/staging-simulation-workflow.md index 4659187..bec0f74 100644 --- a/skills/seal-use/references/staging-simulation-workflow.md +++ b/skills/seal-use/references/staging-simulation-workflow.md @@ -13,9 +13,9 @@ # 国内镜像源秒级自愈与升级 curl -fsSL https://git.ying-qing.cn/gitea/seal-use/raw/branch/main/scripts/install.sh | bash ``` -2. **测试先行,生产草稿隔离 (Staging-First Evolution)**: - - 生产环境的规则修改**只能以草稿态保存**(`draft`),绝对禁止直接在生产环境发布未经验证的规则版本。 - - 通过 `seal-use corps sync-test` 将生产草稿规则、知识文档与偏好自动同步至绑定的测试企业并在测试环境发布语义版本,用于模拟测试验证。 +2. **测试先行,优先草稿隔离 (Staging-First Recommendation)**: + - 强烈建议生产环境的规则修改优先以草稿态(`draft`)保存,并通过 `seal-use corps sync-test` 自动同步到绑定的测试企业进行模拟验证。 + - Agent 应主动向用户建议该安全演进闭环,但**绝不替用户做决定**。最终的操作权在用户手中;若用户明确指示直接在生产企业发布,Agent 必须尊重并遵照用户意图执行。 3. **合思集成安全隔离 (Hosecloud Zero-Impact Sync)**: - 测试环境进行合思模拟测试,必须在测试企业中保存合思凭证。 - `corps sync-test` 会自动读取本地生产 source 凭证并为测试环境配置 `assisted`(辅助)模式的合思集成,名称格式为 `{企业名前缀}(Seal测)`。 @@ -79,7 +79,7 @@ flowchart TD ```bash seal-use tool seal_approval_rules_update --corp --json '{"ruleId":"...","description":"..."}' ``` - - **关键安全底线**:此时**绝不调用** `seal-use rules publish --corp `!生产企业始终停留在草稿态,线上正在进行的审批不受任何干扰。 + - **最佳安全建议**:修改草稿后,建议先不调用 `seal-use rules publish --corp `,而是先引导用户同步至测试企业进行单据模拟验证;若用户明确要求直接投产,则严格遵从用户指示执行发布。 ---