docs(agents): require accepted designs before merging implementations (#5465)

<!-- Thank you for making a contribution! Here are some tips for you:
- Use Conventional Commits for the PR title: `type(scope): description`
-->

## What this PR does

The contributing guide sends architectural changes to a design proposal
in cozystack/community, but it never said when the code implementing one
may merge. A clean implementation could land while its proposal was
still under review, and the design then had to follow the code that
shipped first.

`CONTRIBUTING.md` now says that such a pull request stays in draft until
the proposal is merged into community, that opening it early as a proof
of concept is welcome, and that it closes if the proposal is closed
without being accepted. The `triage/needs-proposal` line in `AGENTS.md`
and the pull request checklist in `docs/agents/contributing.md` point to
that paragraph, so the rule lives in one place.

### Screenshots

Not a UI change.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:

None of the code repositories is reached. I left the community box open
on purpose: its `design-proposals/README.md` could state the same rule
from the proposal side, and whether to add it is a maintainers' call, so
I have not opened anything there.

### Release note

```release-note
docs(contributing): a pull request that implements a design proposal stays in draft until the proposal is accepted in cozystack/community.
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Clarified that implementation pull requests for design proposals may
be opened early as drafts for proof-of-concept work, but can merge only
after the proposal is accepted.
* Added guidance to link early proof-of-concept work from the proposal
and to close the implementation if the proposal is not accepted.
* Clarified that accepted proposals require a separate implementation
issue, which may be an existing issue that references the proposal.
* Updated the contributor checklist to reference the draft pull request
guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Aleksei Sviridkin authored and GitHub committed 2026-12-02 12:46:03 +03:00
commit 17eb78d952
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ This file provides structured guidance for AI coding assistants and agents worki
- Read: [`.github/labels.yml`](./.github/labels.yml)
- Action: Use labels defined there. Conventions follow the Kubernetes scheme — `kind/*` (type), `area/*` (subsystem), `priority/*` (urgency), `triage/*` (review state), `lifecycle/*` (auto-close), `do-not-merge/*` (PR blockers), `security/*` (severity)
- For `triage/*`: `.github/workflows/issue-triage.yaml` labels an issue on arrival and sweeps daily for any open issue carrying none, so change a triage decision by replacing the label rather than removing it — remove the only `triage/*` label an issue has and the next sweep puts one back
- A feature request that needs design first gets `triage/needs-proposal`, is re-filed in [cozystack/community](https://github.com/cozystack/community) as an issue or a design-proposal PR, and is closed here with a link to it (re-file rather than transfer, so the label stays on the closed issue as the record); work in this repository starts only once that proposal is accepted, from a new issue that references it
- A feature request that needs design first gets `triage/needs-proposal`, is re-filed in [cozystack/community](https://github.com/cozystack/community) as an issue or a design-proposal PR, and is closed here with a link to it (re-file rather than transfer, so the label stays on the closed issue as the record); work in this repository starts only once that proposal is accepted, from a new issue that references it; the one exception is a proof-of-concept implementation, which may open earlier as a draft pull request and merges only after the proposal is accepted (see [CONTRIBUTING.md](./CONTRIBUTING.md#where-do-i-file)). After acceptance, the proof of concept follows the same implementation-issue requirement: an existing implementation issue can be reused if it is separate from the closed feature request and references the accepted proposal.
- For `area/*`: accuracy outweighs reuse. If no existing `area/*` truly fits the change, propose a new one via PR (extend `.github/labels.yml` and the scope mapping in `.github/workflows/pr-labeler.yaml`) — do not shoehorn the change into a wrong area. `area/uncategorized` is the auto-labeler fallback; treat it as a signal to pick a fit, create a new area, or correct the PR title
- PR titles: a Conventional Commits header (`type(scope): description`, types from [`contributing.md`](./docs/agents/contributing.md)) auto-applies `kind/*` and `area/*` via `.github/workflows/pr-labeler.yaml`. Append `!` (or add a `BREAKING CHANGE:` footer) to apply `kind/breaking-change`
+2
View File
@@ -50,6 +50,8 @@ Cozystack work is split across two repositories. Use this table to land in the r
Rule of thumb: **bugs and concrete features live here; "what or whether we should build it" lives in [community](https://github.com/cozystack/community)** as a design proposal or discussion. A large feature often starts as a Discussion, graduates to a design-proposal PR, then spawns implementation issues here.
A pull request that implements a design proposal waits for that proposal to be accepted, that is, merged into [community](https://github.com/cozystack/community). An issue can start the discussion, but acceptance requires a merged design-proposal pull request. Until then it stays in draft, however clean the code is: code merged ahead of its design becomes the contract the design then has to follow. Opening the implementation early as a proof of concept is welcome, and linking it from the proposal helps the review. If the proposal is closed without being accepted, the implementation is closed with it.
## Raising Issues
When raising issues, please specify the following:
+1
View File
@@ -10,6 +10,7 @@ Project-side conventions for commits, branches, and pull requests in Cozystack.
- [ ] Branch is rebased on `upstream/main` (no extra commits)
- [ ] PR body includes description and release note
- [ ] Ran `make generate` in every package whose `values.yaml`, `values.schema.json`, `Chart.yaml`, or `README.md` was touched, and committed the regenerated files
- [ ] If the change implements a design proposal, the PR stays draft until the proposal is merged in cozystack/community ([CONTRIBUTING.md](../../CONTRIBUTING.md#where-do-i-file))
- [ ] Walked the [Downstream Repositories](#downstream-repositories) trigger map against the diff, and linked a follow-up (a PR, or an issue when the PR is out of scope) in every repository the change reaches
## Regenerate Artifacts Before Committing