Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
<em>Static mutation-exposure analysis for Rust and Cargo workspaces.</em>
</p>

> `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).

<!-- Public Shields endpoint JSON under badges/ is generated by `cargo xtask badges`; verify with `cargo xtask badges --check`. The public `ripr` badge counts unresolved actionable static repair gaps; `ripr+` adds only actionable test-efficiency repairs projected into the same repair / verify / receipt model. These badges are not coverage, runtime mutation confirmation, all behavior seams, or all untested code. Diff-scoped artifacts belong in PR summaries and CI uploads. See [docs/BADGE_POLICY.md](docs/BADGE_POLICY.md), [docs/VERIFICATION.md](docs/VERIFICATION.md), and `deferred/hosted-badge-service` in [docs/DEFERRED.md](docs/DEFERRED.md). -->


Expand Down Expand Up @@ -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) |
Expand Down
1 change: 1 addition & 0 deletions docs/DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
44 changes: 35 additions & 9 deletions docs/REPO_SETTINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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`:
Expand All @@ -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:
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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.
57 changes: 57 additions & 0 deletions docs/swarm-development.md
Original file line number Diff line number Diff line change
@@ -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.
Loading