Skip to content

Commit 7ab64c1

Browse files
committed
docs: clarify vouch timing, DCO vs signing, Cargo feature conventions
- Strengthen vouch timing guidance: explicitly note that auto-closed PRs lose their discussion thread and must be manually reopened - Clarify DCO vs. cryptographic signing: both are separate requirements with separate failure modes; --signoff is universal, GPG signing is org-member-only for copy-pr-bot mirroring - Add Cargo feature conventions section covering feature vs. build mode distinction, transitive dependency auditing, and CI verification - Add PR testing checklist guidance: only mark items complete after actual verification, not as a plan No issue required: documentation-only clarifications to contributor workflow derived from observed friction in recent PRs. Signed-off-by: politerealism <burdcat17@gmail.com>
1 parent 3a16012 commit 7ab64c1

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ We use a vouch system. This exists because AI makes it trivial to generate plaus
2626
2. Describe what you want to change and why.
2727
3. Write in your own words. AI-generated vouch requests will be denied.
2828
4. A maintainer will comment `/vouch` if approved.
29-
5. Once vouched, you can submit pull requests.
29+
5. **Wait for approval before opening a PR.** Once vouched, you can submit pull requests.
3030

31-
**If you are not vouched, any pull request you open will be automatically closed.** Org members and collaborators with push access bypass this check.
31+
**If you are not vouched, any pull request you open will be automatically closed.** Closing loses the discussion thread and the PR must be manually reopened — it cannot be converted to a draft or held. Org members and collaborators with push access bypass this check.
3232

3333
### Finding Work
3434

@@ -547,10 +547,22 @@ chore(deps): bump tokio to 1.40
547547
All human contributions must include a `Signed-off-by` line in each commit message. This certifies you have the right to submit the work under the project license. See the [Developer Certificate of Origin](https://developercertificate.org/). Dependabot-authored dependency update PRs are allowlisted because the bot cannot sign commits.
548548

549549
```bash
550-
git commit -s -m "feat(sandbox): add new capability"
550+
git commit --signoff -m "feat(sandbox): add new capability"
551551
```
552552

553-
DCO sign-off is separate from cryptographic commit signing. CI requires signing for org members so that copy-pr-bot can mirror your PR automatically; see [CI.md](CI.md#commit-signing) for setup.
553+
DCO sign-off (`--signoff`) and cryptographic commit signing are separate requirements with separate failure modes. The `--signoff` flag adds the `Signed-off-by` trailer checked by the DCO Assistant bot — a missing or mismatched trailer will fail the DCO check regardless of whether the commit is GPG-signed. Cryptographic signing is required for org members only, so that copy-pr-bot can mirror your PR to run CI; see [CI.md](CI.md#commit-signing) for setup.
554+
555+
### Cargo feature conventions
556+
557+
When adding or changing Cargo features that affect packaging or distribution:
558+
559+
- **Feature vs. build mode:** A feature opt-in adds a capability. Removing a feature to disable something (e.g., bundled CA roots) is a build mode — document it as such rather than creating a mirror feature just to name the absence. A convenience alias that re-includes all other defaults is appropriate when distro recipes would otherwise need to manually track every unrelated default feature.
560+
- **Transitive dependency auditing:** When a feature is meant to exclude a dependency, verify it is physically absent — not just disabled at the call site. Run `cargo tree -e features -p <crate>` to confirm the excluded crate does not appear through a transitive path. A common source of leaks: crates that enable `rustls-tls` or similar features by default in their own `[features]` table.
561+
- **CI verification:** Add a `mise` task or CI step that builds without the feature and confirms the excluded dependency is absent from `cargo tree` output. A compile-time guard alone may not catch a transitive re-introduction.
562+
563+
### PR testing checklist
564+
565+
Only mark a checklist item as complete after you have actually run and verified it — not as a plan for what you intend to test. Unchecked boxes at submission are fine; they signal what still needs verification before merge.
554566

555567
## CI
556568

0 commit comments

Comments
 (0)