diff --git a/AGENTS.md b/AGENTS.md index 03c827fcae..fc454aba6c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -99,6 +99,10 @@ Include doctests when public examples are useful. For changes that affect suppor Run focused checks first and expand based on affected behavior. For claims about an external backend or host, distinguish actual execution from mocks, emulators, and direct hook invocation. Simulated inputs verify local handling; they do not establish that a real service produces those inputs or that a host supports the complete workflow. +## Public Documentation Content + +This is a public repository, and merged content is a permanent public record. Never put external customer, user, partner, or internal project names, or Ant Group / Alibaba internal links that require corporate SSO (especially links to `yuque.antfin.com/...`), into docs, RFCs, examples, comments, or PR/issue text. Reference public GitHub issues, PRs, RFCs, or upstream documentation instead; if a requirement is not public, describe it in neutral terms. Keep `docs/en/` and `docs/zh/` identical in wording, field labels, and references, including any redaction. See the "Write Documentation" section of `CONTRIBUTING.md` and the "Public content and references" sections of `docs/{en,zh}/rfcs/README.md`. + ## Blog Publishing and i18n Keep blog changes scoped to the blog. Preserve the existing appearance, navigation, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 905013deae..2504a80a8b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,6 +36,15 @@ For release preparation, use the [version update and release guide](docs/en/deve powercontext could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such. +This is a public repository, and merged content becomes a permanent public record. Documentation, RFCs, examples, code comments, and PR/issue descriptions must all be readable and meaningful to external contributors: + +- Do not name external customers, users, partners, or their internal projects. Describe the requirement in neutral terms instead, such as "a deployment that needs manual topic writes". Do not include such a name in one locale while omitting it from the other. +- Do not link to Ant Group / Alibaba internal documents or any resource that requires corporate SSO, in particular links to `yuque.antfin.com/...`. Other intranet domains, private document IDs, and internal chat or ticket links follow the same rule. +- Reference sources everyone can open: a public GitHub issue, PR, RFC, or upstream public documentation. If a requirement is not public, summarize the relevant part in the document instead of linking to it. +- Keep `docs/en/` and `docs/zh/` in sync, including headings, field labels, and link text. Apply every redaction or wording change to both locales. + +RFC-specific rules (allowed header fields, reference handling, and a pre-submit check) are in the [RFC guidelines](docs/en/rfcs/README.md) ([中文](docs/zh/rfcs/README.md)). + ## Submit Feedback The best way to send feedback is to file an issue at https://github.com/oceanbase/powercontext/issues. diff --git a/docs/en/rfcs/README.md b/docs/en/rfcs/README.md index 661a5c0a4e..ce86d1b96d 100644 --- a/docs/en/rfcs/README.md +++ b/docs/en/rfcs/README.md @@ -53,6 +53,23 @@ Useful preparatory steps include: - After merge, keep the RFC as a durable design record. - If a dedicated implementation issue already exists, it may be linked from the RFC as an optional `Tracking Issue`. +## Public content and references + +An RFC is a permanent, public design record. Its motivation and every reference must be usable by readers outside the organization, because the RFC process builds consensus in the open. Check these rules before submitting an RFC PR: + +- **No external names.** Do not include the name of an external customer, user, partner, or their internal project — in the body, header fields, link text, examples, or commit messages. State the requirement in neutral terms. Do not redact only one locale: `docs/en/` and `docs/zh/` must carry the same wording and the same references. +- **No internal links.** Do not link to Ant Group / Alibaba internal documents or anything that requires corporate SSO, in particular links to `yuque.antfin.com/...`. The same applies to other intranet domains, private document IDs, and internal chat or ticket links. A reviewer who cannot open a source cannot verify a design that claims to be based on it. +- **Use public references.** Link a public GitHub issue, PR, RFC, or upstream public documentation. If the underlying requirement is not public, summarize the relevant part in the Summary and Motivation of both locales instead of pointing at it. +- **Keep the header to the template.** Use only the fields in [`0000_example.md`](0000_example.md) (`Proposal Name`, `Start Date`, `RFC PR`) plus the optional `Tracking Issue` described above. Do not invent header fields for requirement sources or business catalogs; extra provenance belongs in the body or in a linked public issue. + +Real internal URLs can be checked mechanically (the bare domain quoted above is a forbidden example, not a link); external names need a manual read of both locales: + +```bash +git grep -n -E 'https?://[^ ]*(antfin|yuque)[^ ]*' -- docs/en docs/zh +``` + +These rules apply repository-wide; see the "Write Documentation" section of [CONTRIBUTING.md](https://github.com/oceanbase/powercontext/blob/master/CONTRIBUTING.md). + ## Implementing an RFC A merged RFC does not imply implementation priority, assignment, or completion. diff --git a/docs/zh/rfcs/README.md b/docs/zh/rfcs/README.md index 75cc169f6e..9077ef8a34 100644 --- a/docs/zh/rfcs/README.md +++ b/docs/zh/rfcs/README.md @@ -53,6 +53,23 @@ RFC(request for comments)流程为重大变更提供一致路径,使维护 - 合并后,将 RFC 保留为长期设计记录。 - 如果已经存在专门的实现 issue,可以在 RFC 中将其作为可选的 `Tracking Issue` 引用。 +## 公开内容与引用规范 + +RFC 是长期保留的公开设计记录。它的动机和每一条引用都必须能被组织外部的读者使用,因为 RFC 流程是在公开环境中形成共识。提交 RFC PR 前请逐项检查: + +- **不出现外部用户名称。** 不得在正文、头部字段、链接文本、示例或 commit message 中出现外部客户、用户、合作方及其内部项目的名称;需求用中性表述说明。不要只在一个语种脱敏:`docs/en/` 与 `docs/zh/` 的措辞和引用必须一致。 +- **不出现内网链接。** 不得链接蚂蚁集团 / 阿里集团内部文档,或任何需要集团 SSO 才能访问的资源,特别是 `yuque.antfin.com/...` 这类链接;其它内网域名、私有文档 ID、内部聊天或工单链接同样禁止。评审者打不开依据,就无法验证声称基于该依据的设计。 +- **只引用公开来源。** 引用公开的 GitHub issue、PR、RFC 或上游公开文档。若底层需求尚未公开,应在两个语种的「摘要 / 动机」中概括相关部分,而不是给出链接。 +- **头部字段遵循模板。** 只使用 [`0000_example.md`](0000_example.md) 中的字段(`Proposal Name`、`Start Date`、`RFC PR`)以及上文允许的可选 `Tracking Issue`。不要为需求来源或「业务目录」自创头部字段;补充溯源信息放在正文或所链接的公开 issue 中。 + +真实的内网 URL 可以机械检查(上面作为反例引用的裸域名不是链接),外部名称需要人工通读两个语种: + +```bash +git grep -n -E 'https?://[^ ]*(antfin|yuque)[^ ]*' -- docs/en docs/zh +``` + +以上规则适用于整个仓库,参见 [CONTRIBUTING.md](https://github.com/oceanbase/powercontext/blob/master/CONTRIBUTING.md) 的 "Write Documentation" 章节。 + ## 实现 RFC RFC 合并不代表已经确定实现优先级、负责人或完成情况。