Skip to content

docs(agents): consolidate build, test, and verification guidance - #2933

Merged
Aleksei Sviridkin (lexfrei) merged 6 commits into
mainfrom
docs/agentic-files-consolidation
Jun 22, 2026
Merged

Aleksei Sviridkin (lexfrei) merged 6 commits into
mainfrom
docs/agentic-files-consolidation

Conversation

@myasnikovdaniil

@myasnikovdaniil myasnikovdaniil commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Promotes universal project guidance that previously lived only in a local
(gitignored) CLAUDE.md into the committed agent docs, so every contributor and
every tool (Codex/Cursor/etc., not just Claude) gets it from a fresh clone.

  • overview.md: Build & Development Commands (root + per-package make targets,
    build env vars), Values schema generation, a Testing section, Domain references
  • contributing.md: a "Verify Before Considering Done" matrix + Review Expectations
  • Dedup: overview.md's Git Commits block now points to contributing.md

Note: overview.md links to docs/agents/e2e-testing.md added in #2932 — merge
that one first or together.

Release note

NONE

Summary by CodeRabbit

  • Documentation
    • Expanded contribution guidance with a “Verify Before Considering Done” pre-submission checklist and clearer expectations for including behavioral regression tests in bug-fix PRs.
    • Broadened build/development documentation with a “Build and Development Commands” guide, including required environment variables, values-schema generation, and test entry points.
    • Updated contribution workflow notes by consolidating commit-convention guidance and adding pointers to task-specific design references.
    • Added a Claude entry-point document that directs to the main agents guide and explains local override placement.

Promote the universal project guidance that previously lived only in a
local CLAUDE.md into the committed agent docs, so every contributor and
every tool (Codex/Cursor/etc., not just Claude) gets it from a fresh
clone.

overview.md gains Build and Development Commands (root + per-package
make targets, build env vars), Values schema generation, a Testing
section, and Domain references. contributing.md gains a "Verify Before
Considering Done" matrix and Review Expectations. Dedup: overview's Git
Commits block now points to contributing.md instead of restating it.

Assisted-By: Claude <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request centralizes essential project guidance by migrating information from local configuration files into the official documentation. By consolidating build commands, testing procedures, and contribution standards, the changes ensure that all developers and automated tools have access to up-to-date workflows from a fresh clone. The update also introduces clearer verification steps and review expectations to maintain high code quality across the repository.

Highlights

  • Consolidated Documentation: Promoted project guidance from local, gitignored files into the main repository documentation to ensure all contributors and AI tools have access to consistent instructions.
  • Build and Development Commands: Added comprehensive sections to overview.md detailing root and per-package make targets, environment variables, and testing procedures.
  • Verification and Review Standards: Introduced a 'Verify Before Considering Done' checklist and explicit review expectations in contributing.md to improve PR quality and consistency.
  • Documentation Deduplication: Streamlined the Git Commits section in overview.md by referencing contributing.md as the single source of truth.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment Gemini (@gemini-code-assist) Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on Gemini (@gemini-code-assist) comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 654a5720-c15b-451e-8e9e-fcedc0013add

📥 Commits

Reviewing files that changed from the base of the PR and between 52ff225 and be716a7.

📒 Files selected for processing (2)
  • docs/agents/contributing.md
  • docs/agents/overview.md
✅ Files skipped from review due to trivial changes (2)
  • docs/agents/contributing.md
  • docs/agents/overview.md

📝 Walkthrough

Walkthrough

Two agent documentation files receive new sections: overview.md gains a build/development commands reference, a condensed git-commit paragraph deferring to contributing.md, and a domain-references section. contributing.md gains a pre-PR verification checklist and a review expectations section covering regression tests and PR description structure. CLAUDE.md is added as an entry point that delegates Claude Code configuration to AGENTS.md.

Changes

Agent Documentation and Claude Code Setup

Layer / File(s) Summary
Build commands and pre-PR verification
docs/agents/overview.md, docs/agents/contributing.md
overview.md adds a "Build and Development Commands" section with root and per-package make targets, required environment variables, values.schema.json generation steps, and testing pointers. contributing.md adds a "Verify Before Considering Done" checklist instructing contributors to rerun Helm/Go/schema/migration commands before opening a PR.
Git commit guidance, review expectations, and domain references
docs/agents/overview.md, docs/agents/contributing.md
overview.md replaces the Conventional Commits bullet list with a condensed paragraph pointing to contributing.md and adds a "Domain references for specific tasks" section listing internal design docs and the app-package creation pattern. contributing.md adds a "Review Expectations" section requiring regression tests in bug-fix PRs and alignment with the PR description template.
Claude Code configuration
CLAUDE.md
CLAUDE.md establishes AGENTS.md as the single source of truth for Claude Code and documents the location for personal configuration overrides in CLAUDE.local.md.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Poem

🐇 A rabbit checks the Helm before the hop,
Reruns the schema, gives the tests a pop.
"Verify before done!" the docs now say,
With domain refs to guide you on your way.
Claude bows to AGENTS—let the truth ring clear—
When docs and code agree, the path is near! 🌱

🚥 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 'docs(agents): consolidate build, test, and verification guidance' directly and accurately reflects the main changes: consolidating build commands, testing guidance, and verification instructions from scattered locations into the committed agent documentation.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agentic-files-consolidation

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.

@dosubot dosubot 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 labels Jun 16, 2026

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the documentation in 'docs/agents/contributing.md' and 'docs/agents/overview.md' to include build and development commands, review expectations, and domain-specific task references. The review comments provide actionable suggestions to improve the clarity and precision of the documentation regarding the 'make unit-tests' target and PR description guidelines.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/agents/overview.md Outdated

```bash
make build # Build all Docker images (needs: docker, skopeo, jq, gh, helm, yq, GNU tar/sed/awk)
make unit-tests # Run Helm unit tests across all packages

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.

low

The make unit-tests target in the root Makefile actually runs all unit tests, including Helm unit tests, BATS unit tests, Go unit tests, and other checks. Updating the comment to reflect this will prevent confusion.

Suggested change
make unit-tests # Run Helm unit tests across all packages
make unit-tests # Run all unit tests (Helm, BATS, Go, etc.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch: make unit-tests aggregates helm-unit-tests bats-unit-tests go-unit-tests rd-presets-check test-check-readiness, so it isn't Helm-only. Updated the comment to "Run all unit tests (Helm, BATS, Go, etc.)" in aaa2688.

Comment thread docs/agents/overview.md Outdated

## Testing

- **Helm unit tests:** `make unit-tests` (runs `hack/helm-unit-tests.sh` over every package that defines a `test` target).

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.

low

Since make unit-tests runs all unit tests (including Go and BATS), it is more precise to mention make helm-unit-tests for running only the Helm unit tests, or clarify that make unit-tests runs the entire suite.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed. The Helm-only target is make helm-unit-tests (which invokes hack/helm-unit-tests.sh); make unit-tests runs the full suite. Repointed the bullet at make helm-unit-tests and noted that make unit-tests covers Helm, BATS, Go, and the preset/readiness checks in 71d76ec.

Comment thread docs/agents/contributing.md Outdated
## Review Expectations

- A bug-fix PR should include a behavioural regression test, not just a single field assertion — prove the bug can no longer recur.
- Keep the PR description on the template: `## What this PR does` plus the `release-note` block.

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.

low

The phrase "Keep the PR description on the template" is slightly awkward. It would be clearer to say "Adhere to the PR description template" or "Keep the PR description matching the template".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reworded to "Keep the PR description aligned with the template" in 680e3cc.

@github-actions github-actions Bot added the size/M This PR changes 30-99 lines, ignoring generated files label Jun 16, 2026

@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`:
- Around line 141-148: The documentation link referencing
internal/controller/dashboard/README.md on line 145 is broken because that file
does not exist. You need to either create the missing README.md file at that
path with appropriate documentation about dashboard resources, or update the
reference in the overview.md file to point to an existing file that contains the
relevant dashboard documentation. Check what actually documents the dashboard
resources in your codebase and update the reference accordingly to match an
existing file path.
🪄 Autofix (Beta)

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

Run ID: 2f8aa39a-9650-40ca-ba0e-6c1ac815b153

📥 Commits

Reviewing files that changed from the base of the PR and between 39f3ac7 and 943d593.

📒 Files selected for processing (2)
  • docs/agents/contributing.md
  • docs/agents/overview.md

Comment thread docs/agents/overview.md
myasnikovdaniil and others added 5 commits June 17, 2026 19:50
Claude Code does not natively support AGENTS.md; add the thin CLAUDE.md
shim so all Claude Code sessions pick up the same guidance as other tools.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
Address review feedback from gemini-code-assist on docs/agents/overview.md:72:
make unit-tests runs the full suite (Helm, BATS, Go, presets, readiness),
not only Helm unit tests.

Assisted-By: Claude <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
Address review feedback from gemini-code-assist on docs/agents/overview.md:103:
the Helm-only target is make helm-unit-tests; make unit-tests runs the full
unit suite. Point the bullet at the precise target and note the difference.

Assisted-By: Claude <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
Address review feedback from gemini-code-assist on docs/agents/contributing.md:145:
reword the awkward "on the template" phrasing to "aligned with the template".

Assisted-By: Claude <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
Address review feedback from coderabbitai on docs/agents/overview.md:145:
internal/controller/dashboard/README.md does not exist (no such directory),
and there is no dashboard reference doc to point to. Remove the dead bullet;
the backups DESIGN.md reference is valid and kept.

Assisted-By: Claude <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>

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.

LGTM — the new build/test/verify content is accurate against the actual Makefile and hack/ tooling, and every bot finding is already addressed. One operational caveat: a documented merge-order dependency on #2932.

Business context: promote universal project guidance that previously lived only in a local (globally-gitignored) CLAUDE.md into the committed agent docs, so every contributor and every tool (via AGENTS.md) gets it from a fresh clone.

Verified the doc claims against source (not just the diff):

  • REGISTRY default ghcr.io/cozystack/cozystack — hack/common-envs.mk:8.
  • PUSH / LOAD map to buildx --push / --load — hack/common-envs.mk:44 (BUILDX_ARGS := … --push=$(PUSH) --load=$(LOAD)).
  • make unit-tests aggregates helm/bats/go/rd-presets/readiness — Makefile:101; make helm-unit-tests is the Helm-only target.
  • make generate → hack/update-codegen.sh — Makefile:168.
  • Per-package show/apply/diff come from hack/package.mk; image/test/generate are defined per package (e.g. image: in 31 package Makefiles).
  • build-deps requires the documented tool set (docker, skopeo, jq, gh, helm, mikefarah yq, GNU tar/sed/awk) — Makefile:5.

Merge precondition (not a code change)

docs/agents/overview.md:104 links to docs/agents/e2e-testing.md, which exists only on #2932's branch (open, not yet merged). Merging this PR alone ships a dead link — the same class of issue fixed in be716a7e within this very PR. Merge #2932 first, or both together. You already flagged this in the PR body; restating it as a hard gate so it isn't merged standalone by accident.

Non-blocking follow-up

  1. CLAUDE.md becomes tracked at the repo root, but .gitignore ignores only .claude/, not the root CLAUDE.md. Contributors who keep a personal untracked CLAUDE.md (common for this repo's audience) will hit untracked working tree file 'CLAUDE.md' would be overwritten on their next pull. Harmless once they move overrides to CLAUDE.local.md as the wrapper instructs — worth a one-line heads-up in the merge/release note.

@lexfrei
Aleksei Sviridkin (lexfrei) merged commit a8c3a57 into main Jun 22, 2026
10 checks passed
@lexfrei
Aleksei Sviridkin (lexfrei) deleted the docs/agentic-files-consolidation branch June 22, 2026 08:50
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/M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants