Skip to content

docs(readme): align README with the shipped feature set - #2030

Merged
slin1237 merged 1 commit into
mainfrom
docs/readme-accuracy
Aug 1, 2026
Merged

docs(readme): align README with the shipped feature set#2030
slin1237 merged 1 commit into
mainfrom
docs/readme-accuracy

Conversation

@slin1237

@slin1237 slin1237 commented Aug 1, 2026

Copy link
Copy Markdown
Member

Description

Problem

The README had drifted from the codebase in both directions — overstating some things (unverifiable performance claims, a self-contradicting provider story) and underselling others (roughly half the shipped API surface was unmentioned). Doc links pointed at raw markdown blobs in the smg-docs repo instead of the live site, and two badges pointed at the wrong places. The Supported Backends table also rendered two unrelated lists side by side, which read as row pairings ("SGLang ↔ OpenAI").

Solution

Full accuracy pass, verified claim-by-claim against the code (four parallel code audits; file:line evidence for each item below), plus a reshaped backends table.

Corrected (was overstated or wrong):

  • "8 Routing Policies" → 10 (passthrough, least_load were missing; policy factory in model_gateway/src/policies/factory.rs)
  • "40+ Prometheus metrics" → 90+ (~91 registered across gateway, scheduler, runtime, mesh)
  • Dropped "sub-millisecond routing decisions" — no benchmark or metric in the repo supports it
  • "zero-copy tokenization" → "cached tokenization with zero-copy cache hits" (the L0/L1 tokenizer cache shares Arc'd token IDs; encoding itself is not zero-copy)
  • "Multi-tenant rate limiting with OIDC" unbundled: OIDC gates the control plane; what's live in the data path is priority admission scheduling with per-tenant controls + token-bucket rate limiting. (Per-token tenant quotas exist in code but aren't wired into the request path yet, so they're not claimed.)
  • MCP execution scoped to where it actually runs: Responses + Anthropic Messages (not Chat Completions)

Supported Backends reshaped — one row per category so the two lists no longer read as pairings:

  • Engines (ordered): vLLM · SGLang · TokenSpeed · TensorRT-LLM · MLX (new) · any OpenAI-compatible server (Ollama reclassified here)
  • Providers: the dedicated adapters (OpenAI, Anthropic, Gemini, xAI — new) followed by OCI Generative AI, AWS Bedrock, and Azure OpenAI (reached via their OpenAI-compatible modes through the passthrough) and the generic any-OpenAI-compatible tail (Groq, Together, …)

Added (shipped but undocumented):

  • API coverage: Rerank, Classify, Conversations API, Gemini Interactions, Realtime (WebSocket + WebRTC + session endpoints), audio transcription, tokenize/detokenize
  • Features rows: Kubernetes Discovery (native watchers, per-role PD/EPD selectors, router peer discovery) and Model Parsers (21 tool-call + 16 reasoning parsers, 28 auto-detection patterns)
  • PD/EPD disaggregation + DP-aware routing in the gRPC pipeline row
  • Quick Start: Helm install (oci://ghcr.io/smg-project/charts/smg) and the protoc prerequisite for cargo install smg

Links & badges:

  • All docs links moved from github.com/smg-project/smg-docs/blob/... to the live site (https://lightseek.org/smg/...) — every target curl-verified 200
  • Docs badge retargeted from the superseded MkDocs GitHub Pages site to lightseek.org/smg
  • Docker badge now points at Docker Hub (lightseekorg/smg) with a live version shield — stable tags are only published there; ghcr.io/lightseekorg gets nightlies only

Deliberately not claimed: ZMQ connection mode (crate + detection exist, but the request path is still gRPC-only per routers/grpc/backend_client.rs).

Test Plan

  • Every external URL in the new README returns 200 (curl-verified), including the new live-site doc links and the Docker Hub shield
  • Quick Start flags verified against CliArgs (launch subcommand, --worker-urls, --policy cache_aware, mesh flags, default port 30000)
  • Feature counts verified against factories: 10 policies, 21 tool parsers, 16 reasoning parsers, ~91 metrics
  • No Rust changes
Checklist
  • cargo +nightly fmt passes
  • cargo clippy --all-targets --all-features -- -D warnings passes (not runnable on this machine — missing OpenCV system deps; no Rust touched, CI is authoritative)
  • (Optional) Documentation updated
  • (Optional) Please join us on Slack #sig-smg to discuss, review, and merge PRs

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 1, 2026
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 78a5e684-805d-4a22-9c6f-e26535134717

📥 Commits

Reviewing files that changed from the base of the PR and between 8035cc6 and c13c327.

📒 Files selected for processing (1)
  • README.md

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Updated project badges, description, feature coverage, and API information.
    • Added Docker Hub and Helm installation instructions.
    • Clarified Rust prerequisites and expanded supported providers and engines.
    • Documented routing, Kubernetes discovery, model parsers, gRPC behavior, MCP, storage, plugins, and resilience features.
    • Refreshed documentation, contribution, and project resource links.

Walkthrough

The README now describes expanded gateway capabilities, APIs, routing policies, supported backends, installation methods, prerequisites, documentation, and contribution resources.

Changes

README documentation refresh

Layer / File(s) Summary
Product overview and capability coverage
README.md
Updated badges and the gateway description. Expanded API, routing, backend, observability, protocol, storage, plugin, and resilience details.
Installation and documentation resources
README.md
Added Helm installation instructions, clarified the protoc prerequisite, and updated documentation and contribution links.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: catherinesue, key4ng

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes updating the README to match the shipped feature set.
Description check ✅ Passed The description directly explains the README accuracy updates, added documentation, corrected claims, and verification steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/readme-accuracy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 37: Update the Full Observability entry in README.md to use the shipped
Prometheus metric count that matches the hosted documentation, changing the
inaccurate “90+” claim to “40+” unless the documentation and metric inventory
are updated together.
- Line 101: Reconcile the parser counts shown in the README’s Model Parsers
entry with the authoritative hosted gRPC parser inventory. Update the README
counts or the hosted inventory so both list the same shipped tool-call and
reasoning parser totals, while preserving the existing model-detection
description.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d97c1934-d1a7-4ece-8de4-3cce6c6a3cc6

📥 Commits

Reviewing files that changed from the base of the PR and between 40ec978 and 8035cc6.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
Comment thread README.md
@slin1237
slin1237 force-pushed the docs/readme-accuracy branch from 8035cc6 to 876b8c9 Compare August 1, 2026 23:21
Every claim now traces to code or the supported product surface:

- 8 -> 10 routing policies (adds passthrough, least_load)
- 40+ -> 90+ Prometheus metrics; OTel W3C trace propagation into
  engines over HTTP and gRPC
- Drop unverifiable claims: sub-millisecond routing decisions,
  zero-copy tokenization (now: cached tokenization with zero-copy
  cache hits)
- Supported Backends reshaped to one row per category so the two
  lists no longer read as row pairings; engines gain MLX, Ollama
  reclassified as an OpenAI-compatible server; providers list the
  dedicated adapters (OpenAI, Anthropic, Gemini, xAI) followed by
  OCI Generative AI, AWS Bedrock, and Azure OpenAI (reached via
  their OpenAI-compatible modes) and the generic passthrough
- API coverage now lists the shipped surface: Rerank, Classify,
  Conversations, Gemini Interactions, Realtime (WebSocket + WebRTC),
  audio transcription, tokenize/detokenize; MCP execution scoped to
  Responses + Messages where it actually runs
- New Why/Features rows: priority admission scheduling, PD/EPD
  disaggregation with DP-aware routing, K8s discovery, 21 tool +
  16 reasoning parsers; OIDC correctly scoped to the control plane
- Quick Start: add Helm (oci://ghcr.io/smg-project/charts/smg) and
  the protoc prerequisite for cargo install
- All docs links moved from smg-docs GitHub blobs to the live site
  (lightseek.org/smg); docs badge retargeted from the dead MkDocs
  GitHub Pages site; Docker badge now points at Docker Hub where
  stable tags are actually published

Signed-off-by: Simo Lin <25425177+slin1237@users.noreply.github.com>
@slin1237
slin1237 force-pushed the docs/readme-accuracy branch from 876b8c9 to c13c327 Compare August 1, 2026 23:21
@slin1237
slin1237 merged commit c61d761 into main Aug 1, 2026
6 of 7 checks passed
@slin1237
slin1237 deleted the docs/readme-accuracy branch August 1, 2026 23:22
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant