diff --git a/.github/settings.yml b/.github/settings.yml index ea6a0dbcd38..2c5954892e7 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -6,9 +6,9 @@ # configured through GitHub settings/API. repository: - name: ripr - description: "Find Rust test-oracle gaps before mutation testing: static RIPR evidence for CI, editors, and agents." - homepage: "https://github.com/EffortlessMetrics/ripr/" + name: ripr-swarm + description: "Swarm development lane for ripr: static RIPR evidence for CI, editors, and agents." + homepage: "https://github.com/EffortlessMetrics/ripr" topics: rust, testing, mutation-testing, static-analysis, test-automation, developer-tools, code-coverage, lsp, vscode-extension, sarif, github-actions, ci private: false @@ -22,28 +22,15 @@ repository: allow_squash_merge: true allow_merge_commit: false allow_rebase_merge: false - allow_auto_merge: false + allow_auto_merge: true allow_update_branch: true delete_branch_on_merge: true -branches: - - name: main - protection: - required_pull_request_reviews: null - required_status_checks: - strict: true - contexts: - - rust - - msrv - - vscode - - cargo-deny - - dependency-review - enforce_admins: true - required_conversation_resolution: false - required_linear_history: true - allow_force_pushes: false - allow_deletions: false - restrictions: null +# Branch protection is intentionally deferred until routed result checks land. +# Do not copy the source repo's required contexts into ripr-swarm; branch +# protection should require normalized result jobs such as `Ripr Rust Small +# Result`, not conditional implementation jobs or source-repo contexts. +branches: [] labels: - name: full-ci diff --git a/README.md b/README.md index aa45c8f5ab9..fe2caa493a7 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,13 @@ Static mutation-exposure analysis for Rust and Cargo workspaces.

+> `EffortlessMetrics/ripr-swarm` is the public same-repo development landing +> zone for trusted agent and maintainer PRs. The release-facing repository, +> package publishing, marketplace publishing, GitHub Releases, and public +> distribution authority remain in +> [`EffortlessMetrics/ripr`](https://github.com/EffortlessMetrics/ripr). +> See [Swarm development](docs/swarm-development.md). + @@ -466,6 +473,7 @@ Start here: | Review capability state | [Capability matrix](docs/CAPABILITY_MATRIX.md) and [Metrics](docs/METRICS.md) | | Contribute a scoped PR | [Contributing](CONTRIBUTING.md) and [Scoped PR contract](docs/SCOPED_PR_CONTRACT.md) | | Understand CI | [CI strategy](docs/CI.md) | +| Understand swarm development | [Swarm development](docs/swarm-development.md) | | Understand dogfooding | [Dogfooding](docs/DOGFOODING.md) | | Understand docs organization | [Documentation system](docs/DOCUMENTATION.md) | | Capture repo knowledge | [Learnings](docs/LEARNINGS.md) | diff --git a/docs/DOCUMENTATION.md b/docs/DOCUMENTATION.md index efa02f29511..1d077607b9e 100644 --- a/docs/DOCUMENTATION.md +++ b/docs/DOCUMENTATION.md @@ -45,6 +45,7 @@ Current how-to docs: - [CI strategy](CI.md) - [Security policy](../SECURITY.md) - [Repository settings](REPO_SETTINGS.md) +- [Swarm development](swarm-development.md) - [Fix CI shape failures](how-to/fix-ci-shape-failures.md) - [Run Codex Goals](how-to/run-codex-goals.md) - [PR automation](PR_AUTOMATION.md) diff --git a/docs/REPO_SETTINGS.md b/docs/REPO_SETTINGS.md index 904f38665cc..74cacef40f7 100644 --- a/docs/REPO_SETTINGS.md +++ b/docs/REPO_SETTINGS.md @@ -4,6 +4,10 @@ Some security and review controls live in GitHub settings instead of the git tree. This checklist records the expected settings so local automation, CI, and review policy do not drift apart. +This checkout is `EffortlessMetrics/ripr-swarm`, the public development landing +zone for trusted same-repo `ripr` PRs. The release-facing source repository +remains `EffortlessMetrics/ripr`. + ## Settings App Contract The reviewable Settings App contract lives in `.github/settings.yml`. @@ -14,10 +18,9 @@ Managed from git: - repository feature toggles: issues on, projects off, wiki off, downloads on - default branch: `main` - merge policy: squash merge enabled, merge commits disabled, rebase merge - disabled, auto-merge disabled, update branch enabled, and delete branch on + disabled, auto-merge enabled, update branch enabled, and delete branch on merge enabled -- classic `main` branch protection fields supported by the Settings App -- required status checks for routine PR merges +- branch protection is deferred until routed result checks land - CI policy labels documented in `docs/CI.md` Not managed from `.github/settings.yml`: @@ -35,11 +38,26 @@ Not managed from `.github/settings.yml`: Post-merge receipt: - Confirm the GitHub Repository Settings App is installed for - `EffortlessMetrics/ripr`. + `EffortlessMetrics/ripr-swarm`. - Let the app apply `.github/settings.yml`. -- Inspect branch protection and labels through the GitHub UI or API. +- Inspect metadata and labels through the GitHub UI or API. - Update this document with the last verified date and any applied-state notes. +## Swarm Development Boundary + +`ripr-swarm` is not the release authority for `ripr`. Keep these surfaces in +`EffortlessMetrics/ripr` until a focused promotion changes that boundary: + +- crates.io publishing +- VS Marketplace publishing +- Open VSX publishing +- GitHub Release assets +- signing or release environment secrets + +Self-hosted runners are limited to trusted same-repo PRs and pushes. Fork or +otherwise untrusted PRs must use GitHub-hosted runners or skip self-hosted +implementation jobs. See [Swarm development](swarm-development.md). + ## Dependency Visibility Expected state: @@ -120,14 +138,19 @@ automatically. ## Branch Protection And Rulesets Required checks should use the emitted check-run names, not display-style -workflow prefixes. Current required checks are: +workflow prefixes. `ripr-swarm` does not require source-repo contexts such as +`rust`, `msrv`, or `vscode`. Initial branch protection is deferred until the +routed CI result job lands. + +Expected first required checks after proof: -- `rust` -- `msrv` -- `vscode` +- `Ripr Rust Small Result` - `cargo-deny` - `dependency-review` +Do not require conditional implementation jobs such as `Ripr Rust Small on +CX53`, `Ripr Rust Small on CX43`, or `Ripr Rust Small on GitHub Hosted`. + Settings App managed rules: - block force pushes to `main` @@ -165,3 +188,6 @@ Store publish tokens in the narrowest environment that needs them: Environment protection gives release approvals, scoped secrets, and audit history without adding another repo control plane. + +These release environments and publish tokens belong to the source repository, +not `ripr-swarm`, until a dedicated release-boundary change is approved. diff --git a/docs/swarm-development.md b/docs/swarm-development.md new file mode 100644 index 00000000000..69738fa3d6a --- /dev/null +++ b/docs/swarm-development.md @@ -0,0 +1,57 @@ +# Swarm Development + +`EffortlessMetrics/ripr-swarm` is the public development landing zone for +trusted same-repo `ripr` pull requests. The release-facing repository remains +`EffortlessMetrics/ripr`. + +Use this repository to prove routed CI and high-throughput agent development +before promoting batches back to the source repository. + +## Boundaries + +- New development PRs target `ripr-swarm` after the swarm lane is enabled. +- Use same-repo branches and pull requests. +- Do not run public fork PRs on self-hosted runners. +- Do not move crates.io, VS Marketplace, Open VSX, GitHub Release, signing, or + publish secrets into this repository. +- Do not publish releases from this repository. +- Promote reviewed, green batches back to `EffortlessMetrics/ripr`. + +## Runner Posture + +The first routed lane should be Rust-only: + +```text +Ripr Rust Small Result: + CX53 -> CX43 -> GitHub-hosted +``` + +Self-hosted jobs are only for trusted same-repo PRs and pushes. Fork or +otherwise untrusted pull requests must route to GitHub-hosted runners or skip +self-hosted implementation jobs. + +The VS Code lane should remain hosted until a separate Node 24 / VS Code / Xvfb +runner image is proven. + +## Promotion Back To Source + +Promotion remains a source-repo pull request: + +```bash +git clone git@github.com:EffortlessMetrics/ripr.git ripr-promote +cd ripr-promote +git remote add swarm git@github.com:EffortlessMetrics/ripr-swarm.git +git fetch origin --prune --tags +git fetch swarm --prune --tags +git switch -c promote/swarm-main origin/main +git merge --ff-only swarm/main +git push origin promote/swarm-main +``` + +Open the resulting source-repo PR as: + +```text +promote: sync ripr-swarm main +``` + +The source repository CI remains the final release and publish proof.