Skip to content

NO-JIRA: Add UBIQUITOUS_LANGUAGE.md#533

Open
mdbooth wants to merge 1 commit intoopenshift:mainfrom
openshift-cloud-team:ubiquitous-language
Open

NO-JIRA: Add UBIQUITOUS_LANGUAGE.md#533
mdbooth wants to merge 1 commit intoopenshift:mainfrom
openshift-cloud-team:ubiquitous-language

Conversation

@mdbooth
Copy link
Copy Markdown
Contributor

@mdbooth mdbooth commented Apr 27, 2026

Generated using https://github.com/mattpocock/skills/blob/main/ubiquitous-language/SKILL.md

Adds a project-specific glossary which:

  • Defines commonly used terms precisely
  • Identifies potential sources of ambiguity

Summary by CodeRabbit

  • Documentation
    • Added standardized terminology guide for Machine API and Cluster API concepts, including glossary entries, relationship rules, and practical usage examples.

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot
Copy link
Copy Markdown

@mdbooth: This pull request explicitly references no jira issue.

Details

In response to this:

Generated using https://github.com/mattpocock/skills/blob/main/ubiquitous-language/SKILL.md

Adds a project-specific glossary which:

  • Defines commonly used terms precisely
  • Identifies potential sources of ambiguity

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 27, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 27, 2026

Walkthrough

A new UBIQUITOUS_LANGUAGE.md documentation file is created to standardize terminology for OpenShift's Machine API and Cluster API integration. It defines glossary entries, relationship rules, example dialogues, and guidance for disambiguating commonly ambiguous phrases.

Changes

Cohort / File(s) Summary
Ubiquitous Language Documentation
UBIQUITOUS_LANGUAGE.md
New documentation file establishing standardized terminology for Machine API and Cluster API concepts, including glossary definitions, relationship rules, example migration dialogue, and disambiguation guidance for ambiguous phrases.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a new UBIQUITOUS_LANGUAGE.md documentation file to define project terminology and reduce ambiguity.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The custom check for stable and deterministic Ginkgo test names is not applicable to this PR as it adds only documentation (UBIQUITOUS_LANGUAGE.md) with no Ginkgo test declarations.
Test Structure And Quality ✅ Passed The custom check for Ginkgo test code structure is not applicable as this PR is a documentation-only change that adds UBIQUITOUS_LANGUAGE.md with no Go code modifications.
Microshift Test Compatibility ✅ Passed The PR adds only UBIQUITOUS_LANGUAGE.md, a documentation file with no Ginkgo e2e tests or Go code.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR adds only UBIQUITOUS_LANGUAGE.md documentation file with no Ginkgo e2e tests introduced.
Topology-Aware Scheduling Compatibility ✅ Passed PR adds only documentation file (UBIQUITOUS_LANGUAGE.md) with glossary definitions. No scheduling-related code, manifests, or configuration changes present.
Ote Binary Stdout Contract ✅ Passed The pull request only adds a documentation file (UBIQUITOUS_LANGUAGE.md) with no executable code, test files, or process-level initializers that could violate the OTE Binary Stdout Contract.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR adds only documentation file (UBIQUITOUS_LANGUAGE.md) with no Ginkgo e2e tests or test code, making it inapplicable to IPv6/disconnected network compatibility checks.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci openshift-ci Bot requested review from damdo and nrb April 27, 2026 09:58
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 27, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign stephenfin for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@UBIQUITOUS_LANGUAGE.md`:
- Around line 63-64: The glossary entry "Paused" and "Paused Annotation"
currently describe pause as a CAPI-only reconciler behavior tied to the
cluster.x-k8s.io/paused annotation; update the other mentions that refer to the
"old authority" during migration to explicitly state that pause semantics apply
only to CAPI controllers/resources (not MAPI resources) or that the migration
process treats CAPI-managed resources as paused by CAPI controllers, clarifying
that MAPI resources are not paused by the same annotation; locate and edit the
instances referencing "old authority" and "migration" to use this explicit
phrasing and reference the cluster.x-k8s.io/paused annotation and the "Paused"
glossary term for consistency.
- Line 115: Replace the phrase "Authoritative copy" with the canonical glossary
term "Authoritative API" in the sentence quoted (the line containing the sync
controller description), so it reads consistently with the defined terms
(Authoritative API and Non-Authoritative) and avoids reintroducing ambiguity
about the copy vs API wording.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 8d2f3de9-265f-4ea5-9fae-ac8dcf3d4caf

📥 Commits

Reviewing files that changed from the base of the PR and between 89a8af4 and f7913df.

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

Comment thread UBIQUITOUS_LANGUAGE.md
Comment on lines +63 to +64
| **Paused** | A state where a CAPI resource's reconciler stops processing it, controlled by the `cluster.x-k8s.io/paused` annotation | Frozen, suspended, disabled |
| **Paused Annotation** | The `cluster.x-k8s.io/paused` annotation whose presence requests a CAPI controller to stop reconciling a resource | |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Pausing semantics are internally inconsistent across APIs.

Line 63 defines Paused as a CAPI-only behavior, but Line 100/Line 111 imply the “old authority” is always paused during migration. That reads as if MAPI resources can also be paused the same way, which conflicts with the glossary definition.

Suggested wording adjustment
-- During **Migration**, the old authority is **Paused** to prevent conflicting reconciliation
+- During **Migration**, if the old authority is a CAPI resource, it is **Paused** to prevent conflicting reconciliation; for MAPI authority, use explicit controller handoff semantics instead of CAPI pause terminology
-- **Domain expert:** "Both controllers are always running. The migration controller sets the status to **Migrating**, then requests the old **Authoritative API**'s resource to be **Paused**. It waits for the **Paused Condition** to confirm the old controller has stopped reconciling that specific resource, so only one controller is operating on any given **Instance** at a time."
+- **Domain expert:** "Both controllers are always running. The migration controller sets the status to **Migrating**. When the old authority is CAPI, it requests that resource to be **Paused** and waits for the **Paused Condition**; otherwise it uses the API-specific handoff path. This ensures only one controller operates on any given **Instance** at a time."

Also applies to: 100-100, 111-111

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@UBIQUITOUS_LANGUAGE.md` around lines 63 - 64, The glossary entry "Paused" and
"Paused Annotation" currently describe pause as a CAPI-only reconciler behavior
tied to the cluster.x-k8s.io/paused annotation; update the other mentions that
refer to the "old authority" during migration to explicitly state that pause
semantics apply only to CAPI controllers/resources (not MAPI resources) or that
the migration process treats CAPI-managed resources as paused by CAPI
controllers, clarifying that MAPI resources are not paused by the same
annotation; locate and edit the instances referencing "old authority" and
"migration" to use this explicit phrasing and reference the
cluster.x-k8s.io/paused annotation and the "Paused" glossary term for
consistency.

Comment thread UBIQUITOUS_LANGUAGE.md
>
> **Dev:** "And the Non-Authoritative copy -- is it just a mirror?"
>
> **Domain expert:** "Exactly. The sync controller performs **Conversion** from the **Authoritative** copy and updates the **Non-Authoritative** one. It tracks this via the **Synchronized Condition** and **Synchronized Generation** so we know when they've diverged."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Use canonical glossary term to avoid reintroducing ambiguity.

Line 115 says “Authoritative copy”, but the defined term is Authoritative API (and Non-Authoritative). Prefer the exact glossary term for consistency.

Suggested edit
-- > **Domain expert:** "Exactly. The sync controller performs **Conversion** from the **Authoritative** copy and updates the **Non-Authoritative** one. It tracks this via the **Synchronized Condition** and **Synchronized Generation** so we know when they've diverged."
+- > **Domain expert:** "Exactly. The sync controller performs **Conversion** from the copy managed by the **Authoritative API** and updates the **Non-Authoritative** one. It tracks this via the **Synchronized Condition** and **Synchronized Generation** so we know when they've diverged."
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
> **Domain expert:** "Exactly. The sync controller performs **Conversion** from the **Authoritative** copy and updates the **Non-Authoritative** one. It tracks this via the **Synchronized Condition** and **Synchronized Generation** so we know when they've diverged."
> **Domain expert:** "Exactly. The sync controller performs **Conversion** from the copy managed by the **Authoritative API** and updates the **Non-Authoritative** one. It tracks this via the **Synchronized Condition** and **Synchronized Generation** so we know when they've diverged."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@UBIQUITOUS_LANGUAGE.md` at line 115, Replace the phrase "Authoritative copy"
with the canonical glossary term "Authoritative API" in the sentence quoted (the
line containing the sync controller description), so it reads consistently with
the defined terms (Authoritative API and Non-Authoritative) and avoids
reintroducing ambiguity about the copy vs API wording.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 27, 2026

@mdbooth: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@damdo
Copy link
Copy Markdown
Member

damdo commented Apr 28, 2026

Do we want to hook this up to AGENTS.md then? TY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants