From 2408625a03dc01bb8a6be67105bfb991e2967324 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 04:24:31 +0000 Subject: [PATCH] docs: root CONTRIBUTING.md and README start-here links (#11191) CONTRIBUTING.md states the fleet contribution flow once, by link: worktrees and PRs, a clean primary clone, CI-first verification, documentation placement, and indexing new architecture/design records and ADRs. README.md gains a short start-here list pointing at the architecture index, CONTRIBUTING.md and the doc/ catalog. Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 6 ++++++ 2 files changed, 45 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..b728678415 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,39 @@ +# Contributing + +This repository is worked on by people and by a fleet of agents, and both +follow the same flow. This page states that flow once and links to the +documents that own each rule; it does not restate them. + +## How a change lands + +1. **Work in a worktree, on a branch.** Every change starts from a fresh + worktree on its own branch cut from `origin/main`. Changes land through + a pull request, never by pushing to `main`. Rules and reasons: + [`doc/agents/parallel-writers-and-subsessions.md`](doc/agents/parallel-writers-and-subsessions.md) + and [`planning/workflow/collaboration.md`](planning/workflow/collaboration.md). +2. **Leave the primary clone alone.** Nobody works in the primary + checkout: it stays on `main` and clean, and every session works in its + own worktree ([the worktrees rule](doc/agents/parallel-writers-and-subsessions.md)). +3. **Verify CI-first.** Builds and tests run in CI before heavy local + runs; the policy is [`.github/ci-policy.md`](.github/ci-policy.md) + (issue #1413). +4. **Put documentation where it belongs.** Maintained control documents + live in [`planning/`](planning/README.md) and change in place; dated, + immutable records live in [`doc/`](doc/README.md). The placement rules + are [`planning/DOCUMENTATION_ARCHITECTURE.md`](planning/DOCUMENTATION_ARCHITECTURE.md), + and record naming is [`doc/DOCUMENTATION_PROTOCOL.md`](doc/DOCUMENTATION_PROTOCOL.md). +5. **Index new architecture and design records.** A PR that adds an + architecture or design record also adds it to the + [architecture index](planning/architecture/README.md) in the same PR. + Architecture decision records go in + [`planning/architecture/adr/`](planning/architecture/adr/README.md), + started from [its template](planning/architecture/adr/TEMPLATE.md). + +Agents also follow the always-loaded rulebook in [`AGENTS.md`](AGENTS.md). + +## Licensing and sign-off + +Contributions are dual-licensed `MIT OR Apache-2.0` and signed off under +the [Developer Certificate of Origin](DCO-1.1); the terms are in +[`README.md`](README.md#contributing-information) and +[`COPYRIGHT.md`](COPYRIGHT.md). diff --git a/README.md b/README.md index ca1ea102d4..3d5c30e138 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ Hello! +## Start here + +- [Architecture index](planning/architecture/README.md): the architecture and design records, and the ADRs. +- [`CONTRIBUTING.md`](CONTRIBUTING.md): how a change lands in this repository. +- [Documentation catalog](doc/README.md): every dated record and topic, in one map. + ## Contributing Information By submitting patches to this project you agree to allow them to be redistributed under the project's license,