From 2a807b4a3bdfd1918d424fade14b7c25e2aa23b1 Mon Sep 17 00:00:00 2001 From: Turtle Date: Thu, 19 Nov 2026 16:55:26 +0800 Subject: [PATCH] docs: align business-domain placement and tighten scope wording --- docs/AGENTS.md | 2 +- docs/core-guidelines/README.i18n.yaml | 4 ++-- docs/core-guidelines/README.md | 2 +- docs/core-guidelines/README.zh.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index 1b5525e523..6597fdce61 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -24,7 +24,7 @@ Each fact has one home: the tier whose job it is; elsewhere, link there. | [subsystems/](subsystems/README.md) | One reference page per subsystem: type definitions, semantics, and the generated Cordis API | Behavior narration (→ architecture.md) | | [Agent Notes](../.agents/notes/README.md) | Active decision records: the why, what-was-given-up, and required verification; `implemented/` notes describe shipped reality in present tense | Migration plans, acceptance-task checklists, fixture walkthroughs, and spec-speak ("should…") once the decision has shipped; archived notes are frozen history, never current authority | | [defensive-patterns/](defensive-patterns/README.md) | Rules this repository enforces in review, split by artifact: one general bug-class page plus per-domain pages | Type definitions and semantics (→ subsystems), decision rationale (→ Agent Notes), design rules for writing code (→ core-guidelines/) | -| [core-guidelines/](core-guidelines/README.md) | Numbered design rules for writing code, one file per area (general, frontend, backend, data exchange), in the format its rule G.1 defines | Business-domain rules (→ package READMEs, subsystems/); artifact bug-class checks (→ defensive-patterns/) | +| [core-guidelines/](core-guidelines/README.md) | Numbered design rules for writing code, one file per area (general, frontend, backend, data exchange), in the format its rule G.1 defines | Business-domain rules (→ package READMEs, subsystems/, Agent Notes); artifact bug-class checks (→ defensive-patterns/) | | [postmortem/](postmortem/README.md) | Incident stories — the only tier where war-story narrative belongs | — | | [Persistence history](persistence-changes/README.md) and [format references](persistence-changes/historical-formats/README.md) | Type-change acknowledgements, release comparisons, and complete historical format schemas | Behavior-only changes; current runtime contracts | | [cookbook/](cookbook/adding-a-package.md) | Step-by-step how-tos with numbered verify steps | Design rationale (→ the Agent Note each guide links) | diff --git a/docs/core-guidelines/README.i18n.yaml b/docs/core-guidelines/README.i18n.yaml index 8bde8393d0..6db854b0e0 100644 --- a/docs/core-guidelines/README.i18n.yaml +++ b/docs/core-guidelines/README.i18n.yaml @@ -12,8 +12,8 @@ en: d01356208379d52c zh: 5db9008bd7fd339f /dsh-core-guidelines/status-and-scope: - en: 18ed06b9945cef58 - zh: 9f2403f559948c8f + en: d44105d88f9dc6a1 + zh: 60d770cd66f23e37 /dsh-core-guidelines/introduction: en: 5b8a82e7c85129d1 zh: 05f02b6a5a94afd2 diff --git a/docs/core-guidelines/README.md b/docs/core-guidelines/README.md index 38ba4abcc9..62d4860ce0 100644 --- a/docs/core-guidelines/README.md +++ b/docs/core-guidelines/README.md @@ -17,7 +17,7 @@ Rules for writing DeepSeek Harness code, in the style of the [C++ Core Guideline ## Status and scope -These guidelines are to DeepSeek Harness what the C++ Core Guidelines are to C++: the repository's coding standard for how to write code, independent of what the code does. Every change follows them, and reviewers cite them by ID. +These guidelines are to DeepSeek Harness what the C++ Core Guidelines are to C++: the repository's coding standard for how to write code, independent of what the code does. A rule belongs here when it would still apply if the code implemented a different feature. Examples are rules about interfaces, types, errors, resource ownership, concurrency, state, component structure, and data formats. diff --git a/docs/core-guidelines/README.zh.md b/docs/core-guidelines/README.zh.md index 17e5022683..c651d78e8b 100644 --- a/docs/core-guidelines/README.zh.md +++ b/docs/core-guidelines/README.zh.md @@ -17,11 +17,11 @@ ## 地位与范围 -本准则之于 DeepSeek Harness,相当于 C++ Core Guidelines 之于 C++:它是本仓库关于“如何写代码”的编码标准,与代码实现什么功能无关。每个变更都遵循本准则,审查者按编号引用。 +本准则之于 DeepSeek Harness,相当于 C++ Core Guidelines 之于 C++:它是本仓库关于“如何写代码”的编码标准,与代码实现什么功能无关。 一条规则若在代码实现其他功能时依然适用,就属于本准则。例如关于接口、类型、错误、资源所有权、并发、状态、组件结构和数据格式的规则。 -业务领域规则不属于本准则。规定某个功能、子系统或产品决策必须如何运作的规则,放在其所有者处:包 README、[子系统页面](../subsystems/README.zh.md)或 [Agent Note](../../.agents/notes/README.zh.md)。针对某类产物已知缺陷的审查检查见[防御性模式](../defensive-patterns/README.zh.md)。 +业务领域规则不属于本准则。规定某个功能、子系统或产品决策必须如何运作的规则,放在拥有这条规则的文档里:包 README、[子系统页面](../subsystems/README.zh.md)或 [Agent Note](../../.agents/notes/README.zh.md)。针对某类产物已知缺陷的审查规则见[防御性模式](../defensive-patterns/README.zh.md)。 ## 引言