Keeping Pages as Written
Sometimes pages must keep their wording: an on-call procedure a team relies on, a policy, a runbook whose authors stay responsible for it. You still want them in your knowledge base — placed in your sections, in your packages, and checked against the code they describe. A requirement marked keep as written does exactly that: each page comes in with its title, sections, order and wording, and only passages that contradict the code are proposed for correction, for you to decide.
flowchart LR
orig["Original page"] --> art["Article: same title,<br/>sections and wording"]
art --> check{"Contradicts<br/>the code?"}
check -->|no| keep["Kept as written"]
check -->|yes| prop["Proposed revision<br/>shown in the review report"]
prop --> decide["You decide"]Ask for it
Register the collection as a document source — keeping its folders, and with its repository and version as origin when it keeps changing; see Published and Archived Collections. Then ask:
Bring the on-call pages from the ops wiki in as written. Keep titles, sections
and wording; check them against the order and billing services.The Agent records this on the requirement (preserve_original: true) and lists the repositories the pages describe as its supporting sources, so the writer can cite and check that code. Without them, the article can cite only the original page and contradictions cannot be found.
What the writer does
Each original page becomes one article with the same title, section headings and order of content, and the same wording. Every section cites the lines of the original it reproduces, and the code a passage describes. Wording, style or structure the code does not contradict is left alone.
Where a passage contradicts the code, or describes behavior the code no longer has, the writer puts the corrected text in the article and proposes the revision. Context reads the original passage itself, so the proposal shows exactly what was there. Each proposal says whether the original was wrong from the start or went stale because the code changed since, and names the code it rests on.
Deciding in the review report
The review report shows the proposals above the article: the original passage, the revised text, the reason and the evidence. For each one you choose:
| Choice | The article | The original |
|---|---|---|
| Accept and fix the original too | Keeps the revision | The correction is proposed to the page's owners; see Writing Back Upstream |
| Revise here only | Keeps the revision | Unchanged |
| Keep the original | Gets the original passage back, still citing the code | Unchanged |
The Agent applies your choice to the article, records it in the batch's changelog entry, and removes the proposal. Proposals exist only while the batch is under review; afterwards the article, its changelog and its Git history carry the decision.
In a fully managed run or a routine update, the Agent revises the knowledge base only and lists each revision in its report, so you can change any of them later.
When the code changes later
Because each kept passage still cites its code, a later code change reaches the article through the ordinary update flow. A contradiction you chose to keep is not raised again unless the code it cites has changed since your decision.
原样纳入页面
有些页面必须保留原来的写法,比如团队依赖的值班流程、某项制度,或仍由作者负责维护的运行手册。你仍希望把它们放进自己的知识库:归入你的目录、打进你的知识包,并和它们描述的代码核对。把需求设为原样纳入就能做到这一点:每个页面保留原有的标题、章节、顺序和措辞,只有与代码矛盾的段落才会提出修订建议,由你决定是否采纳。
flowchart LR
orig["原页面"] --> art["文章:标题、章节<br/>和措辞不变"]
art --> check{"与代码<br/>矛盾?"}
check -->|否| keep["原样保留"]
check -->|是| prop["修订建议<br/>显示在审核报告中"]
prop --> decide["由你决定"]如何提出
先把资料集登记为文档来源,并保留它的文件夹结构;如果资料还在持续更新,就把它的仓库和版本记为出处,参见按版本发布与即将归档的资料。然后告诉 Agent:
把运维 wiki 里的值班页面原样纳入。标题、章节和措辞都保持不变,
并用订单服务和计费服务的代码核对。Agent 会在需求上记下这一点(preserve_original: true),并把这些页面描述的代码仓库列为辅助来源,写作时才能引用和核对代码。如果不列出这些仓库,文章只能引用原页面,也就发现不了矛盾。
写作时会怎么处理
每个原页面对应一篇文章,标题、小节标题、内容顺序和措辞都与原页面一致。每个章节都会引用它复现的原文行,以及这段内容描述的代码。只要不和代码冲突,原有的措辞、风格和结构都不改动。
如果某段内容与代码矛盾,或描述的行为在代码里已经不存在,写作者会把更正后的文字写进文章,同时提出修订建议。原文段落由 Context 直接读取,因此建议里显示的就是原文的准确内容。每条建议都会注明原文是一开始就写错了,还是代码后来变了导致过时,并给出所依据的代码。
在审核报告中做决定
审核报告会把修订建议显示在文章上方,包括原文段落、修订后的文字、修订原因和依据。每条建议都可以选择:
| 选择 | 文章 | 原资料 |
|---|---|---|
| 采纳,并同步修正原资料 | 保留修订 | 向页面负责人提出更正,参见回写上游 |
| 只在这里修订 | 保留修订 | 不变 |
| 保留原文 | 恢复原文段落,仍引用代码 | 不变 |
Agent 会把你的选择落实到文章里,记入本批次的 changelog,然后删除这条建议。修订建议只在本批次审核期间存在;审核结束后,这个决定就体现在文章、changelog 和 Git 历史中。
在全托管运行或例行更新中,Agent 只修订知识库里的文章,并在报告中列出每一处修订,之后你仍可以随时调整。
代码之后发生变化
原样保留的段落仍然引用对应的代码,所以代码之后有变化时,会通过常规的更新流程反映到这篇文章。你已决定保留的矛盾不会再被提出,除非它引用的代码在你做决定之后又有了变化。