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
This commit is contained in:
gitea committed 2026-09-11 15:06:22 +08:00
1 parent bdeca88354
commit f5bedbbbae
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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 <corpId>`. 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
@@ -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 <prodCorpId> --json '{"ruleId":"...","description":"..."}'
```
- **关键安全底线**:此时**绝不调用** `seal-use rules publish --corp <prodCorpId>`!生产企业始终停留在草稿态,线上正在进行的审批不受任何干扰。
- **最佳安全建议**:修改草稿后,建议先不调用 `seal-use rules publish --corp <prodCorpId>`,而是先引导用户同步至测试企业进行单据模拟验证;若用户明确要求直接投产,则严格遵从用户指示执行发布。
---