Skip to content

Writing Docs

This page records the public docs page contract for creating and updating formal docs pages without widening docs into a second source of operational truth.

When To Use This

Use this page before adding or changing a formal docs page in docs/.

Before You Start

Confirm the page describes the current source and deploy baseline: the orchestrator remains A2A-only, workers execute assigned atomic TaskNodes, and worker-private LIFT2 MCP transport is the current downstream execution seam. Old milestone storytelling belongs in history, not current guide body prose.

Steps

  1. Use the locked front matter keys: doc_status, truth_scope, and audience.
  2. Put reader-facing content before authority routing. The page should start with a natural lead paragraph under the H1, then the page-type narrative sections.
  3. Explain the concept before the file map. A reader should understand what the thing is, why it exists, and how the current implementation flows before they reach source paths.
  4. Add the page-type-specific sections required for the page type.
  5. Put Current Status after the reader-facing body on ordinary pages. ADR pages use their decision Status section instead.
  6. Put Source Of Truth and Related Pages near the end as the authority appendix. Add Out Of Scope only for high-risk pages where readers could confuse the page with a runbook, live-ops guide, public API contract, deploy authority, runtime boundary, or future-feature authority.
  7. Link or point to source-owned authority instead of copying command blocks, schemas, topology YAML, or runbook content into formal docs.
  8. Explain current product truth from source, docs, ADR, deploy, package, and public reference authorities rather than workflow notes.
  9. Avoid line-number source citations because line numbers drift; name the file, symbol, route, contract, or heading instead.
  10. Avoid copied runbook commands; guide and reference pages point to the owning runbook or tool config for exact syntax and sequencing.
  11. Keep diagrams tied to current Engineering Preview behavior. Diagrams must preserve A2A and worker-private MCP boundaries and should be paired with source pointers on the same page.
  12. Keep mission-level realtime transport terms out of current guide body prose unless the page is explicitly historical.
  13. Run strict MkDocs before treating the change as complete.
  14. For bilingual coverage, keep root pages and every Markdown page exposed in the public MkDocs navigation paired with a suffix .zh.md counterpart.
  15. Keep docs/llms.txt English-first. It is the canonical LLM-readable public index and is not exposed in the Chinese primary navigation.

Bilingual Maintenance

Core reader-facing docs are bilingual. Any change to a root docs page or a Markdown page under docs/design/*, docs/components/*, docs/guides/*, docs/reference/*, or docs/adr/* that is exposed in public MkDocs navigation requires the matching suffix .zh.md counterpart to be created or updated in the same change.

docs/llms.txt remains English-first. Bilingual pages may link to it when they need the canonical LLM-readable public index, but they should not create a second LLM index as a parallel authority.

Use docs/terminology.zh.md as the bilingual terminology contract. Chinese-first prose should translate ordinary English phrases into natural Simplified Chinese while preserving source-visible tokens such as orchestrator, worker, TaskNode, task_graph, A2A, Agent Card, worker-private MCP, LIFT2 MCP, mcp_config_path, mcp_skill_implementations, mcp_servers, output_mapping, OMEGA, mission, operator, artifact, and read model where replacing them would hide source traceability.

The strict MkDocs gate is owned by mkdocs.yml, pyproject.toml, and uv.lock. This guide names that gate without duplicating its command syntax.

Verification

Run the strict MkDocs gate from the repo root after docs changes. Fix reported navigation, page, or link warnings before committing docs work. For docs that touch validation or runbook routing, also check that the page does not introduce workflow artifact leakage, line-number source citations, copied runbook commands, public leaks of private MCP details, or unlabeled historical runtime terms. For bilingual docs changes, keep English and Chinese page semantics aligned in the same change.

Exact Command Authority

The exact strict MkDocs command is owned by mkdocs.yml, pyproject.toml, and uv.lock. This page names that gate without duplicating command syntax.

Page Contract

Every formal docs page starts with simple retrieval-oriented front matter:

Use only doc_status, truth_scope, and audience as the page metadata keys. The allowed values are:

Key Allowed values
doc_status shipped, draft, historical
truth_scope current, historical, deferred
audience human, llm, both

doc_status: shipped is a page publication status. It means the page is published and stable enough for the public docs site; it does not assert product GA status, final release status, or milestone completion. Use body prose such as Engineering Preview when a page needs to state the implementation release stage.

Do not use the reserved MkDocs Material status metadata key for ordinary shipped pages. It is a navigation badge mechanism, not a general documentation status field.

Shared Page Shape

Surface Required Use
Lead paragraph Names page purpose, audience, and concept directly under the H1
Current Status States shipped, draft, or historical status after the reader-facing body
Source Of Truth Points to the owning source authority after the reader-facing sections
Related Pages Gives durable navigation to adjacent docs

Do not use What This Page Is as a normal heading. Use a natural lead paragraph instead. Use this order for ordinary pages: reader-facing sections first, then Current Status, Source Of Truth, and Related Pages. Use Out Of Scope only when the page needs a specific boundary against runbook, live-ops, public API, deploy, runtime, or future-feature misreadings.

Page-Type Sections

Page Type Additional Required Sections
Design Current Design Truth, Data And Control Flow, Authority Boundaries, Verification Surface
Component Concept Model, Implementation Flow, Responsibility, Owns, Does Not Own, Key Source Paths
Guide When To Use This, Before You Start, Steps, Verification, Exact Command Authority
Reference Index, Canonical Files, Stability Notes, Validation
ADR Status, Context, Decision, Consequences, Preserved In

Diagram Rendering

Use Material for MkDocs native Mermaid support for diagrams. Keep the pymdownx.superfences Mermaid fence in mkdocs.yml and rely on the Material privacy plugin to self-host the Mermaid runtime in the generated site. Do not add page-local JavaScript or custom diagram loaders for ordinary docs pages.

Current Status

Shipped docs-authoring guidance for the current architecture documentation set. Use it when adding or changing formal docs so the site remains strict-buildable, source-anchored, and clear about the current worker-private MCP implementation.

Source Of Truth

mkdocs.yml, pyproject.toml, and uv.lock own the strict MkDocs build surface. Source files, deploy assets, contracts, ADRs, private MCP config files, and package README files own the truth that docs explain and route to. This page owns the public docs page shape.

Page Relationship
docs/reference/commands.md Command owner map
docs/reference/config-surfaces.md Config owner map
docs/repo-map.md Repository map
docs/index.md Formal docs entrypoint