-
Notifications
You must be signed in to change notification settings - Fork 212
NO-JIRA: Create AGENTS.md file #1268
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
NO-JIRA: Create AGENTS.md file #1268
Conversation
|
@DavidHurta: This pull request explicitly references no jira issue. DetailsIn response to this: 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. |
WalkthroughTwo new top-level documentation files were added: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
Comment |
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (2)
AGENTS.md(1 hunks)CLAUDE.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
CLAUDE.mdAGENTS.md
🪛 markdownlint-cli2 (0.18.1)
AGENTS.md
50-50: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
58-58: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
65-65: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
75-75: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
82-82: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
87-87: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
94-94: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
98-98: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
105-105: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
112-112: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
122-122: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
170-170: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🔇 Additional comments (1)
CLAUDE.md (1)
1-1: Resolve critical mismatch: CLAUDE.md appears to contain only a reference to AGENTS.md instead of the comprehensive CVO documentation described in the PR.The file content shows only "AGENTS.md" on line 1, but the PR description indicates CLAUDE.md should contain comprehensive guidelines covering CVO architecture, build/test procedures, development workflows, and more. Either the file content is incomplete/incorrect, or the files may be reversed or mislabeled.
Please clarify:
- Should CLAUDE.md contain the full documentation currently shown as AGENTS.md content?
- Are the filenames and content correctly assigned?
- If CLAUDE.md should only reference AGENTS.md, this should be documented more explicitly with proper context.
|
/hold I am working on changes. |
69de6b9 to
9b44e1f
Compare
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: 0
🧹 Nitpick comments (1)
AGENTS.md (1)
129-142: Document security considerations for the cluster patching example.Lines 129–142 provide practical guidance for testing changes locally, including direct JSON patch operations on the CVO deployment. While the comment emphasizes "disposable test clusters only!", consider adding a brief warning about the risks of manually patching deployments in production (e.g., circumventing GitOps workflows, losing changes on operator reconciliation).
Consider adding a note like:
# Inject into running cluster (disposable test clusters only!) +# WARNING: Manual patches are temporary and will be overwritten by the cluster operator. +# Use only for testing; for persistent changes, modify the release payload or use proper GitOps workflows. pullspec=${REPO}/ocp-release:latestThis reinforces best practices and prevents accidental misuse of this pattern.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (2)
AGENTS.md(1 hunks)CLAUDE.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
CLAUDE.mdAGENTS.md
🔇 Additional comments (3)
CLAUDE.md (1)
1-1: Clarify the purpose of CLAUDE.md.This file contains only a reference to "AGENTS.md" without explanation. If this is meant to be a redirect or entry point to the documentation, make that explicit. If it serves no purpose, consider removing it in favor of relying on AGENTS.md directly.
Can you explain the intended purpose of this file and whether it should contain additional guidance or if it can be removed?
AGENTS.md (2)
48-126: Verify heading hierarchy is intentional.The architecture sections now use level 4 headings (
####) nested under "Core Components" (level 3, line 48). While this creates a valid hierarchy, the previous review suggested level 3 headings (###).Confirm whether the deeper nesting (#### instead of ###) is intentional, or if sections should be promoted to level 3 for better document structure and accessibility. This affects both the "Core Components" subsections (lines 50–91) and the "Key Patterns" subsections (lines 105–126).
Can you confirm whether the level 4 heading choice is intentional? If not, the document may benefit from promotion to level 3 (
###) for better visual hierarchy and outline navigation.
160-165: Verify referenced documentation file paths exist.Lines 164–165 reference two documentation files in the
docs/dev/directory:
feed-cvo-custom-graphs.mdrun-cvo-locally.mdConfirm these files exist at the specified paths to ensure the documentation references are valid and not broken links for readers following this guide.
|
/unhold |
9b44e1f to
688efd2
Compare
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: 0
🧹 Nitpick comments (1)
AGENTS.md (1)
77-82: Consider mentioning auto-generated file in Resource Libraries section.The Resource Libraries section describes the contents of
lib/, but some files in this directory are auto-generated viahack/generate-lib-resources.py. This context would be helpful for developers working with or modifying these libraries.You may optionally add a note like:
#### Resource Libraries (lib/) - `resourcebuilder/`: Builds Kubernetes resources from manifests - `resourceapply/`: Applies resources with proper merge semantics for different API types - `resourcemerge/`: Merges resource specifications - `resourceread/`: Reads and validates manifests - `capability/`: Manages cluster capability filtering + +Note: Some resource library files are auto-generated via `hack/generate-lib-resources.py`.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (2)
AGENTS.md(1 hunks)CLAUDE.md(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- CLAUDE.md
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
AGENTS.md
🔇 Additional comments (2)
AGENTS.md (2)
120-128: Clarify signature validation timing in the Update Flow.The current description suggests signature validation happens after retrieval, but signature validation actually occurs before retrieving the payload image (as noted in prior review feedback). This is an important detail because signature verification prevents launching an untrusted image. Additionally, there is no way to disable verification;
force: trueskips validation attempt failures but doesn't disable verification itself.Consider rewording line 124 to reflect this sequence:
#### Update Flow 1. CVO fetches available updates from configured upstream (OSUS) 2. Updates stored in `status.availableUpdates` and `status.conditionalUpdates` of `ClusterVersion` resource 3. User/admin sets `spec.desiredUpdate` to trigger upgrade -4. Validates payload signatures -5. CVO retrieves new release payload image +4. Validates payload signatures (occurs before retrieval to ensure only trusted images are launched) +5. CVO retrieves new release payload image
1-189: Documentation structure and accuracy look good overall.The file is well-organized, covers essential CVO concepts, and provides practical guidance for AI assistants working with the codebase. Markdown formatting complies with linting standards, and the content accurately reflects CVO's architecture and workflows. The coverage of entry points, update flows, and debugging guidance is comprehensive.
wking
left a comment
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.
Thanks! Looks good to me for initial content, and we can continue to refine this and the human-facing doc locations further in the future.
/lgtm
|
/hold |
Generated-by: Claude Code
To ensure that Claude Code can confidently find the guidance content.
a93f51a to
6ca8369
Compare
|
/unhold |
|
@DavidHurta: This PR has been marked as verified by DetailsIn response to this:
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. |
wking
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DavidHurta, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@DavidHurta: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
No description provided.