Skip to content

Update CONTRIBUTING.md to reduce risks - #862

Merged
fxamacker merged 1 commit into
masterfrom
fxamacker/clarify-contributing-guidelines
Oct 21, 2026
Merged

fxamacker merged 1 commit into
masterfrom
fxamacker/clarify-contributing-guidelines

Conversation

@fxamacker

@fxamacker fxamacker commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

This PR updates the Contribution Guidelines to reduce security risks, operational risks, and legal risks from unvetted AI code, automated attestations, false positives, uncoordinated PRs, and uncertain authorship.

CONTRIBUTING.md provides guidelines and directs contributors to follow the Security Policy, bug report form, feature request form, and pull request template.

For example, both the guidelines and PR template require coordinating work on PRs:

To reduce risks and make sure work is coordinated, you need to discuss the proposed changes before opening a PR. Approval to proceed given to someone else, or approval of the idea in general, does not extend to you. No reply means not approved.

  • A maintainer replied to me in the related issue (or by email, etc.) that I can proceed with this PR.

The more detailed coordination and attestation aim to reduce how often people with no prior communication with anyone mark the old checkbox "[x] This PR was proposed and welcomed by maintainer(s)".

The issue forms and the PR template require the human submitting them to read and personally make each attestation.

Among other things, the bug report and feature request forms provide useful examples that can save time.

CONTRIBUTING.md sections

Attestations and uncertain authorship

Although contributors may use AI to improve their PR description (e.g., to fix grammar), the issue forms and the PR template require the human submitting them to read and personally make each attestation, such as:

  • certifying the DCO 1.1
  • adding Signed-off-by lines
  • confirming that they personally reviewed and understand each changed line

For example, the PR template includes the following:

IMPORTANT: The copyright or licensing status of AI output can be unclear or become unclear because AI training data includes content from unidentified authors. This project typically does not consider AI-generated content to meet clause (a) or (b) of the DCO 1.1 (unless an exception is granted by the maintainer).

  • By marking this item as completed, I certify the Developer Certificate of Origin 1.1.

Bug reports and feature requests

The bug report form requires a runnable reproducer, and the feature request form asks for info that can help prioritize the request.

Related PRs

@fxamacker fxamacker self-assigned this Oct 9, 2026
@fxamacker fxamacker added the docs label Oct 9, 2026
@fxamacker
fxamacker force-pushed the fxamacker/clarify-contributing-guidelines branch from 406d79e to 81f4230 Compare October 9, 2026 15:21
@fxamacker fxamacker changed the title Update CONTRIBUTING.md and templates to reduce risks Update CONTRIBUTING.md to reduce risks Oct 9, 2026
Comment thread CONTRIBUTING.md Resolved
@fxamacker
fxamacker marked this pull request as draft October 12, 2026 18:54
@fxamacker
fxamacker force-pushed the fxamacker/clarify-contributing-guidelines branch 2 times, most recently from 93dc897 to 9512b23 Compare October 17, 2026 19:14
@fxamacker
fxamacker marked this pull request as ready for review October 20, 2026 13:14
@fxamacker
fxamacker force-pushed the fxamacker/clarify-contributing-guidelines branch 2 times, most recently from 8a8e1e4 to bb920c0 Compare October 21, 2026 01:30
This rewrites CONTRIBUTING.md to reduce security risks, operational
risks, and legal risks from unvetted AI content, false positives,
uncoordinated pull requests, and uncertain authorship.

The guidelines link to the Security Policy, the pull request template,
bug report form, and feature request form.

Although contributors may use AI to fix grammar in the PR description,
a human must open the PR and make attestations (e.g., certifying the
DCO 1.1 and confirming they reviewed and understand each changed line).

It mentions early that credit (e.g., thanks or advisory credit)
may be withheld or removed, for example, if someone does not follow
these guidelines or violates the Code of Conduct or Security Policy.

The guidelines have these sections:
- Prohibited Content
- Security Vulnerabilities
- Opening Issues
- Opening Pull Requests (PRs)
- Special Thanks

It removes content that is now covered elsewhere or no longer applies.
@fxamacker
fxamacker force-pushed the fxamacker/clarify-contributing-guidelines branch from bb920c0 to 420f1ec Compare October 21, 2026 02:42
@fxamacker
fxamacker requested a review from x448 October 21, 2026 02:57
@fxamacker

Copy link
Copy Markdown
Owner Author

@x448 PTAL

@x448 x448 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fxamacker
fxamacker merged commit 3347da9 into master Oct 21, 2026
19 checks passed
@fxamacker
fxamacker deleted the fxamacker/clarify-contributing-guidelines branch October 27, 2026 16:40
tsenart pushed a commit to perfloop-oss/cbor that referenced this pull request Nov 6, 2026
Update Status section to match v2.10 release notes:
v2.10.0 speeds up encoding by up to 2.88Γ— and decoding by up to 1.87Γ—
with zero memory regressions (B/op, allocs/op), reduces memory use,
adds the toindefarray struct tag option, and fixes bugs. The
Contributing Guidelines, Security Policy, and templates were
extensively updated (fxamacker#862).

Update Secure Decoding section to show fxamacker/cbor v2.10.0
rejecting 10 bytes of malformed CBOR data (9B 00 00 42 FA 42 FA 42 FA 42)
in 28 ns/op with 8 B/op and 1 allocs/op (Go 1.26.10). That is about
200,000Γ— faster than another Go CBOR codec, which takes 5639731 ns/op
with 67112386 B/op and 10 allocs/op.

Update these sections:
- Introduction
- Secure Decoding with Configurable Settings
- Security Tips
- Status
- Prior Releases
- Versions and API Changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants