Skip to content

chore: update deployment plan rfc for argo CR diff task - #1121

Merged
adityachoudhari26 merged 1 commit into
mainfrom
update-dpeloyment-plan-rfc
May 12, 2026
Merged

adityachoudhari26 merged 1 commit into
mainfrom
update-dpeloyment-plan-rfc

Conversation

@adityachoudhari26

@adityachoudhari26 adityachoudhari26 commented May 12, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation
    • Updated RFC documentation describing improvements to plan-result handling and result aggregation capabilities.

Copilot AI review requested due to automatic review settings May 12, 2026 16:01
@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d0b36117-023c-423e-a865-c0ede8dd674e

📥 Commits

Reviewing files that changed from the base of the PR and between 0adc54d and 884c2ef.

📒 Files selected for processing (3)
  • docs/docs.json
  • docs/rfc/0013-generalized-deployment-plans.mdx
  • docs/rfc/0013-multi-kind-plan-results.mdx

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Walkthrough

This PR replaces RFC 0013 documentation, swapping the old "generalized deployment plans" RFC for a new "multi-kind plan results" RFC. The navigation entry is updated to point to the new RFC. The new RFC specifies extending the plan-result model to emit multiple labeled diffs per agent invocation via a kind column, including storage, contract, controller, validation, aggregation, UI, and migration changes.

Changes

RFC 0013 Replacement: Multi-Kind Plan Results

Layer / File(s) Summary
Navigation update
docs/docs.json
RFC navigation entry updated from rfc/0013-generalized-deployment-plans to rfc/0013-multi-kind-plan-results.
RFC specification document
docs/rfc/0013-multi-kind-plan-results.mdx
New RFC 0013 document specifying plan-result model changes: kind column in storage, Plannable.Plan returning multiple PlanResult entries, stage-2 controller fan-out behavior, OPA validation aggregation across kinds, agent-level rollup semantics, UI changes for multi-kind visualization and selection, GitHub check rendering updates, migration handling for legacy kind='' rows, and open questions on violation attribution and backfill strategy.
Old RFC removal
docs/rfc/0013-generalized-deployment-plans.mdx
Previous RFC 0013 document removed (264 lines deleted).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

An old RFC hops away, new plans come to play,
Multi-kind results brighten the day!
Where one diff lived alone, now many dance free,
Each kind a new possibility for all to see,
Our burrow of knowledge grows wider and bright! 🐰

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-dpeloyment-plan-rfc

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.

❤️ Share

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

@adityachoudhari26
adityachoudhari26 merged commit f00eb8b into main May 12, 2026
7 of 8 checks passed
@adityachoudhari26
adityachoudhari26 deleted the update-dpeloyment-plan-rfc branch May 12, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the RFC documentation around deployment plan outputs by replacing the prior RFC 0013 (“Generalized Deployment Plans”) with a new RFC 0013 focused on supporting multiple diff outputs (“kinds”) per job agent invocation (e.g., surfacing an ArgoCD Application CR diff alongside the manifest diff). It also updates the docs navigation to point at the new RFC.

Changes:

  • Add new RFC 0013 describing “multi-kind” plan results via a new kind column and updated Plannable.Plan return shape.
  • Remove the previous RFC 0013 (“Generalized Deployment Plans”) document.
  • Update Mintlify docs navigation to reference the new RFC filename/slug.

Reviewed changes

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

File Description
docs/rfc/0013-multi-kind-plan-results.mdx New RFC describing schema/controller/validation/UI implications for multiple plan result kinds per agent invocation.
docs/rfc/0013-generalized-deployment-plans.mdx Removed prior RFC 0013 content (generalized plan triggers/snapshots).
docs/docs.json Docs navigation updated to point RFC 0013 at the new “multi-kind plan results” page.

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

Comment on lines +55 to +63
```go
type PlanResult struct {
Kind string
Current string
Proposed string
HasChanges bool
ContentHash string
Status, Message, State, CompletedAt // unchanged
}
Comment on lines +22 to +23
`argocd_plan.go:111`) — used to create a temp Application, then discarded
after the downstream manifest diff is extracted.
Comment on lines +87 to +101
```json
{
"manifest": { "current": <parsed>, "proposed": <parsed>, "has_changes": true },
"cr": { "current": <parsed>, "proposed": <parsed>, "has_changes": true },
"agent_type": "argo-cd",
"deployment": { ... }, "environment": { ... }, "resource": { ... },
"proposed_version": { ... }, "current_version": { ... }
}
```

Rules self-select via `input.manifest.proposed` / `input.cr.proposed`. No
DB-layer routing, no per-rule `applies_to_kind` declaration. Reserved
top-level keys — `agent_type`, `deployment`, `environment`, `resource`,
`proposed_version`, `current_version` — are documented; agents shouldn't use
these as section names.
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.

2 participants