Repository navigation
[docs] Add Kubernetes and KubeRay conventions to the style guide - #65239
Conversation
Ray on Kubernetes docs describe Kubernetes API objects alongside Ray concepts, and the two vocabularies collide. Deployment, Job, and Service each name both a Kubernetes object and a distinct Ray concept, so capitalization is the only thing that tells them apart, and the style guide didn't say which form to use where. Adds a "Writing Ray on Kubernetes and KubeRay docs" section covering both the user-facing pages under doc/source/cluster/kubernetes/ and the contributor-facing pages in the KubeRay repo: - A precedence order that defers to the Kubernetes documentation style guide for Kubernetes casing and terminology only, with this guide winning everywhere else. - The UpperCamelCase rule for Kubernetes API objects, and the Kubernetes convention of leaving them unbackticked in prose so possessives read normally. - A disambiguation rule for Deployment, Job, and Service. - The custom-resource-versus-concept split: RayCluster creates a Ray cluster. Also covers "head Pod" versus "head node", which is ambiguous on Kubernetes, where a node is a machine. - A lookup table of specially-cased terms so contributors can check a form instead of deriving it. The term list comes from a casing scan of 79 user-facing pages in this repo, 12 contributor pages in ray-project/kuberay, and 128 pages of upstream kubernetes/website. The scan found that these docs already follow the Kubernetes casing rule closely: upstream Kubernetes capitalizes "Pod" in 71% of prose uses and the Ray-side KubeRay docs do so in 70%. The apparent divergences on Deployment, Job, and Service are principled rather than drift, since the lowercase uses are Ray Serve deployments and Ray jobs. So this documents the rule the docs mostly already follow. It doesn't propose a sweep. Recording the rules is the prerequisite for fixing the one genuine inconsistency the scan found, "Ray Autoscaler" (44 uses) against "Ray autoscaler" (35), which a follow-up can clean up mechanically. No behavior changes. Documentation only. Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces a new style guide section for writing Ray on Kubernetes and KubeRay documentation, covering capitalization, disambiguation of shared terms, and a table of specially-cased terms. The review feedback suggests several refinements to the terms table to improve clarity and consistency, including correcting the incorrect casing examples for custom resources, clarifying the abbreviation guidance for GCS fault tolerance, separating the concepts of custom resources and CustomResourceDefinitions, and adding missing lowercase examples for third-party tools.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Douglas Strodtman <[email protected]>
The precedence paragraph named Hugo without saying what it is, named the static site generator and the site build as if they were two separate things, and stated the carve-out without an example a reader could check. Replace it with the front-matter title casing case: Kubernetes requires title case there, which follows from taking the page title out of a front-matter field. Ray takes it from the H1, so the rule has nothing to attach to. That's concrete and a reader can verify it. Signed-off-by: Douglas Strodtman <[email protected]>
Pairs enforcement with the style rules added earlier in this PR, following the pattern already used for the Ray Data docs. Nothing is enforced yet: the Vale pre-commit hook stays scoped to doc/source/data/, so this adds configuration and a rule file without changing what CI checks. - config/vocabularies/KubeRay/accept.txt: KubeRay custom resources, the Kubernetes and ecosystem API objects these pages reference, and project names. Skips terms the General vocabulary already accepts, such as Kubernetes, kubectl, CRD, and namespace. - KubeRay/Terms.yml: a substitution rule for the casing forms the new style-guide section settles, at warning level. - .vale.ini: registers the vocabulary and scopes the style to doc/source/cluster/kubernetes/, so contributors can run Vale on those pages by hand before the hook is widened. Verified with Vale 3.12.0. The path scoping works: the KubeRay rules fire on files under doc/source/cluster/kubernetes/ and stay silent on the same content at the repo root. Across those pages the rule reports 31 alerts, 20 of them "head pod" against "head Pod", which lines up with the casing scan behind this PR. Confirmed no regression on the path Vale does gate. Alert count on doc/source/data/ goes from 174 to 173, deterministic across repeated runs in both states, and no new alerts appear. A Vocab list is global, so it can only widen what's accepted. One rule is deliberately commented out. "Ray Autoscaler" against "Ray autoscaler" is the highest-volume casing inconsistency in these docs, but Vale can't catch it: a Vocab accept entry shadows its token for every rule, case-insensitively, and autoscaler is accepted in the Data vocabulary. A control term on the same line did fire, which isolates the cause. Enabling the swap means dropping autoscaler from the Data vocabulary, which would raise new spelling alerts on the gated path, so it belongs in a separate change. Left in place, commented, with the reason, rather than shipping a rule that silently never fires. Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit c945644. Configure here.
Bugbot caught that the previous commit gave up too early. The "Ray Autoscaler" swap was commented out on the grounds that a Vocab accept entry shadows its token for every rule, which is true, but the `vocab: false` field on a rule opts out of that filtering. Setting it enables the swap without touching the Data vocabulary, so the tradeoff described in that commit message doesn't apply. That rule matters most: "Ray Autoscaler" against "Ray autoscaler" is the highest-volume casing inconsistency in these docs. Vale now reports 42 occurrences, matching the casing scan's count for these pages exactly. The rule set now reports 75 alerts across doc/source/cluster/kubernetes/. The gated path is unchanged, still 173 alerts on doc/source/data/, since this style is scoped to the Kubernetes tree. Kept the shadowing explanation as a comment on the `vocab: false` line, because the failure mode is silent: a swap whose target sits in an accept list never fires and nothing warns you. Also from review: - The custom resource row listed "ray cluster" as a wrong way to write the resource. It's a wrong way to write the concept. Moved it to the concept row and used flat-case forms for the resource row. - "Spell it out, then use the full phrase" was ambiguous for GCS fault tolerance, since GCS itself stays an acronym. Say to spell out FT. - Dropped the CustomResourceDefinition sentence from the custom resource row, which conflated a custom resource with its definition. The API object is already covered above. - Added the remaining flat-case custom resource forms and the lowercase concept forms to the Vale rule, to match the table. Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
LGTM
- Confirm the custom-resource split. The section documents RayCluster (the resource) versus "Ray cluster" (the running thing it produces), currently 335 against 106 uses in this repo. I read it as intentional and matching the Kubernetes API-object rule. Worth confirming rather than normalizing to one form.
This makes sense to me because RayCluster is a custom resource definition (CRD) in KubeRay, while a "Ray cluster" refers to the runtime cluster created from a RayCluster resource. I think keeping the distinction is useful and consistent with Kubernetes terminology.
- "head Pod" versus "head node." The section prefers "head Pod" for the Kubernetes-hosted case, since a node is a machine on Kubernetes. doc/source/cluster/kubernetes/index.md currently says "a head node pod and a collection of worker node pods," which stacks both vocabularies. Reasonable, or is "head node" worth keeping for continuity with Ray's core architecture docs?
I think that when referring to a Ray cluster running on Kubernetes, we should consistently use "head Pod" rather than "head node".
- Feature graduation phases. Kubernetes uses start case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on pages discussing a Kubernetes feature's stage and a Ray feature's stage in one paragraph. I left it out of the section rather than pick. Which wins?
I don't have a preference here
| ServiceAccount(s)? | ||
| ServiceMonitor(s)? | ||
| WorkloadPriorityClass(es)? | ||
| YuniKorn |
There was a problem hiding this comment.
KubeRay currently supports Kueue, YuniKorn, Volcano, KAI Scheduler and scheduler-plugins, do we also need to include these in here?
There was a problem hiding this comment.
Yes, and there's a functional reason beyond completeness that I'd missed when I wrote the list. Accept-list entries don't just suppress spelling alerts, they also drive Vale.Terms casing enforcement. So omitting a name means Vale silently won't catch it miscased.
Verified with Vale 3.12.0 on this branch, against doc/source/cluster/kubernetes/:
| Term | Uses in these docs | Current Vale behavior |
|---|---|---|
| Volcano | 62 | volcano lowercase produces no alert |
| KAI Scheduler | 17 | "Kai" trips a Vale.Spelling false positive |
| scheduler-plugins | 11 | no alert either way |
Adding all three. I'm also dropping Kueue from this list, since .vale/styles/config/vocabularies/General/accept.txt already accepts it and I'd claimed this list skips General's duplicates.
One question so the entry matches your repo rather than my guess: is KAI Scheduler as two words the form you'd want, or do you write KAI-scheduler anywhere? The upstream repo is KAI-scheduler, and I'd rather take the maintainers' preferred prose form than pick one.
There was a problem hiding this comment.
Thanks, KAI Scheduler it is. Pushed in ea103c5.
Added Volcano, KAI Scheduler, and scheduler-plugins, and dropped Kueue since General/accept.txt already has it. Verified kueue lowercase still alerts after the removal, so General is picking it up.
The entries earn their keep unevenly, which is worth recording. One surfaces a real defect: k8s-ecosystem/kai-scheduler.md:166 says "KAI scheduler deployment", lowercase s, and Vale.Terms now flags it. The other two are preventive, since Volcano and scheduler-plugins prose casing is already correct throughout. My earlier note that volcano lowercase "produces no alert" was about missing coverage rather than existing defects, and I should have been clearer about the difference.
One thing I got wrong in that comment: the upstream repo is NVIDIA/KAI-Scheduler, not the URL I cited. The KAI-Scheduler and kai-scheduler spellings in these docs are all inside links, image names, and namespaces, and Vale skips those, so the prose entry doesn't disturb them.
The kai-scheduler.md:166 fix is a prose change and this PR is deliberately rules and config only, so I've left it out. Happy to fix it wherever you'd prefer: its own small PR, or folded into #65423 alongside the other casing corrections there.
There was a problem hiding this comment.
Folded into #65423 as 2c8ae60, rather than a standalone one-line PR, since AGENTS.md steers away from those.
Only line 166 needed it. I checked the other hyphenated spellings in that file and they're all correct where they are: links to NVIDIA/KAI-Scheduler, the Helm release name, and the <KAI_SCHEDULER_VERSION> placeholder. None of those are prose, so the vocabulary entry leaves them alone.
| ### Capitalize Kubernetes API objects | ||
|
|
||
| Write Kubernetes API object names in UpperCamelCase, matching the object as the API defines it: Pod, ConfigMap, Secret, Ingress, ServiceAccount, DaemonSet, CustomResourceDefinition. Don't wrap them in backticks in prose, so possessives read normally: "the CustomResourceDefinition's `.spec.group` field." Reserve backticks for field paths, values, and commands. |
There was a problem hiding this comment.
In lines 68 it says:
Capitalize Ray and its libraries: Ray, Ray Core, Ray Data, Ray Serve, Ray Train, Ray Tune, RLlib. Capitalize other proper nouns: Python, Sphinx, AWS, GCP, Kubernetes. Lowercase generic nouns even when they name a Ray concept: task, actor, object, cluster, worker, node, placement group.
And here says:
Write Kubernetes API object names in UpperCamelCase, matching the object as the API defines it: Pod, ConfigMap, Secret, Ingress, ServiceAccount, DaemonSet, CustomResourceDefinition.
since Pod is a Kubernetes concept rather than a Ray concept, should we use Ray Pod intead of Ray pod, right?
There was a problem hiding this comment.
You've found a real gap. The two rules do conflict as written, and the section should resolve it explicitly rather than leaving a reader to adjudicate: line 68's "lowercase generic nouns" rule is about Ray concepts, and Pod is a Kubernetes API object, so the API-object rule wins. That exemption is currently implicit.
Before writing the rule I went looking for how many uses it would govern, and the research pointed somewhere I didn't expect. I think the right answer is neither "Ray Pod" nor "Ray pod", but retiring the compound. Laying out the evidence since it's a bigger claim than your question asked for, and I'd rather have your read on it than assert it.
There's no existing convention to preserve. 89 occurrences in doc/source, 86 of them under cluster/kubernetes/, across 29 files. Restricted to the 55 prose lines, casing splits four ways almost evenly:
| Form | Occurrences |
|---|---|
| Ray Pods | 20 |
| Ray pods | 16 |
| Ray pod | 16 |
| Ray Pod | 15 |
Capitalized Pod leads 35 to 32. For contrast, the "Ray Autoscaler" defect this PR does settle runs 44 to 35 on the same prose-only basis, and even that is the more decisive margin of the two.
A Pod isn't a Ray node, it's a host that contains one. Kubernetes defines a Pod as an "application-specific logical host" holding one or more containers. KubeRay indexes exactly one Ray container per Pod through utils.RayContainerIndex, and it routinely places non-Ray containers alongside it: the autoscaler sidecar, the history-server collector sidecar via CollectorOptions, the RayJob submitter that SidecarMode "injects into the Ray head Pod", and the Fluent Bit sidecars that persist-kuberay-custom-resource-logs.md documents. So the Pod is a strict superset of the Ray node, and "Ray Pod" overstates what it names. It's the same category error as "head node pod", which this section already tells writers to avoid, one level up.
Worth noting Kubernetes does have legitimate qualified Pods, but the qualifier describes lifecycle rather than payload. Static Pod and mirror Pod are about who created the Pod and whether the API server controls it. Kubernetes documentation never writes "Deployment Pods" or "Job Pods".
"Pod" is already taken in these docs, by something that isn't a Kubernetes object. A TPU Pod is a group of interconnected TPU chips. user-guides/tpu.md writes "The name of the TPU Pod or slice" and "The TPU pod type" three lines apart. ray.util.tpu.get_current_pod_name() is a public API whose docstring reads "Return the name of the TPU pod that the worker is a part of", so even the API surface uses a bare "pod" to mean a TPU Pod. And ray-observability/user-guides/jax-tpu-profiling.md already produces "a worker TPU pod" meaning a Kubernetes Pod that runs a TPU worker, which is the opposite of a TPU Pod. Standardizing on a capitalized Ray Pod would put it next to a capitalized TPU Pod on the same pages, distinguished only by the preceding word.
The mapping is already documented. user-guides/k8s-autoscaler.md says "each Ray node is run as a Kubernetes Pod", and configuring-autoscaling.md restates it as "Ray nodes (i.e., Ray Pods)". Two defined terms already cover what the compound names.
What the docs and the ecosystem actually use. "head Pod" and "worker Pod" outnumber "Ray pod" 284 to 86 under cluster/kubernetes/. In the KubeRay repo the term survives almost entirely in Go and YAML comments, 46 of 54 uses, and no page under kuberay/docs/ uses it outside the generated API reference. Google's Ray on GKE docs use "head Pod", "worker Pods", "Ray head and Ray worker Pods", and "Kubernetes Pods", and never "Ray Pod".
Being fair to the other side, the compound does have a real referent. KubeRay labels every Pod in a cluster with ray.io/cluster, so "the Pods of a RayCluster" is a genuine set, and it's the only general form the docs have when you mean head or worker without specifying. That pressure turns out to be narrower than it looks: only 4 of the 29 files using "Ray pod" also name another kind of Pod, such as the operator or Redis Pod. GKE's "Ray head and worker Pods" covers those cases without inventing a compound.
So the rule I'd propose:
Write "head Pod" and "worker Pod" for the Pods of a Ray cluster on Kubernetes. When you need the general case, write "the RayCluster's Pods" or "Ray head and worker Pods". Don't write "Ray Pod". A Pod is a Kubernetes host that contains a Ray node along with any sidecars, so naming it after Ray misstates what it is, and "TPU Pod" already occupies the qualified-Pod form in these docs. Use "Ray node" when you mean the Ray-level abstraction, such as what the autoscaler adds and removes.
Two scope notes. This argument is about prose only. The Go and YAML comments in kuberay identify which Pods the operator manages, which is a reasonable thing for a code comment to do, and kuberay/docs/reference/api.md is generated from those comments, so a prose rule can't reach it either way. And the ~89 existing uses in this repo aren't part of this PR. Recording the rule is the prerequisite for that cleanup, not the cleanup itself, same as the "Ray autoscaler" situation.
How would you like to handle it? I see three options and don't want to pick unilaterally on a term this widespread:
- Add the rule to this PR as written above, and do the mechanical cleanup in a follow-up.
- Add only the narrow answer to your original question, that Pod is capitalized as a Kubernetes API object, and take the retirement proposal to a separate issue where it gets its own discussion.
- Something I've missed, if you think the compound is defensible on precision grounds.
I've also asked our Kubernetes-focused engineers to try to defend the term, on the grounds that a defense has to rest on precision rather than brevity, and I'll report back here if any of them can. If we do land on retiring it, I'll open an issue on kuberay for the handful of authored prose uses there rather than assuming the same call applies to your repo.
| 'head pod': head Pod | ||
| 'worker pod': worker Pod |
There was a problem hiding this comment.
| 'head pod': head Pod | |
| 'worker pod': worker Pod | |
| 'head pod': head Pod | |
| 'head pods': head Pods | |
| 'worker pod': worker Pod | |
| 'worker pods': worker Pods |
There are some plural forms in the docs. Should we include them as well?
ray/doc/source/cluster/kubernetes/k8s-ecosystem/prometheus-grafana.md
Lines 125 to 127 in 85cd8fd
There was a problem hiding this comment.
Confirmed and taking this suggestion. I checked the gap rather than assuming it: Vale wraps substitution targets in word boundaries, so 'head pod' can't match inside head pods, and the plurals go completely unflagged today. Under doc/source/cluster/kubernetes/ that's 16 uses of worker pods and 1 of head pods currently invisible to the rule.
One case I'm deliberately leaving out, so it reads as a decision rather than an oversight. Head Pod and Worker Pods also don't fire, because ignorecase: false. That's on purpose: a sentence-initial "Head Pod" is legitimately capitalized, and a substitution rule can't tell sentence start from mid-sentence. Flagging those would generate false positives on correct prose.
Related thing I found while testing your suggestion. Six of the swaps in this file duplicate casing that Vale.Terms already enforces from the accept list, so a single token can alert up to three times. Kuberay currently fires KubeRay.Terms, Vale.Terms, and Google.WordList at the same offset. Raycluster and Yunikorn fire twice each. I'll drop Kuberay, Yunikorn, Raycluster, Rayjob, Rayservice, and Raycronjob from the swap list. The accept list keeps the coverage, and the alert output gets less noisy.
There was a problem hiding this comment.
Applied in ea103c5, along with the redundant-swap cleanup.
Your plural suggestion went in verbatim and picks up 14 previously invisible prose uses, 13 worker pods and 1 head pods. The raw grep count is higher at 17, and the difference is fenced code blocks that Vale skips by design.
On the six redundant swaps, I verified rather than assumed: after removing Kuberay, Yunikorn, Raycluster, Rayjob, Rayservice, and Raycronjob, all six still alert through Vale.Terms from the accept list. Kuberay also still gets Google.WordList. So coverage is unchanged and a single token no longer alerts three times. The two-word lowercase forms such as ray cluster and ray job stay in the swap list, since those match no accept entry and would otherwise go unchecked.
Net effect on these pages: KubeRay.Terms goes from 146 to 160 alerts, entirely from the plurals. The gated doc/source/data/ path holds at 173, so nothing changes for CI.
Two gaps that review surfaced. Node is a Kubernetes API object, so the "capitalize API objects" rule read literally tells contributors to write "Kubernetes Node". These pages almost always mean the machine, and all 24 uses are correctly lowercase today, so a contributor applying the rule literally would break working prose. The section now says node stays lowercase and explains that Kubernetes applies the same two-part rule, reserving Node for the resource. The second gap is the "Ray Pod" question raised in review. Rather than pick a casing, retire the construct: a Pod is a Kubernetes host that contains a Ray node plus any sidecars, and "TPU Pod" already occupies the qualified-Pod form in these pages while meaning something that isn't a Kubernetes object at all. Stating that alone would be a trap, because a bare "Pod" isn't always an adequate replacement. So the section also gives the test that separates the two cases. Qualify when the qualifier distinguishes two referents, which is why "Ray node" against "Kubernetes node" is correct. Don't qualify when it relabels one thing. And keep the scope explicit where a page describes Pods the RayCluster doesn't own, or where a nearby command filters by label, since "List all Pods" and "List the Ray cluster's Pods" describe different commands. The Vale ruleset picks up four swaps for the retired forms, plurals included, which the accept-list shadowing note already explains needs separate entries. Verified that the swaps don't fire on "Ray head Pod" or "Ray worker Pods". Still not enforced: the hook stays scoped to doc/source/data/, which holds at 173 alerts. Signed-off-by: Douglas Strodtman <[email protected]>
|
Heads up that I've pushed new content since your approvals, so this needs another look rather than riding the existing stamps. Two rules added, both from questions raised in this review: Don't write "Ray Pod." @win5923 asked whether the API-object rule should capitalize Pod here. Digging into it, the answer is neither casing: a Pod is a Kubernetes host that contains a Ray node plus any sidecars, "TPU Pod" already occupies the qualified-Pod form in these same pages while meaning something that isn't a Kubernetes object, and the term had no settled form to preserve anyway, splitting four ways at 20/16/16/15 across 55 prose lines. The section also carries the test that makes the rule usable, because a bare "Pod" isn't always an adequate replacement. Qualify when the qualifier distinguishes two referents, which is why "Ray node" against "Kubernetes node" stays. Don't qualify when it relabels one thing. And keep the scope explicit where a page describes Pods the RayCluster doesn't own or where a nearby command filters by label, since "List all Pods" and "List the Ray cluster's Pods" describe different commands. Node stays lowercase. Node is an API object, so "capitalize Kubernetes API objects" read literally points at "Kubernetes Node." All 24 uses in these pages are correctly lowercase because they mean the machine, so the literal reading would turn working prose into wrongness. Kubernetes applies the same two-part rule, reserving Node for the resource. The sweep that removes all 89 existing uses is #65423, separate so it's reviewable on its own. Still open on your three threads: the |
Adds the plural swaps for `head pods` and `worker pods`. Vale wraps substitution targets in word boundaries, so the singular entries couldn't match inside the plurals and 14 prose uses went unflagged. Adds the scheduler integrations KubeRay supports to the vocabulary: Volcano, KAI Scheduler, and scheduler-plugins. Accept entries drive `Vale.Terms` casing enforcement as well as spelling, so omitting a name means Vale silently won't catch it miscased. The entries surface one real defect, "KAI scheduler" in kai-scheduler.md, and cover the other two names preventively. Drops `Kueue`, which General/accept.txt already accepts. Drops six swaps that duplicated casing the accept list already enforces through `Vale.Terms`: Kuberay, Yunikorn, Raycluster, Rayjob, Rayservice, and Raycronjob. A single `Kuberay` token was alerting three times, once each from KubeRay.Terms, Vale.Terms, and Google.WordList. Verified that all six still alert after removal. The two-word lowercase forms such as `ray cluster` stay, since they match no accept entry. Still not enforced. The hook stays scoped to doc/source/data/, which holds at 173 alerts. Signed-off-by: Douglas Strodtman <[email protected]>
The KubeRay Vale vocabulary proposed in ray-project#65239 surfaced this: the scheduler integration guide writes "KAI scheduler deployment" in one place and "KAI Scheduler" everywhere else. @win5923 confirmed the two-word title-case form on that PR. The remaining hyphenated spellings in this file are correct as they stand. They sit inside links to NVIDIA/KAI-Scheduler, the Helm release name, and the <KAI_SCHEDULER_VERSION> placeholder, none of which are prose. Signed-off-by: Douglas Strodtman <[email protected]>
## Summary Removes the `banned_words` lint check and its Buildkite matrix entry. `ci/lint/check-banned-words.sh` is a `git grep` for three fixed strings across `*.py`, `*.rst`, `*.md`, and `*.ipynb`. Vale already flags all three, at `error` severity, with better messages. This PR deletes the redundant check. ## The three terms, and what catches them today The check enforces exactly three case-sensitive strings. Every one is already covered by a Vale rule in this repository, with no configuration change required by this PR: | Term removed from the grep | Correct form | Vale rule that catches it | Source | | --- | --- | --- | --- | | `Kuberay` | `KubeRay` | `Google.WordList` (error) | `"[Kk]ube[Rr]ay": KubeRay` in `.vale/styles/Google/WordList.yml` | | `RLLib` | `RLlib` | `Vale.Terms` (error) | `(RL\|rl)lib` in `.vale/styles/config/vocabularies/RLlib/accept.txt` | | `Rllib` | `RLlib` | `Vale.Terms` (error) | same entry | Verified against a fixture page containing both the correct and incorrect forms: ``` t.md:5:18:Google.WordList:Use 'KubeRay' instead of 'Kuberay'. t.md:5:27:Vale.Terms:Use 'RLlib' instead of 'RLLib'. t.md:5:38:Vale.Terms:Use 'RLlib' instead of 'Rllib'. ``` The correct spellings `KubeRay` and `RLlib` produce no alerts, so the rules discriminate on capitalization the same way the case-sensitive grep did. Vale's messages name the correct form; the grep only says a misspelled word was found and asks the author to go fix it. The `Vale.Terms` message improves further on Vale 3.17.1 (#65375), which renders the vocabulary entry as `RLlib` rather than echoing the raw `(RL|rl)lib` pattern. Because coverage already exists, this PR deliberately adds nothing to the `reject.txt` vocabulary. A reject entry would fire `Vale.Avoid` *in addition to* the rule above, double-reporting the same token with a strictly less useful message ("Avoid using 'Kuberay'" versus "Use 'KubeRay' instead of 'Kuberay'"). ## What the check costs The step carries the `always` tag in `.buildkite/lint.rayci.yml`, so it runs on every pull request, including documentation-only ones. Measured across 89 `lint: banned_words` jobs from recent passing `premerge` builds: | Measure | p50 | p90 | Range | | --- | --- | --- | --- | | Job run time | 111s | 116s | 108s – 642s | | Queue wait before start | 42s | 51s | 8s – 146s | | Wall clock, queue plus run | 153s | — | — | Nearly all of that is fixed overhead rather than work. Taking build 71819 as a representative sample, the job started at 10:59:01.6 and finished at 11:00:52.8, and `Checking for common mis-spellings...` printed at 11:00:52. So roughly 110 seconds went to the repository clone and the forge image pull, and the `git grep` itself accounted for under a second of it. At 391 `premerge` builds over the last seven days, the step consumes on the order of 12 agent-hours per week to run three sub-second greps. ## Why not keep it anyway Beyond the cost, the grep can't express the rule properly: - **No scoping.** Vale rules apply per path glob. The grep is repo-wide, with no way to hold a stricter bar in one tree than another. - **No exceptions.** Vale has `TokenIgnores`, `BlockIgnores`, and vocabularies. The grep has none, so a page that needs to *name* an incorrect spelling can't. That's not hypothetical: #65239 adds a Kubernetes and KubeRay terminology table to the style guide, and the row telling contributors to write `KubeRay` rather than `Kuberay` fails the check. There is no way to satisfy both. - **No severity.** Vale has `suggestion`, `warning`, and `error`. The grep is a hard CI failure or nothing. - **No extensibility.** Adding a term means editing a shell string that ships its own bespoke failure output. Adding a term to Vale means one line in a vocabulary or `swap` map, and it inherits the shared message, link, and reporting. ## The remaining gap, stated plainly The gap this PR opens is **scope, not rule coverage**. Vale runs today only against `doc/source/data/` and `doc/source/ray-overview/examples`, both in CI and in the pre-commit hook. Within those trees the three spellings are enforced today and stay enforced after this PR. Outside them, the repo-wide grep was the only thing checking, and nothing replaces it until Vale's scope widens. Adding the terms to a Vale vocabulary would not close that gap, because the limit is which paths Vale is pointed at, not which rules it has. The docs team is widening that scope over the coming weeks. ## Related changes - Drops the `banned_words` entry from the always-on lint matrix in `.buildkite/lint.rayci.yml`. - Removes the local-run instructions from `doc/source/ray-contribute/getting-involved.md`. - Updates the prose-only lint step count in `doc/source/ray-contribute/ci.md` from four to three. ## Checks - [x] I've signed off every commit (`git commit -s`). - [x] I've made sure the tests are passing. - [x] Release tests and any other tests I've added and changed pass. - [x] This PR is not tested :( Signed-off-by: Douglas Strodtman <[email protected]>
## Why this change Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the term. It's the concrete counterpart to the discussion in #65239, where a reviewer asked whether the Kubernetes casing rule should capitalize Pod in "Ray pod". Investigating that question produced a better answer than either casing. **A Pod isn't a Ray node, it's a host that contains one.** Kubernetes defines a Pod as an "application-specific logical host" holding one or more containers. KubeRay indexes exactly one Ray container per Pod through `utils.RayContainerIndex`, and routinely places non-Ray containers alongside it: the autoscaler sidecar, the history-server collector, the RayJob submitter in `SidecarMode`, and the Fluent Bit sidecars that `persist-kuberay-custom-resource-logs.md` documents. The Pod is a strict superset of the Ray node, so naming it after Ray overstates what it is. It's the same category error as "head node pod", one level up. **"Pod" is already taken in these docs, by something that isn't a Kubernetes object.** A TPU Pod is a group of interconnected TPU chips. `user-guides/tpu.md` writes "The name of the TPU Pod or slice" and "The TPU pod type" three lines apart, and `ray.util.tpu.get_current_pod_name()` is a public API whose docstring reads "Return the name of the TPU pod that the worker is a part of". Standardizing on a capitalized `Ray Pod` would put it beside a capitalized `TPU Pod` on the same pages, distinguished only by the preceding word. **The mapping is already documented.** `user-guides/k8s-autoscaler.md` says "each Ray node is run as a Kubernetes Pod", so two defined terms already cover what the compound names. **There was no convention to preserve.** Across the 55 prose lines using the term, casing split four ways: | Form | Occurrences | |---|---| | Ray Pods | 20 | | Ray pods | 16 | | Ray pod | 16 | | Ray Pod | 15 | Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86 under `doc/source/cluster/kubernetes/`, so the replacement vocabulary is the one these docs mostly use. ## What changed 83 lines across 31 files. The term becomes "Pod" where context is unambiguous, which is most of them. Where a bare "Pod" would lose meaning I used an explicit form instead: - Headings, which have no surrounding context: "Check logs of the head and worker Pods", "Verify the Ray cluster's Pods and PodGroup", "Configuring Kubernetes Pods for TPU usage". - Pages where other kinds of Pod are in scope: "the Ray cluster's Pods" in `network-policy.md`, `prometheus-grafana.md`, `k8s-events.md`, and `scheduler-plugins.md`. - `rayservice-high-availability.md` listed "Ray Pod: This Pod sends requests to the RayService". That Pod is a client that isn't part of the RayCluster, and it's named `ray-pod` in the sample manifest, so it's now listed by its actual object name. ## What replaces it on the orientation pages Removing the compound takes away the handle a Ray-first reader was using for the node-and-Pod relationship, so the relationship now gets stated where readers form their mental model. It was only in `user-guides/k8s-autoscaler.md`, whose title begins "(Advanced)", and absent from `index.md`, `getting-started.md`, and `user-guides/config.md`. One sentence each on the two orientation pages: - `index.md`: "KubeRay runs each Ray node as a Kubernetes Pod, so each Ray cluster consists of a head Pod and a collection of worker Pods." - `getting-started.md`: "It runs each Ray node as a Kubernetes Pod, so a Ray cluster's head node is its head Pod and its worker nodes are its worker Pods." `getting-started/raycluster-quick-start.md` is the natural third location, since line 53 is where the two vocabularies genuinely first meet for a reader following the quickstart. It's left alone deliberately: that paragraph writes "pods" lowercase throughout, and adding a capitalized sentence into it would either read inconsistently or drag the casing sweep into this PR. It belongs to whoever runs that pass. The rules behind both changes are in #65239, which now carries a "State the node-to-Pod mapping once, early" section and a "Keep Pods out of Ray-general pages" section. The second one is why this PR touches `ray-core/scheduling/placement-group.rst` and `serve/production-guide/fault-tolerance.md`. ## What this deliberately doesn't touch - **`Ray head Pod` and `Ray worker Pod` stay.** Those qualify by role, which is the form these docs already prefer and the one Google's Ray on GKE docs use. Only the unqualified compound goes. - **No casing sweep.** Lowercase "head pod" occurrences are left alone. That's the Vale rule in #65239, not this PR. - **`python/` code comments and docstrings keep the term.** About 10 occurrences under `python/ray/autoscaler`, `python/ray/dashboard`, and the KubeRay tests identify which Pods the operator manages, which is reasonable for a code comment. This PR is scoped to documentation prose. - **The `kuberay` repo is out of scope.** Its authored prose has a handful of uses and its `docs/reference/api.md` is generated from Go doc comments. That's a maintainer call for that repo, and I'll raise it there separately rather than assume the same decision carries. ## Two fixes on lines this change already rewrites - `k8s-autoscaler.md` linked to `.../horizontal-Pod-autoscale/`, which returns **404**. The correct URL is all-lowercase and returns 200. An earlier Pod-casing sweep appears to have capitalized inside the URL. - `index.md` described a Ray cluster as "a head node pod and a collection of worker node pods", stacking both vocabularies in one phrase. Now "a head Pod and a collection of worker Pods". - `index.md` also wrote "heterogenous compute nodes" on that same line. Now "heterogeneous". ## One casing fix folded in `k8s-ecosystem/kai-scheduler.md` wrote "KAI scheduler deployment" in one place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary proposed in #65239 surfaced it, and @win5923 confirmed the two-word title-case form on that PR. Folded in here rather than opened as a one-line PR, per the guidance in `AGENTS.md` about standalone trivial changes. The other hyphenated spellings in that file stay as they are. They sit inside links to `NVIDIA/KAI-Scheduler`, the Helm release name, and the `<KAI_SCHEDULER_VERSION>` placeholder, so none of them are prose. ## Testing ``` pre-commit run --files $(git diff --name-only) ``` Every hook reports "no files to check". Stating that plainly rather than implying coverage it doesn't give: no pre-commit hook applies to Markdown or reStructuredText under `doc/source/`, and the `vale` hook is scoped to `^doc/source/data/.*`, so none of these files are linted in CI today. What I verified by hand instead: - **No residual term.** `grep -rIniE '\bray [*_`]* ?pods?\b' .` over the whole repo returns only the `python/` code comments listed above as intentionally out of scope. This includes a markup-split case, "Ray \*\*Pod quantities\*\*", that a naive search misses. - **reStructuredText heading integrity.** `gpu.rst` has a section whose title shortened, so its underline was resized to match. Title and underline are both 30 characters. - **No broken anchors.** Four headings changed text. Searched for inbound references to their generated anchors and found none, and none carries an explicit MyST anchor. - **The URL fix.** `curl` returns 404 for the old casing and 200 for the new one. - **Config comments included.** `configs/static-ray-cluster.tls.yaml` carried the term in two YAML comments mirroring `config.md` prose, so the removal is complete rather than Markdown-only. Rendering is verified by the Read the Docs preview build on this PR. No code, no API, no behavior change. ## Not a duplicate ``` gh pr list --repo ray-project/ray --state open --search "Ray Pod" gh pr list --repo ray-project/ray --state open --search "pod terminology" ``` No open PR proposes this change. #65239 is the style-guide PR where the question came up and is the discussion surface for the rule; this PR is the cleanup and stands on its own against master. Two of my open PRs touch nearby files: #65287 rewrites lines in `jax-tpu-profiling.md`, which this PR doesn't touch, and #65263 is a draft adding `scheduling.md`, which introduces one new use of the term that I'll fix there rather than here. Per `AGENTS.md`, mechanical cleanups need maintainer coordination. That's the thread on #65239 with @win5923, who reviewed and approved the style-guide change and raised the question this PR answers. ## AI assistance Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the counts myself, and can defend the change end to end. --- ### Update: four casing defects folded in (f9fc8ea) Extending the KubeRay Vale vocabulary in #65239 turned four latent casing errors into alerts. They belong with the rest of the terminology cleanup rather than in a PR of their own. - `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes writes the component lowercase in prose. - `rayservice-incremental-upgrade.md`: "Install istio" to "Install Istio" in a step label, where the word names the project. The lowercase `istio` elsewhere on that page is correct and stays, since it's a GatewayClass `metadata.name` and a `controllerName` value rather than the project name. - `resource-isolation-with-writable-cgroups.md`: the H1 read "Resource Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)". Lowercasing only "Cgroups" would leave a title-case heading with one lowercase word, so the whole heading moves to sentence case, which the style guide requires anyway. **One coupling worth flagging for review.** The explicit MyST label above that H1 is unchanged, so every `{ref}` to the page still resolves, and the bare `{ref}` in `cluster/kubernetes/user-guides.md` picks up the new title automatically. But `ray-core/resource-isolation-with-cgroupv2.rst` passes custom link text that mirrored the old title case, so that text moves to sentence case too. That's the one file this PR touches outside `doc/source/cluster/kubernetes/`, and it's a one-line consistency fix caused directly by the heading change. Verified against the #65239 ruleset by diffing the alert set for these files before and after the change: the four alerts clear and no new alert appears. AI assistance was used for this commit and for that verification. ### Update: a bad replacement in this PR, plus three defects in the same files (89b0e49) **This PR had a bug.** The term replacement turned "KubeRay pods" into "KubePods" in `tpu.md`: the pattern matched "Ray pods" inside "KubeRay pods" and left the "Kube" prefix glued to the replacement. `git log -S` traces it to the retirement commit, so it isn't pre-existing. It's now "Pods", which is what the rule asks for when the qualifier only names the framework. I swept every added line in this PR for the same signature, a lowercase letter glued to "Pod" or "Pods", and this was the only instance. The other repo-wide matches are Kubernetes event reasons such as `CreatedHeadPod`, correct as literal strings. Three more defects, in files this PR already edits: - `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks nodepool` spelling elsewhere in the docs is a CLI subcommand and stays. - `prometheus-grafana.md`: "spawned by replicaset controller" to "spawned by a ReplicaSet controller", fixing the API object casing and a missing article. - `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to "such as" for an example, and "(e.g. `istio`)" to "for example `istio`", plus the imperative in place of "You will need to". Verified against the #65239 ruleset with a column-independent diff of the alert set for these files: five alerts clear, no new finding. The two passive-voice alerts that change column position are pre-existing and unchanged in substance. **Deliberately not in this PR.** These sit in files this PR doesn't otherwise touch, so folding them in would widen its file scope for unrelated reasons: "Deepseek" for DeepSeek in `examples/rayserve-deepseek-example.md` (an H1) and `serve/llm/architecture/overview.md`; `gsutil` in `examples/distributed-checkpointing-with-gcsfuse.md`, where `gcloud storage` supersedes it and swapping a documented command needs someone who can verify the equivalent invocation; and "nodepool" in the prose of `user-guides/azure-aks-gpu-cluster.md`. AI assistance was used for this commit and for the verification above. ### Update: adopt the RayCluster possessive the style guide settled on (68041df) #65239 merged after this PR was written, and the rule it landed is more specific than the form used here. It says to use the resource name in the possessive: the operator creates these Pods, sets their `ownerReferences` to the RayCluster, and labels them `ray.io/cluster`, so ownership, selection, and lifecycle are facts about the resource rather than about the Ray cluster it produces. Its worked example is the exact sentence this PR introduced in six places: "List the RayCluster's Pods" above `kubectl get pods -l=ray.io/is-ray-node=yes`. All 16 possessives become "the RayCluster's Pods". Each turns on one of the three: - **Selection**, nine uses. Six step comments above label-filtered `kubectl` commands in `rayservice.md`, `rayservice-quick-start.md`, `configuring-autoscaling.md`, `label-based-scheduling.md`, and `rayservice-no-ray-serve-replica.md` (twice); the PodMonitor and the `kubectl wait -l ray.io/cluster=` in `prometheus-grafana.md`; and the `podSelector` in `network-policy.md`. - **Ownership**, four uses. The Pods the RayCluster owns and places in one PodGroup in `scheduler-plugins.md` (three), and the Pods KubeRay injects environment variables into in `k8s-events.md`. - **Membership**, three uses. Which Pods carry the proxy in `kuberay-serve-high-throughput.md`, and which Pods to `exec` into in `serve/production-guide/fault-tolerance.md` (twice). Non-possessive uses of "Ray cluster" are unchanged, since they name the running thing. Two of them the style guide now carries verbatim as its own `Use:` examples: "Each Ray cluster consists of a head Pod and a collection of worker Pods" on the landing page, and "a Ray cluster's head node is its head Pod" on the getting-started page. That's a check on the earlier commits rather than a change to them. One thing left alone. `config.md` reads "manages Pods in order to match the `RayCluster`'s spec", with the resource name in backticks. The backticks predate this PR and code-formatting the resource name is a separate question from the possessive, so it stays as it is. --------- Signed-off-by: Douglas Strodtman <[email protected]>
"Dashboard" is a generic noun, so it stays lowercase next to a product name for the same reason "autoscaler" does. Applies the convention settled in Prose only: 53 replacements across 14 pages, covering body text, headings, front matter descriptions, table cells, image alt text, and link text. Eight uses inside fenced code blocks and one in a YAML sample stay as they are, since the rule governs prose and those strings are shell comments or program output. One adjacent fix on a line this change already touches: the alt text on kuberay-dashboard.md read "KubeRay dashboard List of RayJobs" after the swap, so "List" lowercases too. Verified with Vale 3.12.0 using the ruleset from ray-project#65239: the two dashboard swaps go from 44 alerts to 0 on these paths, with no other check affected. Signed-off-by: Douglas Strodtman <[email protected]>
Extends the sweep from the Ray on Kubernetes pages to all of doc/source, so the convention holds on every surface rather than only where the Vale ruleset happens to be scoped. 109 further replacements across 35 pages in ray-observability, serve, ray-core, train, ray-security, ray-overview, cluster, data, rllib, and ray-references. Prose only, including headings, front matter and meta descriptions, glossary terms, link and cross-reference text, and image alt text. Every replacement is length-preserving, so rST title underlines stay valid. Six adjacent lines change beyond the term itself, because lowercasing one word of an otherwise title-case heading looks like a botched edit rather than a convention: - "Configuring and Managing Ray Dashboard" becomes sentence case, along with the two link texts and one cross-reference that mirror that page title. - "Ray Dashboard View" and "Ray Dashboard Flow" become sentence case. Nine uses inside literal blocks stay as they are, since the rule governs prose: eight shell comments and one line of literal CLI output. Verified that no reference anywhere in the repo depends on the old heading strings, and that no rST title underline is now short. Vale, running the ruleset from ray-project#65239, reports 0 dashboard alerts on the paths it scopes, and doc/source/data/ holds at 170. Signed-off-by: Douglas Strodtman <[email protected]>
…documentation content in the docs-go scope guard (ray-project#65342) ## Why this change is needed `ci/lint/validate_docs_go_scope.sh` fails any pull request carrying the `docs-go` label if a changed file lives outside `doc/`. Two kinds of documentation work live outside `doc/` and are therefore locked out of the label today: - **Ray's Vale configuration** (`.vale.ini`, `.vale/`) sits at the repository root, so a PR that adds or edits a prose-lint rule can never carry the label even though it is documentation content by any reasonable reading. Concretely: ray-project#65239 adds KubeRay style rules and edits `doc/source/ray-contribute/writing-style.md`. Its [premerge build](https://buildkite.com/ray-project/premerge/builds/71732) has exactly one failing job, `lint: validate docs-go scope`. Every other check passes. - **The API-consistency checker's own source** (`ci/ray_ci/doc/`) is the tooling behind the `doc: check API doc consistency` step. Same shape: ray-project#65340 changes only that directory, and the label's guard is the sole red job on its [premerge build](https://buildkite.com/ray-project/premerge/builds/71727). In both cases the author's options today are to drop the label and wait on per-library example suites the PR cannot possibly affect, or to split a coherent change across two PRs. ## What changed Widen the guard's in-scope set from "under `doc/`" to "under `doc/`, the Vale prose-lint configuration (`.vale.ini`, `.vale/`), or the API-consistency checker (`ci/ray_ci/doc/`)". Both fail-closed paths (no merge-base, empty diff) are unchanged, and the `BUILD`-file exclusion now applies uniformly across the whole in-scope set rather than just `doc/`. Also updates the two places that state the predicate in prose, so they don't drift from the script: the `docs-go` section of `doc/source/ray-contribute/ci.md`, and `doc/.claude/CLAUDE.md`. ## Why this is safe The guard exists so `docs-go` can skip the 12 per-library docs example and llm test steps only on a PR that could not break them. The two additions clear that bar on different grounds, which is worth stating separately rather than blurring into one rule. **The Vale configuration** clears it on content: - **It defines no bazel target.** The separate `BUILD`-file exclusion is the mechanism that protects test targets, and it stays intact. - **It holds no executable Ray code**, so no doctest or example can change behavior because of it. - **The check that consumes it already runs unconditionally.** `lint: documentation_style` sits in the `lint-small-prose` matrix in `.buildkite/lint.rayci.yml` carrying `always`, which `always.rules.txt` emits for every changed file. Vale therefore runs on every pull request whether or not the label is present. - **No premerge step is traded away.** `test.rules.txt` already routes `.vale.ini` and `.vale/` to `doc` alone, in the rendering-and-validation-only block. That tag reaches `doc: build`, which carries `skip-on-premerge`. **The checker source** is executable CI code, so the reasoning above does not apply to it. It clears the bar on tag routing: - **`test.rules.txt` routes `ci/ray_ci/doc/` to `doc_api tools` and nothing else**, ahead of the broad `ci/ray_ci/` rule, and first match wins. - **Every step the label skips carries a library tag instead** — `core_python`, `data`, `llm`, `train`, `tune`, `rllib_directly`, `serve`, and the `*_doc` tags. A change confined to this directory never emits a tag that selects one of them. Since the label's `if:` can only suppress an already-emitted step, there is nothing for it to take away. - **Measured on the same commit, with and without the label.** ray-project#65340 was built twice: [71727](https://buildkite.com/ray-project/premerge/builds/71727) carried `["go", "docs-go"]` and [71736](https://buildkite.com/ray-project/premerge/builds/71736) carried `["go"]`. Both emitted the same 33 jobs, and diffing the two job-name sets yields no difference in either direction. The label's only effect on such a PR is whether this guard itself is emitted: it ran and failed in the first build, and was `broken` (never emitted) in the second. That is the claim above, observed rather than derived. - **The checks that do cover the directory are ungated.** The `doc_api` API checks and the `tools` job running this directory's six `ci_unit` py_test targets both run with the label present. Build 71727 is the direct evidence: it carried `docs-go` and ran `doc: check API annotations`, `doc: check API doc consistency`, and all six `//ci/ray_ci/doc:*` targets, all green. - **`BUILD` files stay excluded**, so a change to this directory's test targets still fails the guard. ray-project#65340 is exactly that case: it adds a `py_test` src, so it would still not qualify for the label after this change. That is the intended outcome. Each list is deliberately narrow. For Vale it covers the prose rules, not the CI wiring that runs them: `ci/lint/check-documentation-style.sh` and the Vale hook in `.pre-commit-config.yaml` stay out of scope, because a change to either one alters what actually runs. For the checker it covers `ci/ray_ci/doc/` only, not the shared `ci/ray_ci/` tooling that every bazel test step runs through. ## Two corrections on the same surface - **The script's header comment claimed the label skips the API consistency checks.** It doesn't. `doc.rayci.yml` leaves them deliberately ungated, precisely because an API reference page edit is the content-only change they must cover, and build 71727 confirms both ran under the label. `ci.md` already described this correctly, so only the script was wrong. - **The failure message advised an action that cannot work.** It said "Remove the 'docs-go' label so the appropriate tests run," but removing the label cannot produce a corrected build on the same commit. A Buildkite rebuild replays the label set from the build it was rebuilt from, and the pipeline sets `skip_pull_request_builds_for_existing_commits`, so the `unlabeled` event on an already-built commit produces no build at all. Verified on ray-project#65340: `docs-go` was removed at 19:59:30Z, build 71727 was created at 20:00:03Z as a UI rebuild, and its payload still carried `["go", "docs-go"]`. The message and both prose surfaces now say to remove the label *and push a new commit*. ## Checks - [x] I've signed off every commit (`git commit --signoff`). - [x] I've made sure the tests are passing. - Testing Strategy - [x] Manual tests `shellcheck` is clean. The guard was exercised end to end against a controlled base in a scratch repository, 15 cases — the 7 from the Vale-only version, unchanged, plus 8 for the new path: | Changed files | Expected | Result | | --- | --- | --- | | `.vale.ini` + `.vale/styles/**` + a `doc/` page (the ray-project#65239 shape) | pass | pass | | `.vale/styles/**` alone | pass | pass | | a `doc/` page alone (behavior before this change) | pass | pass | | `.vale/styles/**` + a file under `python/ray/` | fail | fail, names the Python file | | `.vale/BUILD.bazel` | fail | fail, names it as a `BUILD` file | | `ci/lint/check-documentation-style.sh` | fail | fail | | `.pre-commit-config.yaml` | fail | fail | | `ci/ray_ci/doc/api.py` alone | pass | pass | | `ci/ray_ci/doc/api.py` + a `doc/` page | pass | pass | | `ci/ray_ci/doc/mock/_internal/__init__.py` | pass | pass | | `ci/ray_ci/doc/BUILD.bazel` (the ray-project#65340 shape) | fail | fail, names it as a `BUILD` file | | `ci/ray_ci/doc/api.py` + a file under `python/ray/` | fail | fail, names the Python file | | `ci/ray_ci/tester.py` (shared tooling, not the checker) | fail | fail | | `ci/ray_ci/docker/**` (sibling path) | fail | fail | | `doc/BUILD.bazel` | fail | fail, unchanged behavior | Note that this PR itself edits `ci/lint/`, so it deliberately does not carry the `docs-go` label. The label's effect on ray-project#65239 is the real confirmation, and I'll rebase that PR onto this once it lands. ## Related ray-project#64775 reserved the `doc` tag for documentation validation. The `docs-go` label and this guard arrived with the content-only escape hatch that followed. ray-project#65340 is the checker-source change that motivated the second path. --------- Signed-off-by: Douglas Strodtman <[email protected]> Signed-off-by: 400Ping <[email protected]>
…#65368) ## Summary Removes the `banned_words` lint check and its Buildkite matrix entry. `ci/lint/check-banned-words.sh` is a `git grep` for three fixed strings across `*.py`, `*.rst`, `*.md`, and `*.ipynb`. Vale already flags all three, at `error` severity, with better messages. This PR deletes the redundant check. ## The three terms, and what catches them today The check enforces exactly three case-sensitive strings. Every one is already covered by a Vale rule in this repository, with no configuration change required by this PR: | Term removed from the grep | Correct form | Vale rule that catches it | Source | | --- | --- | --- | --- | | `Kuberay` | `KubeRay` | `Google.WordList` (error) | `"[Kk]ube[Rr]ay": KubeRay` in `.vale/styles/Google/WordList.yml` | | `RLLib` | `RLlib` | `Vale.Terms` (error) | `(RL\|rl)lib` in `.vale/styles/config/vocabularies/RLlib/accept.txt` | | `Rllib` | `RLlib` | `Vale.Terms` (error) | same entry | Verified against a fixture page containing both the correct and incorrect forms: ``` t.md:5:18:Google.WordList:Use 'KubeRay' instead of 'Kuberay'. t.md:5:27:Vale.Terms:Use 'RLlib' instead of 'RLLib'. t.md:5:38:Vale.Terms:Use 'RLlib' instead of 'Rllib'. ``` The correct spellings `KubeRay` and `RLlib` produce no alerts, so the rules discriminate on capitalization the same way the case-sensitive grep did. Vale's messages name the correct form; the grep only says a misspelled word was found and asks the author to go fix it. The `Vale.Terms` message improves further on Vale 3.17.1 (ray-project#65375), which renders the vocabulary entry as `RLlib` rather than echoing the raw `(RL|rl)lib` pattern. Because coverage already exists, this PR deliberately adds nothing to the `reject.txt` vocabulary. A reject entry would fire `Vale.Avoid` *in addition to* the rule above, double-reporting the same token with a strictly less useful message ("Avoid using 'Kuberay'" versus "Use 'KubeRay' instead of 'Kuberay'"). ## What the check costs The step carries the `always` tag in `.buildkite/lint.rayci.yml`, so it runs on every pull request, including documentation-only ones. Measured across 89 `lint: banned_words` jobs from recent passing `premerge` builds: | Measure | p50 | p90 | Range | | --- | --- | --- | --- | | Job run time | 111s | 116s | 108s – 642s | | Queue wait before start | 42s | 51s | 8s – 146s | | Wall clock, queue plus run | 153s | — | — | Nearly all of that is fixed overhead rather than work. Taking build 71819 as a representative sample, the job started at 10:59:01.6 and finished at 11:00:52.8, and `Checking for common mis-spellings...` printed at 11:00:52. So roughly 110 seconds went to the repository clone and the forge image pull, and the `git grep` itself accounted for under a second of it. At 391 `premerge` builds over the last seven days, the step consumes on the order of 12 agent-hours per week to run three sub-second greps. ## Why not keep it anyway Beyond the cost, the grep can't express the rule properly: - **No scoping.** Vale rules apply per path glob. The grep is repo-wide, with no way to hold a stricter bar in one tree than another. - **No exceptions.** Vale has `TokenIgnores`, `BlockIgnores`, and vocabularies. The grep has none, so a page that needs to *name* an incorrect spelling can't. That's not hypothetical: ray-project#65239 adds a Kubernetes and KubeRay terminology table to the style guide, and the row telling contributors to write `KubeRay` rather than `Kuberay` fails the check. There is no way to satisfy both. - **No severity.** Vale has `suggestion`, `warning`, and `error`. The grep is a hard CI failure or nothing. - **No extensibility.** Adding a term means editing a shell string that ships its own bespoke failure output. Adding a term to Vale means one line in a vocabulary or `swap` map, and it inherits the shared message, link, and reporting. ## The remaining gap, stated plainly The gap this PR opens is **scope, not rule coverage**. Vale runs today only against `doc/source/data/` and `doc/source/ray-overview/examples`, both in CI and in the pre-commit hook. Within those trees the three spellings are enforced today and stay enforced after this PR. Outside them, the repo-wide grep was the only thing checking, and nothing replaces it until Vale's scope widens. Adding the terms to a Vale vocabulary would not close that gap, because the limit is which paths Vale is pointed at, not which rules it has. The docs team is widening that scope over the coming weeks. ## Related changes - Drops the `banned_words` entry from the always-on lint matrix in `.buildkite/lint.rayci.yml`. - Removes the local-run instructions from `doc/source/ray-contribute/getting-involved.md`. - Updates the prose-only lint step count in `doc/source/ray-contribute/ci.md` from four to three. ## Checks - [x] I've signed off every commit (`git commit -s`). - [x] I've made sure the tests are passing. - [x] Release tests and any other tests I've added and changed pass. - [x] This PR is not tested :( Signed-off-by: Douglas Strodtman <[email protected]> Signed-off-by: 400Ping <[email protected]>
…-project#65239) ## Why this change Ray on Kubernetes docs describe Kubernetes API objects alongside Ray concepts, and the two vocabularies collide. Deployment, Job, and Service each name both a Kubernetes API object and a distinct Ray concept, so capitalization is the only thing telling them apart, and the style guide didn't say which form to use where. A contributor asking "RayCluster or Ray cluster?" had to derive the answer from two guides and adjudicate between them. This adds a `Writing Ray on Kubernetes and KubeRay docs` section to the style guide, scoped to the user-facing pages under `doc/source/cluster/kubernetes/` and the contributor-facing pages in [ray-project/kuberay](https://github.com/ray-project/kuberay). The approach is to extend this guide with a Kubernetes deference section rather than stand up a separate KubeRay style guide. The two guides already overlap heavily, and a forked guide would drift within a release or two. ## What the casing scan found The term list isn't invented. It comes from a prose-only scan of three corpora: 79 user-facing pages in this repo, 12 contributor pages in `ray-project/kuberay`, and 128 pages of `kubernetes/website` (`content/en/docs/concepts/`, commit `bb38117c0`). The scan strips front matter, fenced code blocks, inline code, MyST roles, and link targets before counting, so YAML field names and CLI output don't inflate the figures. Headline: **these docs already follow the Kubernetes casing rule.** Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side KubeRay docs do so in 70%. So this PR documents a rule the docs mostly already follow, and does not propose a capitalization sweep. | Term | Ray-side KubeRay docs | Upstream Kubernetes | Read | |---|---|---|---| | Pod | 371/527 (70%) | 3712/5195 (71%) | Matches upstream almost exactly. | | ConfigMap | 20/21 (95%) | 119/130 (91%) | Healthy. | | Ingress | 8/15 (53%) | 148/242 (61%) | Roughly aligned. | | Service | 18/114 (15%) | 515/946 (54%) | Diverges by design. | | Job | 17/143 (11%) | 522/610 (85%) | Diverges by design. | | Deployment | 6/53 (11%) | 355/461 (77%) | Diverges by design. | The three "diverges by design" rows are the reason this section exists. Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs, and Ray services, not Kubernetes API objects. That's a naming collision, not drift, so the fix is a disambiguation rule rather than a sweep. Kubernetes's own rule expects a mix (UpperCamelCase for the API object, sentence case for the general concept), which is why the upstream column isn't 100% either. The one genuine inconsistency the scan found is **"Ray Autoscaler" (44 uses) against "Ray autoscaler" (35)**, spread across at least eight files. This guide already says to lowercase generic nouns even when they name a Ray concept, so lowercase wins. Recording the rule here is the prerequisite for a mechanical follow-up cleanup. I've left that out of this PR to keep the rule change reviewable on its own. ## Open questions for reviewers I've deliberately written only the rules I can support from the two published guides plus the scan. These five are genuinely open, and I'd rather resolve them in review than assert them: All five are now resolved in review. Each entry keeps the original question for context, since the reasoning behind the answer matters more than the answer: 1. ~~**Confirm the custom-resource split.**~~ **Resolved** by @win5923: the split is intentional and consistent with Kubernetes terminology. Original question: The section documents `RayCluster` (the resource) versus "Ray cluster" (the running thing it produces), currently 335 against 106 uses in this repo. I read it as intentional and matching the Kubernetes API-object rule. Worth confirming rather than normalizing to one form. 1. ~~**"head Pod" versus "head node."**~~ **Resolved** by @win5923: use "head Pod" consistently when a Ray cluster runs on Kubernetes. Original question: The section prefers "head Pod" for the Kubernetes-hosted case, since a node is a machine on Kubernetes. `doc/source/cluster/kubernetes/index.md` currently says "a head node pod and a collection of worker node pods," which stacks both vocabularies. Reasonable, or is "head node" worth keeping for continuity with Ray's core architecture docs? 1. ~~**Feature graduation phases.**~~ **Resolved** by @win5923: keep the existing convention, start case for Kubernetes feature stages and lowercase for Ray and KubeRay stages. The corpus already works this way. I've added the ownership test for the ambiguous case, a third-party controller's feature gate, which makes `kueue.md:747` a defect rather than an exception. No Vale rule, since a substitution can't tell which project a stage name refers to. Original question: Kubernetes uses start case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on pages discussing a Kubernetes feature's stage and a Ray feature's stage in one paragraph. I left it out of the section rather than pick. Which wins? 1. ~~**Field values.**~~ **Resolved** by @win5923, who writes values in backticks: "set `upgradeStrategy.type` to `NewClusterWithIncrementalUpgrade`." That's also what this guide already says, so the section now states the divergence from Kubernetes explicitly rather than leaving the two guides to contradict each other silently. Original question: Kubernetes wants unquoted, unstyled values ("set `imagePullPolicy` to Always"); this guide says to use backticks for configuration values and gives `num_replicas: 1`. These are closer than they look, since one is a bare value and the other a key-value pair, but the guidance should say which form applies where. 1. ~~**"Ray dashboard" versus "Ray Dashboard"**~~ **Resolved** by @win5923: lowercase, on the grounds that "dashboard" is a generic noun for the same reason "autoscaler" is, which makes the rule already in this guide cover it. Applies to "KubeRay dashboard" too. This is the largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it moves `KubeRay.Terms` on these pages from 160 to 204. A fair number sit in headings, where the sentence-case rule makes them defects too. Sweep folds into ray-project#65423. Original question: 43 title-case against 18 lowercase. This guide implies lowercase, but the dashboard is arguably a named UI surface. Not addressed in the section pending a call. Two further items are out of scope here but worth flagging: - **Line wrapping in the `kuberay` repo.** This guide requires soft wrap. The Kubernetes guide requires manual wrap, justified by localization teams diffing per line, which KubeRay doesn't have. Nothing in this PR changes that, since this guide already governs `doc/source/`. But `kuberay`'s `.markdownlint.yaml` sets `MD013` to 120 characters via pre-commit, which is a latent gate: 266 lines in its `docs/` already exceed it, it isn't enforced in CI, and it isn't auto-fixable, so contributors hit it unpredictably on whichever file they touch. Disabling it there would align the two repos, but that's a call for KubeRay maintainers in their own repo. - **Turning Vale enforcement on.** This PR now adds the ruleset but doesn't enforce it. See the section below. ## Staged Vale ruleset A later commit adds a Vale ruleset for these pages, following the pattern already used for the Ray Data docs. **Nothing is enforced yet.** The Vale hook in `.pre-commit-config.yaml` stays scoped to `^doc/source/data/.*`, so CI checks exactly what it checked before. - `.vale/styles/config/vocabularies/KubeRay/accept.txt` — the KubeRay custom resources, the Kubernetes and ecosystem API objects these pages reference, and project names. Skips what the `General` vocabulary already accepts (`Kubernetes`, `kubectl`, `CRD(s)?`, `namespace`). - `.vale/styles/KubeRay/Terms.yml` — a `substitution` rule at `warning` level covering only the casing forms the new style-guide section settles, with `vocab: false` (see below). The open questions above are deliberately absent. - `.vale.ini` — registers the vocabulary and scopes the style to `doc/source/cluster/kubernetes/`. Registering a vocabulary that the hook doesn't exercise matches existing practice here: `RLlib` and `Train` are already in `Vocab` while the hook only runs on `doc/source/data/`. Contributors can run it by hand today: ``` vale doc/source/cluster/kubernetes/ ``` To enforce later, widen the `files` pattern on the `vale` hook. I'd still hold that until the open questions land. ### What I verified Vale 3.12.0 locally. **Path scoping works.** The KubeRay rules fire on a file under `doc/source/cluster/kubernetes/` and stay silent on identical content at the repo root. **Current state of these pages** — 146 `KubeRay.Terms` alerts, which lines up with the casing scan: | Alert | Count | |---|---| | Use 'Ray autoscaler' instead of 'Ray Autoscaler' | 42 | | Use 'head Pod' instead of 'head pod' | 20 | | Use 'worker Pod' instead of 'worker pod' | 7 | | Use 'Ray job' instead of 'ray job' | 2 | | Use 'Ray Serve' instead of 'Ray serve' | 1 | | Use 'Ray cluster' instead of 'ray cluster' | 1 | | Use 'KubeRay' instead of 'Kuberay' | 1 | | Use 'GCS fault tolerance' instead of 'GCS FT' | 1 | The 42 matches the scan's count for these pages exactly, which is a useful cross-check on both. None of it is enforced, so nothing here has to be fixed in this PR. **No regression on the gated path.** Alert count on `doc/source/data/` goes 174 → 173, deterministic across repeated runs in both states, with no new alerts. A `Vocab` list is global, so it can only widen what's accepted. The single alert that disappears is a `Google.Parens` hit in `concurrent-dataset-execution.md`; no term in the new vocabulary appears on that line, so I'm reporting that as observed rather than claiming I understand the mechanism. It's a reduction either way, so it can't break the gate. ### The vocabulary shadowing trap Worth knowing if you write Vale rules here: a `Vocab` accept entry shadows its token for **every** rule, case-insensitively. A substitution whose target appears in an accept list silently never fires, and nothing warns you. This bit the `Ray Autoscaler` swap, because `autoscaler` is accepted in `config/vocabularies/Data/accept.txt`. The fix is `vocab: false` on the rule, which opts out of the filtering without touching the Data vocabulary. The rule carries a comment saying so. Credit to Bugbot for catching it. I'd first shipped that swap commented out, having concluded the only way to enable it was dropping `autoscaler` from the Data vocabulary and accepting new spelling alerts on the gated path. That was wrong, and `vocab: false` avoids the tradeoff entirely. ## Added after review Two rules that review surfaced, both in the style-guide section plus the Vale ruleset. **Node stays lowercase.** Node is a Kubernetes API object, so "capitalize Kubernetes API objects" read literally tells contributors to write "Kubernetes Node." These pages almost always mean the machine, and all 24 uses are correctly lowercase today, so a literal reading of the rule would have someone "fix" working prose into wrongness. Kubernetes applies the same two-part rule it applies elsewhere, capitalizing Node only for the resource, and the section now says so. **Don't write "Ray Pod."** This answers the casing question raised in review, and the answer turned out to be neither casing. A Pod is a Kubernetes host that contains a Ray node plus any sidecars, so naming it after Ray overstates what it is. "TPU Pod" also already occupies the qualified-Pod form in these pages and means a group of TPU chips rather than a Kubernetes object. The term had no settled form to preserve either: across the 55 prose lines using it, casing split four ways at 20, 16, 16, and 15. Stating that alone would be a trap, because a bare "Pod" isn't always an adequate replacement, so the section gives the test that separates the cases: - Qualify when the qualifier distinguishes two referents. That's why "Ray node" against "Kubernetes node" is correct and should stay. - Don't qualify when it relabels one thing. - Keep the scope explicit where a page also describes Pods the RayCluster doesn't own, such as the operator, Redis, or a `curl` Pod, and where a nearby command filters by label. "List all Pods" and "List the Ray cluster's Pods" describe different commands and shouldn't read the same way. The cleanup is ray-project#65423, which removes all 89 uses from the docs and is reviewable on its own. This PR is the rule; that one is the sweep. Vale picks up four swaps for the retired forms. Plurals get their own entries, for the word-boundary reason @win5923 identified on the `head pod` swaps. Verified that they don't fire on "Ray head Pod" or "Ray worker Pods", and that the gated `doc/source/data/` path holds at 173 alerts. ## Not a duplicate Checked open PRs for this area before starting: ``` gh pr list --repo ray-project/ray --state open --search "writing-style" gh pr list --repo ray-project/ray --state open --search "style guide in:title" gh pr list --repo ray-project/ray --state open --search "kuberay style" ``` No open PR touches `doc/source/ray-contribute/writing-style.md` or proposes KubeRay style guidance. The `writing-style` matches were all false positives on `write_delta`. This extends the guide added in ray-project#64518. ## Testing ``` pre-commit run --files doc/source/ray-contribute/writing-style.md ``` Passes, but as a no-op on the Markdown: every hook reports "no files to check," because no pre-commit hook applies to Markdown under `doc/source/` and Vale is scoped to `doc/source/data/`. Stating that plainly instead of claiming coverage it doesn't give. The Vale config files do have hook coverage, and those checks ran for real: ``` pre-commit run --files .vale.ini .vale/styles/KubeRay/Terms.yml .vale/styles/config/vocabularies/KubeRay/accept.txt ``` `trim trailing whitespace`, `fix end of files`, `check for added large files`, and `semgrep` all pass. Vale verification for the ruleset is in the section above: path scoping, the 31-alert current state, and the 174 → 173 no-regression check on the gated path. Verified by hand: the new `(kubernetes-docs-style)=` anchor doesn't collide with any existing target in `doc/source/`, and the section uses the same MyST anchor form and Markdown pipe-table style already used elsewhere in this file. Rendering is verified by the Read the Docs preview build on this PR. No code, no API, no behavior change. The prose is a contributor guide; the Vale files add configuration without widening what CI enforces. ## AI assistance Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the casing counts myself, and can defend the change end to end. The scan scripts that produced the numbers live outside this repo; happy to share the methodology or re-run against a different corpus if a reviewer wants to check a figure. --- ### Update: the vocabulary now covers the ecosystem terms these pages use (555ebda) Running `vale doc/source/cluster/kubernetes/`, which this PR's `.vale.ini` comment tells contributors to do, produced 215 `Vale.Spelling` alerts on correctly spelled terms. The accept list covered API objects, the custom resources, and project names, but not the wider ecosystem vocabulary the pages actually contain. Left as is, a contributor following the instruction learns to ignore Vale on exactly the paths this PR wants gated. Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew, Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat, Alertmanager), the Gateway API `HTTPRoute`, and the Kubernetes and infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet, namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN, AMI, subnet, syscall, hostname, cron, CA, autoscalers). **Excluded on purpose, since an accept list shouldn't launder a defect.** `CR` and `CRs`, 12 uses, because this PR's own guidance says to write "custom resource" and to define CustomResourceDefinition then use CRD. Real misspellings: `heterogenous`, `replicaset` for ReplicaSet, `Deepseek` for DeepSeek, `nodepool` for node pool. `gsutil`, which `gcloud storage` supersedes. Unbackticked code identifiers, which are a formatting defect rather than a vocabulary gap: `podSpec`, `podSelector`, `nodeSelector`, `jsonPointers`, `intervalSeconds`, `workerGroup`, `ignoreDifferences`, `HTTPMode`, `args`, `yaml`. And generic English that Vale's dictionary lacks, which belongs in the General vocabulary rather than a KubeRay-specific one. Three entries are case-tolerant (`[Tt]oleration(s)?`, `[Uu]pscaling`, `[Dd]ownscaling`). A lowercase-only entry makes `Vale.Terms` flag the legitimate sentence-start capitalization. **Verification**, deterministic across repeated runs: - `doc/source/cluster/kubernetes/`: 1329 alerts to 1178. `Vale.Spelling` drops from 215 to 72. `KubeRay.Terms` is unchanged at 160, confirming no swap got shadowed by a new accept entry, which is the trap the `Ray Autoscaler` comment in `Terms.yml` documents. - `doc/source/data/`, the only path the pre-commit hook gates: 173 to 170, with **no new alerts**. A `Vocab` is global, so it can only widen what's accepted. - One candidate entry was dropped for exactly that reason. A `runtime(s)?` entry made `Vale.Terms` flag "Runtime" in `doc/source/data/monitoring-your-workload.rst`, a new alert on the gated path. Four new `Vale.Terms` alerts do appear on the KubeRay paths, and all four are genuine casing defects in existing pages rather than noise: "Kubelet" twice in `configuring-ippr.md`, lowercase "istio" naming the project in `rayservice-incremental-upgrade.md`, and "Cgroups" in the `resource-isolation-with-writable-cgroups.md` H1, which is also title case. Those are content fixes for a separate change, not this one. AI assistance was used for this commit, including the Vale sweep and the before-and-after verification above. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: 400Ping <[email protected]>
…t#65423) ## Why this change Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the term. It's the concrete counterpart to the discussion in ray-project#65239, where a reviewer asked whether the Kubernetes casing rule should capitalize Pod in "Ray pod". Investigating that question produced a better answer than either casing. **A Pod isn't a Ray node, it's a host that contains one.** Kubernetes defines a Pod as an "application-specific logical host" holding one or more containers. KubeRay indexes exactly one Ray container per Pod through `utils.RayContainerIndex`, and routinely places non-Ray containers alongside it: the autoscaler sidecar, the history-server collector, the RayJob submitter in `SidecarMode`, and the Fluent Bit sidecars that `persist-kuberay-custom-resource-logs.md` documents. The Pod is a strict superset of the Ray node, so naming it after Ray overstates what it is. It's the same category error as "head node pod", one level up. **"Pod" is already taken in these docs, by something that isn't a Kubernetes object.** A TPU Pod is a group of interconnected TPU chips. `user-guides/tpu.md` writes "The name of the TPU Pod or slice" and "The TPU pod type" three lines apart, and `ray.util.tpu.get_current_pod_name()` is a public API whose docstring reads "Return the name of the TPU pod that the worker is a part of". Standardizing on a capitalized `Ray Pod` would put it beside a capitalized `TPU Pod` on the same pages, distinguished only by the preceding word. **The mapping is already documented.** `user-guides/k8s-autoscaler.md` says "each Ray node is run as a Kubernetes Pod", so two defined terms already cover what the compound names. **There was no convention to preserve.** Across the 55 prose lines using the term, casing split four ways: | Form | Occurrences | |---|---| | Ray Pods | 20 | | Ray pods | 16 | | Ray pod | 16 | | Ray Pod | 15 | Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86 under `doc/source/cluster/kubernetes/`, so the replacement vocabulary is the one these docs mostly use. ## What changed 83 lines across 31 files. The term becomes "Pod" where context is unambiguous, which is most of them. Where a bare "Pod" would lose meaning I used an explicit form instead: - Headings, which have no surrounding context: "Check logs of the head and worker Pods", "Verify the Ray cluster's Pods and PodGroup", "Configuring Kubernetes Pods for TPU usage". - Pages where other kinds of Pod are in scope: "the Ray cluster's Pods" in `network-policy.md`, `prometheus-grafana.md`, `k8s-events.md`, and `scheduler-plugins.md`. - `rayservice-high-availability.md` listed "Ray Pod: This Pod sends requests to the RayService". That Pod is a client that isn't part of the RayCluster, and it's named `ray-pod` in the sample manifest, so it's now listed by its actual object name. ## What replaces it on the orientation pages Removing the compound takes away the handle a Ray-first reader was using for the node-and-Pod relationship, so the relationship now gets stated where readers form their mental model. It was only in `user-guides/k8s-autoscaler.md`, whose title begins "(Advanced)", and absent from `index.md`, `getting-started.md`, and `user-guides/config.md`. One sentence each on the two orientation pages: - `index.md`: "KubeRay runs each Ray node as a Kubernetes Pod, so each Ray cluster consists of a head Pod and a collection of worker Pods." - `getting-started.md`: "It runs each Ray node as a Kubernetes Pod, so a Ray cluster's head node is its head Pod and its worker nodes are its worker Pods." `getting-started/raycluster-quick-start.md` is the natural third location, since line 53 is where the two vocabularies genuinely first meet for a reader following the quickstart. It's left alone deliberately: that paragraph writes "pods" lowercase throughout, and adding a capitalized sentence into it would either read inconsistently or drag the casing sweep into this PR. It belongs to whoever runs that pass. The rules behind both changes are in ray-project#65239, which now carries a "State the node-to-Pod mapping once, early" section and a "Keep Pods out of Ray-general pages" section. The second one is why this PR touches `ray-core/scheduling/placement-group.rst` and `serve/production-guide/fault-tolerance.md`. ## What this deliberately doesn't touch - **`Ray head Pod` and `Ray worker Pod` stay.** Those qualify by role, which is the form these docs already prefer and the one Google's Ray on GKE docs use. Only the unqualified compound goes. - **No casing sweep.** Lowercase "head pod" occurrences are left alone. That's the Vale rule in ray-project#65239, not this PR. - **`python/` code comments and docstrings keep the term.** About 10 occurrences under `python/ray/autoscaler`, `python/ray/dashboard`, and the KubeRay tests identify which Pods the operator manages, which is reasonable for a code comment. This PR is scoped to documentation prose. - **The `kuberay` repo is out of scope.** Its authored prose has a handful of uses and its `docs/reference/api.md` is generated from Go doc comments. That's a maintainer call for that repo, and I'll raise it there separately rather than assume the same decision carries. ## Two fixes on lines this change already rewrites - `k8s-autoscaler.md` linked to `.../horizontal-Pod-autoscale/`, which returns **404**. The correct URL is all-lowercase and returns 200. An earlier Pod-casing sweep appears to have capitalized inside the URL. - `index.md` described a Ray cluster as "a head node pod and a collection of worker node pods", stacking both vocabularies in one phrase. Now "a head Pod and a collection of worker Pods". - `index.md` also wrote "heterogenous compute nodes" on that same line. Now "heterogeneous". ## One casing fix folded in `k8s-ecosystem/kai-scheduler.md` wrote "KAI scheduler deployment" in one place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary proposed in ray-project#65239 surfaced it, and @win5923 confirmed the two-word title-case form on that PR. Folded in here rather than opened as a one-line PR, per the guidance in `AGENTS.md` about standalone trivial changes. The other hyphenated spellings in that file stay as they are. They sit inside links to `NVIDIA/KAI-Scheduler`, the Helm release name, and the `<KAI_SCHEDULER_VERSION>` placeholder, so none of them are prose. ## Testing ``` pre-commit run --files $(git diff --name-only) ``` Every hook reports "no files to check". Stating that plainly rather than implying coverage it doesn't give: no pre-commit hook applies to Markdown or reStructuredText under `doc/source/`, and the `vale` hook is scoped to `^doc/source/data/.*`, so none of these files are linted in CI today. What I verified by hand instead: - **No residual term.** `grep -rIniE '\bray [*_`]* ?pods?\b' .` over the whole repo returns only the `python/` code comments listed above as intentionally out of scope. This includes a markup-split case, "Ray \*\*Pod quantities\*\*", that a naive search misses. - **reStructuredText heading integrity.** `gpu.rst` has a section whose title shortened, so its underline was resized to match. Title and underline are both 30 characters. - **No broken anchors.** Four headings changed text. Searched for inbound references to their generated anchors and found none, and none carries an explicit MyST anchor. - **The URL fix.** `curl` returns 404 for the old casing and 200 for the new one. - **Config comments included.** `configs/static-ray-cluster.tls.yaml` carried the term in two YAML comments mirroring `config.md` prose, so the removal is complete rather than Markdown-only. Rendering is verified by the Read the Docs preview build on this PR. No code, no API, no behavior change. ## Not a duplicate ``` gh pr list --repo ray-project/ray --state open --search "Ray Pod" gh pr list --repo ray-project/ray --state open --search "pod terminology" ``` No open PR proposes this change. ray-project#65239 is the style-guide PR where the question came up and is the discussion surface for the rule; this PR is the cleanup and stands on its own against master. Two of my open PRs touch nearby files: ray-project#65287 rewrites lines in `jax-tpu-profiling.md`, which this PR doesn't touch, and ray-project#65263 is a draft adding `scheduling.md`, which introduces one new use of the term that I'll fix there rather than here. Per `AGENTS.md`, mechanical cleanups need maintainer coordination. That's the thread on ray-project#65239 with @win5923, who reviewed and approved the style-guide change and raised the question this PR answers. ## AI assistance Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the counts myself, and can defend the change end to end. --- ### Update: four casing defects folded in (f9fc8ea) Extending the KubeRay Vale vocabulary in ray-project#65239 turned four latent casing errors into alerts. They belong with the rest of the terminology cleanup rather than in a PR of their own. - `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes writes the component lowercase in prose. - `rayservice-incremental-upgrade.md`: "Install istio" to "Install Istio" in a step label, where the word names the project. The lowercase `istio` elsewhere on that page is correct and stays, since it's a GatewayClass `metadata.name` and a `controllerName` value rather than the project name. - `resource-isolation-with-writable-cgroups.md`: the H1 read "Resource Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)". Lowercasing only "Cgroups" would leave a title-case heading with one lowercase word, so the whole heading moves to sentence case, which the style guide requires anyway. **One coupling worth flagging for review.** The explicit MyST label above that H1 is unchanged, so every `{ref}` to the page still resolves, and the bare `{ref}` in `cluster/kubernetes/user-guides.md` picks up the new title automatically. But `ray-core/resource-isolation-with-cgroupv2.rst` passes custom link text that mirrored the old title case, so that text moves to sentence case too. That's the one file this PR touches outside `doc/source/cluster/kubernetes/`, and it's a one-line consistency fix caused directly by the heading change. Verified against the ray-project#65239 ruleset by diffing the alert set for these files before and after the change: the four alerts clear and no new alert appears. AI assistance was used for this commit and for that verification. ### Update: a bad replacement in this PR, plus three defects in the same files (89b0e49) **This PR had a bug.** The term replacement turned "KubeRay pods" into "KubePods" in `tpu.md`: the pattern matched "Ray pods" inside "KubeRay pods" and left the "Kube" prefix glued to the replacement. `git log -S` traces it to the retirement commit, so it isn't pre-existing. It's now "Pods", which is what the rule asks for when the qualifier only names the framework. I swept every added line in this PR for the same signature, a lowercase letter glued to "Pod" or "Pods", and this was the only instance. The other repo-wide matches are Kubernetes event reasons such as `CreatedHeadPod`, correct as literal strings. Three more defects, in files this PR already edits: - `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks nodepool` spelling elsewhere in the docs is a CLI subcommand and stays. - `prometheus-grafana.md`: "spawned by replicaset controller" to "spawned by a ReplicaSet controller", fixing the API object casing and a missing article. - `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to "such as" for an example, and "(e.g. `istio`)" to "for example `istio`", plus the imperative in place of "You will need to". Verified against the ray-project#65239 ruleset with a column-independent diff of the alert set for these files: five alerts clear, no new finding. The two passive-voice alerts that change column position are pre-existing and unchanged in substance. **Deliberately not in this PR.** These sit in files this PR doesn't otherwise touch, so folding them in would widen its file scope for unrelated reasons: "Deepseek" for DeepSeek in `examples/rayserve-deepseek-example.md` (an H1) and `serve/llm/architecture/overview.md`; `gsutil` in `examples/distributed-checkpointing-with-gcsfuse.md`, where `gcloud storage` supersedes it and swapping a documented command needs someone who can verify the equivalent invocation; and "nodepool" in the prose of `user-guides/azure-aks-gpu-cluster.md`. AI assistance was used for this commit and for the verification above. ### Update: adopt the RayCluster possessive the style guide settled on (68041df) ray-project#65239 merged after this PR was written, and the rule it landed is more specific than the form used here. It says to use the resource name in the possessive: the operator creates these Pods, sets their `ownerReferences` to the RayCluster, and labels them `ray.io/cluster`, so ownership, selection, and lifecycle are facts about the resource rather than about the Ray cluster it produces. Its worked example is the exact sentence this PR introduced in six places: "List the RayCluster's Pods" above `kubectl get pods -l=ray.io/is-ray-node=yes`. All 16 possessives become "the RayCluster's Pods". Each turns on one of the three: - **Selection**, nine uses. Six step comments above label-filtered `kubectl` commands in `rayservice.md`, `rayservice-quick-start.md`, `configuring-autoscaling.md`, `label-based-scheduling.md`, and `rayservice-no-ray-serve-replica.md` (twice); the PodMonitor and the `kubectl wait -l ray.io/cluster=` in `prometheus-grafana.md`; and the `podSelector` in `network-policy.md`. - **Ownership**, four uses. The Pods the RayCluster owns and places in one PodGroup in `scheduler-plugins.md` (three), and the Pods KubeRay injects environment variables into in `k8s-events.md`. - **Membership**, three uses. Which Pods carry the proxy in `kuberay-serve-high-throughput.md`, and which Pods to `exec` into in `serve/production-guide/fault-tolerance.md` (twice). Non-possessive uses of "Ray cluster" are unchanged, since they name the running thing. Two of them the style guide now carries verbatim as its own `Use:` examples: "Each Ray cluster consists of a head Pod and a collection of worker Pods" on the landing page, and "a Ray cluster's head node is its head Pod" on the getting-started page. That's a check on the earlier commits rather than a change to them. One thing left alone. `config.md` reads "manages Pods in order to match the `RayCluster`'s spec", with the resource name in backticks. The backticks predate this PR and code-formatting the resource name is a separate question from the possessive, so it stays as it is. --------- Signed-off-by: Douglas Strodtman <[email protected]> Signed-off-by: 400Ping <[email protected]>
"Dashboard" is a generic noun, so it stays lowercase next to a product name for the same reason "autoscaler" does. Applies the convention settled in Prose only: 53 replacements across 14 pages, covering body text, headings, front matter descriptions, table cells, image alt text, and link text. Eight uses inside fenced code blocks and one in a YAML sample stay as they are, since the rule governs prose and those strings are shell comments or program output. One adjacent fix on a line this change already touches: the alt text on kuberay-dashboard.md read "KubeRay dashboard List of RayJobs" after the swap, so "List" lowercases too. Verified with Vale 3.12.0 using the ruleset from ray-project#65239: the two dashboard swaps go from 44 alerts to 0 on these paths, with no other check affected. Signed-off-by: Douglas Strodtman <[email protected]>
Extends the sweep from the Ray on Kubernetes pages to all of doc/source, so the convention holds on every surface rather than only where the Vale ruleset happens to be scoped. 109 further replacements across 35 pages in ray-observability, serve, ray-core, train, ray-security, ray-overview, cluster, data, rllib, and ray-references. Prose only, including headings, front matter and meta descriptions, glossary terms, link and cross-reference text, and image alt text. Every replacement is length-preserving, so rST title underlines stay valid. Six adjacent lines change beyond the term itself, because lowercasing one word of an otherwise title-case heading looks like a botched edit rather than a convention: - "Configuring and Managing Ray Dashboard" becomes sentence case, along with the two link texts and one cross-reference that mirror that page title. - "Ray Dashboard View" and "Ray Dashboard Flow" become sentence case. Nine uses inside literal blocks stay as they are, since the rule governs prose: eight shell comments and one line of literal CLI output. Verified that no reference anywhere in the repo depends on the old heading strings, and that no rST title underline is now short. Vale, running the ruleset from ray-project#65239, reports 0 dashboard alerts on the paths it scopes, and doc/source/data/ holds at 170. Signed-off-by: Douglas Strodtman <[email protected]>
## Why this change "Dashboard" is a generic noun, so it stays lowercase next to a product name for the same reason "autoscaler" does. That's the convention #65239 settles, on @win5923's reasoning in [this review comment](#65239 (comment)). This PR applies it across the docs. Splitting it out from the rule change keeps each one reviewable on its own: #65239 is the rule and the tooling, this is the mechanical sweep, and the diff here is casing with no prose rewrites. Same split as #65423, which retires "Ray Pod." **This depends on #65239 landing first.** If the convention changes in that review, this sweep changes with it. ## Scope All of `doc/source`, `.md` and `.rst`. 215 replacements across 53 pages, in prose: body text, headings, front matter and `.. meta::` descriptions, a glossary term, table cells, image alt text, and link and cross-reference text. Three commits, each reviewable on its own: the Kubernetes pages, the same term across the rest of the docs, and then the bare "Dashboard" that the first two left behind. The first commit covers `cluster/kubernetes/`, which is where #65239 scopes its Vale ruleset. The second extends the same convention to the rest, so it holds on every surface rather than only where the tooling happens to point: `ray-observability/`, `serve/`, `ray-core/`, `train/`, `ray-security/`, `ray-overview/`, the non-Kubernetes `cluster/` pages, `data/`, `rllib/`, and `ray-references/`. Headings are included deliberately. This guide requires sentence case for every heading, so "## Step 5: Access the Ray Dashboard" was already a defect on two counts. **The `ray-observability/getting-started` page title changes**, from "Ray Dashboard" to "Ray dashboard." That's the canonical dashboard page, so it's the most visible line in the diff and worth a deliberate look. Cross-references to it that don't set their own text pick the new title up automatically. ## Applied by script, reviewed by hand The sweep ran from a fence-aware script rather than find-and-replace, because a blind pass would have hit literal blocks and rewritten CLI output. It tracks Markdown code fences, treats MyST directive fences such as ```` ```{admonition} ```` as the prose they contain, and tracks rST literal blocks introduced by both `.. code-block::` and a trailing `::`. I reviewed all 162 replacements and each of the 9 exclusions individually. ## Deliberately not changed **Nine uses inside literal blocks**, because the rule governs prose. Eight are shell comments, five of them `# Step 7: Check Ray Dashboard...` in `k8s-ecosystem/ingress.md`. The ninth is literal CLI output in `user-guides/kubectl-plugin.md` (`Ray Dashboard: http://localhost:8265`), where changing it would misreport what the command prints. That leaves a page or two with a lowercase heading above a capitalized shell comment. I'd rather flag that than quietly edit code blocks in a prose sweep. Happy to include the eight comments if a reviewer prefers consistency within the page. **One use in `cluster/kubernetes/configs/static-ray-cluster.tls.yaml`**, a comment in a sample manifest rather than a docs page. **Nothing, as it turns out.** An earlier revision of this description claimed 217 bare capitalized "Dashboard" uses were being left alone. That number was wrong: the command behind it piped `grep -o` output into a `grep -v` filter that could never match, so it counted every occurrence of the word including the ones inside "Ray Dashboard". The real figure was 93, and the third commit sweeps the 54 of those that are the generic noun. What stays capitalized is listed above. **`README.rst` and the `python/` docstrings.** Eight files outside `doc/` use the term, mostly in docstrings that render into the API reference. Different surface, different owners. ## Bare "Dashboard" The third commit covers the 54 uses of a bare capitalized "Dashboard" that the term sweep left behind, which otherwise put "the Dashboard" next to "the Ray dashboard" on the same page. Most are a pure case change. Fifteen needed an article, because the prose used the word as a bare proper noun: "expose Dashboard outside the Cluster" becomes "expose the dashboard outside the Cluster", and three sentences opening "Dashboard is..." become "The dashboard is...". The installation extras table is the one place where a bare lowercase "dashboard" would have read badly, sitting in a list of Ray library names ("Core, Dashboard, Cluster Launcher"). Those rows and the tip below them now say "Ray dashboard". Left capitalized, because these aren't the generic noun: - CloudWatch's Agent, Dashboard, and Alarm config files, plus Grafana's Dashboard and Default Dashboard. - The literal **Open Dashboard** button label in the History Server UI. - Title and label positions where any word would capitalize: the "Dashboard (Web UI)" section title, a `Dashboard` tab label, and a `**Dashboard**` list label. - Twelve uses inside literal blocks, one of which is dashboard log output. ## Six adjacent lines Lowercasing one word of an otherwise title-case heading reads as a botched edit, so where that happened the whole heading goes sentence case: - `cluster/configure-manage-dashboard.md`: "Configuring and Managing Ray Dashboard" to "Configuring and managing Ray dashboard," plus the two link texts and one `:ref:` text that mirror that page title. - `ray-observability/user-guides/profiling.md`: "Ray Dashboard View" to "Ray dashboard view." - `ray-core/internals/token-authentication.rst`: "Ray Dashboard Flow" to "Ray dashboard flow." One more of the same kind in the first commit: alt text in `user-guides/kuberay-dashboard.md` read "KubeRay dashboard List of RayJobs" after the swap, so "List" lowercases too. ## Known cosmetic wart `user-guides/kuberay-history-server.md:13` now reads "see [Ray dashboard](https://docs.ray.io/en/latest/ray-observability/getting-started.html)" against a target whose published title is still title case. This PR retitles that page, so the two converge once it lands. The sentence is redundant as written either way. ## Testing No code, no API, no behavior change. Most replacements are identical in length. The ones that aren't are the fifteen that gained an article and the installation table rows, so rST title underlines needed checking rather than assuming: one title, "Set up Dashboard" becoming "Set up the dashboard", grew past its underline and is fixed. Verified against `master` that the change introduces no other short underline anywhere in `doc/source`. Verified with Vale 3.12.0, running the ruleset from #65239 against this branch: the `Ray Dashboard` and `KubeRay Dashboard` swaps go from 44 alerts to **0** on the paths that ruleset scopes, and `doc/source/data/` holds at 170 with no new alerts. Vale doesn't cover the other paths in this PR, and it has no rule for the bare noun at all, so the rest was verified by hand against a categorized list of every occurrence. Verified by hand that nothing in the repo references any of the changed heading strings, so no cross-reference or link text goes stale. Nothing here is enforced in CI. The Vale pre-commit hook remains scoped to `doc/source/data/`. ## AI assistance Written with AI assistance (Claude). The script is mine, I've reviewed every replacement and exclusion individually, and I can defend the change end to end. --------- Signed-off-by: Douglas Strodtman <[email protected]>
… enforced) (#66236) ## Summary Seeds deterministic prose enforcement for RLlib docs ahead of the style pass, following the KubeRay pattern established in #65239. All rules are warn-level and **not yet run in CI** (the Vale pre-commit hook is still scoped to `doc/source/data/`); they're registered so contributors can run `vale doc/source/rllib/` by hand. This sits in the RLlib conversion stack, between the soft-wrap PR and the upcoming style/grammar pass, so the rules exist before that pass edits prose. ## What's here - **`.vale/styles/Ray/`** — a shared, library-agnostic style package: `Terms.yml` (plain-word swaps: utilize/leverage→use, via→through, prior to→before, in order to→to, refer to→see) plus `Filler.yml`, `TimeRelative.yml`, and `PermitVerbs.yml` (the allows/enables/lets-you construction). Scoped to RLlib for now; it moves to the global section once other libraries adopt it. - **`.vale/styles/RLlib/Terms.yml`** — RLlib terminology, seeded from corpus evidence: standardize on `multi-agent` (majority form) over `multiagent`, and `RLModule` over `RL module`. Grows as the style pass surfaces more terms. - **`.vale.ini`** — a path-scoped section registering these styles for `doc/source/rllib/**`, warn-first and not CI-enforced, mirroring the KubeRay block. All rules use `level: warning` and `vocab: false` (so an accept-list entry can't silently shadow a swap — verified: with `vocab: true` the `multiagent` swap goes dark). Confirmed the rules fire on RLlib pages and don't leak onto other paths. ## Notes Enforcement (widening the Vale hook's `files` pattern and the CI paths) is deliberately deferred until the RLlib MyST conversion lands, to avoid blocking the byte-identical conversion PRs on pre-existing prose. Every commit is DCO signed-off. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
…documentation content in the docs-go scope guard (ray-project#65342) ## Why this change is needed `ci/lint/validate_docs_go_scope.sh` fails any pull request carrying the `docs-go` label if a changed file lives outside `doc/`. Two kinds of documentation work live outside `doc/` and are therefore locked out of the label today: - **Ray's Vale configuration** (`.vale.ini`, `.vale/`) sits at the repository root, so a PR that adds or edits a prose-lint rule can never carry the label even though it is documentation content by any reasonable reading. Concretely: ray-project#65239 adds KubeRay style rules and edits `doc/source/ray-contribute/writing-style.md`. Its [premerge build](https://buildkite.com/ray-project/premerge/builds/71732) has exactly one failing job, `lint: validate docs-go scope`. Every other check passes. - **The API-consistency checker's own source** (`ci/ray_ci/doc/`) is the tooling behind the `doc: check API doc consistency` step. Same shape: ray-project#65340 changes only that directory, and the label's guard is the sole red job on its [premerge build](https://buildkite.com/ray-project/premerge/builds/71727). In both cases the author's options today are to drop the label and wait on per-library example suites the PR cannot possibly affect, or to split a coherent change across two PRs. ## What changed Widen the guard's in-scope set from "under `doc/`" to "under `doc/`, the Vale prose-lint configuration (`.vale.ini`, `.vale/`), or the API-consistency checker (`ci/ray_ci/doc/`)". Both fail-closed paths (no merge-base, empty diff) are unchanged, and the `BUILD`-file exclusion now applies uniformly across the whole in-scope set rather than just `doc/`. Also updates the two places that state the predicate in prose, so they don't drift from the script: the `docs-go` section of `doc/source/ray-contribute/ci.md`, and `doc/.claude/CLAUDE.md`. ## Why this is safe The guard exists so `docs-go` can skip the 12 per-library docs example and llm test steps only on a PR that could not break them. The two additions clear that bar on different grounds, which is worth stating separately rather than blurring into one rule. **The Vale configuration** clears it on content: - **It defines no bazel target.** The separate `BUILD`-file exclusion is the mechanism that protects test targets, and it stays intact. - **It holds no executable Ray code**, so no doctest or example can change behavior because of it. - **The check that consumes it already runs unconditionally.** `lint: documentation_style` sits in the `lint-small-prose` matrix in `.buildkite/lint.rayci.yml` carrying `always`, which `always.rules.txt` emits for every changed file. Vale therefore runs on every pull request whether or not the label is present. - **No premerge step is traded away.** `test.rules.txt` already routes `.vale.ini` and `.vale/` to `doc` alone, in the rendering-and-validation-only block. That tag reaches `doc: build`, which carries `skip-on-premerge`. **The checker source** is executable CI code, so the reasoning above does not apply to it. It clears the bar on tag routing: - **`test.rules.txt` routes `ci/ray_ci/doc/` to `doc_api tools` and nothing else**, ahead of the broad `ci/ray_ci/` rule, and first match wins. - **Every step the label skips carries a library tag instead** — `core_python`, `data`, `llm`, `train`, `tune`, `rllib_directly`, `serve`, and the `*_doc` tags. A change confined to this directory never emits a tag that selects one of them. Since the label's `if:` can only suppress an already-emitted step, there is nothing for it to take away. - **Measured on the same commit, with and without the label.** ray-project#65340 was built twice: [71727](https://buildkite.com/ray-project/premerge/builds/71727) carried `["go", "docs-go"]` and [71736](https://buildkite.com/ray-project/premerge/builds/71736) carried `["go"]`. Both emitted the same 33 jobs, and diffing the two job-name sets yields no difference in either direction. The label's only effect on such a PR is whether this guard itself is emitted: it ran and failed in the first build, and was `broken` (never emitted) in the second. That is the claim above, observed rather than derived. - **The checks that do cover the directory are ungated.** The `doc_api` API checks and the `tools` job running this directory's six `ci_unit` py_test targets both run with the label present. Build 71727 is the direct evidence: it carried `docs-go` and ran `doc: check API annotations`, `doc: check API doc consistency`, and all six `//ci/ray_ci/doc:*` targets, all green. - **`BUILD` files stay excluded**, so a change to this directory's test targets still fails the guard. ray-project#65340 is exactly that case: it adds a `py_test` src, so it would still not qualify for the label after this change. That is the intended outcome. Each list is deliberately narrow. For Vale it covers the prose rules, not the CI wiring that runs them: `ci/lint/check-documentation-style.sh` and the Vale hook in `.pre-commit-config.yaml` stay out of scope, because a change to either one alters what actually runs. For the checker it covers `ci/ray_ci/doc/` only, not the shared `ci/ray_ci/` tooling that every bazel test step runs through. ## Two corrections on the same surface - **The script's header comment claimed the label skips the API consistency checks.** It doesn't. `doc.rayci.yml` leaves them deliberately ungated, precisely because an API reference page edit is the content-only change they must cover, and build 71727 confirms both ran under the label. `ci.md` already described this correctly, so only the script was wrong. - **The failure message advised an action that cannot work.** It said "Remove the 'docs-go' label so the appropriate tests run," but removing the label cannot produce a corrected build on the same commit. A Buildkite rebuild replays the label set from the build it was rebuilt from, and the pipeline sets `skip_pull_request_builds_for_existing_commits`, so the `unlabeled` event on an already-built commit produces no build at all. Verified on ray-project#65340: `docs-go` was removed at 19:59:30Z, build 71727 was created at 20:00:03Z as a UI rebuild, and its payload still carried `["go", "docs-go"]`. The message and both prose surfaces now say to remove the label *and push a new commit*. ## Checks - [x] I've signed off every commit (`git commit --signoff`). - [x] I've made sure the tests are passing. - Testing Strategy - [x] Manual tests `shellcheck` is clean. The guard was exercised end to end against a controlled base in a scratch repository, 15 cases — the 7 from the Vale-only version, unchanged, plus 8 for the new path: | Changed files | Expected | Result | | --- | --- | --- | | `.vale.ini` + `.vale/styles/**` + a `doc/` page (the ray-project#65239 shape) | pass | pass | | `.vale/styles/**` alone | pass | pass | | a `doc/` page alone (behavior before this change) | pass | pass | | `.vale/styles/**` + a file under `python/ray/` | fail | fail, names the Python file | | `.vale/BUILD.bazel` | fail | fail, names it as a `BUILD` file | | `ci/lint/check-documentation-style.sh` | fail | fail | | `.pre-commit-config.yaml` | fail | fail | | `ci/ray_ci/doc/api.py` alone | pass | pass | | `ci/ray_ci/doc/api.py` + a `doc/` page | pass | pass | | `ci/ray_ci/doc/mock/_internal/__init__.py` | pass | pass | | `ci/ray_ci/doc/BUILD.bazel` (the ray-project#65340 shape) | fail | fail, names it as a `BUILD` file | | `ci/ray_ci/doc/api.py` + a file under `python/ray/` | fail | fail, names the Python file | | `ci/ray_ci/tester.py` (shared tooling, not the checker) | fail | fail | | `ci/ray_ci/docker/**` (sibling path) | fail | fail | | `doc/BUILD.bazel` | fail | fail, unchanged behavior | Note that this PR itself edits `ci/lint/`, so it deliberately does not carry the `docs-go` label. The label's effect on ray-project#65239 is the real confirmation, and I'll rebase that PR onto this once it lands. ## Related ray-project#64775 reserved the `doc` tag for documentation validation. The `docs-go` label and this guard arrived with the content-only escape hatch that followed. ray-project#65340 is the checker-source change that motivated the second path. --------- Signed-off-by: Douglas Strodtman <[email protected]>
…#65368) ## Summary Removes the `banned_words` lint check and its Buildkite matrix entry. `ci/lint/check-banned-words.sh` is a `git grep` for three fixed strings across `*.py`, `*.rst`, `*.md`, and `*.ipynb`. Vale already flags all three, at `error` severity, with better messages. This PR deletes the redundant check. ## The three terms, and what catches them today The check enforces exactly three case-sensitive strings. Every one is already covered by a Vale rule in this repository, with no configuration change required by this PR: | Term removed from the grep | Correct form | Vale rule that catches it | Source | | --- | --- | --- | --- | | `Kuberay` | `KubeRay` | `Google.WordList` (error) | `"[Kk]ube[Rr]ay": KubeRay` in `.vale/styles/Google/WordList.yml` | | `RLLib` | `RLlib` | `Vale.Terms` (error) | `(RL\|rl)lib` in `.vale/styles/config/vocabularies/RLlib/accept.txt` | | `Rllib` | `RLlib` | `Vale.Terms` (error) | same entry | Verified against a fixture page containing both the correct and incorrect forms: ``` t.md:5:18:Google.WordList:Use 'KubeRay' instead of 'Kuberay'. t.md:5:27:Vale.Terms:Use 'RLlib' instead of 'RLLib'. t.md:5:38:Vale.Terms:Use 'RLlib' instead of 'Rllib'. ``` The correct spellings `KubeRay` and `RLlib` produce no alerts, so the rules discriminate on capitalization the same way the case-sensitive grep did. Vale's messages name the correct form; the grep only says a misspelled word was found and asks the author to go fix it. The `Vale.Terms` message improves further on Vale 3.17.1 (ray-project#65375), which renders the vocabulary entry as `RLlib` rather than echoing the raw `(RL|rl)lib` pattern. Because coverage already exists, this PR deliberately adds nothing to the `reject.txt` vocabulary. A reject entry would fire `Vale.Avoid` *in addition to* the rule above, double-reporting the same token with a strictly less useful message ("Avoid using 'Kuberay'" versus "Use 'KubeRay' instead of 'Kuberay'"). ## What the check costs The step carries the `always` tag in `.buildkite/lint.rayci.yml`, so it runs on every pull request, including documentation-only ones. Measured across 89 `lint: banned_words` jobs from recent passing `premerge` builds: | Measure | p50 | p90 | Range | | --- | --- | --- | --- | | Job run time | 111s | 116s | 108s – 642s | | Queue wait before start | 42s | 51s | 8s – 146s | | Wall clock, queue plus run | 153s | — | — | Nearly all of that is fixed overhead rather than work. Taking build 71819 as a representative sample, the job started at 10:59:01.6 and finished at 11:00:52.8, and `Checking for common mis-spellings...` printed at 11:00:52. So roughly 110 seconds went to the repository clone and the forge image pull, and the `git grep` itself accounted for under a second of it. At 391 `premerge` builds over the last seven days, the step consumes on the order of 12 agent-hours per week to run three sub-second greps. ## Why not keep it anyway Beyond the cost, the grep can't express the rule properly: - **No scoping.** Vale rules apply per path glob. The grep is repo-wide, with no way to hold a stricter bar in one tree than another. - **No exceptions.** Vale has `TokenIgnores`, `BlockIgnores`, and vocabularies. The grep has none, so a page that needs to *name* an incorrect spelling can't. That's not hypothetical: ray-project#65239 adds a Kubernetes and KubeRay terminology table to the style guide, and the row telling contributors to write `KubeRay` rather than `Kuberay` fails the check. There is no way to satisfy both. - **No severity.** Vale has `suggestion`, `warning`, and `error`. The grep is a hard CI failure or nothing. - **No extensibility.** Adding a term means editing a shell string that ships its own bespoke failure output. Adding a term to Vale means one line in a vocabulary or `swap` map, and it inherits the shared message, link, and reporting. ## The remaining gap, stated plainly The gap this PR opens is **scope, not rule coverage**. Vale runs today only against `doc/source/data/` and `doc/source/ray-overview/examples`, both in CI and in the pre-commit hook. Within those trees the three spellings are enforced today and stay enforced after this PR. Outside them, the repo-wide grep was the only thing checking, and nothing replaces it until Vale's scope widens. Adding the terms to a Vale vocabulary would not close that gap, because the limit is which paths Vale is pointed at, not which rules it has. The docs team is widening that scope over the coming weeks. ## Related changes - Drops the `banned_words` entry from the always-on lint matrix in `.buildkite/lint.rayci.yml`. - Removes the local-run instructions from `doc/source/ray-contribute/getting-involved.md`. - Updates the prose-only lint step count in `doc/source/ray-contribute/ci.md` from four to three. ## Checks - [x] I've signed off every commit (`git commit -s`). - [x] I've made sure the tests are passing. - [x] Release tests and any other tests I've added and changed pass. - [x] This PR is not tested :( Signed-off-by: Douglas Strodtman <[email protected]>
…-project#65239) ## Why this change Ray on Kubernetes docs describe Kubernetes API objects alongside Ray concepts, and the two vocabularies collide. Deployment, Job, and Service each name both a Kubernetes API object and a distinct Ray concept, so capitalization is the only thing telling them apart, and the style guide didn't say which form to use where. A contributor asking "RayCluster or Ray cluster?" had to derive the answer from two guides and adjudicate between them. This adds a `Writing Ray on Kubernetes and KubeRay docs` section to the style guide, scoped to the user-facing pages under `doc/source/cluster/kubernetes/` and the contributor-facing pages in [ray-project/kuberay](https://github.com/ray-project/kuberay). The approach is to extend this guide with a Kubernetes deference section rather than stand up a separate KubeRay style guide. The two guides already overlap heavily, and a forked guide would drift within a release or two. ## What the casing scan found The term list isn't invented. It comes from a prose-only scan of three corpora: 79 user-facing pages in this repo, 12 contributor pages in `ray-project/kuberay`, and 128 pages of `kubernetes/website` (`content/en/docs/concepts/`, commit `bb38117c0`). The scan strips front matter, fenced code blocks, inline code, MyST roles, and link targets before counting, so YAML field names and CLI output don't inflate the figures. Headline: **these docs already follow the Kubernetes casing rule.** Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side KubeRay docs do so in 70%. So this PR documents a rule the docs mostly already follow, and does not propose a capitalization sweep. | Term | Ray-side KubeRay docs | Upstream Kubernetes | Read | |---|---|---|---| | Pod | 371/527 (70%) | 3712/5195 (71%) | Matches upstream almost exactly. | | ConfigMap | 20/21 (95%) | 119/130 (91%) | Healthy. | | Ingress | 8/15 (53%) | 148/242 (61%) | Roughly aligned. | | Service | 18/114 (15%) | 515/946 (54%) | Diverges by design. | | Job | 17/143 (11%) | 522/610 (85%) | Diverges by design. | | Deployment | 6/53 (11%) | 355/461 (77%) | Diverges by design. | The three "diverges by design" rows are the reason this section exists. Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs, and Ray services, not Kubernetes API objects. That's a naming collision, not drift, so the fix is a disambiguation rule rather than a sweep. Kubernetes's own rule expects a mix (UpperCamelCase for the API object, sentence case for the general concept), which is why the upstream column isn't 100% either. The one genuine inconsistency the scan found is **"Ray Autoscaler" (44 uses) against "Ray autoscaler" (35)**, spread across at least eight files. This guide already says to lowercase generic nouns even when they name a Ray concept, so lowercase wins. Recording the rule here is the prerequisite for a mechanical follow-up cleanup. I've left that out of this PR to keep the rule change reviewable on its own. ## Open questions for reviewers I've deliberately written only the rules I can support from the two published guides plus the scan. These five are genuinely open, and I'd rather resolve them in review than assert them: All five are now resolved in review. Each entry keeps the original question for context, since the reasoning behind the answer matters more than the answer: 1. ~~**Confirm the custom-resource split.**~~ **Resolved** by @win5923: the split is intentional and consistent with Kubernetes terminology. Original question: The section documents `RayCluster` (the resource) versus "Ray cluster" (the running thing it produces), currently 335 against 106 uses in this repo. I read it as intentional and matching the Kubernetes API-object rule. Worth confirming rather than normalizing to one form. 1. ~~**"head Pod" versus "head node."**~~ **Resolved** by @win5923: use "head Pod" consistently when a Ray cluster runs on Kubernetes. Original question: The section prefers "head Pod" for the Kubernetes-hosted case, since a node is a machine on Kubernetes. `doc/source/cluster/kubernetes/index.md` currently says "a head node pod and a collection of worker node pods," which stacks both vocabularies. Reasonable, or is "head node" worth keeping for continuity with Ray's core architecture docs? 1. ~~**Feature graduation phases.**~~ **Resolved** by @win5923: keep the existing convention, start case for Kubernetes feature stages and lowercase for Ray and KubeRay stages. The corpus already works this way. I've added the ownership test for the ambiguous case, a third-party controller's feature gate, which makes `kueue.md:747` a defect rather than an exception. No Vale rule, since a substitution can't tell which project a stage name refers to. Original question: Kubernetes uses start case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on pages discussing a Kubernetes feature's stage and a Ray feature's stage in one paragraph. I left it out of the section rather than pick. Which wins? 1. ~~**Field values.**~~ **Resolved** by @win5923, who writes values in backticks: "set `upgradeStrategy.type` to `NewClusterWithIncrementalUpgrade`." That's also what this guide already says, so the section now states the divergence from Kubernetes explicitly rather than leaving the two guides to contradict each other silently. Original question: Kubernetes wants unquoted, unstyled values ("set `imagePullPolicy` to Always"); this guide says to use backticks for configuration values and gives `num_replicas: 1`. These are closer than they look, since one is a bare value and the other a key-value pair, but the guidance should say which form applies where. 1. ~~**"Ray dashboard" versus "Ray Dashboard"**~~ **Resolved** by @win5923: lowercase, on the grounds that "dashboard" is a generic noun for the same reason "autoscaler" is, which makes the rule already in this guide cover it. Applies to "KubeRay dashboard" too. This is the largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it moves `KubeRay.Terms` on these pages from 160 to 204. A fair number sit in headings, where the sentence-case rule makes them defects too. Sweep folds into ray-project#65423. Original question: 43 title-case against 18 lowercase. This guide implies lowercase, but the dashboard is arguably a named UI surface. Not addressed in the section pending a call. Two further items are out of scope here but worth flagging: - **Line wrapping in the `kuberay` repo.** This guide requires soft wrap. The Kubernetes guide requires manual wrap, justified by localization teams diffing per line, which KubeRay doesn't have. Nothing in this PR changes that, since this guide already governs `doc/source/`. But `kuberay`'s `.markdownlint.yaml` sets `MD013` to 120 characters via pre-commit, which is a latent gate: 266 lines in its `docs/` already exceed it, it isn't enforced in CI, and it isn't auto-fixable, so contributors hit it unpredictably on whichever file they touch. Disabling it there would align the two repos, but that's a call for KubeRay maintainers in their own repo. - **Turning Vale enforcement on.** This PR now adds the ruleset but doesn't enforce it. See the section below. ## Staged Vale ruleset A later commit adds a Vale ruleset for these pages, following the pattern already used for the Ray Data docs. **Nothing is enforced yet.** The Vale hook in `.pre-commit-config.yaml` stays scoped to `^doc/source/data/.*`, so CI checks exactly what it checked before. - `.vale/styles/config/vocabularies/KubeRay/accept.txt` — the KubeRay custom resources, the Kubernetes and ecosystem API objects these pages reference, and project names. Skips what the `General` vocabulary already accepts (`Kubernetes`, `kubectl`, `CRD(s)?`, `namespace`). - `.vale/styles/KubeRay/Terms.yml` — a `substitution` rule at `warning` level covering only the casing forms the new style-guide section settles, with `vocab: false` (see below). The open questions above are deliberately absent. - `.vale.ini` — registers the vocabulary and scopes the style to `doc/source/cluster/kubernetes/`. Registering a vocabulary that the hook doesn't exercise matches existing practice here: `RLlib` and `Train` are already in `Vocab` while the hook only runs on `doc/source/data/`. Contributors can run it by hand today: ``` vale doc/source/cluster/kubernetes/ ``` To enforce later, widen the `files` pattern on the `vale` hook. I'd still hold that until the open questions land. ### What I verified Vale 3.12.0 locally. **Path scoping works.** The KubeRay rules fire on a file under `doc/source/cluster/kubernetes/` and stay silent on identical content at the repo root. **Current state of these pages** — 146 `KubeRay.Terms` alerts, which lines up with the casing scan: | Alert | Count | |---|---| | Use 'Ray autoscaler' instead of 'Ray Autoscaler' | 42 | | Use 'head Pod' instead of 'head pod' | 20 | | Use 'worker Pod' instead of 'worker pod' | 7 | | Use 'Ray job' instead of 'ray job' | 2 | | Use 'Ray Serve' instead of 'Ray serve' | 1 | | Use 'Ray cluster' instead of 'ray cluster' | 1 | | Use 'KubeRay' instead of 'Kuberay' | 1 | | Use 'GCS fault tolerance' instead of 'GCS FT' | 1 | The 42 matches the scan's count for these pages exactly, which is a useful cross-check on both. None of it is enforced, so nothing here has to be fixed in this PR. **No regression on the gated path.** Alert count on `doc/source/data/` goes 174 → 173, deterministic across repeated runs in both states, with no new alerts. A `Vocab` list is global, so it can only widen what's accepted. The single alert that disappears is a `Google.Parens` hit in `concurrent-dataset-execution.md`; no term in the new vocabulary appears on that line, so I'm reporting that as observed rather than claiming I understand the mechanism. It's a reduction either way, so it can't break the gate. ### The vocabulary shadowing trap Worth knowing if you write Vale rules here: a `Vocab` accept entry shadows its token for **every** rule, case-insensitively. A substitution whose target appears in an accept list silently never fires, and nothing warns you. This bit the `Ray Autoscaler` swap, because `autoscaler` is accepted in `config/vocabularies/Data/accept.txt`. The fix is `vocab: false` on the rule, which opts out of the filtering without touching the Data vocabulary. The rule carries a comment saying so. Credit to Bugbot for catching it. I'd first shipped that swap commented out, having concluded the only way to enable it was dropping `autoscaler` from the Data vocabulary and accepting new spelling alerts on the gated path. That was wrong, and `vocab: false` avoids the tradeoff entirely. ## Added after review Two rules that review surfaced, both in the style-guide section plus the Vale ruleset. **Node stays lowercase.** Node is a Kubernetes API object, so "capitalize Kubernetes API objects" read literally tells contributors to write "Kubernetes Node." These pages almost always mean the machine, and all 24 uses are correctly lowercase today, so a literal reading of the rule would have someone "fix" working prose into wrongness. Kubernetes applies the same two-part rule it applies elsewhere, capitalizing Node only for the resource, and the section now says so. **Don't write "Ray Pod."** This answers the casing question raised in review, and the answer turned out to be neither casing. A Pod is a Kubernetes host that contains a Ray node plus any sidecars, so naming it after Ray overstates what it is. "TPU Pod" also already occupies the qualified-Pod form in these pages and means a group of TPU chips rather than a Kubernetes object. The term had no settled form to preserve either: across the 55 prose lines using it, casing split four ways at 20, 16, 16, and 15. Stating that alone would be a trap, because a bare "Pod" isn't always an adequate replacement, so the section gives the test that separates the cases: - Qualify when the qualifier distinguishes two referents. That's why "Ray node" against "Kubernetes node" is correct and should stay. - Don't qualify when it relabels one thing. - Keep the scope explicit where a page also describes Pods the RayCluster doesn't own, such as the operator, Redis, or a `curl` Pod, and where a nearby command filters by label. "List all Pods" and "List the Ray cluster's Pods" describe different commands and shouldn't read the same way. The cleanup is ray-project#65423, which removes all 89 uses from the docs and is reviewable on its own. This PR is the rule; that one is the sweep. Vale picks up four swaps for the retired forms. Plurals get their own entries, for the word-boundary reason @win5923 identified on the `head pod` swaps. Verified that they don't fire on "Ray head Pod" or "Ray worker Pods", and that the gated `doc/source/data/` path holds at 173 alerts. ## Not a duplicate Checked open PRs for this area before starting: ``` gh pr list --repo ray-project/ray --state open --search "writing-style" gh pr list --repo ray-project/ray --state open --search "style guide in:title" gh pr list --repo ray-project/ray --state open --search "kuberay style" ``` No open PR touches `doc/source/ray-contribute/writing-style.md` or proposes KubeRay style guidance. The `writing-style` matches were all false positives on `write_delta`. This extends the guide added in ray-project#64518. ## Testing ``` pre-commit run --files doc/source/ray-contribute/writing-style.md ``` Passes, but as a no-op on the Markdown: every hook reports "no files to check," because no pre-commit hook applies to Markdown under `doc/source/` and Vale is scoped to `doc/source/data/`. Stating that plainly instead of claiming coverage it doesn't give. The Vale config files do have hook coverage, and those checks ran for real: ``` pre-commit run --files .vale.ini .vale/styles/KubeRay/Terms.yml .vale/styles/config/vocabularies/KubeRay/accept.txt ``` `trim trailing whitespace`, `fix end of files`, `check for added large files`, and `semgrep` all pass. Vale verification for the ruleset is in the section above: path scoping, the 31-alert current state, and the 174 → 173 no-regression check on the gated path. Verified by hand: the new `(kubernetes-docs-style)=` anchor doesn't collide with any existing target in `doc/source/`, and the section uses the same MyST anchor form and Markdown pipe-table style already used elsewhere in this file. Rendering is verified by the Read the Docs preview build on this PR. No code, no API, no behavior change. The prose is a contributor guide; the Vale files add configuration without widening what CI enforces. ## AI assistance Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the casing counts myself, and can defend the change end to end. The scan scripts that produced the numbers live outside this repo; happy to share the methodology or re-run against a different corpus if a reviewer wants to check a figure. --- ### Update: the vocabulary now covers the ecosystem terms these pages use (555ebda) Running `vale doc/source/cluster/kubernetes/`, which this PR's `.vale.ini` comment tells contributors to do, produced 215 `Vale.Spelling` alerts on correctly spelled terms. The accept list covered API objects, the custom resources, and project names, but not the wider ecosystem vocabulary the pages actually contain. Left as is, a contributor following the instruction learns to ignore Vale on exactly the paths this PR wants gated. Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew, Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat, Alertmanager), the Gateway API `HTTPRoute`, and the Kubernetes and infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet, namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN, AMI, subnet, syscall, hostname, cron, CA, autoscalers). **Excluded on purpose, since an accept list shouldn't launder a defect.** `CR` and `CRs`, 12 uses, because this PR's own guidance says to write "custom resource" and to define CustomResourceDefinition then use CRD. Real misspellings: `heterogenous`, `replicaset` for ReplicaSet, `Deepseek` for DeepSeek, `nodepool` for node pool. `gsutil`, which `gcloud storage` supersedes. Unbackticked code identifiers, which are a formatting defect rather than a vocabulary gap: `podSpec`, `podSelector`, `nodeSelector`, `jsonPointers`, `intervalSeconds`, `workerGroup`, `ignoreDifferences`, `HTTPMode`, `args`, `yaml`. And generic English that Vale's dictionary lacks, which belongs in the General vocabulary rather than a KubeRay-specific one. Three entries are case-tolerant (`[Tt]oleration(s)?`, `[Uu]pscaling`, `[Dd]ownscaling`). A lowercase-only entry makes `Vale.Terms` flag the legitimate sentence-start capitalization. **Verification**, deterministic across repeated runs: - `doc/source/cluster/kubernetes/`: 1329 alerts to 1178. `Vale.Spelling` drops from 215 to 72. `KubeRay.Terms` is unchanged at 160, confirming no swap got shadowed by a new accept entry, which is the trap the `Ray Autoscaler` comment in `Terms.yml` documents. - `doc/source/data/`, the only path the pre-commit hook gates: 173 to 170, with **no new alerts**. A `Vocab` is global, so it can only widen what's accepted. - One candidate entry was dropped for exactly that reason. A `runtime(s)?` entry made `Vale.Terms` flag "Runtime" in `doc/source/data/monitoring-your-workload.rst`, a new alert on the gated path. Four new `Vale.Terms` alerts do appear on the KubeRay paths, and all four are genuine casing defects in existing pages rather than noise: "Kubelet" twice in `configuring-ippr.md`, lowercase "istio" naming the project in `rayservice-incremental-upgrade.md`, and "Cgroups" in the `resource-isolation-with-writable-cgroups.md` H1, which is also title case. Those are content fixes for a separate change, not this one. AI assistance was used for this commit, including the Vale sweep and the before-and-after verification above. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…t#65423) ## Why this change Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the term. It's the concrete counterpart to the discussion in ray-project#65239, where a reviewer asked whether the Kubernetes casing rule should capitalize Pod in "Ray pod". Investigating that question produced a better answer than either casing. **A Pod isn't a Ray node, it's a host that contains one.** Kubernetes defines a Pod as an "application-specific logical host" holding one or more containers. KubeRay indexes exactly one Ray container per Pod through `utils.RayContainerIndex`, and routinely places non-Ray containers alongside it: the autoscaler sidecar, the history-server collector, the RayJob submitter in `SidecarMode`, and the Fluent Bit sidecars that `persist-kuberay-custom-resource-logs.md` documents. The Pod is a strict superset of the Ray node, so naming it after Ray overstates what it is. It's the same category error as "head node pod", one level up. **"Pod" is already taken in these docs, by something that isn't a Kubernetes object.** A TPU Pod is a group of interconnected TPU chips. `user-guides/tpu.md` writes "The name of the TPU Pod or slice" and "The TPU pod type" three lines apart, and `ray.util.tpu.get_current_pod_name()` is a public API whose docstring reads "Return the name of the TPU pod that the worker is a part of". Standardizing on a capitalized `Ray Pod` would put it beside a capitalized `TPU Pod` on the same pages, distinguished only by the preceding word. **The mapping is already documented.** `user-guides/k8s-autoscaler.md` says "each Ray node is run as a Kubernetes Pod", so two defined terms already cover what the compound names. **There was no convention to preserve.** Across the 55 prose lines using the term, casing split four ways: | Form | Occurrences | |---|---| | Ray Pods | 20 | | Ray pods | 16 | | Ray pod | 16 | | Ray Pod | 15 | Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86 under `doc/source/cluster/kubernetes/`, so the replacement vocabulary is the one these docs mostly use. ## What changed 83 lines across 31 files. The term becomes "Pod" where context is unambiguous, which is most of them. Where a bare "Pod" would lose meaning I used an explicit form instead: - Headings, which have no surrounding context: "Check logs of the head and worker Pods", "Verify the Ray cluster's Pods and PodGroup", "Configuring Kubernetes Pods for TPU usage". - Pages where other kinds of Pod are in scope: "the Ray cluster's Pods" in `network-policy.md`, `prometheus-grafana.md`, `k8s-events.md`, and `scheduler-plugins.md`. - `rayservice-high-availability.md` listed "Ray Pod: This Pod sends requests to the RayService". That Pod is a client that isn't part of the RayCluster, and it's named `ray-pod` in the sample manifest, so it's now listed by its actual object name. ## What replaces it on the orientation pages Removing the compound takes away the handle a Ray-first reader was using for the node-and-Pod relationship, so the relationship now gets stated where readers form their mental model. It was only in `user-guides/k8s-autoscaler.md`, whose title begins "(Advanced)", and absent from `index.md`, `getting-started.md`, and `user-guides/config.md`. One sentence each on the two orientation pages: - `index.md`: "KubeRay runs each Ray node as a Kubernetes Pod, so each Ray cluster consists of a head Pod and a collection of worker Pods." - `getting-started.md`: "It runs each Ray node as a Kubernetes Pod, so a Ray cluster's head node is its head Pod and its worker nodes are its worker Pods." `getting-started/raycluster-quick-start.md` is the natural third location, since line 53 is where the two vocabularies genuinely first meet for a reader following the quickstart. It's left alone deliberately: that paragraph writes "pods" lowercase throughout, and adding a capitalized sentence into it would either read inconsistently or drag the casing sweep into this PR. It belongs to whoever runs that pass. The rules behind both changes are in ray-project#65239, which now carries a "State the node-to-Pod mapping once, early" section and a "Keep Pods out of Ray-general pages" section. The second one is why this PR touches `ray-core/scheduling/placement-group.rst` and `serve/production-guide/fault-tolerance.md`. ## What this deliberately doesn't touch - **`Ray head Pod` and `Ray worker Pod` stay.** Those qualify by role, which is the form these docs already prefer and the one Google's Ray on GKE docs use. Only the unqualified compound goes. - **No casing sweep.** Lowercase "head pod" occurrences are left alone. That's the Vale rule in ray-project#65239, not this PR. - **`python/` code comments and docstrings keep the term.** About 10 occurrences under `python/ray/autoscaler`, `python/ray/dashboard`, and the KubeRay tests identify which Pods the operator manages, which is reasonable for a code comment. This PR is scoped to documentation prose. - **The `kuberay` repo is out of scope.** Its authored prose has a handful of uses and its `docs/reference/api.md` is generated from Go doc comments. That's a maintainer call for that repo, and I'll raise it there separately rather than assume the same decision carries. ## Two fixes on lines this change already rewrites - `k8s-autoscaler.md` linked to `.../horizontal-Pod-autoscale/`, which returns **404**. The correct URL is all-lowercase and returns 200. An earlier Pod-casing sweep appears to have capitalized inside the URL. - `index.md` described a Ray cluster as "a head node pod and a collection of worker node pods", stacking both vocabularies in one phrase. Now "a head Pod and a collection of worker Pods". - `index.md` also wrote "heterogenous compute nodes" on that same line. Now "heterogeneous". ## One casing fix folded in `k8s-ecosystem/kai-scheduler.md` wrote "KAI scheduler deployment" in one place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary proposed in ray-project#65239 surfaced it, and @win5923 confirmed the two-word title-case form on that PR. Folded in here rather than opened as a one-line PR, per the guidance in `AGENTS.md` about standalone trivial changes. The other hyphenated spellings in that file stay as they are. They sit inside links to `NVIDIA/KAI-Scheduler`, the Helm release name, and the `<KAI_SCHEDULER_VERSION>` placeholder, so none of them are prose. ## Testing ``` pre-commit run --files $(git diff --name-only) ``` Every hook reports "no files to check". Stating that plainly rather than implying coverage it doesn't give: no pre-commit hook applies to Markdown or reStructuredText under `doc/source/`, and the `vale` hook is scoped to `^doc/source/data/.*`, so none of these files are linted in CI today. What I verified by hand instead: - **No residual term.** `grep -rIniE '\bray [*_`]* ?pods?\b' .` over the whole repo returns only the `python/` code comments listed above as intentionally out of scope. This includes a markup-split case, "Ray \*\*Pod quantities\*\*", that a naive search misses. - **reStructuredText heading integrity.** `gpu.rst` has a section whose title shortened, so its underline was resized to match. Title and underline are both 30 characters. - **No broken anchors.** Four headings changed text. Searched for inbound references to their generated anchors and found none, and none carries an explicit MyST anchor. - **The URL fix.** `curl` returns 404 for the old casing and 200 for the new one. - **Config comments included.** `configs/static-ray-cluster.tls.yaml` carried the term in two YAML comments mirroring `config.md` prose, so the removal is complete rather than Markdown-only. Rendering is verified by the Read the Docs preview build on this PR. No code, no API, no behavior change. ## Not a duplicate ``` gh pr list --repo ray-project/ray --state open --search "Ray Pod" gh pr list --repo ray-project/ray --state open --search "pod terminology" ``` No open PR proposes this change. ray-project#65239 is the style-guide PR where the question came up and is the discussion surface for the rule; this PR is the cleanup and stands on its own against master. Two of my open PRs touch nearby files: ray-project#65287 rewrites lines in `jax-tpu-profiling.md`, which this PR doesn't touch, and ray-project#65263 is a draft adding `scheduling.md`, which introduces one new use of the term that I'll fix there rather than here. Per `AGENTS.md`, mechanical cleanups need maintainer coordination. That's the thread on ray-project#65239 with @win5923, who reviewed and approved the style-guide change and raised the question this PR answers. ## AI assistance Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the counts myself, and can defend the change end to end. --- ### Update: four casing defects folded in (f9fc8ea) Extending the KubeRay Vale vocabulary in ray-project#65239 turned four latent casing errors into alerts. They belong with the rest of the terminology cleanup rather than in a PR of their own. - `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes writes the component lowercase in prose. - `rayservice-incremental-upgrade.md`: "Install istio" to "Install Istio" in a step label, where the word names the project. The lowercase `istio` elsewhere on that page is correct and stays, since it's a GatewayClass `metadata.name` and a `controllerName` value rather than the project name. - `resource-isolation-with-writable-cgroups.md`: the H1 read "Resource Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)". Lowercasing only "Cgroups" would leave a title-case heading with one lowercase word, so the whole heading moves to sentence case, which the style guide requires anyway. **One coupling worth flagging for review.** The explicit MyST label above that H1 is unchanged, so every `{ref}` to the page still resolves, and the bare `{ref}` in `cluster/kubernetes/user-guides.md` picks up the new title automatically. But `ray-core/resource-isolation-with-cgroupv2.rst` passes custom link text that mirrored the old title case, so that text moves to sentence case too. That's the one file this PR touches outside `doc/source/cluster/kubernetes/`, and it's a one-line consistency fix caused directly by the heading change. Verified against the ray-project#65239 ruleset by diffing the alert set for these files before and after the change: the four alerts clear and no new alert appears. AI assistance was used for this commit and for that verification. ### Update: a bad replacement in this PR, plus three defects in the same files (89b0e49) **This PR had a bug.** The term replacement turned "KubeRay pods" into "KubePods" in `tpu.md`: the pattern matched "Ray pods" inside "KubeRay pods" and left the "Kube" prefix glued to the replacement. `git log -S` traces it to the retirement commit, so it isn't pre-existing. It's now "Pods", which is what the rule asks for when the qualifier only names the framework. I swept every added line in this PR for the same signature, a lowercase letter glued to "Pod" or "Pods", and this was the only instance. The other repo-wide matches are Kubernetes event reasons such as `CreatedHeadPod`, correct as literal strings. Three more defects, in files this PR already edits: - `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks nodepool` spelling elsewhere in the docs is a CLI subcommand and stays. - `prometheus-grafana.md`: "spawned by replicaset controller" to "spawned by a ReplicaSet controller", fixing the API object casing and a missing article. - `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to "such as" for an example, and "(e.g. `istio`)" to "for example `istio`", plus the imperative in place of "You will need to". Verified against the ray-project#65239 ruleset with a column-independent diff of the alert set for these files: five alerts clear, no new finding. The two passive-voice alerts that change column position are pre-existing and unchanged in substance. **Deliberately not in this PR.** These sit in files this PR doesn't otherwise touch, so folding them in would widen its file scope for unrelated reasons: "Deepseek" for DeepSeek in `examples/rayserve-deepseek-example.md` (an H1) and `serve/llm/architecture/overview.md`; `gsutil` in `examples/distributed-checkpointing-with-gcsfuse.md`, where `gcloud storage` supersedes it and swapping a documented command needs someone who can verify the equivalent invocation; and "nodepool" in the prose of `user-guides/azure-aks-gpu-cluster.md`. AI assistance was used for this commit and for the verification above. ### Update: adopt the RayCluster possessive the style guide settled on (68041df) ray-project#65239 merged after this PR was written, and the rule it landed is more specific than the form used here. It says to use the resource name in the possessive: the operator creates these Pods, sets their `ownerReferences` to the RayCluster, and labels them `ray.io/cluster`, so ownership, selection, and lifecycle are facts about the resource rather than about the Ray cluster it produces. Its worked example is the exact sentence this PR introduced in six places: "List the RayCluster's Pods" above `kubectl get pods -l=ray.io/is-ray-node=yes`. All 16 possessives become "the RayCluster's Pods". Each turns on one of the three: - **Selection**, nine uses. Six step comments above label-filtered `kubectl` commands in `rayservice.md`, `rayservice-quick-start.md`, `configuring-autoscaling.md`, `label-based-scheduling.md`, and `rayservice-no-ray-serve-replica.md` (twice); the PodMonitor and the `kubectl wait -l ray.io/cluster=` in `prometheus-grafana.md`; and the `podSelector` in `network-policy.md`. - **Ownership**, four uses. The Pods the RayCluster owns and places in one PodGroup in `scheduler-plugins.md` (three), and the Pods KubeRay injects environment variables into in `k8s-events.md`. - **Membership**, three uses. Which Pods carry the proxy in `kuberay-serve-high-throughput.md`, and which Pods to `exec` into in `serve/production-guide/fault-tolerance.md` (twice). Non-possessive uses of "Ray cluster" are unchanged, since they name the running thing. Two of them the style guide now carries verbatim as its own `Use:` examples: "Each Ray cluster consists of a head Pod and a collection of worker Pods" on the landing page, and "a Ray cluster's head node is its head Pod" on the getting-started page. That's a check on the earlier commits rather than a change to them. One thing left alone. `config.md` reads "manages Pods in order to match the `RayCluster`'s spec", with the resource name in backticks. The backticks predate this PR and code-formatting the resource name is a separate question from the possessive, so it stays as it is. --------- Signed-off-by: Douglas Strodtman <[email protected]>
## Why this change "Dashboard" is a generic noun, so it stays lowercase next to a product name for the same reason "autoscaler" does. That's the convention ray-project#65239 settles, on @win5923's reasoning in [this review comment](ray-project#65239 (comment)). This PR applies it across the docs. Splitting it out from the rule change keeps each one reviewable on its own: ray-project#65239 is the rule and the tooling, this is the mechanical sweep, and the diff here is casing with no prose rewrites. Same split as ray-project#65423, which retires "Ray Pod." **This depends on ray-project#65239 landing first.** If the convention changes in that review, this sweep changes with it. ## Scope All of `doc/source`, `.md` and `.rst`. 215 replacements across 53 pages, in prose: body text, headings, front matter and `.. meta::` descriptions, a glossary term, table cells, image alt text, and link and cross-reference text. Three commits, each reviewable on its own: the Kubernetes pages, the same term across the rest of the docs, and then the bare "Dashboard" that the first two left behind. The first commit covers `cluster/kubernetes/`, which is where ray-project#65239 scopes its Vale ruleset. The second extends the same convention to the rest, so it holds on every surface rather than only where the tooling happens to point: `ray-observability/`, `serve/`, `ray-core/`, `train/`, `ray-security/`, `ray-overview/`, the non-Kubernetes `cluster/` pages, `data/`, `rllib/`, and `ray-references/`. Headings are included deliberately. This guide requires sentence case for every heading, so "## Step 5: Access the Ray Dashboard" was already a defect on two counts. **The `ray-observability/getting-started` page title changes**, from "Ray Dashboard" to "Ray dashboard." That's the canonical dashboard page, so it's the most visible line in the diff and worth a deliberate look. Cross-references to it that don't set their own text pick the new title up automatically. ## Applied by script, reviewed by hand The sweep ran from a fence-aware script rather than find-and-replace, because a blind pass would have hit literal blocks and rewritten CLI output. It tracks Markdown code fences, treats MyST directive fences such as ```` ```{admonition} ```` as the prose they contain, and tracks rST literal blocks introduced by both `.. code-block::` and a trailing `::`. I reviewed all 162 replacements and each of the 9 exclusions individually. ## Deliberately not changed **Nine uses inside literal blocks**, because the rule governs prose. Eight are shell comments, five of them `# Step 7: Check Ray Dashboard...` in `k8s-ecosystem/ingress.md`. The ninth is literal CLI output in `user-guides/kubectl-plugin.md` (`Ray Dashboard: http://localhost:8265`), where changing it would misreport what the command prints. That leaves a page or two with a lowercase heading above a capitalized shell comment. I'd rather flag that than quietly edit code blocks in a prose sweep. Happy to include the eight comments if a reviewer prefers consistency within the page. **One use in `cluster/kubernetes/configs/static-ray-cluster.tls.yaml`**, a comment in a sample manifest rather than a docs page. **Nothing, as it turns out.** An earlier revision of this description claimed 217 bare capitalized "Dashboard" uses were being left alone. That number was wrong: the command behind it piped `grep -o` output into a `grep -v` filter that could never match, so it counted every occurrence of the word including the ones inside "Ray Dashboard". The real figure was 93, and the third commit sweeps the 54 of those that are the generic noun. What stays capitalized is listed above. **`README.rst` and the `python/` docstrings.** Eight files outside `doc/` use the term, mostly in docstrings that render into the API reference. Different surface, different owners. ## Bare "Dashboard" The third commit covers the 54 uses of a bare capitalized "Dashboard" that the term sweep left behind, which otherwise put "the Dashboard" next to "the Ray dashboard" on the same page. Most are a pure case change. Fifteen needed an article, because the prose used the word as a bare proper noun: "expose Dashboard outside the Cluster" becomes "expose the dashboard outside the Cluster", and three sentences opening "Dashboard is..." become "The dashboard is...". The installation extras table is the one place where a bare lowercase "dashboard" would have read badly, sitting in a list of Ray library names ("Core, Dashboard, Cluster Launcher"). Those rows and the tip below them now say "Ray dashboard". Left capitalized, because these aren't the generic noun: - CloudWatch's Agent, Dashboard, and Alarm config files, plus Grafana's Dashboard and Default Dashboard. - The literal **Open Dashboard** button label in the History Server UI. - Title and label positions where any word would capitalize: the "Dashboard (Web UI)" section title, a `Dashboard` tab label, and a `**Dashboard**` list label. - Twelve uses inside literal blocks, one of which is dashboard log output. ## Six adjacent lines Lowercasing one word of an otherwise title-case heading reads as a botched edit, so where that happened the whole heading goes sentence case: - `cluster/configure-manage-dashboard.md`: "Configuring and Managing Ray Dashboard" to "Configuring and managing Ray dashboard," plus the two link texts and one `:ref:` text that mirror that page title. - `ray-observability/user-guides/profiling.md`: "Ray Dashboard View" to "Ray dashboard view." - `ray-core/internals/token-authentication.rst`: "Ray Dashboard Flow" to "Ray dashboard flow." One more of the same kind in the first commit: alt text in `user-guides/kuberay-dashboard.md` read "KubeRay dashboard List of RayJobs" after the swap, so "List" lowercases too. ## Known cosmetic wart `user-guides/kuberay-history-server.md:13` now reads "see [Ray dashboard](https://docs.ray.io/en/latest/ray-observability/getting-started.html)" against a target whose published title is still title case. This PR retitles that page, so the two converge once it lands. The sentence is redundant as written either way. ## Testing No code, no API, no behavior change. Most replacements are identical in length. The ones that aren't are the fifteen that gained an article and the installation table rows, so rST title underlines needed checking rather than assuming: one title, "Set up Dashboard" becoming "Set up the dashboard", grew past its underline and is fixed. Verified against `master` that the change introduces no other short underline anywhere in `doc/source`. Verified with Vale 3.12.0, running the ruleset from ray-project#65239 against this branch: the `Ray Dashboard` and `KubeRay Dashboard` swaps go from 44 alerts to **0** on the paths that ruleset scopes, and `doc/source/data/` holds at 170 with no new alerts. Vale doesn't cover the other paths in this PR, and it has no rule for the bare noun at all, so the rest was verified by hand against a categorized list of every occurrence. Verified by hand that nothing in the repo references any of the changed heading strings, so no cross-reference or link text goes stale. Nothing here is enforced in CI. The Vale pre-commit hook remains scoped to `doc/source/data/`. ## AI assistance Written with AI assistance (Claude). The script is mine, I've reviewed every replacement and exclusion individually, and I can defend the change end to end. --------- Signed-off-by: Douglas Strodtman <[email protected]>
… enforced) (ray-project#66236) ## Summary Seeds deterministic prose enforcement for RLlib docs ahead of the style pass, following the KubeRay pattern established in ray-project#65239. All rules are warn-level and **not yet run in CI** (the Vale pre-commit hook is still scoped to `doc/source/data/`); they're registered so contributors can run `vale doc/source/rllib/` by hand. This sits in the RLlib conversion stack, between the soft-wrap PR and the upcoming style/grammar pass, so the rules exist before that pass edits prose. ## What's here - **`.vale/styles/Ray/`** — a shared, library-agnostic style package: `Terms.yml` (plain-word swaps: utilize/leverage→use, via→through, prior to→before, in order to→to, refer to→see) plus `Filler.yml`, `TimeRelative.yml`, and `PermitVerbs.yml` (the allows/enables/lets-you construction). Scoped to RLlib for now; it moves to the global section once other libraries adopt it. - **`.vale/styles/RLlib/Terms.yml`** — RLlib terminology, seeded from corpus evidence: standardize on `multi-agent` (majority form) over `multiagent`, and `RLModule` over `RL module`. Grows as the style pass surfaces more terms. - **`.vale.ini`** — a path-scoped section registering these styles for `doc/source/rllib/**`, warn-first and not CI-enforced, mirroring the KubeRay block. All rules use `level: warning` and `vocab: false` (so an accept-list entry can't silently shadow a swap — verified: with `vocab: true` the `multiagent` swap goes dark). Confirmed the rules fire on RLlib pages and don't leak onto other paths. ## Notes Enforcement (widening the Vale hook's `files` pattern and the CI paths) is deliberately deferred until the RLlib MyST conversion lands, to avoid blocking the byte-identical conversion PRs on pre-existing prose. Every commit is DCO signed-off. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
…enforced) (#66640) ## Why are these changes needed? Seeds deterministic prose enforcement for Ray Core docs ahead of the style pass, following the pattern from #65239 (KubeRay) and #66236 (RLlib). Every rule is warn-level and **not run in CI yet**. The Vale pre-commit hook is commented out, and when it was on it covered only `doc/source/data/`. Registering the config lets contributors run `vale doc/source/core/` by hand during the style pass. **Stacked on #66605**, which moves `doc/source/ray-core/` to `doc/source/core/`. The path-scoped section is written against the final path, so this PR targets that branch. Retarget to `master` once #66605 merges. Ray Core defines the object vocabulary the rest of the docs reference, so the forms settled here are the ones other libraries inherit. ## What's here - **`.vale/styles/Core/Terms.yml` and `Core/Capitalization.yml`:** case-sensitive `substitution` swaps at `level: warning`, seeded from a prose-only count over `doc/source/core/`. `Terms.yml` holds the swaps that are safe to apply blindly. `Capitalization.yml` holds the ones that lowercase a whole phrase and would drop a heading's or sentence's initial capital, so it has no replace action: - `raylet` lowercase mid-sentence. The source code uses the lowercase form about 8 to 1. The swaps carry a preceding word, such as `the Raylet`, so a sentence that opens with "Raylet" doesn't alert. - `Plasma store`: Plasma keeps its capital as the implementation's name, and "store" stays lowercase. - `object ref` in prose, with `ObjectRef` in code style for the type. - `runtime env` to `runtime environment`. - Title-cased generic nouns, mostly in headings, such as `Placement Group`, `Fault Tolerance`, and `Head Node`. These live in `Capitalization.yml`, with `Raylets` and `Object Ref(s)`. `Ray/Capitalization.yml` already covers `Ray Task`, `Ray Actor`, and similar. - **Accept lists:** - `Core` gains Ray Core mechanism terms (`asyncio`, `Gloo`, `GPUDirect`, `libfabric`, `subreaper`, `retryable`, and others), and `RPC` becomes `RPC(s)?`. - `General` gains cross-cutting technical words and vendor names that other libraries also hit (`backoff`, `serializer`, `protobuf`, `Cython`, `CuPy`, `Gaudi`, `NPU(s)?`, and others). - Casing-only fixes such as `AsyncIO` and `GLOO` rely on the accept list driving `Vale.Terms`, not on a swap, so a token never alerts twice. - **`.vale.ini`:** a `[doc/source/core/**/*.{md,rst}]` section with `Vale, Google, Ray, Core`, mirroring the RLlib block. The KubeRay and RLlib comments also get corrected enforcement steps: enforcing means uncommenting the hook and widening both its `files` pattern and the top-level `exclude` carve-out. - **`writing-style.md`:** a "Writing Ray Core docs" section with a Ray Core terms table. Both Core rules link to it through the `ray-core-docs-style` label. - **Replace actions on the term rules:** `Ray/`, `RLlib/`, `KubeRay/`, and `Core/Terms.yml` set `action: {name: replace}`, so Vale's JSON output carries each swap's replacement text. A tool can then apply the swaps from Vale's own alerts instead of re-implementing Vale's path scoping and code-span handling. Every swap in these four files is a literal that's safe to apply without judgment. A swap that needs a human decision belongs in a rule without the action. No prose under `doc/source/core/` changes here. The style pass that fixes the alerts follows in separate PRs stacked on this one, split by section. ## Duplicate check No open PR adds Ray Core Vale rules. I searched open `ray-project/ray` PRs for `vale core` and for `writing-style.md`. #66639, my own PR, also edits `writing-style.md`, in a different section. Whichever lands second takes a trivial rebase. ## Testing - **Vale 3.12.0 on `doc/source/core/`:** the two Core rules raise 85 alerts, 45 from `Core.Terms` and 40 from `Core.Capitalization`, all of them true positives on review. No position alerts twice across `Vale.Terms`, the Core rules, `Ray.Terms`, and `Ray.Capitalization`. Vale.Spelling drops from 373 to 168. What's left is mostly unbackticked code that the prose pass will fix, not vocabulary. - **Rule check against the new guide table:** linting the table under the Core scope fires on every "Not" form that has a swap or accept entry, and on none of the "Use" forms. - **Other scopes:** alert counts for `doc/source/rllib`, `doc/source/data`, and `doc/source/cluster/kubernetes` stay the same apart from fewer Vale.Spelling hits. `walkthrough` isn't on the accept list, because an entry there would shadow `Google.WordList`'s `walk-through` swap. It now alerts twice in `doc/source/core` and twice in `doc/source/kuberay`. - **Lookbehind check:** a `(?<=...)Raylet` swap key misreported its position and missed the mid-sentence match in Vale 3.12, which is why the file uses explicit preceding-word keys. - **Replace actions don't change the alerts:** with and without the `action` lines, Vale reports the same checks, lines, spans, and messages on `doc/source/core`, `doc/source/rllib`, and `doc/source/cluster/kubernetes`, compared by a stable hash of the full alert list. Every `*.Terms` alert in those areas now carries a `replace` action, and `Core.Capitalization` alerts carry none. - **pre-commit:** passed on the changed files. - **Not run locally:** the Sphinx build. The only `doc/source` change is one new section and label in `writing-style.md`. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…t enforced) (#66885) ## Why are these changes needed? This PR adds Vale terminology rules for Ray Train docs ahead of a style pass over those pages. It follows the pattern from #65239 (KubeRay), #66236 (RLlib), and #66640 (Ray Core). Every rule is warn-level and **doesn't run in CI yet**. Registering the config lets contributors run `vale doc/source/train/` by hand during the style pass. **Stacked on #66883**, which renames the Train landing page and hyphenates page slugs. The path-scoped section targets the final paths, so this PR targets that branch. Retarget it to `master` once #66883 merges. ## What's here - **`.vale/styles/Train/Terms.yml`:** case-sensitive `substitution` swaps at `level: warning`, each safe to apply without judgment, so the file sets `action: replace`. The forms follow the four concepts `train/overview.md` defines: - `train function` becomes `training function`. - `scaling config`, `run config`, and `checkpoint config` are spelled out in prose. The classes keep code style. - `finetune` and its forms become `fine-tune`. - `Train v2` becomes `Train V2`. - **`.vale/styles/Train/Capitalization.yml`:** title-cased generic nouns, such as `Fault Tolerance`, `Local Mode`, and `Worker Group`, plus `Trainer` written as the Ray Train concept. Applying any of these takes judgment, so this rule has no replace action: - Lowercasing would also drop the capital at the start of a heading or sentence, which has to stay. - A bare "Trainer" in prose is often a third-party class, such as the Lightning or Hugging Face Transformers `Trainer`. Those need code style, not lowercase. The rule's keys carry a preceding word, such as `the Trainer` and `your Trainer`, and leave the decision to a person. - **Trainer casing:** prose uses "trainer" lowercase for the concept, with class names in code style. That matches the guide's rule to lowercase generic nouns even when they name a Ray concept, the way Ray Core treats "placement group." `overview.md` capitalizes it today, so the style pass changes that page. - **Accept lists:** - `Train` gains `JAX`, `Flax`, `Optax`, `Orbax`, `TensorBoard`, `torchrun`, `allreduce`, and `resharding`. - `General` gains cross-library words and vendor names: `Trainium`, `Backblaze`, `Filestore`, `preemption(s)`, `bottleneck(ed|ing)`, `iterable(s)`, `serializable`, and `colocated`. - Casing-only fixes such as `Jax` and `Tensorboard` come from the accept list driving `Vale.Terms` rather than from a swap, so no token alerts twice. - **RLlib accept list fix:** `[Pp]y[Tt]orch` and `[Tt]ensor[Ff]low` become `PyTorch` and `TensorFlow`. Vocabularies register globally, so those bracket classes accepted `Pytorch` and `Tensorflow` in every library and silently overrode the Train vocabulary's casing. The change adds no alerts under `doc/source/rllib`. It surfaces 15 miscased brand names in prose elsewhere, across Serve, Tune, KubeRay, cluster, getting-started, and Train pages. It also flags the "Not" column of the new guide table, as intended, and one `:link:` false positive, described under Testing. - **`Ray/Brands.yml`:** adds `WandB` → `W&B`. It's case-sensitive, so the lowercase package name `wandb` doesn't match. - **`.vale.ini`:** a `[doc/source/train/**/*.{md,rst}]` section with `Vale, Google, Ray, Train`, which mirrors the Core block. - **`writing-style.md`:** a "Writing Ray Train docs" section with a terms table. Both Train rules link to it through the `ray-train-docs-style` label. The section also places a Train worker relative to a Ray Core worker process. No prose under `doc/source/train/` changes here. The style pass that fixes the alerts follows in separate PRs stacked on this one. ## Duplicate check No open PR adds Ray Train Vale rules. I searched open `ray-project/ray` PRs for `vale train` and for `writing-style.md`. The only hits are #66809, my own CI change with no Vale or style-guide edits, and #65707, a KubeRay docs change. ## Testing Commands, run from the repo root: ```bash vale --output=JSON doc/source/train/ vale --output=line doc/source/ # before and after, diffed pre-commit run --files <changed files> ``` Results with Vale 3.12.0: - **`doc/source/train/`:** total alerts go from 839 to 802. `Train.Terms` raises 5 alerts, all true positives. `Train.Capitalization` raises 29: `Trainer` concept uses, title-cased `Fault Tolerance` and `Local Mode`, and the Lightning and Transformers `Trainer` mentions that the style pass should put in code style. `Vale.Spelling` drops from 77 to 43. The rest is mostly unbackticked code and identifiers for the prose pass. No position alerts twice across `Vale.Terms`, `Vale.Spelling`, `Train.*`, `Ray.Terms`, and `Ray.Brands`. - **Rule check against the new guide table:** linting the table rows under the Train scope fires on every "Not" form except a bare `Trainer`, which the rule deliberately doesn't match. - **Other scopes:** compared alert by alert over `doc/source/rllib`, `doc/source/core`, and `doc/source/kuberay`, the accept-list entries remove 4 false positives (`serializable`, `colocated`, `JAX`, and one `Google.Parens`). The only new alerts are 5 true-positive `WandB` hits in RLlib, from the shared `Ray/Brands.yml`. Across all of `doc/source`, the RLlib accept-list fix is the only other source of new alerts. - **Known false positive:** Vale reads a sphinx-design `:link:` option as prose. `train/more-frameworks.md:43` (`:link: distributed-tensorflow-keras`) alerted on `keras` before this PR and now also alerts on `tensorflow`. A section-scoped `TokenIgnores = (:link: \S+)` didn't suppress it, so it's left as a follow-up. Five `:link:` lines exist across `doc/source`. - **pre-commit:** passed on the changed files. - **Not run locally:** the Sphinx build. The only `doc/source` change is one new section and label in `writing-style.md`. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…enforced) (#67017) ## Why are these changes needed? This PR adds Vale terminology rules for Ray Tune docs ahead of a style pass over those pages. It follows the pattern from #65239 (KubeRay), #66236 (RLlib), #66640 (Ray Core), and #66885 (Ray Train). Every rule is warn-level and **doesn't run in CI yet**. Registering the config lets contributors run `vale doc/source/tune/` by hand during the style pass. Builds on #67015 (merged), which renamed the Tune tutorials landing and hyphenated page slugs. The style pass PRs stacked on this one edit pages under those final names. ## What's here - **`.vale/styles/Tune/Terms.yml`:** case-sensitive `substitution` swaps at `level: warning`, each safe to apply without judgment, so the file sets `action: replace`. It spells out abbreviations in prose: `search alg`, `config dict`, `trial dir`, and `experiment dir`. The arguments and attributes keep code style. - **`.vale/styles/Tune/Capitalization.yml`:** title-cased generic nouns, such as `Search Algorithm`, `Trial Scheduler`, `Function API`, and `Bayesian Optimization`, plus `Trainable` written as the concept. Applying any of these takes judgment, so this rule has no replace action: - Lowercasing would also drop the capital at the start of a heading or sentence, which has to stay. - A bare "Trainable" in prose is often the class, which needs code style rather than lowercase. The rule's keys carry a preceding word, such as `the Trainable` and `your Trainable`, and leave the decision to a person. - "Bayesian Optimization" sometimes names the `bayesian-optimization` package rather than the technique. - **"Scheduler" is deliberately not a rule.** Ray Core and Kubernetes both have schedulers. The guide asks for "trial scheduler" where a page discusses more than one kind, and the rule flags only the title-cased `Trial Scheduler`. - **Accept lists:** - New `Tune` vocabulary: `trainable(s)`, `syncer(s)`, the search libraries `Hyperopt`, `Optuna`, `Nevergrad`, `BayesOpt`, `ZOOpt`, `HEBO`, and `Ax`, and the algorithm names `Hyperband`, `ASHA`, `BOHB`, `PBT`, `PB2`, and `TPE`. - `General` gains cross-library words: `docstring(s)`, `traceback(s)`, `runtimes`, `errored`, and `underperforming`. - Casing-only fixes such as `HyperOpt` and `HyperBand` come from the accept list driving `Vale.Terms` rather than from a swap, so no token alerts twice. - **`.vale.ini`:** registers `Tune` on the `Vocab` line and adds a `[doc/source/tune/**/*.{md,rst}]` section with `Vale, Google, Ray, Tune`, which mirrors the Train block. - **`writing-style.md`:** a "Writing Ray Tune docs" section with a terms table. Both Tune rules link to it through the `ray-tune-docs-style` label. The section also separates "trial" from "experiment," which the current prose uses loosely. An experiment is one `Tuner.fit()` call, and a trial is one run of the trainable with one hyperparameter configuration. No prose under `doc/source/tune/` changes here. The style pass that fixes the alerts follows in separate PRs stacked on this one. ## Duplicate check No open PR adds Ray Tune Vale rules. I searched open `ray-project/ray` PRs for `vale tune`, `writing-style.md`, and Tune docs titles. The hits are #66809, my own CI change with no Vale or style-guide edits, #65707, a KubeRay docs change, #64137, a Ray Core NIXL guide, and #67015, the rename this work builds on (now merged). ## Testing Commands, run from the repo root: ```bash vale --output=JSON doc/source/tune/ vale --output=line doc/source/ # on the base branch and on this branch, diffed pre-commit run --files <changed files> ``` Results with Vale 3.12.0: - **`doc/source/tune/`:** total alerts go from 1,239 to 1,437. Most of the increase is the shared `Ray` style now applying to Tune. `Tune.Capitalization` raises 118 alerts and `Tune.Terms` raises 1, all in title-cased concept nouns or spelled-out abbreviations. `Vale.Spelling` drops from 88 to 50. No position alerts twice across `Vale.Terms`, `Vale.Spelling`, and `Tune.*`. - **Two alert sources the style pass should handle rather than suppress:** - Library names in `api/suggestion.rst` headings, such as `Optuna (tune.search.optuna.OptunaSearch)`, now alert under `Vale.Terms` on the lowercase module segment. The module path belongs in code style. - `tutorials/tune-lifecycle.md` alerts on `ERRORED`, which it lists as a trial status. The source defines the status as `ERROR` (`Trial.ERROR` in `python/ray/tune/experiment/trial.py`), so that's a doc correction. - **Rule check against the new guide table:** linting the table rows fires `Vale.Terms` on `HyperBand`, `HyperOpt`, `hyperopt`, and `AX` in the "Not" column, as intended, the same as the Train table. - **Other scopes:** compared alert by alert across all of `doc/source` outside `tune/`, the only change is 17 removed alerts. They're false positives on `runtimes`, `errored`, `docstring`, `traceback`, and `Hyperopt` in Core, KubeRay, Serve, Train, observability, and contributor pages, plus one `Google.Parens` alert in `kuberay/user-guides/configuring-ippr.md:281` that the accept list now shadows. No new alerts. - **pre-commit:** passed on the changed files. - **Not run locally:** the Sphinx build. The only `doc/source` change is one new section and label in `writing-style.md`. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>

Why this change
Ray on Kubernetes docs describe Kubernetes API objects alongside Ray concepts, and the two vocabularies collide. Deployment, Job, and Service each name both a Kubernetes API object and a distinct Ray concept, so capitalization is the only thing telling them apart, and the style guide didn't say which form to use where. A contributor asking "RayCluster or Ray cluster?" had to derive the answer from two guides and adjudicate between them.
This adds a
Writing Ray on Kubernetes and KubeRay docssection to the style guide, scoped to the user-facing pages underdoc/source/cluster/kubernetes/and the contributor-facing pages in ray-project/kuberay.The approach is to extend this guide with a Kubernetes deference section rather than stand up a separate KubeRay style guide. The two guides already overlap heavily, and a forked guide would drift within a release or two.
What the casing scan found
The term list isn't invented. It comes from a prose-only scan of three corpora: 79 user-facing pages in this repo, 12 contributor pages in
ray-project/kuberay, and 128 pages ofkubernetes/website(content/en/docs/concepts/, commitbb38117c0). The scan strips front matter, fenced code blocks, inline code, MyST roles, and link targets before counting, so YAML field names and CLI output don't inflate the figures.Headline: these docs already follow the Kubernetes casing rule. Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side KubeRay docs do so in 70%. So this PR documents a rule the docs mostly already follow, and does not propose a capitalization sweep.
The three "diverges by design" rows are the reason this section exists. Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs, and Ray services, not Kubernetes API objects. That's a naming collision, not drift, so the fix is a disambiguation rule rather than a sweep. Kubernetes's own rule expects a mix (UpperCamelCase for the API object, sentence case for the general concept), which is why the upstream column isn't 100% either.
The one genuine inconsistency the scan found is "Ray Autoscaler" (44 uses) against "Ray autoscaler" (35), spread across at least eight files. This guide already says to lowercase generic nouns even when they name a Ray concept, so lowercase wins. Recording the rule here is the prerequisite for a mechanical follow-up cleanup. I've left that out of this PR to keep the rule change reviewable on its own.
Open questions for reviewers
I've deliberately written only the rules I can support from the two published guides plus the scan. These five are genuinely open, and I'd rather resolve them in review than assert them:
All five are now resolved in review. Each entry keeps the original question for context, since the reasoning behind the answer matters more than the answer:
Confirm the custom-resource split.Resolved by @win5923: the split is intentional and consistent with Kubernetes terminology. Original question: The section documentsRayCluster(the resource) versus "Ray cluster" (the running thing it produces), currently 335 against 106 uses in this repo. I read it as intentional and matching the Kubernetes API-object rule. Worth confirming rather than normalizing to one form."head Pod" versus "head node."Resolved by @win5923: use "head Pod" consistently when a Ray cluster runs on Kubernetes. Original question: The section prefers "head Pod" for the Kubernetes-hosted case, since a node is a machine on Kubernetes.doc/source/cluster/kubernetes/index.mdcurrently says "a head node pod and a collection of worker node pods," which stacks both vocabularies. Reasonable, or is "head node" worth keeping for continuity with Ray's core architecture docs?Feature graduation phases.Resolved by @win5923: keep the existing convention, start case for Kubernetes feature stages and lowercase for Ray and KubeRay stages. The corpus already works this way. I've added the ownership test for the ambiguous case, a third-party controller's feature gate, which makeskueue.md:747a defect rather than an exception. No Vale rule, since a substitution can't tell which project a stage name refers to. Original question: Kubernetes uses start case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on pages discussing a Kubernetes feature's stage and a Ray feature's stage in one paragraph. I left it out of the section rather than pick. Which wins?Field values.Resolved by @win5923, who writes values in backticks: "setupgradeStrategy.typetoNewClusterWithIncrementalUpgrade." That's also what this guide already says, so the section now states the divergence from Kubernetes explicitly rather than leaving the two guides to contradict each other silently. Original question: Kubernetes wants unquoted, unstyled values ("setimagePullPolicyto Always"); this guide says to use backticks for configuration values and givesnum_replicas: 1. These are closer than they look, since one is a bare value and the other a key-value pair, but the guidance should say which form applies where."Ray dashboard" versus "Ray Dashboard"Resolved by @win5923: lowercase, on the grounds that "dashboard" is a generic noun for the same reason "autoscaler" is, which makes the rule already in this guide cover it. Applies to "KubeRay dashboard" too. This is the largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it movesKubeRay.Termson these pages from 160 to 204. A fair number sit in headings, where the sentence-case rule makes them defects too. Sweep folds into [docs] Retire the "Ray Pod" term from the Kubernetes docs #65423. Original question: 43 title-case against 18 lowercase. This guide implies lowercase, but the dashboard is arguably a named UI surface. Not addressed in the section pending a call.Two further items are out of scope here but worth flagging:
kuberayrepo. This guide requires soft wrap. The Kubernetes guide requires manual wrap, justified by localization teams diffing per line, which KubeRay doesn't have. Nothing in this PR changes that, since this guide already governsdoc/source/. Butkuberay's.markdownlint.yamlsetsMD013to 120 characters via pre-commit, which is a latent gate: 266 lines in itsdocs/already exceed it, it isn't enforced in CI, and it isn't auto-fixable, so contributors hit it unpredictably on whichever file they touch. Disabling it there would align the two repos, but that's a call for KubeRay maintainers in their own repo.Staged Vale ruleset
A later commit adds a Vale ruleset for these pages, following the pattern already used for the Ray Data docs. Nothing is enforced yet. The Vale hook in
.pre-commit-config.yamlstays scoped to^doc/source/data/.*, so CI checks exactly what it checked before..vale/styles/config/vocabularies/KubeRay/accept.txt— the KubeRay custom resources, the Kubernetes and ecosystem API objects these pages reference, and project names. Skips what theGeneralvocabulary already accepts (Kubernetes,kubectl,CRD(s)?,namespace)..vale/styles/KubeRay/Terms.yml— asubstitutionrule atwarninglevel covering only the casing forms the new style-guide section settles, withvocab: false(see below). The open questions above are deliberately absent..vale.ini— registers the vocabulary and scopes the style todoc/source/cluster/kubernetes/.Registering a vocabulary that the hook doesn't exercise matches existing practice here:
RLlibandTrainare already inVocabwhile the hook only runs ondoc/source/data/.Contributors can run it by hand today:
To enforce later, widen the
filespattern on thevalehook. I'd still hold that until the open questions land.What I verified
Vale 3.12.0 locally.
Path scoping works. The KubeRay rules fire on a file under
doc/source/cluster/kubernetes/and stay silent on identical content at the repo root.Current state of these pages — 146
KubeRay.Termsalerts, which lines up with the casing scan:The 42 matches the scan's count for these pages exactly, which is a useful cross-check on both. None of it is enforced, so nothing here has to be fixed in this PR.
No regression on the gated path. Alert count on
doc/source/data/goes 174 → 173, deterministic across repeated runs in both states, with no new alerts. AVocablist is global, so it can only widen what's accepted. The single alert that disappears is aGoogle.Parenshit inconcurrent-dataset-execution.md; no term in the new vocabulary appears on that line, so I'm reporting that as observed rather than claiming I understand the mechanism. It's a reduction either way, so it can't break the gate.The vocabulary shadowing trap
Worth knowing if you write Vale rules here: a
Vocabaccept entry shadows its token for every rule, case-insensitively. A substitution whose target appears in an accept list silently never fires, and nothing warns you.This bit the
Ray Autoscalerswap, becauseautoscaleris accepted inconfig/vocabularies/Data/accept.txt. The fix isvocab: falseon the rule, which opts out of the filtering without touching the Data vocabulary. The rule carries a comment saying so.Credit to Bugbot for catching it. I'd first shipped that swap commented out, having concluded the only way to enable it was dropping
autoscalerfrom the Data vocabulary and accepting new spelling alerts on the gated path. That was wrong, andvocab: falseavoids the tradeoff entirely.Added after review
Two rules that review surfaced, both in the style-guide section plus the Vale ruleset.
Node stays lowercase. Node is a Kubernetes API object, so "capitalize Kubernetes API objects" read literally tells contributors to write "Kubernetes Node." These pages almost always mean the machine, and all 24 uses are correctly lowercase today, so a literal reading of the rule would have someone "fix" working prose into wrongness. Kubernetes applies the same two-part rule it applies elsewhere, capitalizing Node only for the resource, and the section now says so.
Don't write "Ray Pod." This answers the casing question raised in review, and the answer turned out to be neither casing. A Pod is a Kubernetes host that contains a Ray node plus any sidecars, so naming it after Ray overstates what it is. "TPU Pod" also already occupies the qualified-Pod form in these pages and means a group of TPU chips rather than a Kubernetes object. The term had no settled form to preserve either: across the 55 prose lines using it, casing split four ways at 20, 16, 16, and 15.
Stating that alone would be a trap, because a bare "Pod" isn't always an adequate replacement, so the section gives the test that separates the cases:
curlPod, and where a nearby command filters by label. "List all Pods" and "List the Ray cluster's Pods" describe different commands and shouldn't read the same way.The cleanup is #65423, which removes all 89 uses from the docs and is reviewable on its own. This PR is the rule; that one is the sweep.
Vale picks up four swaps for the retired forms. Plurals get their own entries, for the word-boundary reason @win5923 identified on the
head podswaps. Verified that they don't fire on "Ray head Pod" or "Ray worker Pods", and that the gateddoc/source/data/path holds at 173 alerts.Not a duplicate
Checked open PRs for this area before starting:
No open PR touches
doc/source/ray-contribute/writing-style.mdor proposes KubeRay style guidance. Thewriting-stylematches were all false positives onwrite_delta. This extends the guide added in #64518.Testing
Passes, but as a no-op on the Markdown: every hook reports "no files to check," because no pre-commit hook applies to Markdown under
doc/source/and Vale is scoped todoc/source/data/. Stating that plainly instead of claiming coverage it doesn't give.The Vale config files do have hook coverage, and those checks ran for real:
trim trailing whitespace,fix end of files,check for added large files, andsemgrepall pass.Vale verification for the ruleset is in the section above: path scoping, the 31-alert current state, and the 174 → 173 no-regression check on the gated path.
Verified by hand: the new
(kubernetes-docs-style)=anchor doesn't collide with any existing target indoc/source/, and the section uses the same MyST anchor form and Markdown pipe-table style already used elsewhere in this file. Rendering is verified by the Read the Docs preview build on this PR.No code, no API, no behavior change. The prose is a contributor guide; the Vale files add configuration without widening what CI enforces.
AI assistance
Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the casing counts myself, and can defend the change end to end. The scan scripts that produced the numbers live outside this repo; happy to share the methodology or re-run against a different corpus if a reviewer wants to check a figure.
Update: the vocabulary now covers the ecosystem terms these pages use (555ebda)
Running
vale doc/source/cluster/kubernetes/, which this PR's.vale.inicomment tells contributors to do, produced 215Vale.Spellingalerts on correctly spelled terms. The accept list covered API objects, the custom resources, and project names, but not the wider ecosystem vocabulary the pages actually contain. Left as is, a contributor following the instruction learns to ignore Vale on exactly the paths this PR wants gated.Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew, Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat, Alertmanager), the Gateway API
HTTPRoute, and the Kubernetes and infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet, namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN, AMI, subnet, syscall, hostname, cron, CA, autoscalers).Excluded on purpose, since an accept list shouldn't launder a defect.
CRandCRs, 12 uses, because this PR's own guidance says to write "custom resource" and to define CustomResourceDefinition then use CRD. Real misspellings:heterogenous,replicasetfor ReplicaSet,Deepseekfor DeepSeek,nodepoolfor node pool.gsutil, whichgcloud storagesupersedes. Unbackticked code identifiers, which are a formatting defect rather than a vocabulary gap:podSpec,podSelector,nodeSelector,jsonPointers,intervalSeconds,workerGroup,ignoreDifferences,HTTPMode,args,yaml. And generic English that Vale's dictionary lacks, which belongs in the General vocabulary rather than a KubeRay-specific one.Three entries are case-tolerant (
[Tt]oleration(s)?,[Uu]pscaling,[Dd]ownscaling). A lowercase-only entry makesVale.Termsflag the legitimate sentence-start capitalization.Verification, deterministic across repeated runs:
doc/source/cluster/kubernetes/: 1329 alerts to 1178.Vale.Spellingdrops from 215 to 72.KubeRay.Termsis unchanged at 160, confirming no swap got shadowed by a new accept entry, which is the trap theRay Autoscalercomment inTerms.ymldocuments.doc/source/data/, the only path the pre-commit hook gates: 173 to 170, with no new alerts. AVocabis global, so it can only widen what's accepted.runtime(s)?entry madeVale.Termsflag "Runtime" indoc/source/data/monitoring-your-workload.rst, a new alert on the gated path.Four new
Vale.Termsalerts do appear on the KubeRay paths, and all four are genuine casing defects in existing pages rather than noise: "Kubelet" twice inconfiguring-ippr.md, lowercase "istio" naming the project inrayservice-incremental-upgrade.md, and "Cgroups" in theresource-isolation-with-writable-cgroups.mdH1, which is also title case. Those are content fixes for a separate change, not this one.AI assistance was used for this commit, including the Vale sweep and the before-and-after verification above.