Skip to content

docs(rfc): remove inaccessible internal requirement link from RFC 1614 - #2633

Merged
hidb4ai merged 1 commit into
masterfrom
docs/rfc-1614-remove-internal-requirement-link
Nov 13, 2026
Merged

hidb4ai merged 1 commit into
masterfrom
docs/rfc-1614-remove-internal-requirement-link

Conversation

@AlexStocks

@AlexStocks AlexStocks commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Post-merge note (2026-11-13): This PR was merged with head 13a90a9e and contains only the two-line RFC 1614 fix. The prevention rules described below were pushed after the merge and are submitted separately in #2634. Please use #2634 for the rules.

Which issue or RFC does this PR close?

No tracking issue. This fixes a documentation defect in the already merged RFC 1614 (PR #1614, merged 2026-09-17) and adds repository rules that prevent the same class of defect from recurring. No contract or runtime behavior is affected.

Rationale for this change

RFC 1614 carried a header line in both locales that linked an internal requirement document:

  • docs/zh/rfcs/1614_topic_memory_generic_api_completion.md:14 — a self-invented "business catalog" field whose link text named an external customer, pointing at an internal Yuque URL.
  • docs/en/rfcs/1614_topic_memory_generic_api_completion.md:14 — the same link under a "Business requirements" label, with the customer name already removed from the link text.

The customer name and the full internal URL are deliberately not reproduced here, in line with the rule this PR adds. Maintainers who need the literal text can read the merged RFC and the file history.

Four problems, in decreasing order of severity:

  1. The reference is not publicly reachable. The link points at yuque.antfin.com, the Alibaba/Ant internal Yuque instance; fetching it returns a "欢迎使用内网语雀" login page requiring group SSO, so no external contributor can open it. docs/{en,zh}/rfcs/README.md defines an RFC as a durable design record used to "build consensus" before implementation and asks authors to "write enough detail that someone other than the RFC author can implement the design". A public design record whose stated requirement source cannot be read gives the community no way to verify, challenge, or discuss the motivation — in practice a dead link.

  2. It discloses a named customer in one locale only. The Chinese header names a specific external customer; the English one is already sanitized to the generic "Memory requirements", so the same URL is presented differently to Chinese and English readers. A search of the public issue/PR corpus for that name returns 0 results, i.e. these documents were the only public exposure. Whether a customer name and an internal requirement may be published should be a deliberate decision, not a side effect of a technical RFC; the partial sanitization suggests it was not.

  3. en/zh are out of sync, and the field is not part of the header contract. docs/{en,zh}/rfcs/README.md:49 requires the Chinese translation to be kept in sync with the English RFC. Both the field label ("Business requirements" vs "业务目录", which reads as "business catalog/directory", not "requirements") and the link text differ. 0000_example.md lists only Proposal Name, Start Date, and RFC PR, and the README permits just one extra optional field, Tracking Issue. No other RFC uses a "业务目录" field, and the label does not describe what is linked (a single requirements document, not a catalog).

  4. The line adds no usable design information. All 14 sections describe generic Topic Memory APIs: request contracts, atomic publication, Scope authorization, and acceptance criteria. There is no customer-specific scenario, term, or acceptance item anywhere. Public technical provenance is already covered by the Related implementation line (feat: unify artifact family reads and registration #1550) and §14 References (docs(rfc): propose topic memory artifacts #1417). Removing the line loses no design content.

History: the line was introduced in 63d5f7791 together with PR #1614 and survived the 464cd152 renumbering (2026-10-22). The merged PR body did not mention the requirement source, and the public PR record shows no inline, discussion, or review comments. It likely went unnoticed because the pre-commit config has no Markdown linter and the docs build validates in-site bilingual links rather than external reachability. RFC #1614's own AI usage statement says it was written with Codex assistance, so a rule that only human contributors read would not prevent a recurrence.

This PR does not invent a replacement requirement source, quote internal content, or rewrite the RFC's Motivation. If the requirement needs to remain traceable, the appropriate path is a public GitHub issue describing the use case (as docs/en/rfcs/README.md suggests under "Before creating an RFC"), which the RFC can then link. Open questions remain in the conversation for maintainers.

What changes are included in this PR?

Fix (2 deletions):

  • Delete line 14 of docs/en/rfcs/1614_topic_memory_generic_api_completion.md.
  • Delete line 14 of docs/zh/rfcs/1614_topic_memory_generic_api_completion.md.

Prevention rules (47 insertions, no deletions):

  • CONTRIBUTING.md — a repository-wide rule in "Write Documentation": no external customer / user / partner names; no Ant Group / Alibaba internal or SSO-only links, in particular yuque.antfin.com/...; reference public GitHub issues, PRs, RFCs, or upstream docs instead; keep docs/en/ and docs/zh/ in sync, including redactions.
  • AGENTS.md — a short "Public Documentation Content" section applying the same constraints to coding agents, since no such rule reached the tool that drafted RFC 1614.
  • docs/en/rfcs/README.md and docs/zh/rfcs/README.md — matching new sections ("Public content and references" / "公开内容与引用规范"): the two prohibitions above, public-reference alternatives, a rule that header fields come only from 0000_example.md plus the optional Tracking Issue, and a git grep pre-submit check for real internal URLs. Both locales are updated together.

No API contract, generated file, runtime code, or RFC content outside the two deleted lines is changed. docs/en/rfcs/meta.json uses a wildcard, so no index registration is needed.

Are there any user-facing changes?

No. Documentation and contribution-rule changes only; no runtime, API, persisted-format, or generated-file change. Readers lose one link they could not open anyway. The RFC's design intent, acceptance criteria, and public references remain unchanged. Contributors and coding agents now have an explicit written rule for public content.

How was this change tested?

  • git diff --check — clean.
  • git diff --numstat — 0 1 on each RFC 1614 file (no whole-file rewrite; blobs are LF while the worktree uses core.autocrlf=true, so the diff was checked against the blobs); the four rule files are insertions only, 47 lines total.
  • grep -rn -E 'Business requirements|yuque\.antfin|业务目录' docs/{en,zh}/rfcs/1614_topic_memory_generic_api_completion.md — no match after the change; a separate check for the customer name also returns no match.
  • Search across docs/**/rfcs/ for yuque|antfin — the two deleted lines were the only internal-domain references in any RFC.
  • The new self-check regex run in the worktree returns no match: the rule files quote only the bare domain as a forbidden example, not a URL, so the check does not report its own documentation.
  • The four edited rule files contain neither the full internal URL nor the customer name; en/zh RFC README section headings were compared and remain aligned (6 sections, same order).
  • GitHub issue/PR search for the customer name — 0 results outside these documents.
  • make docs-test was not run: the isolated worktree has no installed website dependencies. The added links are one absolute GitHub URL and one same-directory relative link already used in the same file, so no new in-site link target is introduced. Happy to run the full gate if reviewers want it.

AI usage statement

Investigation, the rule text, and this description were prepared with WorkBuddy (Tencent Hunyuan). Findings were verified against the repository, git log/git blame, the GitHub PR/issue APIs, and a direct fetch of the linked URL. All edits were reviewed against the rendered diff before pushing.

RFC 1614 headers linked to an internal-only Yuque requirements document that external contributors cannot open. The Chinese version also named a customer while the English version did not. Delete the line in both locales so en/zh stay in sync. No contract or runtime change.
Copilot AI balanced review requested due to automatic review settings November 13, 2026 13:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@AlexStocks

Copy link
Copy Markdown
Contributor Author

Follow-up for reviewers — four things I intentionally did not decide on my own:

  1. Disclosure. The Chinese link text named a specific customer; the English link text did not. This PR removes it from HEAD, but it does not settle whether that name may be published. If it is meant to be public, let's state it consistently in both locales in a public issue or RFC rather than restoring this line. If it is not, please note that the line still exists in git history (63d5f7791, and the file as merged in docs(rfc): complete topic memory generic Artifact APIs #1614): removing it from HEAD is not a retraction, and a history rewrite is a much heavier decision that I did not attempt. If maintainers prefer that even this PR description not quote the original line verbatim, I can redact the quote in the description.

  2. Traceability. Dropping the link leaves the RFC's motivation implicit. If the underlying use case is useful to the community, the clean replacement is a public GitHub issue describing the requirement (as suggested under "Before creating an RFC" in docs/en/rfcs/README.md), linked from the header via the optional Tracking Issue field, or a short Motivation paragraph in §1 in both locales. I did not create one because the source document is not readable externally.

  3. Scope. Only the two requirement-link lines are removed. The other three custom header fields (Status, Inspected code / 代码核对基线, Related implementation / 关联实现) also extend 0000_example.md, but they are en/zh aligned and readable, so normalizing the whole header would broaden this fix. Say the word if you want that in this PR instead.

  4. Reproduction (all independent of this branch):

    • git grep -n -E 'yuque|antfin' -- docs/en/rfcs docs/zh/rfcs → only these two lines before the fix, none after.
    • git blame -L 8,16 -- docs/zh/rfcs/1614_topic_memory_generic_api_completion.md → introduced in 63d5f7791, unchanged by the 464cd152 renumbering.
    • gh api repos/oceanbase/powercontext/pulls/1614/comments and the PR body → no mention of this requirement source in the merged PR.
    • Opening the linked URL without Alibaba/Ant SSO lands on the internal Yuque login page.

Net effect: two deleted lines, en/zh back in sync, no contract, runtime, generated-file, or index change.

@AlexStocks AlexStocks added the 1.5.2 v1.5.2 release tracking label Nov 13, 2026
@hidb4ai
hidb4ai merged commit 3c3ae56 into master Nov 13, 2026
1 of 2 checks passed
@AlexStocks

Copy link
Copy Markdown
Contributor Author

Scope update: this PR now also carries the prevention rules, so it is no longer just the two-line deletion from the first commit.

The new commit adds 47 lines across four files, with no deletions:

  • CONTRIBUTING.md — a repository-wide rule under "Write Documentation": the two prohibitions (no external customer / user / partner names; no Ant Group / Alibaba internal or SSO-only document links such as yuque.antfin.com/...), public-reference alternatives, and en/zh sync including redactions.
  • AGENTS.md — a one-paragraph hard constraint for coding agents. RFC docs(rfc): complete topic memory generic Artifact APIs #1614's AI usage statement says it was drafted with Codex assistance, so a contributor-only guide would not have stopped a repeat.
  • docs/en/rfcs/README.md and docs/zh/rfcs/README.md — matching new sections with the same prohibitions, a rule that RFC header fields come only from 0000_example.md plus the optional Tracking Issue, and a git grep pre-submit check. Section order was verified identical in both locales.

Two consistency details:

  • I also redacted the customer name and the full internal URL from this PR description (they were quoted as evidence in the first version). The description now follows the rule the PR introduces, while the literal text remains available in the merged RFC and git history for maintainers who need it.
  • The rule files quote only the bare domain as a forbidden example, and the self-check regex matches real http(s):// URLs, so the check does not flag the rules themselves. Verified: the regex returns no match in this worktree.

This supersedes the earlier "Scope: only the two requirement-link lines are removed" note in this conversation. If maintainers prefer a narrower review, I can split the rule changes into a separate PR.

@AlexStocks

Copy link
Copy Markdown
Contributor Author

Post-merge correction — please read this before using the PR as a reference.

This PR was merged by hidb4ai at 2026-11-13T13:57:56Z with head 13a90a9e (merge commit 3c3ae568). Its merged content is exactly the two deleted RFC 1614 lines, and that fix is on master.

The prevention-rules commit (d9264c91, 47 insertions across CONTRIBUTING.md, AGENTS.md, and docs/{en,zh}/rfcs/README.md) was pushed to this branch after the merge, so it was not part of #2633 and is not on master. The "Prevention rules" section of this description and my earlier "Scope update" comment therefore describe work that landed elsewhere. Those rules are now submitted separately in #2634, based on the current master (b2fc0fdb).

I have added a note at the top of this description pointing to #2634. The earlier "Scope: only the two requirement-link lines are removed" item in this conversation was, in fact, the accurate description of what got merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.2 v1.5.2 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants