Skip to content

ARO-25801: consolidate LLM workflow rules and local integration guidance#4739

Open
tuxerrante wants to merge 4 commits intomasterfrom
tuxerrante/aro-25801/llm-workflow-improvements
Open

ARO-25801: consolidate LLM workflow rules and local integration guidance#4739
tuxerrante wants to merge 4 commits intomasterfrom
tuxerrante/aro-25801/llm-workflow-improvements

Conversation

@tuxerrante
Copy link
Copy Markdown
Collaborator

@tuxerrante tuxerrante commented Apr 2, 2026

Summary

  • Add a team-wide .cursor/rules baseline for worktree isolation, safety rails, validation pipeline, clean history, PR lifecycle, and code review/style guidance.
  • Add and refine .cursor/skills/local-integration-testing/SKILL.md with Linux/Fedora-first instructions, separate macOS notes, and references to canonical docs/ pages to reduce drift.
  • Add two new workflow gates to prevent avoidable PR issues:
    • .cursor/rules/pre-push-gates.mdc (branch/worktree checks, typed API usage, error/logging/streaming checks)
    • .cursor/rules/review-gates.mdc (review checklist for type safety, error contract, logging consistency, concurrency/cleanup, and test depth)
  • Align existing guidance with current repo behavior to close review gaps:
    • remove drift-prone hardcoded controller count in safety-rails
    • clarify root-vs-pkg/api lint scope in makefile-first
    • add explicit pkg/api lint step in validation-pipeline
    • include RESOURCEGROUP in worktree E2E env validation in docs/testing.md

Test plan

  • Verify all unresolved PR review threads are addressed and marked resolved.
  • Verify branch updated with latest rules/docs commits and pushed to PR head.
  • Re-run PR checks in GitHub and confirm pipelines are executing on the new commit.
  • Wait for all CI systems (GitHub Actions + Azure Pipelines/Prow) to complete green.

Made with Cursor

…ance

Consolidate reusable Cursor rules and local integration testing instructions into a single team-focused change set. Keep Linux/Fedora as the default workflow, isolate macOS guidance, and document canonical docs references to reduce configuration drift.

Made-with: Cursor
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a team-wide .cursor/ baseline: reusable Cursor rules for worktree isolation, safety/approval rails, validation workflow, PR hygiene, and code review focus areas, plus a “local integration testing” skill to standardize how developers validate admin API/E2E flows against the containerized dev environment.

Changes:

  • Added multiple .cursor/rules/*.mdc rule documents covering worktrees, validation pipeline, safety rails, PR lifecycle, multi-module Go pitfalls, Makefile-first workflow, and code style/review checklists.
  • Added .cursor/skills/local-integration-testing/SKILL.md with Linux-first local RP + focused E2E guidance, plus macOS notes and troubleshooting pointers.
  • Linked guidance back to canonical docs/ pages to reduce drift.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
.cursor/skills/local-integration-testing/SKILL.md New Linux-first playbook for running the containerized dev RP and executing focused E2E/admin API verification.
.cursor/rules/worktree-isolation.mdc New rule enforcing isolated worktrees and host checkout hygiene.
.cursor/rules/validation-pipeline.mdc New ordered “fmt → lint → unit → full” validation guidance aligned to Makefile targets.
.cursor/rules/safety-rails.mdc New safety/approval gates and architecture invariants for sensitive operations.
.cursor/rules/pr-lifecycle.mdc New rule for PR creation, CI monitoring, and merge flow.
.cursor/rules/multi-module-awareness.mdc New rule documenting the root vs pkg/api Go module split and related test/build pitfalls.
.cursor/rules/makefile-first.mdc New rule emphasizing Makefile targets as the canonical interface for dev/CI workflows.
.cursor/rules/code-style.mdc New rule documenting CI-enforced formatting/import/error-handling conventions.
.cursor/rules/code-review.mdc New Go-focused review checklist rule (globs **/*.go).
.cursor/rules/clean-history.mdc New rule for keeping linear history and clean commits before PR submission.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .cursor/rules/worktree-isolation.mdc Outdated
Comment thread .cursor/rules/clean-history.mdc Outdated
Comment thread .cursor/rules/pr-lifecycle.mdc Outdated
Comment thread .cursor/skills/local-integration-testing/SKILL.md Outdated
Comment thread .cursor/skills/local-integration-testing/SKILL.md Outdated
Comment thread .cursor/skills/local-integration-testing/SKILL.md Outdated
Comment thread .cursor/skills/local-integration-testing/SKILL.md
Comment thread .cursor/rules/worktree-isolation.mdc Outdated
Comment thread .cursor/rules/clean-history.mdc Outdated
Comment thread .cursor/rules/clean-history.mdc Outdated
Align branch examples with master, harden worktree env linking guidance, and make local integration commands runtime-appropriate for Linux and macOS.

Made-with: Cursor
@rajdeepc2792
Copy link
Copy Markdown
Collaborator

Should we consolidate all the discussions around the usage of agents in the feature repo in the architecture PR:https://github.com/openshift-online/architecture/pull/71 ??
There are similar effort PRs:
Azure/ARO-HCP#4638 - @swiencki
#4726 - @shubhadapaithankar

I believe we should have a common agreed plan to move forward with any agentic code merging in the feature repos.

Document the minimal env sourcing and existing-cluster flags needed to run e2e reliably from a worktree so contributors avoid unset variable failures and unnecessary create/delete cycles.

Made-with: Cursor
Copilot AI review requested due to automatic review settings April 7, 2026 09:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/testing.md Outdated
Comment thread .cursor/rules/safety-rails.mdc Outdated
Comment thread .cursor/rules/makefile-first.mdc
Comment thread .cursor/rules/validation-pipeline.mdc
Add pre-push and reviewer gate rules from recent PR lessons, and align existing workflow docs with current repo behavior (module lint scope, controller count drift, and required E2E env vars) to close outstanding review feedback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants