Skip to content

[Docs] [templates] Reorganize module design documentation - #5139

Merged
hsliuustc0106 merged 3 commits into
mainfrom
codex/module-design-doc-layout
Aug 8, 2026
Merged

hsliuustc0106 merged 3 commits into
mainfrom
codex/module-design-doc-layout

Conversation

@hsliuustc0106

@hsliuustc0106 hsliuustc0106 commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR implements the module-oriented design documentation layout proposed in #5137 against current main.

  • reorganizes the Design navigation around 21 active module pages
  • adds focused draft contracts for:
    • engine_orchestration.md
    • stage_runtime.md
    • error_contracts.md
    • entrypoints.md
    • input_output_modality_contracts.md
  • records technical owners, independent required reviewers, primary and related code paths, validation paths, architecture status, ownership boundaries, invariant namespaces, and promotion gates
  • moves the legacy AR, AsyncOmni, DiT, and entrypoint pages to docs/design/module/archive/ and removes them from active navigation; no redirect stubs are added
  • keeps vllm_omni_config.md explicitly deferred and draft pending configuration refactoring, without assigning a stable invariant namespace

All module contracts remain draft. Open refactors and RFCs are cited as in-flight context, not presented as current or normative behavior.

Confirmed technical owners

Contract Technical owners
Engine orchestration @tzhouam, @fake0fan
Stage runtime @tzhouam, @fake0fan
Error contracts @alex-jw-brooks, @NickCao
Entrypoints @alex-jw-brooks, @linyueqian
Input/output and modality contracts @Sy0307, @amy-why-3459

Technical owners are intentionally separate from each contract's independent required reviewers.

Review guide

Please focus review on:

  1. whether the five ownership boundaries match the current codebase
  2. whether the primary and validation paths identify the correct implementation and enforcement points
  3. whether the invariant namespaces and promotion gates are suitable for future normative use
  4. whether the four archived pages have been fully replaced by the active module structure
  5. whether configuration documentation should remain deferred until its refactoring settles

Boundary follow-ups remain tracked in #5227, #5441, #5453, and #5570.

Impact and non-goals

Documentation only. This PR does not change runtime behavior, public APIs, deployment configuration, or error behavior. It does not make in-flight refactors normative and does not introduce compatibility redirects for archived pages.

Validation

  • synchronized with current origin/main through a normal merge; no history rewrite
  • mkdocs build --strict
  • applicable pre-commit checks for YAML, EOF, line endings, whitespace, and typos
  • contract validation for required frontmatter and exact invariant namespaces
  • owner/reviewer separation validation
  • referenced source, test, exception, and related-path validation
  • internal Markdown link and active-navigation validation
  • archive exclusion from active navigation
  • git diff --check

All checks passed. Runtime and device tests were not run because the change is documentation-only.

Related to #5137.

Signed-off-by: hsliuustc0106 <liuhongsheng4@huawei.com>
Signed-off-by: hsliuustc0106 <liuhongsheng4@huawei.com>
@hsliuustc0106 hsliuustc0106 added the documentation Improvements or additions to documentation label Jul 16, 2026
@hsliuustc0106 hsliuustc0106 added the refactor refactoring for better code scalability and quality label Jul 17, 2026 — with ChatGPT Codex Connector
@hsliuustc0106
hsliuustc0106 marked this pull request as ready for review July 18, 2026 09:23

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69766960f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/.nav.yml
- design/module/dit_module.md
- design/module/entrypoint_module.md
- design/module/async_omni_architecture.md
- Entrypoints: design/module/entrypoints.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve redirects for renamed module docs

This rename deletes the previously published module pages (entrypoint_module.md, ar_module.md, dit_module.md, and async_omni_architecture.md) while moving navigation to new filenames, and I found no redirect/alias configuration in mkdocs.yml or docs/. After the next docs deploy, existing links such as /design/module/entrypoint_module/ will 404 even though the content was only reorganized; please keep lightweight compatibility pages or add redirects for the old URLs before removing them.

Useful? React with 👍 / 👎.

@Gaohan123 Gaohan123 added this to the v0.26.0 milestone Jul 18, 2026

@Gaohan123 Gaohan123 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall LGTM. And there are several modules uncovered:

  1. hardware platforms
  2. tests

Comment thread docs/design/module/entrypoints.md Outdated
**Rule:** Public protocol values MUST be validated and converted to internal
request contracts before engine submission.

### ENTRY-INV-003: Streaming preserves request identity

@alex-jw-brooks alex-jw-brooks Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe we should add Entrypoints should not contain model specific logic outside of common abstractions here as well. Too much model specific code in the entrypoints makes them harder to read and can cause the behavior to be inconsistent, both across models in a given entrypoints, and across the online / offline paths for similar calls.

For example serving speech has tons of model specific code (example 1, example 2, etc). Isolating the model specific code in good abstractions that can called generically is more ideal since it makes the behaviors easier to maintain, and also lets us add patterns for good unit tests instead of having to e2e everything

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I agree. This PR scope only provides the templates for different modules. After refactoring, the module maintainers will be responsible for providing details

Comment thread docs/design/module/vllm_omni_config.md Outdated
**Rule:** Defaults, files, environment variables, and CLI overrides MUST have a
documented and deterministic precedence.

### CONFIG-INV-003: Runtime modules consume validated configuration

@alex-jw-brooks alex-jw-brooks Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should also consider something like environment variables should be written to config objects at initialization time.

Especially with the direction we are going in the the Omni config, the object should be the source of truth for the correct value after everything is parsed. for example, if we read a value into the config at init time, and then write + read to the corresponding env var at inference time instead of using the config object, it will cause bad behaviors.

This would also help ensure that env vars that are missing from configs are added where needed

@hsliuustc0106 hsliuustc0106 changed the title [Docs] Reorganize module design documentation [Docs] [templates] Reorganize module design documentation Jul 20, 2026
@hsliuustc0106

Copy link
Copy Markdown
Collaborator Author

Overall LGTM. And there are several modules uncovered:

  1. hardware platforms
  2. tests

tests will be listed in an independent folder

@@ -0,0 +1,48 @@
---

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@Gaohan123 this is designed for hardware

@Gaohan123 Gaohan123 modified the milestones: v0.26.0, v0.28.0 Aug 4, 2026
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
@hsliuustc0106
hsliuustc0106 merged commit fd0e921 into main Aug 8, 2026
4 checks passed
khairulkabir1661 pushed a commit to khairulkabir1661/vllm-omni that referenced this pull request Sep 25, 2026
…ct#5139)

Signed-off-by: hsliuustc0106 <liuhongsheng4@huawei.com>
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation refactor refactoring for better code scalability and quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants