Skip to content

docs(agents): define where a new document belongs - #3777

Open
myasnikovdaniil wants to merge 1 commit into
mainfrom
docs/placement-convention
Open

docs(agents): define where a new document belongs#3777
myasnikovdaniil wants to merge 1 commit into
mainfrom
docs/placement-convention

Conversation

@myasnikovdaniil

@myasnikovdaniil myasnikovdaniil commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What this PR does

docs/ had collected component guides that belong on the website, standalone oidc, gpu and vm networking documents written inside the feature PRs that added the code and never routed anywhere a user looks. Nothing said where documentation should go, and in particular nothing mentioned that the website appends a whole package README onto a published page, so a contributor with package scoped prose had no reason to use that route.

This replaces the four line "Documentation is organized as follows" list in docs/agents/overview.md with a destination table and the test that separates docs/ from the website: whether a non-documentation file has to link to the document by path. It also says that a merged document records current behaviour and its limitations, not the development process around it, which is the "What is NOT in Phase N" and "this PR" residue that motivated the whole thing.

One such residue dropped while here, docs/operations/backup-classes.md described a pin as one "this PR removes".

Moving the documents themselves is a separate PR.

Downstream repositories

  • No downstream repository is affected by this change

Walked the trigger map against the diff: this touches docs/agents/overview.md and docs/operations/backup-classes.md only. No package added, renamed or removed, no values.yaml or values.schema.json field, no packages/core/platform/values.yaml key, no bundle or variant, no release asset name, no ApplicationDefinition semantics, no Talos pin, and no change to cozyvalues-gen, cozypkg or a package Makefile.

Release note

NONE

Summary by CodeRabbit

  • Documentation
    • Added detailed guidance for selecting appropriate destinations for new documentation.
    • Clarified when to use repository documentation versus website content.
    • Documented limitations, development scope, API design materials, community RFCs, and unreleased work references.
    • Clarified the cause of a historical CloudNativePG image and CRD version mismatch.

The `docs/` tree had accumulated component guides that belong on the
website: standalone OIDC, GPU/vGPU and VM-networking documents written
as part of a feature PR and never routed anywhere. Nothing said where
documentation should go, and in particular nothing mentioned that the
website appends a whole package README onto a published page, so a
contributor with package-scoped prose had no reason to use that route.

Replace the four-line "Documentation is organized as follows" list with
a destination table and the test that separates `docs/` from the
website: whether a non-documentation file has to link to the document by
path. Also state that a merged document records current behaviour and
its limitations, not the development process around it — the
"What is NOT in Phase N" and "this PR" residue that motivated this.

Drop one such residue while here: backup-classes.md described a pin as
one "this PR removes".

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation updates add rules for selecting documentation destinations and clarify the cause of historical CloudNativePG image and CRD version skew.

Changes

Documentation placement guidance

Layer / File(s) Summary
Documentation destination and scope rules
docs/agents/overview.md
Adds guidance for choosing documentation locations, publishing and versioning content, documenting limitations and development scope, and tracking unreleased work.

CloudNativePG upgrade note

Layer / File(s) Summary
CloudNativePG version skew clarification
docs/operations/backup-classes.md
Updates the note to state that the outdated image.tag pin caused the historical CRD version skew and has been removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: kvaps

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main documentation change: defining where new documents belong.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/placement-convention

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/agents/overview.md`:
- Line 139: Update the documentation guidance in the README publishing sentence
to clarify that the website pull request is automated, replacing “without a
second PR” with wording such as “without a second manual PR by the author.”
Preserve the existing explanation of the website update targets and package
README workflow.
🪄 Autofix

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 74d71a77-500b-4e7c-8d89-8bca4d2e0740

📥 Commits

Reviewing files that changed from the base of the PR and between e944619 and f98f455.

📒 Files selected for processing (2)
  • docs/agents/overview.md
  • docs/operations/backup-classes.md

Comment thread docs/agents/overview.md

| Destination | What belongs there |
| --- | --- |
| `packages/<group>/<name>/README.md` | Anything scoped to a single package. Prose goes **above** `## Parameters`; that section is `cozyvalues-gen` output and is never hand-edited. The website's `make update-apps` / `update-vms` / `update-networking` / `update-k8s` / `update-services` targets append the whole README onto a published page, so this route reaches users without a second PR. Prefer it whenever the content fits one package. |

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.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Clarify the second pull request requirement.

docs/release.md states that the website-docs job opens a separate cozystack/website documentation pull request. Replace “without a second PR” with “without a second manual PR by the author,” or state that the website PR is automated.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/agents/overview.md` at line 139, Update the documentation guidance in
the README publishing sentence to clarify that the website pull request is
automated, replacing “without a second PR” with wording such as “without a
second manual PR by the author.” Preserve the existing explanation of the
website update targets and package README workflow.

@github-actions github-actions Bot added area/ai Issues or PRs related to AI agent guides, AGENTS.md, docs/agents/ kind/documentation Categorizes issue or PR as related to documentation size/S This PR changes 10-29 lines, ignoring generated files labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ai Issues or PRs related to AI agent guides, AGENTS.md, docs/agents/ kind/documentation Categorizes issue or PR as related to documentation size/S This PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant