Skip to content

doc: add an AI contribution policy - #35386

Merged
achow101 merged 1 commit into
bitcoin:masterfrom
willcl-ark:ai-contributions
Jul 7, 2026
Merged

achow101 merged 1 commit into
bitcoin:masterfrom
willcl-ark:ai-contributions

Conversation

@willcl-ark

Copy link
Copy Markdown
Member

This policy, adapted from ripgrep, https://github.com/BurntSushi/ripgrep/blob/f0cec341ab95c25c691ad3d5754d4bd9eedde21f/AI_POLICY.md who in turn adapted it from uv https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md, works as a reasonable and pragmatic AI contribution policy at this point in time.

It codifies roughly how the project is currently operating, it's expectations when Ai is being used, and what we don't wish to see.

Link to the document directly from the new PR and issue helptext.

@DrahtBot DrahtBot added the Docs label May 26, 2026
@DrahtBot

DrahtBot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35386.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK sedited, Sjors, achow101, l0rinc
Concept NACK kanzure
Approach ACK jonatack
Stale ACK stickies-v, mzumsande, ekzyis

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

@willcl-ark

Copy link
Copy Markdown
Member Author

Naturally something like this will be a "living document" and may evolve with the current state of tooling, expectations and requirements of the project.

Looking for conceptual review on adding it at all at this point, but I think codifying how we work and what we expect is useful for new contributors.

Other approaches include:

  • have this live in top level ./AI_POLICY.md, or
  • have this live over in bitcoin-core/meta
  • have no codified policies

@sedited sedited 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.

Concept ACK

Comment thread doc/AI_POLICY.md Resolved
Comment thread doc/AI_POLICY.md Resolved

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Concept ACK. My initial thought is that it would be best to put it in this repo (not in meta) -- either in doc/ as you have done here, or top-level -- and link to it in CONTRIBUTING.md.

Comment thread doc/AI_POLICY.md Resolved

@stickies-v stickies-v 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.

Approach ACK. Agreed to not make it too long, and update over time rather than add any edge case from the beginning.

Comment thread doc/AI_POLICY.md Outdated
Comment on lines +16 to +19
If you are opening a pull request, you are expected to be able to explain the
proposed changes in your own words. This includes the pull request body and
responses to questions. **Do not copy responses from the AI when replying to
questions from maintainers and other contributors.**

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.

I think this should be expanded to require authors to have thoroughly reviewed and understand all proposed code changes, and to make sure the code is at least as good as they would have written it manually. They should not propose any code changes on domains for which they lack sufficient expertise, or keep it to the bare minimum and clearly document/disclose it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hmmm, this is sort of covered by the next paragraph:

This project requires a human in the loop who understands the work produced by AI.

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.

It is, but I think this is an important part of what makes AI-powered contributions valuable. I think it's useful to expand a bit so when someone who's genuinely interested in making useful contributions can better understand whether their contribution is meeting that bar.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How about:

If you are opening a pull request, you are expected to have thoroughly reviewed
and understand all proposed code changes, and be able to explain the changes in
your own words. This includes the pull request body and responses to questions.
**Do not copy responses from the AI when replying to questions from maintainers
and other contributors.**

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.

I would still prefer to expand more on the other items I mentioned, but there will be lots of opinions on this pull and I don't think we should spend too much time on it, so this is fine.

@kanzure

kanzure commented May 26, 2026

Copy link
Copy Markdown
Contributor

I am not opposed to writing and including something. I wonder about the efficacy, though.

Most importantly, do not waste the time of the project contributors.

Drive-by contributions by slopmaxxers will continue to happen regardless of what an extra document says.

At some point, it may be wise to consider the responsibility of minimizing spam to be the responsibility of the existing contributor set, rather than new anonymous contributors (who are unknown and unaccountable to each other because they are ephemeral) who may, or may not, read this document.

For example, measures to minimize spam could look like "requiring new users to receive nomination from at least n=1 existing contributors before submitting pull requests", and other variants.

I also submitted an idea for promoting individuals to donate LLM tokens instead of LLM outputs.

previously LLM guidelines were discussed here and here.

I wonder if we might also want to take any inspiration from here? ghostty-org/ghostty#10412

I saw another project that simply disallowed contributions from non-contributors (HN 1, 2). So you'd have to actually work with the contributors before opening issues or pull requests. ghostty disallows issue creation by non-contributors. I don't know what the best strategy is to handle these issues (or do I?).

@mzumsande mzumsande 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.

I would prefer it if the wording was more aggressive and stated clearly something like:
Don't PR LLM-generated code unless you

  1. know the language the code is written in
  2. could have written the code yourself.
  3. understand the existing surrounding code and the effect of the suggested changes.

@sedited sedited 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.

ACK fcdd7facff7b58fdb2c3b88b405996cba02e02ce

@DrahtBot
DrahtBot requested review from jonatack and stickies-v May 26, 2026 16:38
@achow101

Copy link
Copy Markdown
Member

Concept ACK

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm. Not sure how much this will help, but it seems harmless to be hopeful and try anyway

immediately.
Pull requests may be closed immediately if they:
- do not have a rationale and clear improvement
- do not adhere to doc/AI_POLICY.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

meta nit: It would be good if there was a way to show this more prominently on GitHub, when creating a pull request. Otherwise, I don't think most LLM bots (or their operators) will even see this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah it's a bit of a shame that issues on GH get better treatment in this regard; I think you can only add text to the PR body as we have done here.

That is why I put this near the top, but I agree most autonomous LLM bots likely won't see it :( (I guess gh pr create or API has no such help text anywhere at all).

@ekzyis ekzyis 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.

Concept ACK

We had a good experience at @stackernews with asking to disclose AI usage, so we don't need to guess, and it sets expectations for review. (If they didn't disclose it, and it turned out to be AI, this gives us another data point how to treat the contributor in the future.)

However, what counts as AI usage (that should be disclosed) is debatable, and I eventually got annoyed answering the question "Did you use AI? If so, how?" myself, so I'm not sure I'd actually recommend adding it here.

Drive-by contributions by slopmaxxers will continue to happen regardless of what an extra document says.

I think documents like these exist so we can point to them when taking action.

Comment thread doc/AI_POLICY.md Outdated
Comment on lines +23 to +24
project**. Pull requests that appear in violation of this will be closed,
perhaps without notice.

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.

nit: "will be closed, perhaps without notice" -> "can be closed without notice"

(a bit more standard phrasing)

Comment thread doc/AI_POLICY.md Outdated
Comment on lines +33 to +35
it reflects your own voice and ideas. If using AI for translation, we recommend
writing in your native language and including the AI translation in a quote
block.

@ekzyis ekzyis May 27, 2026 •

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.

nit: would recommend to put native language into a collapsible section

like this to avoid unnecessarily long text that most probably can't read

@willcl-ark

Copy link
Copy Markdown
Member Author

I am not opposed to writing and including something. I wonder about the efficacy, though.

I think it's pretty well understonnd that this won't stop these contributions, but as noted below we can at least, when challenged, say that we have this policy in place and we judged this contribution fell foul of it.

Drive-by contributions by slopmaxxers will continue to happen regardless of what an extra document says.

Agreed. This is also why I personally feel that

I would prefer it if the wording was more aggressive and stated clearly something like:
Don't PR LLM-generated code unless you

  • know the language the code is written in
  • could have written the code yourself.
  • understand the existing surrounding code and the effect of the suggested changes.

is not worthwhile, despite being perhaps what we ideally woudl want to see.

At some point, it may be wise to consider the responsibility of minimizing spam to be the responsibility of the existing contributor set, rather than new anonymous contributors (who are unknown and unaccountable to each other because they are ephemeral) who may, or may not, read this document.

For example, measures to minimize spam could look like "requiring new users to receive nomination from at least n=1 existing contributors before submitting pull requests", and other variants.

I have floated the idea of using somthing like vouch to do this in the past. I don't think we are at that stage here yet though, although volume is steadily increasing.

vouch requires a discussion (we have disabled) to be opened first, where you can ask to open an issue or PR. This frees up issues and PRs a bit from AI spam. If (any) contributor "vouches" for you then the bot will not auto-close your issue. IMO drahtbot is doing a fine job for us on this front now, and it's not necessary currently. We could do things like add vouching to delving/IRC too if we ever went down a similar path.

@stickies-v

Copy link
Copy Markdown
Contributor

is not worthwhile, despite being perhaps what we ideally woudl want to see.

If the only purpose is to stop bots from spamming, then I agree. But if we assume that there continue to be genuine attempts of new contributors to enter the project, I think it remains useful to write documentation that is meant to be useful, not just a thing to point to when someone does something wrong.

@willcl-ark

Copy link
Copy Markdown
Member Author

is not worthwhile, despite being perhaps what we ideally woudl want to see.

If the only purpose is to stop bots from spamming, then I agree. But if we assume that there continue to be genuine attempts of new contributors to enter the project, I think it remains useful to write documentation that is meant to be useful, not just a thing to point to when someone does something wrong.

as @kanzure said and I agreed with, I don't think an extra document will stop bots from spamming.

I think it remains useful to write documentation that is meant to be useful

The idea of this document is indeed to remain useful, and codify at a high-level how we are currently operating. I'd prefer not to be too prescriptive about it, perhaps #35386 (comment) is enough?

@willcl-ark
willcl-ark marked this pull request as ready for review May 27, 2026 09:54
@willcl-ark

Copy link
Copy Markdown
Member Author

Undrafting as there seems to be at least some interest in having something here.

@stickies-v stickies-v 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.

ACK fcdd7facff7b58fdb2c3b88b405996cba02e02ce

@DrahtBot
DrahtBot requested review from achow101 and ekzyis May 27, 2026 10:02

@ekzyis ekzyis 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.

ACK fcdd7facff7b58fdb2c3b88b405996cba02e02ce

@mzumsande mzumsande 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.

I think it's pretty well understonnd that this won't stop these contributions, but as noted below we can at least, when challenged, say that we have this policy in place and we judged this contribution fell foul of it.

Agreed. This is also why I personally feel that (...) is not worthwhile, despite being perhaps what we ideally woudl want to see.

I don't follow this reasoning. Yes, for drive-by spammers it doesn't matter at all what is in the policy, but why is that an argument for the current version and against a stricter one?

I do think it matters what the policy says for other reasons:
There are probably lots of well-meaning bitcoiners who are not proficient in C++ or even programming in general, but are clever and may think that LLMs have made it possible for them to contribute to Bitcoin Core in a meaningful way, with PRs they could never have written by themselves in a pre-AI time.

They are also likely to actually read the policy to see whether they are welcome or not.
After reading this policy, these people will read through their LLM output until they think they understand it, and open a PR in which they summarize it in their own words.

Whether we want to encourage these kind of contributions is in my opinion the critical question we have to answer as a project.

There are arguments in favor (maybe they get better over time; how else do we find new contributors) and against (they bind scarce reviewer resources and add little value; Bitcoin Core is a security-critical project and not a programming bootcamp).

In any case, I think that the resulting policy should actually reflect what we as a project think about these contributions. I think that the currently proposed policy invites them somewhat.

@Sjors

Sjors commented May 27, 2026 •

Copy link
Copy Markdown
Member

Concept ACK

‎doc/AI_POLICY.md‎ at fcdd7facff7b58fdb2c3b88b405996cba02e02ce looks ok, but "Autonomous agents" is a bit ambiguous. I assume the problematic "autonomy" is about opening pull requests, responding to feedback, etc?

Damus also has a useful section: https://github.com/damus-io/damus/blob/master/docs/CONTRIBUTING.md#ai-assisted-contributions

AI-assisted submissions will be treated with the same standards and rigour as any other human-made submissions.

If this is merged, I suggest replacing the canned response with a link to it.

@kanzure

kanzure commented May 27, 2026

Copy link
Copy Markdown
Contributor

NACK: adding written policy isn't a solution to the given problem. In general I am skeptical of policy documents for various reasons.

I have floated the idea of using something like vouch to do this in the past

Cool idea. It would be a good experiment that could always be turned off after a trial period.

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approach ACK. I'm sympathetic to the Concept ~0 comment as well, and presume this text is as much something for mods/admins to point to than anything else.

Comment thread doc/AI_POLICY.md Outdated

You must also be able to explain the pull request changes in your own words.
This includes the pull request body and responses to questions.
**Do not copy responses from the AI when replying to questions from maintainers and other contributors.**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit, can simplify

Suggested change
**Do not copy responses from the AI when replying to questions from maintainers and other contributors.**
**Do not copy responses from the AI when replying to questions from reviewers.**

Comment thread doc/AI_POLICY.md Outdated
This includes the pull request body and responses to questions.
**Do not copy responses from the AI when replying to questions from maintainers and other contributors.**

This project requires a human in the loop who understands the work produced by AI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit, clarify that the human referred to here is the author

Suggested change
This project requires a human in the loop who understands the work produced by AI.
This project requires a human author in the loop who understands the work produced by AI.

@maflcko

maflcko commented May 29, 2026

Copy link
Copy Markdown
Member

I have floated the idea of using something like vouch to do this in the past

Cool idea. It would be a good experiment that could always be turned off after a trial period.

I wouldn't recommend doing anything fancy here with new rules and vocabulary. A trivial system could just check if a new pull request was opened by a new contributor. If yes, it will be auto-closed with the message "Thx, but new contributions will be manually re-opened on a case-by-case basis, to limit spam" (or so). A closed pull request can still be concept ack/nack'd by reviewers if they want, and can be re-opened at any time.

Note that issues are already fine, because DrahtBot correctly closes all the spam ones (ref: #35366 (comment))

Not sure how controversial that is, so I don't want to push this, but it would be trivial to implement with a one-line if check.

@ekzyis ekzyis 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.

ACK 8e88ccd0efef473f0ae4d634c9691b595963cc21

@DrahtBot
DrahtBot requested a review from jonatack May 29, 2026 18:44

@l0rinc l0rinc 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.

Concept ACK

Comment thread doc/AI_POLICY.md
Comments are expected to be written by humans.
Comments that are believed to be written by AI may be moderated.

If you are opening an issue, you should be able to describe the problem in your own words.

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.

I'd say the bar is higher: you should be able to recreate the change without AI assistance too, not just a general "describe the problem", but understand each line of the solution.

Comment thread doc/AI_POLICY.md
- could have written the code yourself
- understand the existing surrounding code and the effect of the suggested changes

You must also be able to explain the pull request changes in your own words.

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.

This was already stated above

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.

I think before we were talking about comments, this is specifically about the description. The AI PR descriptions are what annoy me the most. They are often word soup and include details that are irrelevant. Maybe add a short sentence that brief descriptions are the most effective.

Comment thread doc/AI_POLICY.md Outdated

You must also be able to explain the pull request changes in your own words.
This includes the pull request body and responses to questions.
**Do not copy responses from the AI when replying to questions from maintainers and other contributors.**

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.

You're absolutely right!

Comment thread doc/AI_POLICY.md Outdated

If you wish to include context from an interaction with AI in your comments, it must be in a quote block (e.g., using `>`) and disclosed as such.
It must be accompanied by human commentary explaining the relevance and implications of the context.
Do not share long snippets.

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.

This line doesn't seem AI related. I often inlude very long patches, that's why we have:

Collapsible sections
very
very
very
very
very
very
very
very
very
very
very
very
very
very
very
very
very
very
log text

@janb84

janb84 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Not against some documentation but ~0 to a living doc, look how much valuable review time this has wasted again.

The documentation isn't going to stop AI usage, can even be counter productive, stopping well meaning new contributors or create "more AI friendly" forks.

We have moderation guidelines, if the moderators feel this is needed to moderate than ok, otherwise I feel this is only "false hope".

@maflcko

maflcko commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

Is the intended audience for this document moderators (who might otherwise not feel authorised to moderate such contributions)

IMO this is the main driver here. We won't change the behaviour of LLMs/autonomous agents, or contributors, with a policy document.

I'd say if the motivation is only about moderation, then the document should be moved to the meta repo. However, there may be a benefit in having the document here, for well-meaning contributors that want to know if it allowed to let openclaw (or whatever the unsupervised public bots are called) on the repo, or whether it is allowed to copy-paste LLM output verbatim without marking it in any way.

Edit: DrahtBot could also automatically post the policy in a comment on any first-time-contributors pull request, unrelated to where it eventually ends up living.

Autonomous agents are not allowed to be used for contributing to this project.

FWIW, I hope to violate that policy sooner or later (eg, "/goal figure out a way to reliably reproduce this potential issue and write a test case for it, and file a PR on my local git instance").

I think the policy doesn't affect what anyone is doing locally. The MIT license already allows you to do whatever you want.

I think the meaning this is intending to get across is fundamentally a repeat of "AI should not be used to generate comments when communicating with maintainers and other contributors." Though I've also already violated that, too, IMO for the better (#34444).

You marked the LLM output, so I don't think it is a violation. (I see the policy requires block quotes, but maybe that is too strict and maybe it can be made more general and the policy shorter and focus on the essentials only)

AI tooling is changing rapidly; if this document is going to change equally rapidly, then it's probably a waste of time to have it -- more time will be lost by people trying to stay current with it than saved by it.

I agree. I think the goal here should be to come up with something that needs to be modified minimally at most every few years or so.

Document project expectations for AI-assisted contributions so contributors
understand when AI use is acceptable and when it creates review or moderation
burden.

Link to the document directly from the new PR and issues helptext.

@sedited sedited 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.

Re-ACK 31abaa2

@DrahtBot
DrahtBot requested review from ekzyis, l0rinc and mzumsande July 4, 2026 09:44
@Sjors

Sjors commented Jul 4, 2026

Copy link
Copy Markdown
Member

re-ACK 31abaa2

@achow101

achow101 commented Jul 7, 2026

Copy link
Copy Markdown
Member

ACK 31abaa2

@l0rinc l0rinc 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.

ACK 31abaa2

@achow101
achow101 merged commit 62f9089 into bitcoin:master Jul 7, 2026
28 checks passed
oleonardolima added a commit to oleonardolima/rust-bitcoinkernel that referenced this pull request Jul 9, 2026
…05fc7ab

81405fc7ab Merge bitcoin/bitcoin#35689: test: Inline incorrect check in `util_tests`
cd2a4bc510 test: Redeclare variable as signed in `util_tests`
6f1c56f03a Merge bitcoin/bitcoin#35670: net: optimize compact block extra tx iteration
e94fda8a40 Merge bitcoin/bitcoin#35685: doc: Archive 30.3 release notes
5223cf1795 Merge bitcoin/bitcoin#35616: refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow
c0e91efdb3 Merge bitcoin/bitcoin#35295: validation: fetch block input prevouts in parallel during ConnectBlock
f0da26cfc8 Merge bitcoin/bitcoin#34997: p2p: Don't participate in addr relay with feelers
443179a9eb doc: Archive 30.3 release notes
fabafd91f1 refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow
32941e1314 Merge bitcoin/bitcoin#35649: depends: move FreeBSD SDK handling to CI
f379d716b1 Merge bitcoin/bitcoin#35669: doc: archive release notes for v31.1
881bb7b355 Merge bitcoin/bitcoin#35673: refactor: Move LoadGenesisBlock to ChainstateManager
3f3e644beb Merge bitcoin/bitcoin#35678: private broadcast: define and use new RPC_LIMIT_EXCEEDED error code ( + other follow-ups)
e3b026bf56 Merge bitcoin/bitcoin#34020: mining: add getTransactions(ByWitnessID) IPC methods
62f9089343 Merge bitcoin/bitcoin#35386: doc: add an AI contribution policy
fa615bd163 refactor: Move LoadGenesisBlock to ChainstateManager
8ac222484c private broadcast: remove no-op [[nodiscard]]
191bdcba26 test: align test better with described scenario
7ad311be18 test: use BOOST_CHECK_EQUAL for PrivateBroadcast::AddResult
82a02a2a22 rpc: define and use new  RPC_LIMIT_EXCEEDED error code
a64df338e6 Merge bitcoin/bitcoin#35651: doc: Improve offline-signing-tutorial after 32489
4498fa5d5b Merge bitcoin/bitcoin#35406: private broadcast: limit outstanding txs to count of 10,000
ec5edcd72b Merge bitcoin/bitcoin#35661: Update libmultiprocess subtree to add `ThreadMap.makePool` method
ea67fea062 Merge bitcoin/bitcoin#35464: kernel: Add function for creating chainparams with a signet challenge
a7b5f23bb8 Merge bitcoin/bitcoin#35667: refactor: Use `NetworkErrorString` for macOS code in `netif.cpp`
69fc991791 Merge bitcoin/bitcoin#32606: p2p: Drop unsolicited CMPCTBLOCK from non-HB peer and when blocksonly
1a3cbf1bd2 net: optimize compact block extra tx iteration
bc33509ae2 Merge bitcoin/bitcoin#35650: doc: Add release notes for 32489 (exportwatchonlywallet RPC)
2b6e767d96 doc: archive release notes for v31.1
b0735336ee p2p: Don't participate in addr relay with feeler connections
302733fd96 Merge bitcoin/bitcoin#35652: init: fix reindex deadlock by waking cv after interrupt
c1313b199f init: wake genesis wait after ImportBlocks() returns
eccb04a321 refactor: Use `NetworkErrorString` for macOS code in `netif.cpp`
f79ecfd9c7 Merge bitcoin/bitcoin#35658: refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>`
22ac4ad949 ci: ensure we use correct lld version in OpenBSD job
495f43f7b3 ci: FreeBSD 15.1
244739db9d depends: move FreeBSD SDK handling to CI
bab0120053 Merge bitcoin/bitcoin#35621: validation: Ignore eventual error message from flushing in AcceptBlock
02afa66169 Merge commit '6b0a907302364649dcaffeb0340b985f14141b4e' into pr/subtree-11
6b0a907302 Squashed 'src/ipc/libmultiprocess/' changes from 3edbe8f67c1..16bf05dea02
22c328d388 refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>`
2063f02bd5 Merge bitcoin/bitcoin#35510: test: SOCKS5 proxy: expect that connection may be reset during SOCKS5 handshake or data forwarding
1360001f43 Merge bitcoin/bitcoin#34959: wallet: Enforce BDB btree levels and overflow item sizes
10ffef4b3b Merge bitcoin/bitcoin#35604: log: expose `-logratelimit` in normal help
b393985aa0 Merge bitcoin/bitcoin#35634: txospenderindex: use zero-byte entry values
1835f2fcbf Merge bitcoin/bitcoin#35653: fuzz: Remove `ConsumeUniValue`
9f3e427228 fuzz: Remove ConsumeUniValue
68cb7840d2 doc: improve offline-signing-tutorial after 32489
32ddfc92d9 Merge bitcoin/bitcoin#35599: doc: Add release notes for #33671 (getbalances nonmempool field)
f56804bcf5 Merge bitcoin/bitcoin#35640: ci: use a 8x instance over 16x for riscv job
239d6c5260 Merge bitcoin/bitcoin#35614: HTTPServer: Prevent race condition between worker thread and I/O thread
cddbad325d doc: Add release notes for 32489 (exportwatchonlywallet RPC)
0a1bbec688 Merge bitcoin/bitcoin#32489: wallet: Add `exportwatchonlywallet` RPC to export a watchonly version of a wallet
4a007126fb Merge bitcoin/bitcoin#35147: depends: Boost 1.91.0-1
31abaa264c doc: add an AI contribution policy
a15bdc0598 doc: update offline-signing-tutorial to use exportwatchonlywallet rpc
a388076401 test: Test for exportwatchonlywallet
d053e3e5c8 wallet, rpc: Add exportwatchonlywallet RPC
444878efef wallet: Add CWallet::ExportWatchOnly
f9273f01db wallet: Move listdescriptors retrieving from RPC to CWallet
a1c83789a7 wallet: Write new descriptor's cache in AddWalletDescriptor
1e996640e6 wallet: Use Descriptor::CanSelfExpand() in CanGetAddresses()
d2ee9227da descriptor: Add CanSelfExpand()
2990bd7735 Merge bitcoin/bitcoin#35118: fuzz: add ipc round-trip fuzz target
fb1d152c24 depends: Boost 1.91.0-1
ba48852f9e Merge bitcoin/bitcoin#35438: test: introduce NodeSigner, run feature_taproot.py without wallet compiled
47bbed052e ci: use true|false over "true|false"
9a25bc3989 ci: use a 8x instance over 16x
9871dc7ab4 Merge bitcoin/bitcoin#31425: CI: Add Riscv bare metal job
113402286e doc: add txospenderindex release note
ce06878288 index: shrink txospenderindex value markers
a99148d576 test kernel: Don't log on warnings change
5b4fd284f4 kernel: Generate a signet with a challenge
037ad77071 fuzz: add IPC round-trip target
a8823c0996 Merge bitcoin/bitcoin#35607: nanobench: fix performance counter buffer initialization
f26c15bdd2 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job
91586f701e test: introduce NodeSigner, run feature_taproot.py without wallet compiled
771200ca43 test: return full keypair from `getnewdestination` helper
4e29de719e private broadcast: add release note for limited cap
cbf8c107c1 Release cs_main between individual private tx re-attempts
5aea3d0373 private broadcast: limit outstanding txs to count of 10,000
dc282ff31d Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category
ec98037f7a Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets
43d89bb6e1 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command
e35c805489 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast
dc1c17c085 doc: add release notes
0e10937184 fuzz: add coins_view_stacked fuzz harness to test concurrent leveldb reads
ce610a6ff4 fuzz: update harnesses to cover CoinsViewOverlay::StartFetching
760fb22dc3 test: add unit tests for CoinsViewOverlay::StartFetching
d69a3b20de doc: update CoinsViewOverlay docstring to describe parallel fetching
ab2a379237 coins: fetch inputs in parallel
fdf283036a coins: add ready flag to InputToFetch
ede11b8314 validation: collect block inputs in CoinsViewOverlay before ConnectBlock
f82043af50 coins: introduce thread pool in CoinsViewOverlay
5bf1c32008 validation: add -prevoutfetchthreads configuration option
a318f43254 bitcoin-util: Add netmagic command
256482ab56 validation: In AcceptBlock, ignore flush result
3c76bd4356 Merge bitcoin/bitcoin#35603: build: QRencode cleanups
f595daf1dd test: ensure HTTPServer race condition is fixed
b98b10c072 test: introduce a worker thread in http socket error test
922b08d375 test: socket error handling in HTTPServer using ErrorSock mock socket
73da2a8a52 http: prevent race condition between worker thread and I/O thread
57b3bf8496 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
d64ea15824 ci: add openBSD cross CI job
5404b62074 depends: add openbsd_LDFLAGS
2a9e35d293 Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
a0e5e30010 fuzz: restore CreateSock in PCP targets
41ceea400e scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}`
f395acdeee scripted-diff: Rename `Sock::{RECV,SEND,ERR}`
7a74f65293 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances
e1290ce7f7 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
7ac25c9177 util, refactor: Rename local `ERR` in `Sock::Accept`
bbbbab86a8 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE
095596ddf7 log: expose -logratelimit option
ea9afb61a1 Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
672eedc46b Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage
0e5c718d8a Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live
b6b1d0653a nanobench: fix perf counter buffer init
93012d7ff9 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall
829255c8be cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module
5c55606da9 depends: Remove unused `lib/pkgconfig` in `qrencode` package
402ba10b20 cmake: Drop optional `PkgConfig` use in `FindQRencode` module
8ebfff0f88 doc: add send RPC release note
fb8a103886 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements
5884f5a4fa wallet: remove experimental warning from send RPCs
7b84e5106c Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job
58560c281d ci: remove some packages from Chimera job
295ce6f45c Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout
b36730a3ef  Add CI job for riscv bare metal
bfdbf513f6 Add CI job for producing a static bare metal binary
a9a1d92a1d build: Add option for building for bare metal envs
9b2ef81757 doc: add release notes for #33671 (getbalances nonmempool field)
633044f143 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating
d6269e2a90 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction
3765b428d1 logging: More fully remove libevent log category
703a671fbc fuzz: compact coins view db during fuzzing
0868c85fd5 refactor: rename async coin compaction
6fa4132298 fuzz: share a single mocked steady clock across FuzzedSock instances
8791c4764c test: use ExtendedPrivateKey in wallet_taproot.py
89ceafafb9 test: use ExtendedPrivateKey in wallet_listdescriptors.py
bbfffcab58 test: use ExtendedPrivateKey in wallet_send.py
2ab6e590f7 test: use ExtendedPrivateKey in wallet_keypool.py
9e20118720 test: use ExtendedPrivateKey in wallet_fundrawtransaction.py
06af0cddbb test: use ExtendedPrivateKey in wallet_descriptor.py
4100fac20e test: use ExtendedPrivateKey in wallet_createwallet.py
ff3f6def9a test: use ExtendedPrivateKey in wallet_bumpfee.py
003f2a01f6 test: use ExtendedPrivateKey in feature_notifications.py
f988e6d6e6 test: use ExtendedPrivateKey in wallet_importdescriptors.py
0cdd817a82 add release note
517d37ce3e test: tests wallet migration with load_wallet disabled
b98dd63da7 rpc: Add load_wallet argument to migratewallet RPC
4acd063ba6 wallet: make loading the wallet after migrating optional
1a3cfdf1b7 fuzz: connman: cover AddLocalServices/RemoveLocalServices
c507fb3063 fuzz: connman: add outbound-bytes invariants
4a6fce43ea fuzz: connman: add AddNode/RemoveAddedNode invariants
9e6546c517 test: raise reindex mining RPC timeout
d2a03d50ac test: add extendedkey.py unit tests by using BIP32 test vectors
afdb378082 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes
55e3a57f22 qa: Avoid UTXO reuse between test functions
9c5dd2926a p2p: Ignore CMPCTBLOCK from peer that hasn't sent SENDCMPCT
bf9884f4e5 p2p: make blocksonly nodes ignore CMPCTBLOCK messages
92cea63c71 test: (Un)solicited invalid cb -> get disconnected.
e845e26344 test: p2p: Nodes ignore unsolicited CMPCTBLOCK's
8313591715 p2p: Drop unsolicited CMPCTBLOCK from non-HB peer
44f377a71f refactor: test: Static assert_highbandwidth_states
25457a3272 test: Tighten getblocktxn checks in parallel cb reconstruction test.
2ee4fafa3f test: add fuzz test for private broadcast
08b7c61fc7 private broadcast: enforce sending to unique node ids
9a8ef9b0a3 test: SOCKS5 proxy: expect that connection may be reset during handshake
eb3208364a test: SOCKS5 proxy: expect that connection may be reset when forwarding
4dbaa7cc65 test: generalise byte_to_base58 utility function to allow more version types
df9eb72b12 test: ensure group data cluster pointers are live
a5859edef4 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections
4b84c9125a fuzz: connman: add network activity invariants
9784818442 mining: add getTransactionsByWitnessID() IPC method
d282ae6883 mining: add getTransactionsByTxID() IPC method
0d5e4d4712 test: restart node after IPC option override test
f16b3613cd ipc: Serialize null CTransactionRef as empty Data
0f466e1094 mempool: add lookup by witness hash
51dd90fb50 refactor: Merge announce_cmpct_block() defs into one
97d08d62ba refactor: store wallet names to MigrationResult
8a739a5510 build: allow ipc fuzz builds
b2de59d486 wallet, bdbro: Validate btree page levels
dc3a2b9c3b wallet, bdbro: Enforce overflow data lengths

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 81405fc7abbd1889f3978b8924e7acbe12b3403b
Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Jul 10, 2026
0509fa8 doc: add an AI contribution policy (will)

Pull request description:

  This policy, adapted from ripgrep, https://github.com/BurntSushi/ripgrep/blob/f0cec341ab95c25c691ad3d5754d4bd9eedde21f/AI_POLICY.md who in turn adapted it from uv https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md, works as a reasonable and pragmatic AI contribution policy at this point in time.

  It codifies roughly how the project is currently operating, it's expectations when Ai is being used, and what we don't wish to see.

  Link to the document directly from the new PR and issue helptext.

ACKs for top commit:
  Sjors:
    re-ACK 0509fa8
  achow101:
    ACK 0509fa8
  sedited:
    Re-ACK 0509fa8
  l0rinc:
    ACK 0509fa8

Tree-SHA512: 667bda2d02717889ee6878438b4e4c7155025ae6933ac748b49f7ca2a04c94515bdd04d522a778828995c3e328780521c1734dd0d8cca4711a702fc9f242756f
@bitcoin bitcoin deleted a comment from Pray4Love1 Jul 24, 2026
@ajtowns

ajtowns commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The LLVM AI policy at https://llvm.org/docs/AIToolPolicy.html seems interesting and might have some ideas worth copying/adapting.

@maflcko

maflcko commented Aug 7, 2026

Copy link
Copy Markdown
Member

I think the two policies say the same thing. The LLVM one is just a bit more verbose/detailed?

@ajtowns

ajtowns commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

I was thinking of the "Extractive Contributions" section in particular. With a little pushing Claude Sonnet says "For an LLVM PR, I'd weight the size of the diff against its worth even where authorship and disclosure are both fine. Bitcoin's policy doesn't ask that question at all - it stops as "did a human write and own this"". The same logic is in our CONTRIBUTING.md in the middle of the Peer Review section though; but arguably that's easier to miss.

@maflcko

maflcko commented Aug 8, 2026

Copy link
Copy Markdown
Member

Yeah, it could make sense to link back to the general CONRRIBUTING.md from AI_POLICY.md, or even just inline the ai policy into the larger doc into a new section. Maybe after "Getting Started" and before "Communication Channels"?

Kino1994 pushed a commit to Kino1994/bitcoin-full-history that referenced this pull request Aug 19, 2026
31abaa264c35d1779a34d8c110a0c91e62c08ee0 doc: add an AI contribution policy (will)

Pull request description:

  This policy, adapted from ripgrep, https://github.com/BurntSushi/ripgrep/blob/f0cec341ab95c25c691ad3d5754d4bd9eedde21f/AI_POLICY.md who in turn adapted it from uv https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md, works as a reasonable and pragmatic AI contribution policy at this point in time.

  It codifies roughly how the project is currently operating, it's expectations when Ai is being used, and what we don't wish to see.

  Link to the document directly from the new PR and issue helptext.

ACKs for top commit:
  Sjors:
    re-ACK 31abaa264c35d1779a34d8c110a0c91e62c08ee0
  achow101:
    ACK 31abaa264c35d1779a34d8c110a0c91e62c08ee0
  sedited:
    Re-ACK 31abaa264c35d1779a34d8c110a0c91e62c08ee0
  l0rinc:
    ACK 31abaa264c35d1779a34d8c110a0c91e62c08ee0

Tree-SHA512: 667bda2d02717889ee6878438b4e4c7155025ae6933ac748b49f7ca2a04c94515bdd04d522a778828995c3e328780521c1734dd0d8cca4711a702fc9f242756f
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.