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

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 guidance for choosing where new documentation belongs, including package READMEs, the website, repository docs, API design files, and community resources.
    • Clarified website versioning, when repository-path references warrant keeping content in repository docs, and how to describe current limitations and unreleased dependencies.
    • Updated the CloudNativePG upgrade note: no separate CRD apply is needed unless the HelmRelease is held back.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: cozystack/cozystack/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 96421542-1bc0-47f5-aaf3-aea134ad2f1c
📥 Commits

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

📒 Files selected for processing (2)
  • docs/agents/overview.md
  • docs/operations/backup-classes.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/operations/backup-classes.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The documentation updates add guidance for selecting documentation destinations and revise a CloudNativePG upgrade note to state that the image.tag pin has already been removed.

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 repository scope, and tracking claims about unreleased work.

Backup upgrade note

Layer / File(s) Summary
CloudNativePG version skew clarification
docs/operations/backup-classes.md
States that the image.tag pin has already been removed and clarifies when an out-of-band CRD apply may be needed.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: 🔵 Low · up to 16404

The documentation may leave authors unclear about the automated website PR, but the workflow itself is correct and the impact is limited to guidance clarity.

🚥 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 describes the main change: adding guidance on where new documentation belongs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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)
  • Commit to this branch
  • Create a new PR

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

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.

myasnikovdaniil NOT LGTM. The rule is still needed on current main, where overview.md has the old four-line list and docs/ still carries the GPU, OIDC and VLAN guides, but two rows of the new table send people to the wrong place.

The version rule for new website pages contradicts the website's own guide. The table says a new page goes into both next/ and the current released version. The website's CONTRIBUTING.md says a doc for a feature that ships in a future release goes into next/ only, and the current version directory is for fixes to what is already released. A doc written in the same PR as the feature is almost always the first case, so following this row would publish docs for an unreleased feature on the production site. I'd point at the website's CONTRIBUTING.md instead of restating its rules here, since a copy will drift.

The package README route only works for some packages. The website's update_apps.sh fetches packages/apps/<name>/README.md or packages/extra/<name>/README.md, and only for names in the APPS, VMS, NETWORKING, K8S and SERVICES lists in its Makefile. Nothing under packages/system/ is ever imported, and neither are apps like bucket, opensearch or valkey, or extras like gateway and external-dns. The sync is also a manual make update-* run in the website repo, not something that happens on merge. As written, "prefer it whenever the content fits one package" would send user docs for a system package into a README nobody reads. The row needs to name that limit.

The commit carries Assisted-By: Claude <[email protected]>. docs/agents/contributing.md takes only Assisted-by: LLM there.

The rest checks out against main. seaweedfs-431-rename-recovery.md is referenced by both seaweedfs _naming.tpl files and migration 53, both DESIGN.md paths exist, and the backup-classes.md edit is correct: postgres-operator/values.yaml no longer pins image.tag. The branch merges cleanly into current main and pre-commit is green.

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: LLM
Signed-off-by: Myasnikov Daniil <[email protected]>
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.

2 participants