-
Notifications
You must be signed in to change notification settings - Fork 21
Align the system prompt in the template with the system prompt in the config dir #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@eranco74 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 37 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe system prompt for the OpenShift Lightspeed Intelligent Assistant was significantly expanded and refined within the ConfigMap in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Assistant
participant OpenShift Installer
User->>Assistant: Provide input or confirmation
Assistant->>Assistant: Check current installation stage and memory
Assistant->>OpenShift Installer: Gather only missing or required information
OpenShift Installer-->>Assistant: Return requested data (e.g., cluster list, status)
Assistant->>User: Suggest next logical step or display required information
User->>Assistant: Affirm or provide missing info
Assistant->>OpenShift Installer: Proceed with next stage or action
OpenShift Installer-->>Assistant: Confirm success or report failure
Assistant->>User: Confirm success, suggest next step, or offer troubleshooting
Estimated code review effort2 (~15 minutes) Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
template.yaml (2)
135-148: Deduplicate & renumber checklist items 3 – 5Items 3 & 5 describe the same “unambiguous action triggering on affirmation” rule and are even word-for-word identical in several places. Keeping both adds visual noise and risks the two getting out of sync.
Suggestion:
- 3. **UNAMBIGUOUS ACTION TRIGGERING ON AFFIRMATION ("YES") & PROGRESSION (STAGE-SPECIFIC):** This is paramount. - * When you propose … - 5. **Unambiguous Action Triggering on Affirmation ("Yes") & Progression:** This is paramount. - * When you propose … + 3. **Unambiguous action triggering on user affirmation (“yes”)** – paramount. + * A user’s **“yes”** is an immediate, unconditional command to perform the proposed action and move to the next workflow stage. + * Do **not** re-summarise or re-ask; just act.Also update subsequent numbering (6 → 4, 7 → 5, …).
133-210: Clean up trailing whitespace – failsyamllint
yamllintflags every line with the~marker for trailing spaces (see static-analysis hints). While YAML parsers ignore them, they fail CI linting and pollute diffs.A quick pass with
sed -i 's/[[:space:]]\+$//' template.yaml(or your editor’s “trim trailing whitespace on save”) will resolve all 20+ occurrences.No functional change; purely hygiene.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
template.yaml(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
template.yaml
[error] 133-133: trailing spaces
(trailing-spaces)
[error] 147-147: trailing spaces
(trailing-spaces)
[error] 148-148: trailing spaces
(trailing-spaces)
[error] 149-149: trailing spaces
(trailing-spaces)
[error] 154-154: trailing spaces
(trailing-spaces)
[error] 158-158: trailing spaces
(trailing-spaces)
[error] 162-162: trailing spaces
(trailing-spaces)
[error] 165-165: trailing spaces
(trailing-spaces)
[error] 167-167: trailing spaces
(trailing-spaces)
[error] 169-169: trailing spaces
(trailing-spaces)
[error] 171-171: trailing spaces
(trailing-spaces)
[error] 173-173: trailing spaces
(trailing-spaces)
[error] 178-178: trailing spaces
(trailing-spaces)
[error] 182-182: trailing spaces
(trailing-spaces)
[error] 187-187: trailing spaces
(trailing-spaces)
[error] 192-192: trailing spaces
(trailing-spaces)
[error] 196-196: trailing spaces
(trailing-spaces)
[error] 199-199: trailing spaces
(trailing-spaces)
[error] 202-202: trailing spaces
(trailing-spaces)
[error] 209-209: trailing spaces
(trailing-spaces)
[error] 210-210: trailing spaces
(trailing-spaces)
| You are OpenShift Lightspeed Intelligent Assistant - an intelligent virtual assistant and expert on all things related to OpenShift installation, configuration, and troubleshooting, specifically with the Assisted Installer. | ||
| **Your highest priority during this entire interaction is to **maintain precise awareness of the current stage of the OpenShift Assisted Installer workflow and to never ask for information the user has already provided or that is irrelevant to the current phase.** | ||
| **Memory and Context Retention:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Malformed Markdown bold delimiters break rendering
The opening & closing ** pairs around the sentence are unbalanced:
**Your highest priority during this entire interaction is to **maintain precise awareness …
Only the first asterisks pair is closed, leaving the second ** orphaned. This will render the phrase starting from “maintain” in italics / plain text instead of bold and makes the prompt harder to read.
- **Your highest priority during this entire interaction is to **maintain precise awareness of the current stage …
+ **Your highest priority during this entire interaction is to _maintain precise awareness_ of the current stage …**(Or close the bold tag right after the sentence – whichever wording you prefer.)
📝 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.
| You are OpenShift Lightspeed Intelligent Assistant - an intelligent virtual assistant and expert on all things related to OpenShift installation, configuration, and troubleshooting, specifically with the Assisted Installer. | |
| **Your highest priority during this entire interaction is to **maintain precise awareness of the current stage of the OpenShift Assisted Installer workflow and to never ask for information the user has already provided or that is irrelevant to the current phase.** | |
| **Memory and Context Retention:** | |
| You are OpenShift Lightspeed Intelligent Assistant - an intelligent virtual assistant and expert on all things related to OpenShift installation, configuration, and troubleshooting, specifically with the Assisted Installer. | |
| - **Your highest priority during this entire interaction is to **maintain precise awareness of the current stage of the OpenShift Assisted Installer workflow and to never ask for information the user has already provided or that is irrelevant to the current phase.** | |
| + **Your highest priority during this entire interaction is to _maintain precise awareness_ of the current stage of the OpenShift Assisted Installer workflow and to never ask for information the user has already provided or that is irrelevant to the current phase.** | |
| **Memory and Context Retention:** |
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 133-133: trailing spaces
(trailing-spaces)
🤖 Prompt for AI Agents
In template.yaml around lines 130 to 134, the Markdown bold delimiters are
unbalanced in the sentence starting with "Your highest priority during this
entire interaction...". Fix this by ensuring the opening and closing double
asterisks (**) properly enclose the entire sentence or phrase intended to be
bold, so the Markdown renders correctly and the text is clearly emphasized.
…config dir Signed-off-by: Eran Cohen <[email protected]>
Summary by CodeRabbit