From e10a19a320a33efff30aa01ada6a06fcf9b1e478 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Fri, 18 Sep 2026 14:54:04 +0800 Subject: [PATCH] Standardize rule patch presentation contract and vocabulary in remediation guide --- skills/seal-use/SKILL.md | 2 +- .../customer-feedback-rule-remediation.md | 44 ++++++++++++++++++- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index 1e9813a..1b16ef0 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -61,7 +61,7 @@ seal-use corps list - Do not hand-edit enterprise configs for normal setup. Use `seal-use corps ...`. - Before write operations on rules, documents, style preferences, or publishing, fetch current state and confirm the intended mutation with the user. For supported configuration writes, prefer the universal `--dry-run` preview first (rules clear/push, `corps sync-test`, preference updates, thinking-depth policies, HoseCloud configure, and Webhook add/update/delete), then use `--yes` only after reviewing its redacted `changesDiff`. - Knowledge document creation and deletion are now supported. Validate `contentType` and `scenarios` before creating; use `enabled: false` when the document should be withdrawn without deletion. For an explicit deletion, re-read the document and obtain confirmation before using the low-level `seal_approval_delete_document` tool. -- For customer-feedback rule remediation, show an exact field-level diff and obtain explicit approval before updating. Default to changing only the narrowest necessary part of `description`; preserve `scope`, `strictness`, and unrelated clauses unless the user explicitly approves otherwise. +- For customer-feedback rule remediation, show an exact field-level diff and obtain explicit approval before updating. Default to changing only the narrowest necessary part of `description`; preserve `scope`, `strictness`, and unrelated clauses unless the user explicitly approves otherwise. Always follow the Presentation Contract in `references/customer-feedback-rule-remediation.md`: hide internal UUIDs, use standard business terms (适用场景, 遵守程度), present unmodified fields cleanly without colloquial fluff, and format description changes as standard Git Diff. - Resolve and lock the target enterprise `corpId` before diagnosis or mutation. Never assume the current tenant is the customer tenant. Re-fetch the target rule immediately before updating, then verify the draft and newly published version after writing. - For date questions, use explicit dates and `--timezone Asia/Shanghai`. - If output may be large, use `--summary`, `--fields`, `--count`, or `--output-file`; use `--full` only when the user really needs full payloads. diff --git a/skills/seal-use/references/customer-feedback-rule-remediation.md b/skills/seal-use/references/customer-feedback-rule-remediation.md index d5ea5e2..65fafe6 100644 --- a/skills/seal-use/references/customer-feedback-rule-remediation.md +++ b/skills/seal-use/references/customer-feedback-rule-remediation.md @@ -113,7 +113,49 @@ Show a description-only unified diff by default: unchanged text ``` -State the target enterprise, target rule ID, changed fields, preserved fields, expected behavior, and residual limitation. +State the target enterprise, target rule code, changed fields, preserved fields, expected behavior, and residual limitation. + +### 规则修补提议呈现规范 (Rule Patch Presentation Contract) + +在向用户提交规则修改提议(`PATCH_PROPOSED`)时,Agent **必须严格遵守以下呈现规范与词汇契约**,杜绝自创概念、信息黑盒或中英杂糅: + +1. **用户侧隐藏系统内部机器标识**: + - 严禁向用户直接输出系统内部持久化 UUID(如 `01a00f34-...`)或无意义哈希; + - 统一使用用户与管理后台唯一认知的业务编号:`规则 code: #xxxx`。 +2. **严格采用系统原生业务术语(Vocabulary Contract)**: + - **适用场景**(对应系统字段 `scope`):严禁自创为“适用范围”或“适用模版”;若未修改,必须原样完整呈现其配置值,向用户证明未篡改触发条件; + - **遵守程度**(对应系统字段 `strictness`):严禁自创为“执行力度”或“严格度”;一律采用标准纯中文术语: + - `MUST_FOLLOW` -> `必须遵守` + - `SHOULD_FOLLOW` -> `建议遵守` + - `SUGGESTION` -> `提示参考` + - **规则描述差异**(对应系统字段 `description`):必须采用标准的统一 Git Diff 格式呈现。 +3. **未修改字段的客观展示原则**: + - 未修改的字段(如适用场景、遵守程度、生效状态)必须客观完整展示,但**严禁使用口语化或刻意强调词汇**(如“原模原样”、“千真万确”等),保持专业、可审计的技术文档风格。 +4. **统一 Git Diff 差异规范**: + - 必须包含上下文行与清晰的 `+`/`-` 符号,只修改阻断误判所需的最小语句,杜绝整段重写或夹带无关调整。 + +#### 标准提议输出范例模板: + +```markdown +### 规则变更明细与差异对比 + +- **企业**:<企业全称> +- **目标**:<一句话说明业务目标> + +--- + +#### 规则 code: #0016 + +- **适用场景**:单据模板=对公付款单 +- **遵守程度**:必须遵守 +- **规则描述差异(Git Diff)**: + +\`\`\`diff ++本规则以前提为采购业务的对公付款为准。费用类型为“利润分配”等非采购性质支出的,不适用发票与合同/订单匹配要求,直接跳过,不得以缺少合同、协议或决议等依据文件为由退回。 ++ + 当单据的‘经常交易供应商’为空或收款信息和单据收款信息不一致时:发票、合同/订单、需要"匹配";... +\`\`\` +``` ## 7. Mutation gate and concurrency check